Forest Logo
search
package_2

bezierservice

By @minefranck

Roblox

Mirrored

BezierService

Similar to how roblox's TweenService works, but used to create Bezier Curves.

Wally Install

bezierservice = "minefranck/bezierservice@0.1.1"

Link: https://wally.run/package/minefranck/bezierservice

Service

Methods:

Create

local info = {
  Speed = 1      -- time in seconds the animation will play
  Points = {}    -- an array containing Vector3's or Udim2's
}
local bezier = BezierService:Create(instance, info)

Creates a Bezier Object.

Bezier Object

Methods:

Play

bezier:Play()

Starts playback of the Bezier path if it's not playing already.

Pause

bezier:Pause()

Yields playback. Calling bezier:Play() will resume from where it stopped.

Cancel

bezier:Cancel()

Stops playback. Calling bezier:Play() will start from the begining

Properties:

Instance

The Instance whose position is to be changed.

Info

local info = {
  Speed: number,
  Points: {Vector3 | Udim2}
}

Table containing the Speed (in seconds) of the animation, and the Points position array containing Vector3 or Udim2 values

Progress

A float value between 0 and 1 that indicates the progress of the animation.

Ended

Roblox Signal that fires when the animation ends.

IsPlaying

Boolean value that indicates if the animation is playing or not.

Package Details

Install command (Click to copy)


Version

0.2.0

License

MIT

check_circle

Safe for commercial use

infoThe package archive does not include its license text; the license is declared in its manifest metadata.

Automated license review — not legal advice.