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

How to make certain things for certain teams?

Asked by 3 years ago

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

Log in to vote
0
Answered by
A_Mp5 222 Moderation Voter
3 years ago

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)
0
there should be an 'end' at line 9, i forgot sorry A_Mp5 222 — 3y
Ad

Answer this question