Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 comment

0

Use ':Touched' event

1 answer

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.

1 comment

0

If you're going to answer, you should atleast give an example.

This discussion is preserved as it was. New answers, comments, and votes are closed.