Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

why doesn't this script work?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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...

Ad

Answer this question