How do I insert a UI?
#9
(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]
Reply


Messages In This Thread
How do I insert a UI? - by Glome - 06-01-2011, 02:12 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)