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

What am I doing wrong with this stringvalue detection script?

Asked by
drew1017 330 Moderation Voter
8 years ago
for i, v in pairs(table of stuff, each of the stuffs having a StringValue object in them called GUIType) do
    print(v.GUIType.Value) -- 'TitleScreen' for all of them
     if v.GUIType.Value == 'TItleScreen' then -- Returns false, even though it is in fact TitleScreen
        v.Visible = false
    end
end

Pretty self explanatory. halp

Answer this question