Hey so I was trying script an idle animation script that my friend @FIamework animated, we are currently working on a project and I’m wondering how to work make this script work, no errors show on output and the character is just standing still while the animation isn’t still.
There’s been some weird occurances with Idle
animations playing and not
Could you try changing the Animation.AnimationPriority
to Action
?
Have you checked to see if the IdleAnimation is changing?
How do I check and see if it’s changing or not?
Did you change the HumanoidDescription?
Probably not, I’m really bad at scripting and I don’t know how to change or view that stuff. Do need to insert a humanoid part into somewhere?
You can look in the explorer, or you can do prints, but isn’t the ‘Animate’ script a LocalScript? I don’t know if that will change anything. I’m not that good with animations.
Try this:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(Character)
local Animate = Character:WaitForChild("Animate")
Animate.idle.Animation1.AnimationId = "rbxassetid://6555490523"
Animate.idle.Animation1.AnimationPriority = "Action"
end)
end)
When I used that script, it didn’t work, (I’m by no means a good scripter so I don’t know what went entirely wrong)
Ok that’s cool
Just remove the AnimationPriority
line and see if there were any changes made? If not you may have to do it on the client-side instead for it to work
where is the script being stored? It should be in ServerScriptStorage
It’s being stored there and still doesn’t work for some reason.
Try this:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(Character)
Character.Animate.idle.IdleAnim.AnimationId = "rbxassetid://6555490523"
end)
end)
This is what it prompts when I used that script and put it in ServerScriptStorage
Just Animation.idle
is not the correct parent to play the animation, it’s Animate.idle.Animation1
I believe
Actually, could you go ahead and show the Explorer to where the Animate
script is and it’s children?
At first I had it in Workspace but then I was told to put it in ServerStorage
and that still didn’t work. Not sure what you mean by children, I don’t think I ever put in anything for that. As you can probably tell, I’m an awful scripter.
Ah, yeah please put it inside ServerScriptService
and do this:
-
Click Play
-
Click “Client” which will change it to the server-side (In studio)
-
Find where the “Animate” script is on the Character inside the workspace
-
Check to see it’s parents, try to find the
idle.Animation1
object