06-03-2011, 04:17 PM
I could give you it in roblox lua, but I can't be bothered to translate.
Assuming the script is in the UI:
[lua]-- Put UI in game.Storage
game.Storage.UI = a
Muffinz(Player)
a.Parent = Player.UI
a.script.Enabled = true (THis will activate the script below)
end
game.Players.PlayerAdded:connect(Muffinz)
[/lua]
As for the resetting, put another script in the UI with this in it :
[lua] while script.Parent.Parent.Parent.Name == Players do
wait (0.1)
if script.Parent.Parent.Character.Health > 1 then
--Reset Gui
end
end
[/lua]
Assuming the script is in the UI:
[lua]-- Put UI in game.Storage
game.Storage.UI = a
Muffinz(Player)
a.Parent = Player.UI
a.script.Enabled = true (THis will activate the script below)
end
game.Players.PlayerAdded:connect(Muffinz)
[/lua]
As for the resetting, put another script in the UI with this in it :
[lua] while script.Parent.Parent.Parent.Name == Players do
wait (0.1)
if script.Parent.Parent.Character.Health > 1 then
--Reset Gui
end
end
[/lua]