generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: anyone can fix this ??

Previous Thread :: Next Thread 
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
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
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
22 Dec 2013 05:52 AM
ups nvm i forgot to disable the script :D
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image