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 5 years ago
Edited 5 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 — 5y

1 answer

Log in to vote
0
Answered by 5 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