- Joined
- Nov 23, 2020
- Posts
- 88
All good! But to help with future projects, I noticed that the new interfaces use this method:Honestly, I never messed up with that part of Essentials, and I don't think I know enough about how the framerate works in v21.1, so I can't really help you, man.
You could change theWait
values in the Script though. Since you want it to be slower, just decrease them all proportionally until you feel like it's good.
Ruby:
#===============================================================================
# Linear interpolation between two values, given the duration of the change and
# either:
# - the time passed since the start of the change (delta), or
# - the start time of the change (delta) and the current time (now)
#===============================================================================
def lerp(start_val, end_val, duration, delta, now = nil)
return end_val if duration <= 0
delta = now - delta if now
return start_val if delta <= 0
return end_val if delta >= duration
return start_val + ((end_val - start_val) * delta / duration.to_f)
end