I am making a gun recoil system and dont wanna use the others so I am trying to make a custom tween system but I can only achieve linear interpolation and need sine interpolation or back. Any ideas?
You could try
MainPart:TweenPosition(UDim2.new(gotoPart.Position), TweenInfo.new(Time, Enum.EasingStyle.AnyStyleYouWant, Enum.EasingDirection.InOut)):Play()
Not sure if I wrote that right bc I’m on mobile.
Not sure if that’s what your looking for either.
I said custom tween m8 not the old crappy tween system that when used to tween cams makes it look bad.
Damn I’m sorry just trying to help.
oh thats ok no need to be sorry
Ok, Thanks! bye have a good day or night then.
What exactly have you tried so far and what are you looking for in a “tweening system” that TweenService doesn’t already provide? If you’re looking for some form of “bounce” or overshoot you may want to try using springs.
i want to make the camera tween while it not being scriptable and using tween service makes the cam lag behind i want a system to make it tween but also not lag behind.
Sounds like you want a spring, these are typically used alongside RunService and its various events and BindToRenderStep
to update a value every frame (whether it be a physics or render frame).
yea i got it but whats the formula for it?
The formula for calculating the force of a spring on an object is called Hooke’s Law (Wikipedia), but you can find existing spring implementations for Roblox floating around.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.