Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

1 comment

0

BTW it's not in startergui when you hit "Play" it's in PlayerGui

1 answer

maybe this could work

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

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

    if Map.Value == "map1" then

        print("Tgay")

    end

end)

This discussion is preserved as it was. New answers, comments, and votes are closed.