I am making a tycoon right, and this is supposed to teleport a drop once it hits the pad ( which is what the script is under ) and teleport it to the area listed in the script? Can someone help me?
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("part") then hit.Parent.part.CFrame = CFrame.new(-189.706, 2.003, -183.431) else print("You're not a drop silly!") end)
edit: its also giving me this error unexpected symbol near ')'
script.Parent.Touched:connect(function(h) if (h.Parent.Name == "part") then h.Parent:MoveTo(Vector3.new(-189.706, 2.003, -183.431)) end end)