Moon Animator Gun Exporting Help?

You can write your topic however you want, but you need to answer these questions:

  1. 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.

  2. 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

  3. 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”

Then, save it the same way you’d save any other animation, select the publisher and upload it.

After that, simply create an Animation instance and set its AnimationId to the ID for the uploaded animation.

Then load the animation normally (Animator:LoadAnimation(AnimationInstance)) and you’re done.

Yes but how do I animate the gun too?

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. :shock:

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.

Oh sorry my bad, if this helps I have a rig using rig editor lite


Also there is no script cuz I just wanna export it

And also this:


(the scripts are unimportant rn btw)

well as I’ve said many times already, you have to recreate the rig at runtime with the same motor6D names.

Its a lot easier if you save the gun model with its rigged segments and then just create the gun-to-character connection via code when required.

Is there any tutorial of this? Because I cannot understand this (dont worry im just dumb i think)

Its just creating a new instance, connecting some things, setting a Vector3 and then naming it.

Everything you need should be on the Motor6D documentation.

If you need a step by step though:

  1. Get the gun model and create a motor6D, parenting it to the same parent as your rig
  2. Calculate the required offset for the animation (whats the difference in position from a to b)
  3. Set the motor6Ds C0 to that offset
  4. Set Part0 and Part1 to those that match your rig
  5. Rename the motor6D
1 Like

OH MY GOSH. holy i was so dumb lol. I did not realise this until testing with another rig. Thank you so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.