|
I thought it would of been:
if script.Parent.dragon.Health = 0 then
game.Lighting.Gui.Enabled = true
|
|
WowgnomesJoin Date: 2009-09-27 Post Count: 26255 |
humanoid.Changed:connect(function()
if humanoid.Health == 1 then
game.Players:GetPlayerFromCharacter(humanoid.Parent).PlayerGui.GUI.Enabled = true
|
|
NyxisJoin Date: 2012-11-15 Post Count: 3374 |
humanoid.Changed:connect(function()
if humanoid.Health <= 1 then
--gui stuff
end
end) |
|
NyxisJoin Date: 2012-11-15 Post Count: 3374 |
rip. gnomes beat me to it. gg |
|
|
|
I do it this way:
local plr = script.Parent.Parent.Parent.Parent -- change this to whatever
local health = plr.Character.Humanoid.Health
while true do
if health == 1 then
game.Lighting.Gui.Enabled = true
else
game.Lighting.Gui.Enabled = false
end
end
|
|
NyxisJoin Date: 2012-11-15 Post Count: 3374 |
That script is disgusting, Disaster. Please rethink the way you do things. |
|
WowgnomesJoin Date: 2009-09-27 Post Count: 26255 |
To be fair, his name IS disaster scripts. And that script is a disaster
|
|
|
funny thing is, disasters script wouldn't work. |
|
|
That script is disgusting, Disaster. Please rethink the way you do things.[2]
also lol wowgnomes
also wow consider if the player dies gui disapeers but it probably will either way with roblox
|
|
WowgnomesJoin Date: 2009-09-27 Post Count: 26255 |
yeah gui would stay until they respawn, ive used scripts similar for death messages hahat
|
|
|
Ok, fine. I'll do things your way. |
|
|
game:GetService("RunService").RenderStepped:connect(function()
--code
end)
Also, the gui in lighting... what are you trying to do, that will never work... |
|