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

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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

Ad

Answer this question