Well :MoveTo is not a valid member of player, so this is how we are going to do it.
first we will start out with the function however I think it would be easier to use an anonymous function.
1 | game.Players.PlayerAdded:connect( function (plr) |
now that we have the function down we should move on to what this function Does
so you are wanting to move a player on spawn to that Position but you can't move a Player, as it is not what is Inside of Workspace the thing that players use are Characters so while we no longer need to use the game.Players.plr.Character any longer we can just use plr.Character and that should work
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | plr.Character:MoveTo(Vector 3. new( 20.755 , 28.28 , - 218.88 )) |
but I would much prefer myself using a CFrame on the Plrs Torso.
so here is MY Method on doing it..
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | local tor = plr.Character:findFirstChild( "Torso" ) |
4 | tor.CFrame = CFrame.new( 20.755 , 28.28 , - 218.88 ) |
Don't have to do it that way but it should work much simpler.
Locked by IcyEvil, Void_Frost, and Goulstem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?