I have this math random script, that takes a model out of lighting at random, but when I play the game, it always ends up doing one model, instead of a mix of the ones that I have. Does anyone know what's wrong?
value = 0
wait (.05)
value = math.random(1,2)
if value == 1 then game.Lighting.Model1:clone().Parent = game.Workspace if value == 2 then game.Lighting.Model2:clone().Parent = game.Workspace end end
For example when I click play in studio, it might work, but when I actually play the game it ALWAYS does only one of them.

1 comment
The problem is based around the seed the RNG uses to produce the random numbers. I've explained it detail here: https://scriptinghelpers.org/questions/35236/mathrandom-isnt-random-question#37769