I am trying to make a script that will change a players animation depending on what team he/she has joined.
COMMUNITY QUESTION
How do I write a script to make a player's animation change upon joining a specific team!?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Awesome! Thank you so much!
Wait! jk! I'm still having trouble! Basically what im trying to do is make it so that when a player joins a team, lets say "Karate" for instance, that the players default animation such as walk, run, etc. will change into something else! I know how to change a players default animation, but as soon as the player joins a team, the deafault animation revert back to the original!!!