06-03-2011, 03:34 PM
(This post was last modified: 06-03-2011, 03:34 PM by Jacob__mybb_import1.)
(06-03-2011, 03:16 PM)AK-47 Wrote: Thanks!
Also, I already made a health bar UI, the only problem is after dying, the script won't run again, so the bar just stays red. Help?
Wouldn't something like this work?
[lua]
link(game.World.ChildAdded, function( c )
if c:isA("Character") then
local player = game.Players[c.Name]
--create UI
link(c.PropertyChanged, function(name, value)
if name == "Health" then
--update health bar
end
end
end
end)
[/lua]