Why wont line 15 work? Everything else works fine.
01 | local status = game.ReplicatedStorage:WaitForChild( "Status" ) |
02 | local players = game.Players:GetPlayers() |
03 | local MapLoader = game.ReplicatedStorage:WaitForChild( "MapLoader" ) |
04 |
05 | while true do |
06 |
07 | game.StarterGui.StatusBar.Enabled = true |
08 | status.Value = "Intermission" |
09 | print ( "Intermission has started" ) |
10 | wait( 25 ) |
11 | status.Value = "game starting" |
12 | print ( "game starting" ) |
13 | wait( 10 ) |
14 | status.Value = "game in progress" |
15 | MapLoader.Value = "map1" |
16 | wait( 250 ) |
17 |
18 | end |
You were in a localscript right? I think JasonTheOwner's answer in https://scriptinghelpers.org/questions/15807/replicated-storage-and-localscripts-is-it-bi-directional implies that you cannot modify ReplicatedStorage