TweenService

TweenService is used to create smooth transitions between different states of properties of objects, allowing for visually appealing animations. It's commonly used to animate UI elements, parts, and other game objects over a specified duration and easing style.

Function

Description

TweenProperty(Object: Instance, Property: string, Value: any, Time: number, EasingStyle: string = "Linear", EasingDirection: string = "InOut", RepeatCount: number = 1, Reverses: bool = false)

Tweens a specified property of an object to a target value over a specified duration. The function requires the following arguments: Object (Instance) - the object to tween, Property (string) - the name of the property to tween, Value (any) - the target value, and Time (number) - the duration of the tween. Optional parameters include EasingStyle (string) - the easing style, EasingDirection (string) - the easing direction, RepeatCount (number) - the number of times to repeat the tween, and Reverses (bool) - whether the tween should reverse after completing. This function does not return any outputs.

Last updated