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! :)
Just make its transparency 1 and then 0 simple.
1 | Part = script.Parent -- the part |
2 |
3 | while wait( 14 ) do -- repeat this loop every 14 seconds |
4 | Part.Transparency = 1 |
5 | wait(math.random( 6 , 12 )) -- wait between 6 to 12 seconds |
6 | Part.Transparency = 0 |
7 | end |