I can't seem to figure out why my math.random script is not working?
01 | local module = require(script.Parent:WaitForChild( "ModuleScript" )) |
02 | local gui = game.StarterGui.ScreenGui.Clicks 10 |
05 | script.Parent.Activated:Connect( function () |
09 | script.Parent.Visible = false |
11 | local x = math.random( 10 ) |
13 | if x = = 1 then gui.a 1. Visible = true else |
14 | if x = = 2 then gui.a 2. Visible = true else |
15 | if x = = 3 then gui.a 3. Visible = true else |
16 | if x = = 4 then gui.a 4. Visible = true else |
17 | if x = = 5 then gui.a 5. Visible = true else |
18 | if x = = 6 then gui.a 6. Visible = true else |
19 | if x = = 7 then gui.a 7. Visible = true else |
20 | if x = = 8 then gui.a 8. Visible = true else |
21 | if x = = 9 then gui.a 9. Visible = true else |
22 | if x = = 10 then gui.a 10. Visible = true |
I'm trying to make one gui appear after clicking another, but I can't seem to make another one appear. the first one just disappears and a second one does not become visible. Any ideas?