So I am trying to make this brick disappear at random intervals, but idk what to do, because I am a horrible scripter. Any help? Script thus far:
wait(math.random) script.Parent.Transparency=1 wait(math.random) script.Parent.Transparency=0
I am trying to make it to reappear randomly and repeat. Can someone help me?
First, put this in an infinite while
loop.
Next, choose what you want the minimum time to wait and the maximum time to wait between it vanishing and reappearing.
local maxTime = 2 --in seconds local minTime = 0 while true do wait(math.random()*(maxTime-minTime)+minTime) script.Parent.Transparency = 1 wait(math.random()*(maxTime-minTime)+minTime) script.Parent.Transparency = 0 end
Locked by 2eggnog, adark, and TofuBytes
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?