mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
.
This commit is contained in:
@@ -34,9 +34,13 @@ local server_ups =
|
|||||||
UsesServerUps:on_load(function(player_name, visible)
|
UsesServerUps:on_load(function(player_name, visible)
|
||||||
local player = game.players[player_name]
|
local player = game.players[player_name]
|
||||||
local label = player.gui.screen[server_ups.name]
|
local label = player.gui.screen[server_ups.name]
|
||||||
|
|
||||||
--- @diagnostic disable-next-line undefined-field
|
--- @diagnostic disable-next-line undefined-field
|
||||||
if not External.valid() or not storage.ext.var.server_ups then visible = false end
|
if External.valid() and storage.ext and storage.ext.var and storage.ext.var.server_ups then
|
||||||
label.visible = visible
|
label.visible = true
|
||||||
|
else
|
||||||
|
label.visible = false
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--- Toggles if the server ups is visbile
|
--- Toggles if the server ups is visbile
|
||||||
|
|||||||
Reference in New Issue
Block a user