Add round stages, respawn protection and match highlights
This commit is contained in:
1 parent
b87a3770a1
commit
d1c42a36b8
28 files changed
+753
-45
No files matched your search
@@ -44,6 +44,14 @@ gui:GetPropertyChangedSignal("AbsoluteSize"):Connect(fit)
|
||||
fit()
|
||||
local shield = UI.element("Shield", plate, UDim2.fromOffset(14, 13), nil)
|
||||
Instance.new("UIScale", shield).Scale = 1.13
|
||||
local protection = UI.element("Shield", plate, UDim2.new(1, -30, 0, -24), nil)
|
||||
protection.Name = "SpawnProtection"
|
||||
local function refreshProtection()
|
||||
local deadline = player:GetAttribute("SpawnShield")
|
||||
protection.Visible = typeof(deadline) == "number" and deadline > workspace:GetServerTimeNow()
|
||||
end
|
||||
player:GetAttributeChangedSignal("SpawnShield"):Connect(refreshProtection)
|
||||
refreshProtection()
|
||||
local text = UI.label(plate, "Value", "100", UDim2.fromOffset(46, 0), UDim2.fromOffset(55, 49), 24, UI.Ink)
|
||||
text.FontFace = UI.Display
|
||||
text.TextXAlignment = Enum.TextXAlignment.Left
|
||||
|
||||
Reference in new issue
Block a user