Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why doesn't this script work?

it was working but it all of a sudden broke. it is suppose to tp to the X Y Z location

function Click()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(152.573, 221.3, -20.394)
end

script.Parent.MouseButton1Down:connect(Click)

1 answer

✓ Accepted answer

Are you sure script.Parent.Parent.Parent.Parent is the player..? Is the script inside the GUI you want to click on and move? Open up your output window and play solo...

This discussion is preserved as it was. New answers, comments, and votes are closed.