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

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

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

✓ Accepted answer

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

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