iForgePlays

HACK

Aug 23rd, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. -- PET SIMULATOR SCRIPT GUI
  2. -- UPDATE 21/08/2018
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextButton = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local Close = Instance.new("TextButton")
  9. --Properties:
  10.  
  11. ScreenGui.Parent = game.CoreGui
  12.  
  13. Frame.Parent = ScreenGui
  14. Frame.Active = true
  15. Frame.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  16. Frame.Position = UDim2.new(0.0978689864, 0, 0.427872837, 0)
  17. Frame.Size = UDim2.new(0, 219, 0, 118)
  18. Frame.Selectable = true
  19. Frame.Draggable = true
  20. Frame.Visible = true
  21.  
  22. TextButton.Parent = Frame
  23. TextButton.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  24. TextButton.Position = UDim2.new(0.260273993, 0, 0.322033912, 0)
  25. TextButton.Size = UDim2.new(0, 105, 0, 41)
  26. TextButton.Font = Enum.Font.SourceSans
  27. TextButton.Text = "PRESS TO FARM"
  28. TextButton.TextColor3 = Color3.new(0, 0, 0)
  29. TextButton.TextSize = 14
  30. TextButton.MouseButton1Click:connect(function()
  31. local amount = 1000 -- experiment with this value, 1000 is maximum and for pets with high levels
  32. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  33. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  34. local plr = game:GetService("Players").LocalPlayer
  35. local petids = {}
  36. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  37. local a = #save[plr.Name]["Save"]["Pets"]
  38. local done = "lol meme"
  39. function random(t)
  40. local keys = {}
  41. for key, value in pairs(t) do
  42. keys[#keys+1] = key
  43. end
  44. index = keys[math.random(1, #keys)]
  45. return t[index]
  46. end
  47. for i=1,a do
  48. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  49. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  50. end
  51. a = a - 1
  52. end
  53. function co(b)
  54. local done = b
  55. print("Mining coin: " .. b.Name)
  56. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  57. warn(b.Name .. "- Health: " .. b.Health.Value)
  58. wait(0.2)
  59. coins:FireServer("Mine",b.Name, amount, random(petids))
  60. end
  61. end
  62. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  63. if(done ~= b) then
  64. coroutine.wrap(function()co(b)end)()
  65. end
  66. end
  67. end)
  68.  
  69. TextLabel.Parent = Frame
  70. TextLabel.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  71. TextLabel.BorderSizePixel = 0
  72. TextLabel.Size = UDim2.new(0, 219, 0, 20)
  73. TextLabel.Font = Enum.Font.SourceSans
  74. TextLabel.Text = "PET SIMULATOR SCRIPT GUI"
  75. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  76. TextLabel.TextSize = 14
  77.  
  78. Close.Name = "Close"
  79. Close.Parent = TextLabel
  80. Close.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  81. Close.BorderSizePixel = 0
  82. Close.Position = UDim2.new(0.90867579, 0, 0.0194915235, 0)
  83. Close.Size = UDim2.new(0, 20, 0, 20)
  84. Close.Font = Enum.Font.SourceSans
  85. Close.Text = "X"
  86. Close.TextColor3 = Color3.new(0, 0, 0)
  87. Close.TextSize = 20
  88. Close.MouseButton1Click:connect(function()
  89. Frame.Visible = false
  90. end)
  91. -- Scripts:
Add Comment
Please, Sign In to add comment