06-03-2011, 03:48 PM
(This post was last modified: 06-03-2011, 03:49 PM by 2Drobloxrocker64.)
[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)
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)