I tried it lots of times but i'm new with scripting , My game has a scared run animation that i made myself i just don't know how to make all players have it. Please help me with it. When i try to script it goes weird because i don't know what to put.
COMMUNITY QUESTION
How do I make all players on my game to have the same run animation?????
1 answer
Here's how you can accomplish this, first create a script and place an Animation instance inside it. Next let's make a for loop that'll go through each player and run the animation, it's important to make sure your animation has top priority so that it will play over all other animation currently running on that specific humanoid.
for _,v in pairs(game.Players:GetChildren()) do
local char = v.Character
if char then
local humanoid = char:WaitForChild("Humanoid")
local animation = humanoid:LoadAnimation(script.Animation) --change to the animation instance inside the script
animation:Play()
end
end
3 comments
0
Animation Instance?
0
what is a Animation Instance and how can i get this to work?
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Just copy and paste the animate script, and change the RunAnim's value to the value you want, then put it in StarterCharacterScripts!