Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Anyway to make something happen like easingdirection?

Asked by 4 years ago

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

0
use tweenservice? Pupppy44 671 — 4y

1 answer

Log in to vote
0
Answered by
Roger111 347 Moderation Voter
4 years ago
Edited 4 years ago

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.

0
i completely forgot that almost everything can be tweened but will it be possible tween a countdown? iBeatuEZ 27 — 4y
Ad

Answer this question