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

Why wont my string value changer at line 15 work?

Asked by 6 years ago

Why wont line 15 work? Everything else works fine.

local status = game.ReplicatedStorage:WaitForChild("Status")
local players = game.Players:GetPlayers()
local MapLoader = game.ReplicatedStorage:WaitForChild("MapLoader")

while true do

    game.StarterGui.StatusBar.Enabled = true
    status.Value = "Intermission"
    print("Intermission has started")
    wait(25)
    status.Value = "game starting"
    print("game starting")
    wait(10)
    status.Value = "game in progress"
    MapLoader.Value = "map1"
    wait(250)

end
0
please tell us the error you saw in the output and is maploader and status both stringvalues? GoldAngelInDisguise 297 — 6y
0
I got no error it just did not work, yes they are both string values. TheExtraDip 19 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

0
But I could change my other string value in replicated storage. TheExtraDip 19 — 6y
Ad

Answer this question