This commit is contained in:
2025-01-11 23:05:39 +09:00
parent c9700414c7
commit 2ed7235f3d

View File

@@ -34,9 +34,13 @@ local server_ups =
UsesServerUps:on_load(function(player_name, visible)
local player = game.players[player_name]
local label = player.gui.screen[server_ups.name]
--- @diagnostic disable-next-line undefined-field
if not External.valid() or not storage.ext.var.server_ups then visible = false end
label.visible = visible
if External.valid() and storage.ext and storage.ext.var and storage.ext.var.server_ups then
label.visible = true
else
label.visible = false
end
end)
--- Toggles if the server ups is visbile