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

Tweening CFrame with lookat position?

Asked by
trecept 367 Moderation Voter
5 years ago

I'm trying to tween a part that moves towards a position whilst looking at the object, but when I try to tween the part's CFrame with a lookat position (e.g cframe = cframe.new(part.position, part.position)) it glitches out and the part goes to infinity distance. Any way I can fix this?

0
Maybe use lerp (linear interpolation) User#24403 69 — 5y
0
cf:Lerp(goal, alpha) https://developer.roblox.com/articles/Lerp User#24403 69 — 5y
0
I think the lack of responses on this question is perhaps due to misinterpretations of the problem. Can you provide some screenshots and some more code to help illustrate it? WillieTehWierdo200 966 — 5y
0
use BodyGyro. Something like : `CFrame.new(gyro.Parent.Position, targetPosition)` proclet 7 — 5y

Answer this question