Just for an example
local count = 0
while true do
count = count + 1
wait()
end
the count will be shown in gui and i want to make it count as the EasingDirection.Out like 5 seconds to count but at the final it will be slower
Just for an example
local count = 0
while true do
count = count + 1
wait()
end
the count will be shown in gui and i want to make it count as the EasingDirection.Out like 5 seconds to count but at the final it will be slower
Answer: use TweenService
Example:
wait(3) -- So you can prepare yourself to see the part spawn and tween
local TweenService = game:GetService("TweenService")
local part = Instance.new("Part")
part.Position = Vector3.new(0, 10, 0)
part.Color = Color3.new(1, 0, 0)
part.Anchored = true
part.Parent = game.Workspace
local goal = {}
goal.Position = Vector3.new(10, 10, 0)
goal.Color = Color3.new(0, 1, 0)
local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
You'll find more information on manipulating the tween with TweenInfo.
You'll learn about EasingStyle here.
i completely forgot that almost everything can be tweened but will it be possible tween a countdown?
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
use tweenservice?