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

Why wont my if statement read my string value? [answered]

so, I updated my old script none of my other answers worked. Here is my old script:

if game.ReplicatedStorage.MapLoader.Value == "map1" then
 
	print("Test")
 
end

So here is my updated version, still does not work. Pls help.

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

if MapLoader.Value == "map1" then

	print("Test")

end

(Its a local script)

1 answer

This script works. I messed up on the script that changed the value of the map loader.

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