null
nil
-
false
Sorter
script.Health:clone().Parent = game.StarterGui
script.ResetCommand:clone().Parent = game.Workspace
script:remove()
true
-
Health
true
-
false
4285215356
1
4279970357
1
Tray
0.949999988
0
0.380000025
0
0.0450000018
0
0.340000004
0
0
true
1
true
-
false
4286892054
0
4278190080
0
HealthBar
0.420000017
0
0
0
0.159999996
0
0.800000012
0
0
true
2
true
-
false
Script
h = script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid
h.Changed:connect(function()
script.Parent.Size = UDim2.new(0.2, 0, 0.8 * (h.Health / h.MaxHealth), 0)
script.Parent.Position = UDim2.new(0.4, 0, 0.8 * (1- (h.Health / h.MaxHealth)) , 0)
end)
true
-
false
4289733411
0
4278190080
0
HealthBarBacking
0.419999987
0
0
0
0.159999996
0
0.800000012
0
0
true
1
true
-
false
4294967295
1
4279970357
1
rbxasset://textures/health.png
ImageLabel
0
0
0.800000012
3
1
0
0.25
0
1
true
1
true
-
false
ResetCommand
function onChatted(msg, speaker)
source = string.lower(speaker.Name)
msg = string.lower(msg)
-- Note: This one is NOT caps sensitive
if msg == "!!!reset" then
speaker.Character.Humanoid.Health = 0
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg) onChatted(msg, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
true