I’m trying to make a system where effects like tweens are handled almost exclusively on the client, because of loading/unloading I need to interpolate values if they’re loaded in while in effect.
Due to this however, I need to figure out the equations for different EasingStyle interpolations (specifically the kind of equations that Roblox themselves use) if loading in.
I already have linear, I think sine, and quadratic interpolation implemented (as they are the easiest) but this obviously neglects 8 other EasingStyles.
Where do I get started on building the remaining interpolations?
Animations should almost always be handled on the client by default. Why are you no longer able to use TweenService? It’s not exclusive to the server. TweenService also enables you to manually interpolate through a given easing style and progression percentage (alpha) via TweenService:GetValue. Though I can’t see a reason why TweenService could no longer be of use to you, should it be absolutely necessary, you can find the standard easing functions on the easings.net website
I am using TweenService. The issue is that if I load an object in on the client that is in the middle of being tweened (let’s say the server tells the client to make a part red over 5 seconds) I need to be able to interpolate the value it should be at a given time t and some values (for interpolating).
After interpolation I would just need to tween the rest of the remaining time left.