Moon VFX Exporter | Export animations that cannot be exported from Moon Animator!

Hello devs! today i want to publish a plugin that i made. this is my first ever plugin.
it’s called Moon VFX Exporter!

You can get the plugin here!
Plugin Link : Moon VFX Exporter - Roblox

What does it do?

Moon VFX Exporter can export parts animation! basically what it can do is export the VFX you create in moon animator into roblox!

How do i use it?

To use it you must first create a “Model” this will be the reference, after you create a model you will want to make a Part inside the Model, set the Part as the PrimaryPart of the Model.

After that you can insert all the part you want to be in the VFX into the Model.

Then just animate the parts as usual in Moon Animator.

After you’re done, click “Save”.

Open Moon VFX Exporter, and select the .xsixx file, it’s usually inside the ServerStorage.

After you selected it, click Export!

Now the assets will be in ReplicatedStorage, and there will be a localscript inside StarterPlayerScripts!

How do i play the animation in-game?

Inside StarterPlayerScripts there will be a folder named MoonVFX, inside there is the exported animation script!
you can Invoke the PlayAnim BindableFunction to play the Animation!
The PlayAnim takes 1 parameters, it’s a CFrame Parameter, the location of where the VFX would play.

This sample script will play the animation on your mouse position

local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		script.Parent.MoonVFX["Insert your VFX Name here"].PlayAnim:Invoke(CFrame.new(game.Players.LocalPlayer:GetMouse().Hit.p) * CFrame.Angles(0,math.rad(math.random(-360,360)),0))
	end
end)
What the plugin Can't Do
  1. It cannot export animations that have Rigs in it, but everything else should’ve worked fine!
  2. This plugin uses TweenService to play the animation in-game, so anything that TweenService Can’t do, this plugin also cannot do it.
  3. Some easingtypes may not be supported, again, if the easingtype/easingdirection exists in TweenService then it will support it.
Tutorial Video

Moon VFX Exporter Tutorial - YouTube

Oh, and this plugin is Open-Source.
If anyone want to further improve the plugin you can do so by going to this link!

The place is uncopylocked and all the plugin’s file is inside it.

That’s all from me! if there’s any bugs you can tell me by replying here. i will fix it when i have the time!
See ya! :hugs:

16 Likes

I’m gonna test it… If that work, oh my god… You make me win a lot of time…

2 Likes

sadly multiple part doesn’t work… Any tips?

2 Likes

it does work, you need to put all the parts inside one model and also set an invicible anchored part as its primary. since there will be some bugs with the CFrame if you animate the primary part.
in the uncopylocked place there’s an example of a VFX with multiple parts. you can check it there.

i’ve tried it many times, in many different forms, wether that welded or not. it doesn’t seem to work for me, you can only animate their Cframe, and not other properties. such as Size, Transprancy, etc

finally i don’t have to code 22 million effects

tysm for this

strange, it worked for me. even the examples with multiple parts are in the uncopylocked place.
oh and you don’t need to weld it, just put it in the model.
MultiPartsVFX.rbxl (43.4 KB)
here’s an example of multiple parts VFX that i exported using the plugin from moon animator.