--  Hello! 
--  If you are unfamiliar with code, all you need to do is change the values of variables then press run
--       example : a = [insert value here]
--          then press run.
--    
--    DM Shootthecreeperrr#4586 for help
-- 
--              LUCK CALCULATOR:
-----------------------------------------------------------------------------------------------------------
-- variables
-- this is the ONLY place where you will input values | If you get an error let me know
LuckUpgrade = Amount Of Upgrades Owned
LuckGamepass = true or false
SecretGamepass = true or false -- if you arent calculating secret chance say 'false' 
TripleEggs = true or false -- if you dont count extra eggs as luck say 'false' 
LuckEvent = Amount Of Luck Event Value
LuckBoost = true or false 
-- All done! Press 'RUN'
-- Ignore everything below this line if you dont care about code
UpgradeV = (LuckUpgrade * 1.25)

if LuckUpgrade == 0 then
     UpgradeV = 1
end

if LuckEvent == 0 then
     UpgradeV = 1
end

if LuckGamepass == true then
     GampeassV = 2

else    
    GampeassV = 1
end

if SecretGamepass == true then
     SecretV = 2

else    
    SecretV = 1
end

if TripleEggs == true then
     TripleV = 3

else    
    TripleV = 1
end

if LuckBoost == true then
     BoostV = 2

else    
    BoostV = 1
end

LuckV = ((UpgradeV * GampeassV) * (SecretV * TripleV) * (BoostV * LuckEvent))

if LuckGamepass == true then
     GampeassV = 2

else    
    GampeassV = 'none'
end

if SecretGamepass == true then
     SecretV = 2

else    
    SecretV = 'none'
end

if TripleEggs == true then
     TripleV = 3

else    
    TripleV = 'none'
end

if LuckBoost == true then
     BoostV = 2

else    
    BoostV = 'none'
end

majesticChance = (11500)
secretChance = (400000)
divineChance = (1300000)

majesticChanceF = (majesticChance / LuckV)
secretChanceF = (secretChance / LuckV)
divineChanceF = (divineChance / LuckV)

print("Your Total luck is", LuckV)
print("")
print("Individual Luck Boosts:")
print("")
print("Upgrades:", UpgradeV) -- line 100 nice
print("Luck Pass:", GampeassV)
print("Secret Pass:", SecretV)
print("Triple Pass:", TripleV)
print("Luck Boost:", BoostV)
print("Luck Event:", LuckEvent)
print("")
print("Pet Chances:")
print("")
print("Majestic ", majesticChanceF)
print("Secret   ", secretChanceF)
print("Divine   ", divineChanceF)
print("")
print("Thanks for using this!") 

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: