Hello! I need some help with a Roblox animation script. I tried copying the default script and pasting it into StarterCharacterScripts, then inserting the correct animation id for the “Walk” and “Run” values, on both ends. In the script, and in the values. And for some reason, it still plays the default roblox walk when I try it? Here is the part of the script I changed:
local animNames = {
idle = {
{ id = "http://www.roblox.com/asset/?id=507766666", weight = 1 },
{ id = "http://www.roblox.com/asset/?id=507766951", weight = 1 },
{ id = "http://www.roblox.com/asset/?id=507766388", weight = 9 }
},
walk = {
{ id = "rbxassetid://16248792966", weight = 10 }
},
run = {
{ id = "rbxassetid://16248792966", weight = 10 }
},
I tried searching, and couldn’t find any other solutions to this issue.
Changing the id inside script doesn’t do anything, ( not sure, but there’s better method )
The better method is to set the AnimationID of “WalkAnim” animation inside “walk” StringValue Inside of “Animate” LocalScript to your ID.
( change WalkAnim’s AnimationID to your animation id )
I said is to change StarterAnimate’s walk.WalkAnim’s AnimationID to the ID he wanted.
I also can’t understand what are you talking about, can you explain more?
Also, I’ve tried changing the script’s ID, and changing StringValue’s Animation’s AnimationID.
And Changing Animation’s AnimationID only worked. ( custom animations )
Oh, I’m sorry, I’m kinda new to all this just trying to learn more. I was thinking maybe he defined “id” incorrectly to where “id =” wouldn’t do anything. You can’t just call for id without previously defining it can you??
you can in tables, because it is actually making a variable.
walk = {
{ id = “rbxassetid://950403503459034950345” }
}
This won’t make error because It is setting a value of table. ( walk[1].id )
this may be hard to understand because i am bad at explaining something like this.
but just know that this doesn’t error.
Sorry I took a while to respond. I was pretty busy today! Would you recommend just playing the animation by setting the script to be default, while only changing the values connected to the script?
I tried adding a local script, and it worked! Just, Roblox needs to make scripting animations easier. It’s weird that you need to do all of this just to add an animation id.