Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@rbxts/moonlite
Advanced tools
Moonlite is a light-weight, runtime player for sequences created in Moon Animator 2, a plugin developed by @xsixx.
This project is actively developed and maintained by @MaximumADHD.
Moonlite = require(game.ReplicatedStorage.Moonlite)
When syncing by default with rojo, the module can be found directly in the ReplicatedStorage
service.
Moonlite.CreatePlayer(save: StringValue, root: Instance?) -> MoonTrack
Loads the provided save file to be played back. The save
is a StringValue normally stored in game.ServerStorage.MoonAnimator2Saves
, but you'll need to store it elsewhere to play the sequence back on the client.
type MoonTrack = Moonlite.MoonTrack
MoonTrack
is the main type exported when requiring the Moonlite
module. It represents a loaded animation sequence.
MoonTrack:Play() -> ()
Starts playing the track's elements.
Note: Has no effect if the track is already playing.
MoonTrack:Stop() -> ()
Stops all playing track elements.
Note: Has no effect if the track is already stopped.
MoonTrack:Reset() -> boolean
Manually resets all element's properties to their expected defaults. Returns true
if the reset was successful.
Note: This will only work if the track is not playing.
MoonTrack:IsPlaying() -> boolean
Returns true
if the track has any elements playing.
MoonTrack:GetElements() -> { Instance }
Returns an array of instances that can be modified by this track during playback.
MoonTrack:LockElement(inst: Instance?, lock: any? = "Default") -> boolean
Adds a mutex lock to the provided element, disabling it from being modified by the track's playback. Returns true
if the element is valid and successfully locked.
Note: If provided, the value of
lock
must be a truthy type (i.e. notfalse
ornil
), otherwise it will fallback to"Default"
. Warning: Calling this while the track is playing won't take effect until the track plays again.
MoonTrack:UnlockElement(inst: Instance?, lock: any? = "Default") -> boolean
Removes a mutex lock from the provided element, enabling it to be modified again if there are no other locks on it. Returns true
if the element is valid and no longer has the provided lock.
Note: If provided, the value of
lock
must be a truthy type (i.e. notfalse
ornil
), otherwise it will fallback to"Default"
. Warning: Calling this while the track is playing won't take effect until the track plays again.
MoonTrack:IsElementLocked(inst: Instance?) -> boolean
Returns true
if there are any locks on the provided element.
MoonTrack:FindElement(name: string) -> Instance?
Returns the first element in this track whose name matches the provided name, if one can be found. Otherwise returns nil
.
Warning: The result of this function depends on the order of elements in the authored sequence. If there are multiple elements with the same name, this may produce unexpected behavior.
MoonTrack:FindElementOfType(typeName: string): Instance?
Returns the first element in this track which satisfies element:IsA(typeName)
, or nil
if no such element can be found.
Warning: The result of this function depends on the order of elements in the authored sequence. If there are multiple elements that satisfy
element:IsA(typeName)
, this may produce unexpected behavior.
MoonTrack:ReplaceElementByPath(path: string, replacement: Instance)
Attempts to replace an element by its defined absolute path with a specific Instance.
MoonliteTrack.Looped: boolean
If set to true
, this track's playback will loop on completion. This defaults to the value specified by the author of this sequence, and should be set explicitly if expected to behave one way or the other.
MoonliteTrack.Completed: RBXScriptSignal
Fires upon all of the track's elements completing their playback.
FAQs
Moonlite typings
The npm package @rbxts/moonlite receives a total of 5 weekly downloads. As such, @rbxts/moonlite popularity was classified as not popular.
We found that @rbxts/moonlite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.