I recently moved my game to have ownership of my group instead of my Roblox account, and now all the animations are no longer playing, since animations only work if they are owned by the owner of the game. I’ve moved a few animations to be owned by my group, but moving almost a hundred animations and re-assigning the animation ID of the characters is a very tedious process and I would like to avoid doing that.
Is there anything I can do, or do I have to reupload everything to my group and change the IDs of all the animations?
2 Likes
Roblox did actually release a Doc detailing how to do this, but it was using a 3rd-party tool on GitHub. See: Transferring Animations
3 Likes
I’m relieved that there is actually a solution, but how do I use it?
2 Likes
Uhh, you can just read through the GitHub page linked in the Docs and the instructions provided
If you’re asking about prerequisites, you’ll need to install node.js on your device
2 Likes
I read it a few times, but I am still so confused on many things. I’m not that technical with this kind of stuff.
I downloaded the ZIP file and Node.js and now I don’t know what to do next.
1 Like
Is there anything else I can do, like overwriting the asset to be under my group?
1 Like
I think the only way now is to reupload the assets, which was what the Github provided in the Doc was doing anyways
Ooookay, so I’ve just finished experimenting with transferring animations. I’ll try my best to explain the steps as far as I can:
- After downloading the ZIP and node.js
1a. Extract the ZIP file.
1a. Run the node.js installer and successfully install node.js
- Begin Mapping Animation Ids to Names
2a. The script in the Doc is meant to compile a list of animations in your game (in the format ModelName_AnimationName AnimationId). The Doc assumes that you’ve stored your animations in a model in Workspace, so you might need to modify the script accordingly so it can actually compile the full list of animations.
2b. Create a new text file in the extracted ZIP folder (it should be named roblox-animation-transfer-master
).
2c. Copy and paste the Script in 2a into a script in-game, and copy the output into the text file created in 2b. Make sure to savee
-
Transferring Animations
3a. Go into the extracted ZIP folder (it should be named roblox-animation-transfer-master
), right click and click Open in Terminal
(I’m assuming you’re on Windows) and run the command mentioned in the Doc (I recommend you view the README file of the Github to check what commands you can use)
3b. If you did not specify an output file, the program should have created one for you. The contents should have a similar format to the input file (the text file you’ve created in Step 2b)
By this point, if you had done everything right, your animations should have already been reuploaded on your group.
- Loading Animations on Runtime
Now that you’ve gotten the animations reuploaded into your group, it’s time to replace the old animations. Unfortunately, I don’t really understand the Documentation for this section.
I just ran Step 4’s code to turn the text the output file (Step 3b) into a dictionary, copied the output, created a ModuleScript in ServerScriptService and wrote this:
local module = {}
local animationMap = {
["NPC2_Sit"] = "rbxassetid://12345",
["NPC1_Look"] = "rbxassetid://67890"
}
function module.getAnimation(animName: string)
return animationMap[animName]
end
return module
Then you’ll need to update the scripts handling animations in your game to require the ModuleScript above to get the correct animation ID.
2 Likes
Okay, I’ll try that and get back to you later.
1 Like
I’ve already stumbled upon a problem at number 2…where is the doc located or what is it called? I see a lot of json files but no doc.
1 Like
Oh sorry, I meant the Transferring Animations Doc
2 Likes
Ok now, I completed steps 1 and 2 but for 3a, I don’t see an “Open in Terminal” option in the right click menu. I am on Windows 10.
2 Likes
Maybe a Open command window here
? Or a Open PowerShell window here
button?
2 Likes
I managed to get the command prompt open on it, but I don’t know how to get a .ROBLOSECURITY
login cookie, and it is not specified in the doc or what it even is
1 Like
I’m assuming you’re on Chrome. On a Roblox page:
- Right click and click Inspect
- Click on the 2 arrows on the top of the Inspect tab, and click Application
- Click on Cookies, the cookie named “https://www.roblox.com…”, and find the cookie named “ROBLOSECURITY” (it may be cut off on your screen).
- Copy the cookie value, and delete the warning off the cookie (_|WARNING:DO-NOT-SHARE…and-items.|)
Please make sure you don’t share your ROBLOSECURITY cookie with anyone else, as it will allow people to login into your account and bypass 2FA. Once you’re done exporting animations to your group, make sure to sign out of all other sessions in your Settings to regenerate your cookie.
I put the cookie into the terminal, ran the npx roblox-animation-transfer..
command in my command prompt and it says 'roblox-animation-transfer' is not recognized as an internal or external command, operable program or batch file.
What am I supposed to do about that?