Ok so I'm trying to make this rain cloud script and put a script inside. Look at this block of code
while wait(25) do game.Workspace.Raincloudpart.Transparency = 1 game.Workspace.Raincloudpart.ParticleEmitter.Enabled = false wait(0) game.Workspace.Raincloudpart.Transparency = Transparency.random() game.Workspace.Raincloudpart.ParticleEmitter.Enabled = true game.Workspace.Raincloudpart.ParticleEmitter.Rate = Rate.random() end
See where it says," game.Workspace.Raincloudpart.Transparency = Transparency.random()" and,"game.Workspace.Raincloudpart.ParticleEmitter.Rate = Rate.random()"? I made sure I spelled Rate and Transparency right but it says "Unknown global 'Transparency'" and "Unknown global 'Rate'". Does anyone know what I did wrong and how I can fix it?
There is no such thing as Transparency
or Rate
you have to use math.random
Example:
Range from 0-1 with decimals
math.randomseed(os.time()) -- More Random game.Workspace.Raincloudpart.Transparency = math.random()
Range from 1-10 - Integers.
math.random(1,10)
Random from 1-10 with decimals:
math.random()*10