I'm updating a value 60 percent closer to it's target value every frame using the formula a+(b-a)*alpha. This works, but if someone has low frames it'll take longer to reach it's target.
local target = 4
local value = 0
local last = tick()
while rs:wait() do
local time = tick()
local elaps = time - last
value = value + (target - value) * .6
end
How can I modify this formula to use the elapsed time?

1 comment
You could probably just multiply by elaps*30