I have this script that is supposed to make the player's gui visible if playing is equal to false and make it not visible if playing is equal to true but for some reason the script constantly outputs saying "playing = false" even when I make the playing value equal true? The playing value is a boolean value in a folder in the workspace
while wait() do
if game.Workspace.Values.Playing.Value == false then
print("playing = false")
script.Parent.Visible = true
else if game.Workspace.Values.Playing.Value == true then
print("playing = true")
script.Parent.Visible = false
end
end
end
Please help!

1 comment
Appropriately, it's "elseif".