01 | -- Define variables |
02 |
03 | local Replicated = game:GetService( "ReplicatedStorage" ) |
04 |
05 | local ServerStorage = game:GetService( "ServerStorage" ) |
06 |
07 | local MapsFolder = ServerStorage:WaitForChild( "Maps" ) |
08 |
09 | local Status = ReplicatedStorage:WaitForChild( "Status" ) |
10 |
11 | local GameLength = 500 |
12 |
13 | local reward = 50 |
14 |
15 | -- Game loop |
You did not give us the line hwere the error is, but i found it myself.
On line 9, ReplicatedStorage is not a valid varible, but Replicated is. Try to replace ReplicatedStorage with Replicated, as that is how you have written the varibles.
I hope this helps!