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

How do I make BodyVelocity movement smooth?

Asked by
P100D 590 Moderation Voter
8 years ago

I have a part with child BodyVelocity. Here is the code I have to make it move:

while true do
    wait(0.1)
    part.BodyVelocity.Velocity = part.CFrame.lookVector * 25
end

The code runs smoothly in Studio. However, when I run it on a server the movement is all jerky and laggy. How do I make it run smoothly?

Answer this question