|
| 22 Dec 2013 05:51 AM |
gui = script.HurtGui:Clone()
function Blood(human) local hp = human.Health human.HealthChanged:connect(function(health) local change = health-hp hp = health x = gui:Clone() if change > 0 then x.TextButton.BackgroundColor3 = Color3.new(51, 176, 29)end x.Parent = human.Parent.Head x.TextButton.Text = change end) end
for i,v in pairs(game.Workspace.Mobs:GetChildren())do if v:FindFirstChild("Enemy")then Blood(v.Enemy) end end
game.Workspace.Mobs.ChildAdded:connect(function(child) Blood(child.Enemy) end)
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) Blood(character:FindFirstChild("Humanoid")) end) end) |
|
|
| Report Abuse |
|
|
| 22 Dec 2013 05:52 AM |
| ups nvm i forgot to disable the script :D |
|
|
| Report Abuse |
|