im creating a game that if you click a textbutton on the screen, it will teleport the player to a certain Position. The code--
1 local player = game.Players.LocalPlayer 2 script.Parent.MouseButton1Click:Connect(function() 3 script.Parent.Parent.Visible = false 4 player.Position = game.Workspace.BattleMap.tp.Position 5 end)
line four is what i dont get. I need to reference the player and change its position. How must i do this?
It gives ma an error syaing 'Position' is nit a property of LocalPlayer

1 comment
accepting answer button is under comments so accept and i can get points for helping you