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

Why wont this local script located in starter gui read my string value?

Asked by 6 years ago
Edited 6 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

Why wont this work I am trying to get this script to read my string value so i can load a map pls help

local Map = game.ReplicatedStorage:WaitForChild("MapLoader")

Map.Changed:Connect(function()

    if Map.Value == "map1" then

        print("Tgay")

    end

end)
0
BTW it's not in startergui when you hit "Play" it's in PlayerGui WideSteal321 773 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

maybe this could work

local Map = game.ReplicatedStorage:WaitForChild("MapLoader")

Map.GetPropertyChangedSignal("Value"):Connect(function()

    if Map.Value == "map1" then

        print("Tgay")

    end

end)
Ad

Answer this question