Advertisement
Gerard_games

Untitled

Mar 19th, 2019
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. _G.farm = true
  2. local plr = game:GetService("Players").LocalPlayer
  3. local hint = Instance.new('Hint', game:GetService("CoreGui"))
  4. local Happiness = plr.leaderstats["πŸ‘Ά Happiness"]
  5. local Rebirths = plr.Rebirths
  6. local RS = game:GetService("ReplicatedStorage")
  7. local Remotes = RS.Remotes
  8. local Input = Remotes.Input
  9. local Rebirth = Remotes.Rebirth
  10. while _G.farm do
  11. local Me = Happiness.Value
  12. local rebirths = Rebirths.Value
  13. local price = rebirths * 1000 + 10000
  14. local difference = price - Me
  15. hint.Text = "You need: " .. difference .. " to rebirth"
  16. local bottle = plr.Backpack:FindFirstChild("Baby Bottle") or plr.Character and plr.Character:FindFirstChild("Baby Bottle")
  17. if bottle then
  18. local hum = plr.Character:FindFirstChildOfClass("Humanoid")
  19. if hum then
  20. hum:EquipTool(bottle)
  21. Input:FireServer(bottle)
  22. end
  23. end
  24. if Me >= price then
  25. Rebirth:FireServer()
  26. end
  27. wait()
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement