Hey, I’m trying to do make some sort of fighting script, it mostly work except for the animations :I’m trying to create the animation track when the character is created and store them in a table so that I can play them randomly
My issue is, I can’t store the animationtrack in the table and play it, I’ve tried to make the script into a server script and a module script and the animation doesn’t play in both cases, I’ve also tried to play a specific animation stored into a variable which still doesn’t work.
The only case when it work is when I use load the animation directly when the function run, the problem being that the number of animation track loaded is limited.
Is it “normal” and is there any way to get around it ?
In case this is important, here is the part of the script to choose the animation and what it returns :
I haven’t search that much so no but from what I see it doesn’t give me a solution :the animation priority shouldn’t be wrong, same for permissions as it’s published in a group for a group game (as I said, it works when I load the animation each time the function is called, but not when I store it)
I will search into more posts though
I already tried, but that’s the same :actually I’ve also tried to create a variable which contain the loaded animation and play only this specific animation with the variable in the script but this change nothing, the only option I have found to play this is to load the animation each time I fire my fighting function
Sorry, I’m not sure to understand, I load and play the animation into a script (I’ve also tried that with a module script used by a server script) and store them into a variable so that another function of this script use them.
Everything at this point is made from the server, and not the client
And here is a part of the script that contains the code and should choose the animation being played (as you see I’ve tried to play only a specific animation but that still doesn’t do anything)
In the code I’ve quoted, you create a global variable animations that I don’t see any other reference to in your module. Make sure that it is saved in the module table
Because the way the script work is that it use animation keyframe’s name to know when the server’s code after that (so making damages and playing effects) should be executed
That was not the original script, I’ve tried to create a table which would not be into the module like you see in my first post but that’s not so different, the original code should be something like this (yeah I have many diferents version sorry)