Appearance
K.Motion
Functions
K.Motion.Tween
lua
K.Motion.Tween(target: Instance, properties: { [string]: any }, duration: number?, style: any)Animates any properties, e.g. K.Tween(part, { Size = Vector3.new(4, 4, 4) }, 1, "Elastic").
K.Motion.Fade
lua
K.Motion.Fade(target: Instance, amount: number?, duration: number?)amount: 0 = as it was originally, 1 = invisible, 0.5 = halfway.
K.Motion.Hide
lua
K.Motion.Hide(target: Instance, duration: number?)Makes something invisible and switches off touching, clicking, prompts and effects.
K.Motion.Show
lua
K.Motion.Show(target: Instance, duration: number?)Undoes K.Hide.
K.Motion.Move
lua
K.Motion.Move(target: PVInstance, offset: Vector3, duration: number?, style: any)Moves a Part or Model by offset (world space).
K.Motion.MoveTo
lua
K.Motion.MoveTo(target: PVInstance, destination: any, duration: number?, style: any)Moves a Part or Model to a Vector3, CFrame, Part or Model.
K.Motion.Spin
lua
K.Motion.Spin(target: PVInstance, degreesPerSecond: number?, axis: string?)Spins a Part or Model forever. axis is "X", "Y" (default) or "Z". Stop with handle:Stop(). Spinning on the client (in a LocalScript) looks smoother than on the server.
Methods on handle
handle:Wait
lua
handle:Wait()Waits until every animation in the handle has finished.
handle:Cancel
lua
handle:Cancel()Generated from
src/Corode/Motion.luau.
