You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I made a gun animation using Moon Animator, and i want to use it in-game.
What is the issue? Include screenshots / videos if possible!
I don’t know most of moon animator so I don’t know if how to upload it. I used this tutorial: video
What solutions have you tried so far? Did you look for solutions on the Creator Hub?
I have tried using tutorials, splitting the animation to two, using modules but none of them seemed to work.
Well, without information on your rig or code managing animations, it’s impossible to say how to do anything with accuracy.
If you’re using an animation controller / humanoid with motor6Ds, this isn’t a scripting issue at all.
Animations are stored under the character in an instance called “AnimSaves”
Simply find your animation there, then right click it, hover over “Save / Export” and then click “Save to Roblox”
You create motor6Ds and connect them to what you want them to be connected to. If you have to do this at runtime, of course, do it in code, else, moon2 has a “easy weld” plugin that allows you to weld things with motor6Ds to be animated.
If you do things at runtime, you’ll have to create the rig in studio, create the animations and then when the game is ran and you need to load the rig, you have to recreate it with 1:1 names and locations in code so the animations work.
Maybe include that information in the post next time though…?
I already have the animation set up, it’s just that I want to know how to export the animation to put it in my game, but I don’t know how to export the gun with the rig. Everything I tried so far did not work. I already rigged the gun, but I just wanna export both of the animations to play on a tool. I’m new to Moon Animator lol.
well again, you’ve provided zero information on how you’ve rigged so I can’t really help.
If the gun is literally part of the rig (you’ve connected the gun to the character with motor6Ds) then you have to re-create those connections at runtime through a script as I already said.
If the gun itself isn’t rigged and is just parts, then rig it and redo the animations or find a way to read and playback the animations based off CFrame values.
As for saving them to roblox, I’ve already gone over that in my first response.