[V2] Moon2Cutscene | Play Moon Animator 2 Files

Btw is the fn parameter, a function() parameter?

1 Like

Did an update for @spookwallyjungle

Yes that is a function parameter
you can use it as such:

new:createTask(50, function(self, map)
self.FPS = 30
print(self, map)
end)

Note: instead of using the self parameter you can also do new.FPS = 30

1 Like

What other variables does self have in the function parameter. For example,
self.Reverse

1 Like

Also, add the ability for attachtopart camera to work for this module

1 Like

updated to fix a small oversight

as for this, ill do it later maybe but pls elaborate on that idk how to use moon2

3 Likes

Fantastic module by the way. This is so good.

2 Likes

lol, putting a negative FPS value works i just gotta make sure it ends properly

1 Like

Update :

  • added the setFrame function
  • added support for negative FPS values

The snippet below will stop the cutscene at frame 100, after 0.2 seconds set the frame to 30 and after a second, resume the cutscene

new:createTask(100, function(_, map)
new:stop()
task.wait(.2)
new:setFrame(30)
task.wait(1)
new:play()
end)

You can reverse the animation by doing
new.FPS = - new.FPS

1 Like

very epic indeed
ill be sure to try this soon

2 Likes

You just ripped off from this plugin.

2 Likes

Oh im so so sorry did Moonlite also rip it off?

I do not own Moon2Module and from what it seems its a plugin that converts a file into a module.
I do not do that i just read the file in run-time.
Heck this isnt even a plugin

3 Likes

update: bug fixes revolving multiple properties under 1 object

1 Like

Update

added createVignette function. Check code examples and documentation for more information.

1 Like

No actually! Moonlite had its first initial commit (or you could just say when it was made) on July 21 of last year. Moon2Module was made on May 19 of this year.

This is a great resource regardless! Very easy to understand and use, although if it were me, I would probably give viewers some pros over the other resources that people have made to do the exact same thing! Having to choose between two things that do virtually the same thing might confuse people, and they won’t know which one to choose! :smile:

3 Likes

While, yes the other resources were made first, i’ve made this module with the intent for it to be easy to implement into your projects, and most importantly, free.

1 Like

Update

added the setObject function. Check code examples and documentation for more information.

1 Like

Update

fixed a bug with the camera while using a map.

1 Like

Update

bug fix with easing where it’d use the next frame rather than last frame
bug fix with constant easing where it’d wouldn’t run the frame due to fps
added new moon2Cutscene.subtitle function, check documentation and code examples

oh my god it works

2 Likes

Version 2.0

completly rewrote the module
will write documentaion later

get here

UPDATE

important Rig lerping fix

the module now comes with a debug module used for creating parts with a cframe for debugging (you hopefully will never have to use it)

additional cutscene debbuging snippet:

--[[debug]] do
			file:play()
			file:stop()

			file:setFrame(0)

			local ui = Instance.new("ScreenGui")
			local textbox = Instance.new("TextBox")
			textbox:GetPropertyChangedSignal("Text"):Connect(function()
				if tonumber(textbox.Text) then
					file:setFrame(tonumber(textbox.Text))
				end
			end)

			workspace:GetAttributeChangedSignal("frame"):Connect(function()
				textbox.Text = workspace:GetAttribute("frame")
				file:setFrame(tonumber(textbox.Text))
			end)

			textbox.BackgroundTransparency = .5
			textbox.Size = UDim2.fromScale(.5, .3)
			textbox.Parent = ui
			ui.ResetOnSpawn = false
			ui.Parent = game.Players.LocalPlayer.PlayerGui

			if true then
				return
			end
		end
1 Like