Hello everyone!
Currently I’m working on a shotgun. Instead of making it “laser bullets”, I used twening to tween the bullets (Despite bullet physics, drops etc.)
It tweens between the Shooting Part and pos
, which is a Vector3 determined by Raycasting.
local tweenInfo = TweenInfo.new(
0.3,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local goal = {
Position = pos
}
local tween = tweenser:Create(BulletTrail, tweenInfo,goal)
tween:Play()
Here’s the current result when the range is set to 50 studs. (Expected result)
https://gyazo.com/f82c960c2f777085c5da19a4aed61fb9
However, if I increase the range of the shotgun (E.g. 200), it tweens really fast because the goal is more farther:
https://gyazo.com/97ecf636a20c40a4852e0cce41a6d905
Is there any way to control the tweening speed the same while the tweening goal is different/farther?