Guest User

Untitled

a guest
Nov 1st, 2024
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.24 KB | None | 0 0
  1. local Human
  2. for _, v in pairs(World:GetChildren()) do
  3.     if v:IsA("Human") and v.Job == "Programmer" then
  4.         Human = v
  5.     end
  6. end
  7.  
  8. local Energy = Human.Energy
  9. local Stamina = Human.Stamina
  10. local Hunger = Human.HungerBar
  11. local Region = Human.Address:FindFirstChild("Region")
  12. local Time = World.UTC:GetGMT(Region).MilitaryTime
  13. local Day = World.UTC:GetGMT(Region).DayOfWeek
  14. local House = Human.Address.House
  15. local Bathroom = House:FindFirstChild("Bathroom")
  16. local GamingChair = House:FindFirstChild("PC-Room").GamingChair
  17. local Table = House:FindFirstChild("Living-Room").Table
  18. local Store = World:FindFirstChild("GroceryStore")
  19.  
  20. local function WakeUpFunc(Human)
  21.     Human.Body:Circadian_Rhythm.Connected:Function()
  22.     Human.Body.Brain:WakeUp()
  23. end
  24.  
  25. while true do
  26.     Time = World.UTC:GetGMT(Region).MilitaryTime
  27.     Day = World.UTC:GetGMT(Region).DayOfWeek
  28.  
  29.     if Time >= 630 and Human.Body:GetState() == "Sleeping" then
  30.         WakeUpFunc(Human)
  31.     end
  32.  
  33.     if Human.Body.Brain:GetState() == "Barely-Woke-Up" then
  34.         if Energy >= 50 and Stamina >= 100 and Human.Location == "Bed" then
  35.             Human.Legs:MoveTo(Bathroom)
  36.             Human.Legs.MoveToFinished:Wait()
  37.             Human.Arms:ChangeStateTo("Rinse face")
  38.             Human.Arms.StateFinished:Wait()
  39.  
  40.             local ToothBrush = Bathroom:FindFirstChild("Personal-ToothBrush")
  41.             Human.Arms:ChangeStateTo("Tooth-brush", ToothBrush)
  42.             Human.Arms.StateFinished:Wait()
  43.  
  44.             if Day == "Saturday" or Day == "Sunday" then
  45.                 Human.Legs:MoveTo(Store)
  46.                 Human.WholeBody:ChangeStateTo("BuyGroceries")
  47.                 Human.WholeBody.StateFinished:Wait()
  48.                 Human.Legs:MoveTo(House)
  49.                 Human.WholeBody:ChangeStateTo("UnloadGroceries")
  50.             else
  51.                 Human.Legs:MoveTo(Table)
  52.                 Human.WholeBody:ChangeStateTo("PrepareFood", "Eat")
  53.                 Human.WholeBody.StateFinished:Wait()
  54.  
  55.                 Human.Legs:MoveTo(GamingChair)
  56.                 Human.Arms:ChangeStateTo("Start-Up-PC")
  57.                 Human.Arms.StateFinished:Wait()
  58.                 Human.WholeBody:ChangeStateTo("Programming")
  59.  
  60.                 while Time < 2400 do
  61.                     Time = World.UTC:GetGMT(Region).MilitaryTime
  62.  
  63.                     if (Time >= 1330 and Time < 1900 and Hunger > 74) or (Time >= 1900 and Time < 2400 and Hunger > 74) then
  64.                         Human.Legs:MoveTo(Table)
  65.                         Human.WholeBody:ChangeStateTo("PrepareFood", "Eat")
  66.                         Human.WholeBody.StateFinished:Wait()
  67.                         Human.Legs:MoveTo(GamingChair)
  68.                         Human.Arms:ChangeStateTo("Start-Up-PC")
  69.                         Human.Arms.StateFinished:Wait()
  70.                         Human.WholeBody:ChangeStateTo("Programming")
  71.                     elseif Time >= 2400 or Hunger <= 20 then
  72.                         Human.Legs:MoveTo(Bed)
  73.                         Human.WholeBody:ChangeStateTo("Sleep", "Dream")
  74.                         Human.WholeBody.StateFinished:Wait()
  75.                         break
  76.                     end
  77.  
  78.                     wait(1)
  79.                 end
  80.             end
  81.         end
  82.     end
  83.  
  84.     wait(1)
  85. end
  86.  
Advertisement
Add Comment
Please, Sign In to add comment