I am trying to make a script that will change a players animation depending on what team he/she has joined.
game.Players.LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function() if game.Players.LocalPlayer.TeamColor = BrickColor.new() --Put the colour of the team in the brackets local anim = Instance.new("Animation", script) anim.AnimationId = "" -- Place animation ID in the quotes local animtrack = game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):LoadAnimation(anim) animtrack:Play() end