VanThangzxc

Pet Simulator

Sep 3rd, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.61 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local PetSimulator = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local Open = Instance.new("TextButton")
  7. local Box = Instance.new("Frame")
  8. local Farm = Instance.new("TextButton")
  9. local Box1 = Instance.new("Frame")
  10. local Farm_2 = Instance.new("TextButton")
  11. local FarmNormal = Instance.new("TextButton")
  12. local FarmMax = Instance.new("TextButton")
  13. local Teleports = Instance.new("TextButton")
  14. local Box2 = Instance.new("Frame")
  15. local Place1 = Instance.new("TextButton")
  16. local Place2 = Instance.new("TextButton")
  17. local Place3 = Instance.new("TextButton")
  18. local Place5 = Instance.new("TextButton")
  19. local Moon = Instance.new("TextButton")
  20. local Moon2 = Instance.new("TextButton")
  21. local Candy = Instance.new("TextButton")
  22. local Place4 = Instance.new("TextButton")
  23. local Title = Instance.new("TextLabel")
  24. local Close = Instance.new("TextButton")
  25. --Properties:
  26. PetSimulator.Name = "Pet Simulator"
  27. PetSimulator.Parent = game.Players.LocalPlayer.PlayerGui
  28.  
  29. Frame.Parent = PetSimulator
  30. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  31. Frame.Position = UDim2.new(0, 0, 0.378109455, 0)
  32. Frame.Size = UDim2.new(0, 105, 0, 60)
  33.  
  34. Open.Name = "Open"
  35. Open.Parent = Frame
  36. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  37. Open.Position = UDim2.new(-0.095238097, 0, 0, 0)
  38. Open.Size = UDim2.new(0, 115, 0, 60)
  39. Open.Font = Enum.Font.SourceSans
  40. Open.Text = "Open"
  41. Open.TextColor3 = Color3.new(0, 0, 0)
  42. Open.TextScaled = true
  43. Open.TextSize = 14
  44. Open.TextWrapped = true
  45.  
  46. Box.Name = "Box"
  47. Box.Parent = PetSimulator
  48. Box.BackgroundColor3 = Color3.new(1, 1, 1)
  49. Box.Position = UDim2.new(0.273714721, 0, 0.378109485, 0)
  50. Box.Size = UDim2.new(0, 393, 0, 288)
  51. Box.Active = true
  52. Box.Draggable = true
  53.  
  54. Farm.Name = "Farm"
  55. Farm.Parent = Box
  56. Farm.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  57. Farm.Position = UDim2.new(0.24427481, 0, 0.295138896, 0)
  58. Farm.Size = UDim2.new(0, 200, 0, 44)
  59. Farm.Font = Enum.Font.SourceSans
  60. Farm.Text = "Farm"
  61. Farm.TextColor3 = Color3.new(0, 0, 0)
  62. Farm.TextScaled = true
  63. Farm.TextSize = 14
  64. Farm.TextWrapped = true
  65.  
  66. Box1.Name = "Box1"
  67. Box1.Parent = Farm
  68. Box1.BackgroundColor3 = Color3.new(1, 0.333333, 0.498039)
  69. Box1.Position = UDim2.new(1.82500005, 0, -1, 0)
  70. Box1.Size = UDim2.new(0, 307, 0, 288)
  71. Box1.Visible = false
  72. Box1.Active = true
  73. Box1.Draggable = true
  74.  
  75. Farm_2.Name = "Farm"
  76. Farm_2.Parent = Box1
  77. Farm_2.BackgroundColor3 = Color3.new(1, 1, 1)
  78. Farm_2.Position = UDim2.new(0.172638446, 0, 0.0729166716, 0)
  79. Farm_2.Size = UDim2.new(0, 200, 0, 50)
  80. Farm_2.Font = Enum.Font.SourceSans
  81. Farm_2.Text = "Farm"
  82. Farm_2.TextColor3 = Color3.new(0, 0, 0)
  83. Farm_2.TextScaled = true
  84. Farm_2.TextSize = 14
  85. Farm_2.TextWrapped = true
  86.  
  87. FarmNormal.Name = "FarmNormal"
  88. FarmNormal.Parent = Box1
  89. FarmNormal.BackgroundColor3 = Color3.new(1, 1, 1)
  90. FarmNormal.Position = UDim2.new(0.172999993, 0, 0.413194448, 0)
  91. FarmNormal.Size = UDim2.new(0, 200, 0, 50)
  92. FarmNormal.Font = Enum.Font.SourceSans
  93. FarmNormal.Text = "FarmNormal"
  94. FarmNormal.TextColor3 = Color3.new(0, 0, 0)
  95. FarmNormal.TextSize = 40
  96. FarmNormal.TextWrapped = true
  97.  
  98. FarmMax.Name = "FarmMax"
  99. FarmMax.Parent = Box1
  100. FarmMax.BackgroundColor3 = Color3.new(1, 1, 1)
  101. FarmMax.Position = UDim2.new(0.172999993, 0, 0.697916687, 0)
  102. FarmMax.Size = UDim2.new(0, 200, 0, 50)
  103. FarmMax.Font = Enum.Font.SourceSans
  104. FarmMax.Text = "FarmMax"
  105. FarmMax.TextColor3 = Color3.new(0, 0, 0)
  106. FarmMax.TextScaled = true
  107. FarmMax.TextSize = 14
  108. FarmMax.TextWrapped = true
  109.  
  110. Teleports.Name = "Teleports"
  111. Teleports.Parent = Box
  112. Teleports.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  113. Teleports.Position = UDim2.new(0.244000003, 0, 0.645833313, 0)
  114. Teleports.Size = UDim2.new(0, 200, 0, 44)
  115. Teleports.Font = Enum.Font.SourceSans
  116. Teleports.Text = "Teleports"
  117. Teleports.TextColor3 = Color3.new(0, 0, 0)
  118. Teleports.TextScaled = true
  119. Teleports.TextSize = 14
  120. Teleports.TextWrapped = true
  121.  
  122. Box2.Name = "Box2"
  123. Box2.Parent = Teleports
  124. Box2.BackgroundColor3 = Color3.new(1, 0.666667, 1)
  125. Box2.Position = UDim2.new(-0.479999989, 0, -7, 0)
  126. Box2.Size = UDim2.new(0, 393, 0, 288)
  127. Box2.Visible = false
  128. Box2.Active = true
  129. Box2.Draggable = true
  130.  
  131. Place1.Name = "Place1"
  132. Place1.Parent = Box2
  133. Place1.BackgroundColor3 = Color3.new(1, 1, 1)
  134. Place1.Size = UDim2.new(0, 152, 0, 50)
  135. Place1.Font = Enum.Font.SourceSans
  136. Place1.Text = "Place1"
  137. Place1.TextColor3 = Color3.new(0, 0, 0)
  138. Place1.TextSize = 20
  139. Place1.TextWrapped = true
  140.  
  141. Place2.Name = "Place2"
  142. Place2.Parent = Box2
  143. Place2.BackgroundColor3 = Color3.new(1, 1, 1)
  144. Place2.Position = UDim2.new(0, 0, 0.298611104, 0)
  145. Place2.Size = UDim2.new(0, 152, 0, 50)
  146. Place2.Font = Enum.Font.SourceSans
  147. Place2.Text = "Place2"
  148. Place2.TextColor3 = Color3.new(0, 0, 0)
  149. Place2.TextSize = 20
  150.  
  151. Place3.Name = "Place3"
  152. Place3.Parent = Box2
  153. Place3.BackgroundColor3 = Color3.new(1, 1, 1)
  154. Place3.Position = UDim2.new(0, 0, 0.572916627, 0)
  155. Place3.Size = UDim2.new(0, 152, 0, 50)
  156. Place3.Font = Enum.Font.SourceSans
  157. Place3.Text = "Place3"
  158. Place3.TextColor3 = Color3.new(0, 0, 0)
  159. Place3.TextSize = 20
  160. Place3.TextWrapped = true
  161.  
  162. Place5.Name = "Place5"
  163. Place5.Parent = Box2
  164. Place5.BackgroundColor3 = Color3.new(1, 1, 1)
  165. Place5.Position = UDim2.new(0, 241, 0, 0)
  166. Place5.Size = UDim2.new(0, 152, 0, 50)
  167. Place5.Font = Enum.Font.SourceSans
  168. Place5.Text = "Place5"
  169. Place5.TextColor3 = Color3.new(0, 0, 0)
  170. Place5.TextSize = 20
  171.  
  172. Moon.Name = "Moon"
  173. Moon.Parent = Box2
  174. Moon.BackgroundColor3 = Color3.new(1, 1, 1)
  175. Moon.Position = UDim2.new(0.61323154, 0, 0.298611104, 0)
  176. Moon.Size = UDim2.new(0, 152, 0, 50)
  177. Moon.Font = Enum.Font.SourceSans
  178. Moon.Text = "Moon"
  179. Moon.TextColor3 = Color3.new(0, 0, 0)
  180. Moon.TextSize = 20
  181.  
  182. Moon2.Name = "Moon2"
  183. Moon2.Parent = Box2
  184. Moon2.BackgroundColor3 = Color3.new(1, 1, 1)
  185. Moon2.Position = UDim2.new(0.61323154, 0, 0.572916627, 0)
  186. Moon2.Size = UDim2.new(0, 152, 0, 50)
  187. Moon2.Font = Enum.Font.SourceSans
  188. Moon2.Text = "Moon2"
  189. Moon2.TextColor3 = Color3.new(0, 0, 0)
  190. Moon2.TextSize = 20
  191.  
  192. Candy.Name = "Candy"
  193. Candy.Parent = Box2
  194. Candy.BackgroundColor3 = Color3.new(1, 1, 1)
  195. Candy.Position = UDim2.new(0.61323154, 0, 0.826388836, 0)
  196. Candy.Size = UDim2.new(0, 152, 0, 50)
  197. Candy.Font = Enum.Font.SourceSans
  198. Candy.Text = "Candy"
  199. Candy.TextColor3 = Color3.new(0, 0, 0)
  200. Candy.TextSize = 20
  201.  
  202. Place4.Name = "Place4"
  203. Place4.Parent = Box2
  204. Place4.BackgroundColor3 = Color3.new(1, 1, 1)
  205. Place4.Position = UDim2.new(0, 0, 0.826388836, 0)
  206. Place4.Size = UDim2.new(0, 152, 0, 50)
  207. Place4.Font = Enum.Font.SourceSans
  208. Place4.Text = "Place4"
  209. Place4.TextColor3 = Color3.new(0, 0, 0)
  210. Place4.TextSize = 20
  211.  
  212. Title.Name = "Title"
  213. Title.Parent = Box
  214. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  215. Title.Size = UDim2.new(0, 393, 0, 54)
  216. Title.Font = Enum.Font.SourceSans
  217. Title.Text = "By A ThangDz"
  218. Title.TextColor3 = Color3.new(0, 0, 0)
  219. Title.TextScaled = true
  220. Title.TextSize = 14
  221. Title.TextWrapped = true
  222.  
  223. Close.Name = "Close"
  224. Close.Parent = Box
  225. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  226. Close.Position = UDim2.new(0.921119571, 0, 0, 0)
  227. Close.Size = UDim2.new(0, 31, 0, 54)
  228. Close.Font = Enum.Font.SourceSans
  229. Close.Text = "X"
  230. Close.TextColor3 = Color3.new(0, 0, 0)
  231. Close.TextScaled = true
  232. Close.TextSize = 14
  233. Close.TextWrapped = true
  234. -- Scripts:
  235.  
  236. Farm.MouseButton1Down:connect(function()
  237. Box1.Visible = true
  238. Frame.Visible = false
  239. end)
  240.  
  241. Farm.MouseButton1Down:connect(function()
  242. Frame.Visible = true
  243. Box1.Visible = false
  244. end)
  245.  
  246. Open.MouseButton1Down:connect(function()
  247. Box.Visible = true
  248. Frame.Visible = false
  249. end)
  250.  
  251. Close.MouseButton1Down:connect(function()
  252. Frame.Visible = true
  253. Box.Visible = false
  254. end)
  255.  
  256. Teleports.MouseButton1Down:connect(function()
  257. Box2.Visible = true
  258. Frame.Visible = false
  259. end)
  260.  
  261. Teleports.MouseButton1Down:connect(function()
  262. Frame.Visible = true
  263. Box2.Visible = false
  264. end)
  265.  
  266. Place1.MouseButton1Down:connect(function()
  267. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(0.295806587, -37.0378761, 890.214355))
  268. end)
  269.  
  270. Place2.MouseButton1Down:connect(function()
  271. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-374.2388, -37.0378761, 885.253296))
  272. end)
  273.  
  274. Place3.MouseButton1Down:connect(function()
  275. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-760.199097, -37.0378761, 880.302246))
  276. end)
  277.  
  278. Place4.MouseButton1Down:connect(function()
  279. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-1140.22437, -37.0378761, 885.195129))
  280. end)
  281.  
  282. Place5.MouseButton1Down:connect(function()
  283. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-1534.46313, -33.038002, 887.088318))
  284. end)
  285.  
  286. Moon.MouseButton1Down:connect(function()
  287. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(80.3468018, 144.27951, -1706.91724))
  288. end)
  289.  
  290. Candy.MouseButton1Down:connect(function()
  291. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(8.77877998, 144.27951, -1443.94481))
  292. end)
  293.  
  294. Farm_2.MouseButton1Down:connect(function()
  295. local amount = 500 -- experiment with this value, 1000 is maximum and for pets with high levels
  296. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  297. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  298. local plr = game:GetService("Players").LocalPlayer
  299. local petids = {}
  300. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  301. local a = #save[plr.Name]["Save"]["Pets"]
  302. local done = "lol meme"
  303. function random(t)
  304. local keys = {}
  305. for key, value in pairs(t) do
  306. keys[#keys+1] = key
  307. end
  308. index = keys[math.random(1, #keys)]
  309. return t[index]
  310. end
  311. for i=1,a do
  312. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  313. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  314. end
  315. a = a - 1
  316. end
  317. function co(b)
  318. local done = b
  319. print("Mining coin: " .. b.Name)
  320. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  321. warn(b.Name .. "- Health: " .. b.Health.Value)
  322. wait(0.2)
  323. coins:FireServer("Mine",b.Name, amount, random(petids))
  324. end
  325. end
  326. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  327. if(done ~= b) then
  328. coroutine.wrap(function()co(b)end)()
  329. end
  330. end
  331. end)
  332.  
  333. FarmNormal.MouseButton1Down:connect(function()
  334. local amount = 800 -- experiment with this value, 1000 is maximum and for pets with high levels
  335. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  336. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  337. local plr = game:GetService("Players").LocalPlayer
  338. local petids = {}
  339. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  340. local a = #save[plr.Name]["Save"]["Pets"]
  341. local done = "lol meme"
  342. function random(t)
  343. local keys = {}
  344. for key, value in pairs(t) do
  345. keys[#keys+1] = key
  346. end
  347. index = keys[math.random(1, #keys)]
  348. return t[index]
  349. end
  350. for i=1,a do
  351. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  352. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  353. end
  354. a = a - 1
  355. end
  356. function co(b)
  357. local done = b
  358. print("Mining coin: " .. b.Name)
  359. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  360. warn(b.Name .. "- Health: " .. b.Health.Value)
  361. wait(0.2)
  362. coins:FireServer("Mine",b.Name, amount, random(petids))
  363. end
  364. end
  365. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  366. if(done ~= b) then
  367. coroutine.wrap(function()co(b)end)()
  368. end
  369. end
  370. end)
  371.  
  372. FarmMax.MouseButton1Down:connect(function()
  373. local amount = 1000 -- experiment with this value, 1000 is maximum and for pets with high levels
  374. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  375. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  376. local plr = game:GetService("Players").LocalPlayer
  377. local petids = {}
  378. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  379. local a = #save[plr.Name]["Save"]["Pets"]
  380. local done = "lol meme"
  381. function random(t)
  382. local keys = {}
  383. for key, value in pairs(t) do
  384. keys[#keys+1] = key
  385. end
  386. index = keys[math.random(1, #keys)]
  387. return t[index]
  388. end
  389. for i=1,a do
  390. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  391. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  392. end
  393. a = a - 1
  394. end
  395. function co(b)
  396. local done = b
  397. print("Mining coin: " .. b.Name)
  398. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  399. warn(b.Name .. "- Health: " .. b.Health.Value)
  400. wait(0.2)
  401. coins:FireServer("Mine",b.Name, amount, random(petids))
  402. end
  403. end
  404. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  405. if(done ~= b) then
  406. coroutine.wrap(function()co(b)end)()
  407. end
  408. end
  409. end)
Advertisement
Add Comment
Please, Sign In to add comment