What I am trying to do is to get the player to move to a position when it touches a part. This is the script I used
workspace.Custom.Touched:connect(function(hit) local pos = game.Workspace.Spot.Position game.Players.LocalPlayer:MoveTo(pos)
end)
It says MoveTo isn't a valid member of Player, what do I replace it with?

4 comments
That wouldn't work because of LocalPlayer.
Why would it not work? What do you mean? I added .Character to the LocalPlayer which gets its character.
Because LocalPlayer can't be accessed from a normal script and you shouldn't use a LocalScript with this type of script, else anyone that touches the brick is going to cause the client to teleport.
Apparently he did use a LocalScript.