Hi !
I have a problem with Character:MoveTo(), the issue is that when I put a vector3 in that add it to the first position of the character and so it cause bug but in another place it work but the script isn’t exactly the same :
Script1 don’t work :
local function SpawnPlayer(Player)
Player:LoadCharacter()
local Character = Player.Character
Character:MoveTo(Vector3.new(math.random(-1000, 1000), 0.125, math.random(-1000, 1000)))
end
Players.PlayerAdded:Connect(function(Player)
SpawnPlayer(Player)
end)
Position I get : (412, -99.88500213623047, 753)
Script2 don’t work :
Players.PlayerAdded:Connect(function(Player)
Player:LoadCharacter()
local Character = Player.Character
Character:MoveTo(Vector3.new(math.random(-1000, 1000), 0.125, math.random(-1000, 1000)))
end)
Position I get : (412, 0.125, 753)
Thank you for the reply and have a nice day !