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

Different walking animations for different teams?

Asked by 4 years ago

Hey, I was wondering how I'd make this custom walking animation script only apply for a certain team so players on the two different teams have different walking animations, how would I do this? Any help would be appreciated! :)

Here is the current script: (Everyone has the same walking animation)

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
player.Character.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=951228037" 
end)
end)
1
You could use the team properties of the "Player" class in Roblox to assign an animation to a player depending on his team. You can check by team color or just overall the name of the team that the player is assigned to. https://developer.roblox.com/en-us/api-reference/class/Player  iDarkGames 483 — 4y

Answer this question