So I am making a script that teams me to a specific team and moves me to a specific location with my player. Of course I am not sure how to do that or why my script won't work. The console gives 0 errors yet the game won't team me (auctally in game) nor will it TP me to the set location

game.Players.PlayerAdded:connect(function(Player) 
if Player.UserId == 81482246 then
	Player.CharacterAdded:connect(function(Char)
        Player.TeamColor = BrickColor.new(3)
Char.Torso.Position = Vector3.new(91.51, 119.988, -8.701)
        
	end)
end
end)

I am not sure what is wrong so please help me if possible. By the way 81482246 is my player ID .

I edited some stuff with the script from some feedback in chat.

5 comments

0

Any error output?

0

No 0 errors as I already identified above

0

Try using Player.Character instead of using the parameter Char

0

I wi;ll

0

I'd suggest using Char:MoveTo(Vector3.new(X,Y,Z)) it's way more reliable