Event.Hitbox.Touched:Connect(function(M)if M.Parent:IsA("\084\111\111\108")and M.Parent.Name==ToolRequired then if game.ReplicatedStorage.ItemSwitching.Value==true then M.Parent:Destroy()end Event.LocksLeft.Value=Event.LocksLeft.Value-1 Event.Dinosaur.Transparency=0 Event.TeleportEffectPad.Insert:Play()Event.Hitbox.DinosaurHint:Destroy()script.Disabled=true end end)Event.Hitbox.ClickDetector.MouseClick:Connect(function(M)if M.Backpack:FindFirstChild(ToolRequired)then if game.ReplicatedStorage.ItemSwitching.Value==true then(M.Backpack:FindFirstChild(ToolRequired)):Destroy()end Event.LocksLeft.Value=Event.LocksLeft.Value-1 Event.Dinosaur.Transparency=0 Event.TeleportEffectPad.Insert:Play()Event.Hitbox.DinosaurHint:Destroy()script.Disabled=true end end)


Event.Hitbox.Touched:Connect(function(hit)
	if hit.Parent:IsA("Tool") and hit.Parent.Name == ToolRequired then
		if game.ReplicatedStorage.ItemSwitching.Value == true then
			hit.Parent:Destroy()
		end
		Event.LocksLeft.Value = Event.LocksLeft.Value - 1
		Event.Dinosaur.Transparency = 0
		Event.TeleportEffectPad.Insert:Play()
		Event.Hitbox.DinosaurHint:Destroy()
		script.Disabled = true
	end
end)

Event.Hitbox.ClickDetector.MouseClick:Connect(function(plr)
	if plr.Backpack:FindFirstChild(ToolRequired) then
		if game.ReplicatedStorage.ItemSwitching.Value == true then
			plr.Backpack:FindFirstChild(ToolRequired):Destroy()
		end
		Event.LocksLeft.Value = Event.LocksLeft.Value - 1
		Event.Dinosaur.Transparency = 0
		Event.TeleportEffectPad.Insert:Play()
		Event.Hitbox.DinosaurHint:Destroy()
		script.Disabled = true
	end
end)
