So i want it so when i click this part (the parent of the script) it teleports to the coordinates. im not sure if it just doesnt know what the parent of click is or im doing it wrong completely
local ClickDetector = script.Parent.ClickDetector
ClickDetector.MouseClick:connect(function(click)
click.Parent:FindFirstChild("Torso")
click.Parent.CFrame = CFrame.new(-115, 459, 128)
end)

2 comments
thanks! I havent mastered MoveTo yet!
Welcome, its a esay to use API for moving the character of a player.