Skip to content

MoveToolgunTo

march edited this page Jan 9, 2025 · 1 revision

Moves the toolgun to a position in 3D space over time.

Properties

Time:number

⠀⠀⠀⠀The time the toolgun starts to move.

Length:number (default 0.5)

⠀⠀⠀⠀The time it takes for the toolgun to move to the target position.


Position:vector (default 0, 0, 0)

⠀⠀⠀⠀The position of the toolgun in 3D space.

Easing:function (default math.ease.InOutQuad)

⠀⠀⠀⠀An easing function for the toolguns position. It takes in a 0 - 1 number and returns a 0 - 1 number. Linear movement can be accomplished using a simple lambda: function(x) return x end