Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

CFrame Linear Tweening is buggy?

Asked by
Macbane 46
6 years ago
        local distance = (TOOL.Handle.CFrame.p - Fposition).magnitude
        local TIME = distance/250
        local tweenInfo = TweenInfo.new(TIME)
        local tween = TweenService:Create(BULLET, tweenInfo, goal)
        tween:Play()

Using Velocity = Distance/Time v = d/t t = d/v Making v a constant this should make the projectile speed linear

When the Fposition is on a wall minor changes aren't noticeable, but when i click off into the sky the speed is noticeably faster and there are certain times at random that the projectile will travel at a much slower speed almost as in slow motion.

0
the default easingstyle is quad, not linear. http://wiki.roblox.com/index.php?title=TweenInfo fanofpixels 718 — 6y

Answer this question