Btw is the fn parameter, a function() parameter?
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
What other variables does self have in the function parameter. For example,
self.Reverse
Also, add the ability for attachtopart camera to work for this module
updated to fix a small oversight
as for this, ill do it later maybe but pls elaborate on that idk how to use moon2
Fantastic module by the way. This is so good.
lol, putting a negative FPS value works i just gotta make sure it ends properly
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
very epic indeed
ill be sure to try this soon
You just ripped off from this plugin.
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
update: bug fixes revolving multiple properties under 1 object
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!
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.
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
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