Hello I would like to do some game testing in studio with the multiplayer emulator in the test tab
of studio. (local server, 3 players)
I am making an obby experience that uses teams and teamcolor for the different stages
how can I change the players teamcolor from the command bar in studio and have the 3 players spawn up on that teams teamcolour or stage
I don’t want to have to physical complete 40 stages for each player, each time I would like to
test the latest level in studio.
I know theres probably a simple solution to this but its only simple if you know how.
The teams are set up in a regular way with different team and TeamColor for each stage or checkpoint.
Thanks
3 Likes
Wynsage
(Winsage)
2
You actually have to use BrickColor.new for this, since this is what teams use to sort each team:
Specific player:
game.Players.PLAYER.TeamColor = BrickColor.new("Bright red")
All players:
game.Players:GetPlayers().TeamColor = BrickColor.new("Bright red")
Local player:
game.Players.LocalPlayer.TeamColor = BrickColor.new("Bright red")
Disable .Neutral property of your spawn’s if you want it to make a team spawn.
1 Like
Hello and thanks very much for your prompt response. It works well to change the players team in the leaderstats.
I will mark your reply as solved.
To change the player spawn position I have used
game.Workspace.jellyfishes1298.HumanoidRootPart.CFrame = game.Workspace.checkpoints["Stage 40"].CFrame
Cheers
aaltUser
(aaltUser)
4
Wouldn’t using .Team instead of .TeamColor also work?
Wynsage
(Winsage)
5
It’s best to use .TeamColor, or atleast that’s what I think…
1 Like