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

4 comments
Awesome! That was exactly what I was missing. Thanks a lot really appreciate it.
happy to help!
jediploccon how did you spot that mistake?
Since the error was "Character is not a valid member of PlayerGui" that means that the code was trying to reference the folder 'PlayerGui' which is one of this child's of the player, so if you just add one more .Parent in the script it should reference the player correctly