null
nil
-
false
GUI_Copy
script.HealthGUI:clone().Parent = game.StarterGui;
script:remove();
true
-
HealthGUI
true
-
false
4294901760
0
4279970357
0
Background
1
-50
0.5
-75
0
8
0
150
0
true
1
true
-
false
4278255360
0
4279970357
0
HealthBar
0
0
0
0
0
8
0
150
0
true
1
true
-
false
Script
h = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid
h.Changed:connect(function()
script.Parent.Size = UDim2.new(0,8,0,(h.Health*1.5))
script.Parent.Position = UDim2.new(0,0,0,((100-h.Health)*1.5))
end)
true
-
false
Resize
local tray = script.Parent.tray
local screen = script.Parent
function makeYRelative()
tray.SizeConstraint = 2
end
function makeXRelative()
tray.SizeConstraint = 1
end
if screen.AbsoluteSize.x > screen.AbsoluteSize.y then
makeYRelative()
else
makeXRelative()
end
function recenter()
tray.Position = UDim2.new(0,screen.AbsoluteSize.X/2 - tray.AbsoluteSize.X/2,tray.Position.Y.Scale,tray.Position.Y.Offset)
end
recenter()
screen.Changed:connect(function(property)
if property == "AbsoluteSize" then
if screen.AbsoluteSize.x > screen.AbsoluteSize.y then
makeYRelative()
else
makeXRelative()
end
recenter()
end
end)
true
-
false
4279069106
0
4279970357
1
Label
0
3
1
10
0
0
0
0
0
Health
4278190335
0
false
2
1
true
1
true