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

What's te most efficent way to move a part?

Asked by
starmaq 1290 Moderation Voter
6 years ago

The only way that I know to move a part is by for looping its position or cframe

for i = 0, 10, 0.5 do
    wait(0.1)
    part.Position = part.Position + Vector3.new(0, 0, i)
end

is there another efficent way?

1 answer

Log in to vote
0
Answered by 6 years ago

Instead of looping the position or its CFrame, you should consider using BodyPosition. You can set a specific position for the BodyPosition to go to, and it will go there smoothly. Read more about BodyPositions here.

0
hmmmm this seems great thank you so much! but you never know there might be another way starmaq 1290 — 6y
1
use tweenservice User#23365 30 — 6y
0
yah that too maybe starmaq 1290 — 6y
Ad

Answer this question