Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i change Player's Teams?

Asked by 9 years ago

Sorry I ask too many questions xD

ok so I want it when the player beats the game it changes team to "Winners" Not like change the name, but move the player to that team. How do I do that?

Once again sorry I ask too many questions but I just found out about this website and its helping me a lot.

0
This is not a request site to get scripts off other users for your own benefit. And it's also best to check if questions like these were asked/answered using the Site's Search feature. xPolarium 1388 — 9y
0
well it actually kinda is. It's helping other people and i help people with my scripting knowlege Lukeisbossman64 73 — 9y

1 answer

Log in to vote
2
Answered by 9 years ago

To change the team of a player, you need to set the TeamColor property of the player to the TeamColor property of the team you want to change them to.

player.TeamColor = game.Teams.Winners.TeamColor --Changes player's TeamColor to the Winners team TeamColor. Make sure you define player first.

I hope my answer helped you. If it did, be sure to accept it.

0
how do i accept it? sorry im new to this website Lukeisbossman64 73 — 9y
0
There's an accept button with a checkmark under my name. Click that and it'll mark the question as answered. Spongocardo 1991 — 9y
0
i dont see it Lukeisbossman64 73 — 9y
0
It should be on the right, it's called "Accept Answer" and it should have a tick next to it. Spongocardo 1991 — 9y
Ad

Answer this question