01 | n = math.random( 1 , 24 ) |
02 | print ( "number is" ..n) |
03 |
04 | while true do |
05 | wait( 0.01 ) |
06 | if game.Lighting.ClockTime = = n then |
07 | game.ServerScriptService.Rain:Clone().Parent = game.Players.LocalPlayer.Backpack |
08 | n = math.random( 1 , 24 ) |
09 | print ( "number is " ..n) |
10 | break |
11 | end |
12 | end |
The problem is that for you is that math.random is based on the number you got before. Thats why IT always Will return the same Value IF its not running more then once.