Checking if it does work

You can write your topic however you want, but you need to answer these questions:
I need help to see if this is working as intended or it is not.

It works as a move an model up or down script.

Here is the script:

while true do
wait()
for i= 1, 50 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,-0.3,0)
wait()
end
for i= 1, 50 do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0.3,0)
wait()
end
end


It Appears to be working.


I would Recommend Using TweenService for a more Smoother Effect than using a for loop

Here is a Video if you would Like more info

1 Like

Ty, I was just making sure because someone told me it wasnt.

It does work, but its unoptimized

First of all, using wait() insteas of task.wait()

while true do? It’s an infinite loop that repeats forever

Third, literally loops inside of loops, no tweenservice.

Use tweenservice, its much smoother, and it has a built in “return to start” and “looping” feature

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.