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

Custom animation script won't function?

Asked by 4 years ago

Hi I have this animation script that gives teams a custom walking animation however it doesn't seem to work and I can't identify the problem. Any help would be appreciated, thanks. :D

Here is the current script:

local player = game.Players.LocalPlayer

local function characterAdded(character)
if player.Team.Name == "Red" then
character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=3721028703"
elseif player.Team.Name == "Blue" then
character.Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=3721028703"
end
end

player.CharacterAdded:Connect(characterAdded)
0
What do you mean by "not working"? The animation is not playing? No animation? Or it didn't change? Headstackk 45 — 4y
0
did you put it in a script or a localscript Luka_Gaming07 534 — 4y
0
or is it walk instead of run? Luka_Gaming07 534 — 4y

Answer this question