local Age = 16
local Energy = 5
local Work = 0
local Happiness = 5
local Money = 0
local Vacation = 0
while task.wait(1) do
if Energy > 3 and Happiness > 3 then
Work += 1
Money += 10 * (Age / 15)
Energy -= 1
Happiness -= 1
Vacation += 0.1
elseif Vacation < 1 then
Energy += 1
Happiness += 1
Money -= 1
Work -= 1
else
repeat
Vacation -= 0.25
Happiness += 3
Work -= 1
Money -= 2.5
Energy += 2
print(`You are on vacation with {Money} in your pocket with {Energy} energy and you are {Happiness} happy. You dont have to worry about work`)
task.wait(1)
until Vacation <= 0
end
Age += 0.1
print(`You are {Age} years old and you have {Energy} energy and you have {Work} Work and you have {Happiness} happiness with {Money} in your pocket`)
end```
#life algorithm too hard
1 messages · Page 1 of 1 (latest)