I need someone to give a detailed guide that I can refer to for scripting. From the tutorial I think this works, but im not sure.
local playerHealth = parent.parent.Humanoid.health -- Creates value that changes on the humanoid's health
function checkDeath(checkDeath) -- Checks if dead.
if playerHealth = 0
local playerHealth = 1 -- Quickly! Save him!
local deathQuestion = "It appears you have died. Try again?"
local reEssenceTextValue = "(reEssenceValue) Re-essences)"
function checkReEssenceValue(checkReEssenceValue) - Checks if re-essence value is 0, then kills the player. If it's 1 or 2 or 12391230123 or anything over 0, SAVE DA PLAYYAAA
if reEssenceValue = 0
local playerHealth = 0
end
checkReEssenceValue
function clickedYes(clickedYes)
local playerMaxHealth = parent.parent.Humanoid.maxHealth
local playerHealth = (playerMaxHealth)
end
function clickedNo(clickedNo)
local playerHealth = 0
end
loop
if clickedNoButton = 1
clickedNo
if clickedYesButton = 1
clickedYes
end
end
