Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Can someone help me find the error in this script?

Asked by
Miike0 6
8 years ago

I can't find the error in this script. It's supposed to generate random maps and teleport people to them using a block called "Tele Brick" which is placed within each map, but nothing happens. These maps are also all placed in lighting, by the way.

01Intermission = 10 
02PlayTime = 90
03 
04 
05while true do
06    wait(Intermission)
07 
08        Maps = (math.random(1,2)
09----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10        if Maps == 1 then
11        Message = game.Players.LocalPlayer.PlayerGui.Output.Message
12        Message.Text = "Map: Cobblestone Obby, by Miike0"
13        wait(5)
14        Message.Text = "Loading Map."
15        wait(.5)
View all 68 lines...
0
have you tried debugging? which is placing prints everywhere and finding out where it stops TheTermaninator 45 — 8y
0
I have, but I'll try again. Miike0 6 — 8y

1 answer

Log in to vote
0
Answered by
alibix123 175
8 years ago
1Maps = (math.random(1,2)

should be

1Maps = math.random(1,2)
Ad

Answer this question