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

Animate a part without waiting for all of the other parts to finish?

I am trying to make a part float up before it deletes itself, but I need multiple parts to delete themselves without the wait between the animations. Can't I make a function that fires multiple times at once?

The parts get sent in to this function, but there is a wait for the animation to play smoothly, however this makes a queue for the parts to animate.

function delete(part)
	for i = 0,1,0.05 do
		wait()
		part.Position = Vector3.new(part.Position.X,part.Position.Y+i,part.Position.Z)
	end
	part:Destroy()
end

2 answers

You could make multiple scripts of the one you sent.

For the loop function, when it is a part use;

for i = 0,0,0 do
	--SCRIPT HERE
end

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