Can you guys help me fix this?
function Click() script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(133.456, 16.226, 41.188) end script.Parent.MouseButton1Down:connect(Click)
if needed, this is where the TextButton I try to click so I can be teleported to is.
StarterGui OpenCloseGUI Frame TextButton
I think you forgot to add one more .Parent to line 2, so it might look like this
function Click() script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(133.456, 16.226, 41.188) end script.Parent.MouseButton1Down:connect(Click)