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

How do I make a moving part? (Smoothly)

Asked by
Scaii_0 145
5 years ago
Edited 5 years ago

I am trying to make an escalator but the problem is, I've never worked with CFrame, Position, Magnitude, Vectors etc. So I am not really sure what or how to do this.

I have a part, and I basically need it to move diagonally for X amount of time and then forward for Y amount of time and then part:Destroy().

I can the rest of the script where it needs to create parts at certain locations, destroy them and loop that but I am not sure on moving the parts.

0
you can use cframe with new vector so it goes up and left/right/back/front at the same time CjayPlyz 643 — 5y
0
how would I do that? Could you give some example script? Scaii_0 145 — 5y
0
You could just get a free model of it, read the script, learn and make your own script. Or just copy it (just kidding dont do it) HeyItzDanniee 252 — 5y
0
Use CFrame or TweenService, TweenService will be smoother but will probably cost more if you're running multiple threads (if you care about that stuff). The wiki is a good place to start. http://wiki.roblox.com/index.php?title=CFrame SummerEquinox 643 — 5y
0
If you decide to use CFrame, you can use lerp too turtle2004 167 — 5y

Answer this question