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

How to make certain things for certain teams?

The question is a bit confusing but basically I want to give custom animations to each different team and for them all not to have the same one. I'm making a game with groups and roles so knowing how to separate different groups of players for fighting skills and such would be helpful.

1 answer

Simple. Every time a character is added, you check the player's current team and insert items accordingly.

game.Players.PlayerAdded:Connect(function(player)

player.CharacterAdded:Connect(function(character)

local humanoid = character:WaitForChild("Humanoid")
if player.Team == game.Teams.Example then

elseif player.Team == game.Teams.Example2 then

end)

end)

1 comment

0

there should be an 'end' at line 9, i forgot sorry

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