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

How do I make a player assign to a team via touching a block?

Asked by 6 years ago

I want a player to be assigned to a team when they touch a block, any help would be great

0
Use ':Touched' event Bazuxk 95 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

every player got a teamcolor propery if that color is the same as the color of an actual team, then the player will be in that team.

so simply do a touch event and change the teamcolor property of the player. use the first parameeter of touched and it will return a part of the character. then you can do :getplayerfromcharacter and from there you can simply just change the teamcolor.

0
If you're going to answer, you should atleast give an example. StoleYourClothes 105 — 6y
Ad

Answer this question