Attempting to make a script that teleports a player to a given location.
local SLPos = workspace.SettlerLobby.SettlerLobbyPos
local SLButton = workspace.TeamLobby.TB1.Button.ButtonGui
SLButton.MouseButton1Click:Connect(function()
game.Players.LocalPlayer:moveTo(SLPos.Position)
end)
When I try clicking the button it says “moveTo is not a valid member of Player”. How would I go about teleporting the player, is moveTo not a real thing?