Tween+
DevForum Topic
  • Welcome
  • Installation
  • Creation
    • Introduction
    • Attributes
  • Customization
    • FPS
    • Update-event
  • Usage
    • Playback and control
    • Signals
Powered by GitBook
On this page
  1. Usage

Signals

After creating a new tween, you can listen to the following signals:

Example:

local tween = TweenPlus(workspace.Part, {Transparency = 1}, {Time = 2})
tween.Updated:Connect(function(alpha)
	-- Alpha is a value in the range 0-1.
	-- That's why we multiply by 100 to convert to percentage.
	print("Progress: "..tostring(alpha*100).."%") -- For example "Progress: 50%".
end)
tween:Start()
PreviousPlayback and control

Last updated 1 month ago