Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make parts repeat their movement?

Is there anyway for this script to repeat this action constantly? Help would certainly be appreciated.

p1=game.Workspace.Part1

for i=1,5 do p1.CFrame=CFrame.new(i,1,0) wait(0.5)

end

1 answer

Of course, you'd simply drop that in a while loop.

p1=game.Workspace.Part1
while wait() do
	for i=1,5 do 
		p1.CFrame=CFrame.new(i,1,0) 
		wait(0.5)
	end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.