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

How do I make a part disappear (plus a couple other things, too)?

Asked by 3 years ago
Edited 3 years ago

Hi there!

I need to make a part disappear. So, first, in some kind of forever loop, I need the part to disappear, then, after a random number of seconds, reappear again, and, as I said before, it should repeat. Sorry if it's a bit confusing. Thanks! :)

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Just make its transparency 1 and then 0 simple.

Part=script.Parent -- the part

while wait(14) do -- repeat this loop every 14 seconds
Part.Transparency=1
wait(math.random(6,12)) -- wait between 6 to 12 seconds
Part.Transparency=0
end
Ad

Answer this question