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

How do I write a script to make a player's animation change upon joining a specific team!?

Asked by
elzia3 0
6 years ago

I am trying to make a script that will change a players animation depending on what team he/she has joined.

1 answer

Log in to vote
0
Answered by
Meqolo 78
6 years ago
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
0
Awesome! Thank you so much! elzia3 0 — 6y
0
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!!! elzia3 0 — 6y
Ad

Answer this question