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)
This script works. I messed up on the script that changed the value of the map loader.