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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
vkax 85
6 years ago

You could make multiple scripts of the one you sent.

Ad
Log in to vote
0
Answered by
Mr_Unlucky 1085 Moderation Voter
6 years ago

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

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

Answer this question