Another video. If you originally saw my post before, I’ve changed the code and how it’s working a bit and encountered a new problem with this one.
Anyone could help me out with it? Here’s a video showcasing the issue
Here’s the code:
while true do
local Power = Speed / ss.MaxSpeed.Value
mouse.TargetFilter = workspace
local Target = mouse.Hit.Position
ss.CFrame = CFrame.lookAt(ss.Position, Target)
ss.LinearVelocity.LineDirection = -Target
ss.LinearVelocity.LineVelocity = (ss.CFrame.lookVector * Speed)
ss.LinearVelocity.MaxForce = Speed
task.wait()
end
EDIT
After doing some testing, it’s actually this line;
ss.CFrame = CFrame.lookAt(ss.Position, Target)
that’s causing it to do that, anyone got a reason why?