DanielYoes

pet simulator script

Oct 1st, 2018
1,099
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 KB | None | 0 0
  1. local loopHack = false
  2. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  3. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  4. local plr = game:GetService("Players").LocalPlayer
  5. local petids = {}
  6. local petAP = {}
  7. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  8. local a = #save[plr.Name]["Save"]["Pets"]
  9. local done = "lol meme"
  10. local f = -1
  11. function p()
  12. for i=1,a do
  13. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  14. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  15. petAP[save[plr.Name]["Save"]["Pets"][a].id] = tonumber(save[plr.Name]["Save"]["Pets"][a].ba) * 4
  16. print("Detected: ( Pet: ",save[plr.Name]["Save"]["Pets"][a].id," Damage: ",tonumber(save[plr.Name]["Save"]["Pets"][a].ba) * 4,")")
  17. end
  18. a = a - 1
  19. end
  20. end
  21. p()
  22. function mf(b)
  23. while(loopHack and workspace.__THINGS.Coins:FindFirstChild(b.Name) and b.Position.Y > 100) do
  24. wait(0.2)
  25. for _,k in pairs(petids) do
  26. coins:FireServer("Mine",b.Name, petAP[k], k)
  27. end
  28. end
  29. end
  30. function ef(b)
  31. while(loopHack and workspace.__THINGS.Coins:FindFirstChild(b.Name) and b.Position.Y < 100) do
  32. wait(0.2)
  33. for _,k in pairs(petids) do
  34. coins:FireServer("Mine",b.Name, petAP[k], k)
  35. end
  36. end
  37. end
  38. function af(b)
  39. while(loopHack and workspace.__THINGS.Coins:FindFirstChild(b.Name)) do
  40. wait(0.2)
  41. for _,k in pairs(petids) do
  42. coins:FireServer("Mine",b.Name, petAP[k], k)
  43. end
  44. end
  45. end
  46. local GUI = Instance.new("ScreenGui")
  47. local dragFrame = Instance.new("Frame")
  48. local aButton = Instance.new("TextButton")
  49. local eButton = Instance.new("TextButton")
  50. local mButton = Instance.new("TextButton")
  51. local LSTitle = Instance.new("TextLabel")
  52. local Credit = Instance.new("TextLabel")
  53. GUI.Name = "Gui"
  54. GUI.Parent = game.CoreGui
  55. dragFrame.Name = "dragFrame"
  56. dragFrame.Parent = GUI
  57. dragFrame.BackgroundColor3 = Color3.new(0.172549, 0, 0.0627451)
  58. dragFrame.BorderSizePixel = 2
  59. dragFrame.Position = UDim2.new(0.241050124, 0, 0.177033499, 0)
  60. dragFrame.Size = UDim2.new(0, 263, 0, 100)
  61. dragFrame.Style = Enum.FrameStyle.RobloxRound
  62. dragFrame.Active = true
  63. dragFrame.Draggable = true
  64. eButton.Name = "eButton"
  65. eButton.Parent = dragFrame
  66. eButton.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  67. eButton.Position = UDim2.new(0.02, 0, 0.331685402, 0)
  68. eButton.Size = UDim2.new(0, 75, 0, 42)
  69. eButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  70. eButton.Font = Enum.Font.Code
  71. eButton.Text = "Earth"
  72. eButton.TextColor3 = Color3.new(0, 0, 0)
  73. eButton.TextSize = 14
  74. eButton.MouseButton1Down:connect(function()
  75. if loopHack then
  76. loopHack = false
  77. eButton.Text = "Earth"
  78. aButton.Visible = true
  79. mButton.Visible = true
  80. else
  81. aButton.Visible = false
  82. mButton.Visible = false
  83. f = 1
  84. coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  85. save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  86. plr = game:GetService("Players").LocalPlayer
  87. petids = {}
  88. petAP = {}
  89. pets = game:GetService("Workspace")["__REMOTES"].Pets
  90. a = #save[plr.Name]["Save"]["Pets"]
  91. done = "lol meme"
  92. p()
  93. eButton.Text = "Stop"
  94. loopHack = true
  95. end
  96. end)
  97. aButton.Name = "aButton"
  98. aButton.Parent = dragFrame
  99. aButton.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  100. aButton.Position = UDim2.new(0.35, 0, 0.331685402, 0)
  101. aButton.Size = UDim2.new(0, 75, 0, 42)
  102. aButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  103. aButton.Font = Enum.Font.Code
  104. aButton.Text = "All"
  105. aButton.TextColor3 = Color3.new(0, 0, 0)
  106. aButton.TextSize = 14
  107. aButton.MouseButton1Down:connect(function()
  108. if loopHack then
  109. loopHack = false
  110. aButton.Text = "All"
  111. eButton.Visible = true
  112. mButton.Visible = true
  113. else
  114. eButton.Visible = false
  115. mButton.Visible = false
  116. f = 0
  117. coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  118. save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  119. plr = game:GetService("Players").LocalPlayer
  120. petids = {}
  121. petAP = {}
  122. pets = game:GetService("Workspace")["__REMOTES"].Pets
  123. a = #save[plr.Name]["Save"]["Pets"]
  124. done = "lol meme"
  125. p()
  126. aButton.Text = "Stop"
  127. loopHack = true
  128. end
  129. end)
  130. mButton.Name = "mButton"
  131. mButton.Parent = dragFrame
  132. mButton.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  133. mButton.Position = UDim2.new(0.68, 0, 0.331685402, 0)
  134. mButton.Size = UDim2.new(0, 75, 0, 42)
  135. mButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  136. mButton.Font = Enum.Font.Code
  137. mButton.Text = "Moon"
  138. mButton.TextColor3 = Color3.new(0, 0, 0)
  139. mButton.TextSize = 14
  140. mButton.MouseButton1Down:connect(function()
  141. if loopHack then
  142. loopHack = false
  143. mButton.Text = "Moon"
  144. aButton.Visible = true
  145. eButton.Visible = true
  146. else
  147. aButton.Visible = false
  148. eButton.Visible = false
  149. f = 2
  150. coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  151. save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  152. plr = game:GetService("Players").LocalPlayer
  153. petids = {}
  154. petAP = {}
  155. pets = game:GetService("Workspace")["__REMOTES"].Pets
  156. a = #save[plr.Name]["Save"]["Pets"]
  157. done = "lol meme"
  158. p()
  159. mButton.Text = "Stop"
  160. loopHack = true
  161. end
  162. end)
  163. LSTitle.Name = "LSTitle"
  164. LSTitle.Parent = dragFrame
  165. LSTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  166. LSTitle.BackgroundTransparency = 1
  167. LSTitle.Position = UDim2.new(0.022813689, 0, 0.0188706424, 0)
  168. LSTitle.Size = UDim2.new(0, 234, 0, 23)
  169. LSTitle.Font = Enum.Font.Code
  170. LSTitle.Text = "Pet Simulator Gui"
  171. LSTitle.TextColor3 = Color3.new(1, 1, 1)
  172. LSTitle.TextSize = 17
  173. Credit.Name = "Credit"
  174. Credit.Parent = dragFrame
  175. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  176. Credit.BackgroundTransparency = 1
  177. Credit.Position = UDim2.new(0.562813689, 0, 0.8188706424, 0)
  178. Credit.Size = UDim2.new(0, 100, 0, 23)
  179. Credit.Font = Enum.Font.Code
  180. Credit.Text = "By ShivamAmin"
  181. Credit.TextColor3 = Color3.new(1, 1, 1)
  182. Credit.TextSize = 17
  183. while true do
  184. while loopHack do
  185. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  186. if(done ~= b) then
  187. if(f == 0) then
  188. af(b)
  189. elseif(f == 1) then
  190. ef(b)
  191. elseif(f == 2) then
  192. mf(b)
  193. else
  194. print("Somethings wrong.")
  195. end
  196. end
  197. end
  198. wait()
  199. end
  200. wait()
  201. end
Advertisement
Add Comment
Please, Sign In to add comment