How do I insert a UI?
#11
(06-03-2011, 03:48 PM)AK-47 Wrote: [lua]
function onEnter( c )
if c:isA("Character") then
local player = game.Players[c.Name]
local HealthScript = script.Parent.HealthScript:clone()
HealthScript.Parent = player.UI
end
end
link(game.World.ChildAdded, onEnter)
[/lua]

But it won't work. (I'll work on the updater later)

Scripts won't break when a player dies unless you put them in the character or there's an error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)