Scriptorz5

pet sim

Sep 30th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.34 KB | None | 0 0
  1. --- Credit To FunTrator .
  2. --- Do Whatever You Want . LIFE SUCKS .
  3. --- Discord : Discord.io/SomeoneShark
  4.  
  5. local PSG = Instance.new("ScreenGui")
  6. local bar1 = Instance.new("Frame")
  7. local SF = Instance.new("TextButton")
  8. local UEA = Instance.new("TextButton")
  9. local UA = Instance.new("TextButton")
  10. local N = Instance.new("TextLabel")
  11. local AT = Instance.new("TextButton")
  12. local No = Instance.new("TextLabel")
  13. local TextLabel = Instance.new("TextLabel")
  14. local MF = Instance.new("TextButton")
  15. local AF = Instance.new("TextButton")
  16. local WS = Instance.new("TextButton")
  17. local JP = Instance.new("TextButton")
  18. local bar2 = Instance.new("Frame")
  19. local Stor = Instance.new("TextButton")
  20. local P2 = Instance.new("TextButton")
  21. local P1 = Instance.new("TextButton")
  22. local P3 = Instance.new("TextButton")
  23. local P4 = Instance.new("TextButton")
  24. local M1 = Instance.new("TextButton")
  25. local P5 = Instance.new("TextButton")
  26. local M2 = Instance.new("TextButton")
  27. local Spawn = Instance.new("TextButton")
  28. local C = Instance.new("TextButton")
  29. local X = Instance.new("TextButton")
  30.  
  31. PSG.Name = "PSG"
  32. PSG.Parent = game.CoreGui
  33.  
  34. bar1.Name = "bar1"
  35. bar1.Parent = PSG
  36. bar1.BackgroundColor3 = Color3.new(0.172549, 0, 0.0627451)
  37. bar1.BorderSizePixel = 2
  38. bar1.Position = UDim2.new(0.241050124, 0, 0.177033499, 0)
  39. bar1.Size = UDim2.new(0, 263, 0, 356)
  40. bar1.Style = Enum.FrameStyle.RobloxRound
  41. bar1.Active = true
  42. bar1.Draggable = true
  43.  
  44. SF.Name = "SF"
  45. SF.Parent = bar1
  46. SF.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  47. SF.Position = UDim2.new(0.0570342205, 0, 0.151685402, 0)
  48. SF.Size = UDim2.new(0, 107, 0, 42)
  49. SF.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  50. SF.Font = Enum.Font.SciFi
  51. SF.Text = "Small FARM"
  52. SF.TextColor3 = Color3.new(0, 0, 0)
  53. SF.TextSize = 14
  54. SF.MouseButton1Down:connect(function()
  55. local amount = 100 -- experiment with this value, 1000 is maximum and for pets with high levels
  56. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  57. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  58. local plr = game:GetService("Players").LocalPlayer
  59. local petids = {}
  60. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  61. local a = #save[plr.Name]["Save"]["Pets"]
  62. local done = "lol meme"
  63. function random(t)
  64. local keys = {}
  65. for key, value in pairs(t) do
  66. keys[#keys+1] = key
  67. end
  68. index = keys[math.random(1, #keys)]
  69. return t[index]
  70. end
  71. for i=1,a do
  72. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  73. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  74. end
  75. a = a - 1
  76. end
  77. function co(b)
  78. local done = b
  79. print("Mining coin: " .. b.Name)
  80. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  81. warn(b.Name .. "- Health: " .. b.Health.Value)
  82. wait(0.2)
  83. coins:FireServer("Mine",b.Name, amount, random(petids))
  84. end
  85. end
  86. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  87. if(done ~= b) then
  88. coroutine.wrap(function()co(b)end)()
  89. end
  90. end
  91. end)
  92.  
  93. UEA.Name = "UEA"
  94. UEA.Parent = bar1
  95. UEA.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  96. UEA.Position = UDim2.new(0.258555144, 0, 0.601123571, 0)
  97. UEA.Size = UDim2.new(0, 118, 0, 42)
  98. UEA.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  99. UEA.Font = Enum.Font.SciFi
  100. UEA.Text = "Un-Equip Pets"
  101. UEA.TextColor3 = Color3.new(0, 0, 0)
  102. UEA.TextSize = 14
  103. UEA.MouseButton1Down:connect(function()
  104. local Event = game:GetService("Workspace")["__REMOTES"].Pets
  105. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  106. for _,x in next, game:GetService"Players":GetPlayers() do
  107. if(x.Name ~= game:GetService"Players".LocalPlayer.Name) then
  108. local a = #save[x.Name]["Save"]["Pets"]
  109. for i=1,a do
  110. Event:FireServer("Remove", x, save[x.Name]["Save"]["Pets"][a].id)
  111. a = a - 1
  112. end
  113. end
  114. end
  115. end)
  116.  
  117. UA.Name = "UA"
  118. UA.Parent = bar1
  119. UA.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  120. UA.Position = UDim2.new(0.524714828, 0, 0.30898878, 0)
  121. UA.Size = UDim2.new(0, 118, 0, 42)
  122. UA.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  123. UA.Font = Enum.Font.SciFi
  124. UA.Text = "Unlock All"
  125. UA.TextColor3 = Color3.new(0, 0, 0)
  126. UA.TextSize = 14
  127. UA.MouseButton1Down:connect(function()
  128. local barriers_table = { "Barrier1", "Barrier2", "Barrier3", "Barrier4", "Barrier5" }
  129. local barriers = game:GetService("Workspace").__THINGS["Barriers"]
  130. barriers:Destroy()
  131. end)
  132.  
  133. N.Name = "N"
  134. N.Parent = bar1
  135. N.BackgroundColor3 = Color3.new(1, 1, 1)
  136. N.BackgroundTransparency = 1
  137. N.Position = UDim2.new(0.022813689, 0, 0.0188706424, 0)
  138. N.Size = UDim2.new(0, 234, 0, 23)
  139. N.Font = Enum.Font.SciFi
  140. N.Text = "Pet Simulator Gui - By FunTrator"
  141. N.TextColor3 = Color3.new(0.992157, 0.00784314, 0.141176)
  142. N.TextSize = 17
  143.  
  144. AT.Name = "AT"
  145. AT.Parent = bar1
  146. AT.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  147. AT.Position = UDim2.new(0.174904943, 0, 0.767000616, 0)
  148. AT.Size = UDim2.new(0, 162, 0, 42)
  149. AT.Style = Enum.ButtonStyle.RobloxButtonDefault
  150. AT.Font = Enum.Font.SciFi
  151. AT.Text = "Teleports"
  152. AT.TextColor3 = Color3.new(0.980392, 0.0235294, 0.121569)
  153. AT.TextSize = 26
  154. AT.MouseButton1Down:connect(function()
  155. bar2.Visible = true
  156. end)
  157.  
  158. No.Name = "No"
  159. No.Parent = bar1
  160. No.BackgroundColor3 = Color3.new(1, 0.00392157, 0.0196078)
  161. No.Position = UDim2.new(0.0342205316, 0, 0.100694448, 0)
  162. No.Size = UDim2.new(0, 233, 0, 1)
  163. No.Font = Enum.Font.SourceSans
  164. No.Text = ""
  165. No.TextColor3 = Color3.new(0, 0, 0)
  166. No.TextSize = 14
  167.  
  168. TextLabel.Parent = bar1
  169. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  170. TextLabel.BackgroundTransparency = 1
  171. TextLabel.Position = UDim2.new(0.022813689, 0, 0.921862781, 0)
  172. TextLabel.Size = UDim2.new(0, 233, 0, 23)
  173. TextLabel.Font = Enum.Font.SciFi
  174. TextLabel.Text = "Discord : Discord.io/SomeoneShark"
  175. TextLabel.TextColor3 = Color3.new(0.980392, 0.980392, 0.980392)
  176. TextLabel.TextSize = 13
  177.  
  178. MF.Name = "MF"
  179. MF.Parent = bar1
  180. MF.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  181. MF.Position = UDim2.new(0.524714828, 0, 0.149288639, 0)
  182. MF.Size = UDim2.new(0, 118, 0, 42)
  183. MF.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  184. MF.Font = Enum.Font.SciFi
  185. MF.Text = "Med. FARM"
  186. MF.TextColor3 = Color3.new(0, 0, 0)
  187. MF.TextSize = 14
  188. MF.MouseButton1Down:connect(function()
  189. local amount = 500 -- experiment with this value, 1000 is maximum and for pets with high levels
  190. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  191. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  192. local plr = game:GetService("Players").LocalPlayer
  193. local petids = {}
  194. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  195. local a = #save[plr.Name]["Save"]["Pets"]
  196. local done = "lol meme"
  197. function random(t)
  198. local keys = {}
  199. for key, value in pairs(t) do
  200. keys[#keys+1] = key
  201. end
  202. index = keys[math.random(1, #keys)]
  203. return t[index]
  204. end
  205. for i=1,a do
  206. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  207. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  208. end
  209. a = a - 1
  210. end
  211. function co(b)
  212. local done = b
  213. print("Mining coin: " .. b.Name)
  214. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  215. warn(b.Name .. "- Health: " .. b.Health.Value)
  216. wait(0.2)
  217. coins:FireServer("Mine",b.Name, amount, random(petids))
  218. end
  219. end
  220. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  221. if(done ~= b) then
  222. coroutine.wrap(function()co(b)end)()
  223. end
  224. end
  225. end)
  226.  
  227. AF.Name = "AF"
  228. AF.Parent = bar1
  229. AF.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  230. AF.Position = UDim2.new(0.0532319397, 0, 0.30898878, 0)
  231. AF.Size = UDim2.new(0, 108, 0, 42)
  232. AF.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  233. AF.Font = Enum.Font.SciFi
  234. AF.Text = "MAX FARM"
  235. AF.TextColor3 = Color3.new(0, 0, 0)
  236. AF.TextSize = 14
  237. AF.MouseButton1Down:connect(function()
  238. local amount = 1000 -- experiment with this value, 1000 is maximum and for pets with high levels
  239. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  240. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  241. local plr = game:GetService("Players").LocalPlayer
  242. local petids = {}
  243. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  244. local a = #save[plr.Name]["Save"]["Pets"]
  245. local done = "lol meme"
  246. function random(t)
  247. local keys = {}
  248. for key, value in pairs(t) do
  249. keys[#keys+1] = key
  250. end
  251. index = keys[math.random(1, #keys)]
  252. return t[index]
  253. end
  254. for i=1,a do
  255. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  256. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  257. end
  258. a = a - 1
  259. end
  260. function co(b)
  261. local done = b
  262. print("Mining coin: " .. b.Name)
  263. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  264. warn(b.Name .. "- Health: " .. b.Health.Value)
  265. wait(0.2)
  266. coins:FireServer("Mine",b.Name, amount, random(petids))
  267. end
  268. end
  269. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  270. if(done ~= b) then
  271. coroutine.wrap(function()co(b)end)()
  272. end
  273. end
  274. end)
  275.  
  276. WS.Name = "WS"
  277. WS.Parent = bar1
  278. WS.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  279. WS.Position = UDim2.new(0.0570342205, 0, 0.449438214, 0)
  280. WS.Size = UDim2.new(0, 108, 0, 42)
  281. WS.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  282. WS.Font = Enum.Font.SciFi
  283. WS.Text = "WalkSpeed"
  284. WS.TextColor3 = Color3.new(0, 0, 0)
  285. WS.TextSize = 14
  286. WS.MouseButton1Down:connect(function()
  287. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  288. end)
  289.  
  290. JP.Name = "JP"
  291. JP.Parent = bar1
  292. JP.BackgroundColor3 = Color3.new(1, 0.0392157, 0.215686)
  293. JP.Position = UDim2.new(0.520912528, 0, 0.449438214, 0)
  294. JP.Size = UDim2.new(0, 119, 0, 42)
  295. JP.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  296. JP.Font = Enum.Font.SciFi
  297. JP.Text = "Jump Power"
  298. JP.TextColor3 = Color3.new(0, 0, 0)
  299. JP.TextSize = 14
  300. WS.MouseButton1Down:connect(function()
  301. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 200
  302. end)
  303.  
  304. bar2.Name = "bar2"
  305. bar2.Parent = PSG
  306. bar2.BackgroundColor3 = Color3.new(1, 1, 1)
  307. bar2.Position = UDim2.new(0.564439118, 0, 0.178628385, 0)
  308. bar2.Size = UDim2.new(0, 214, 0, 329)
  309. bar2.Style = Enum.FrameStyle.RobloxRound
  310. bar2.Active = true
  311. bar2.Draggable = true
  312. bar2.Visible = false
  313.  
  314. Stor.Name = "Stor"
  315. Stor.Parent = bar2
  316. Stor.BackgroundColor3 = Color3.new(1, 1, 1)
  317. Stor.Position = UDim2.new(0.532710254, 0, 0.0186170191, 0)
  318. Stor.Size = UDim2.new(0, 92, 0, 39)
  319. Stor.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  320. Stor.Font = Enum.Font.SourceSans
  321. Stor.Text = "Store"
  322. Stor.TextColor3 = Color3.new(0, 0, 0)
  323. Stor.TextSize = 14
  324. Stor.MouseButton1Down:connect(function()
  325. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(719.225952, -33.6261177, 894.049072))
  326. end)
  327.  
  328. P2.Name = "P2"
  329. P2.Parent = bar2
  330. P2.BackgroundColor3 = Color3.new(1, 1, 1)
  331. P2.Position = UDim2.new(0.532710254, 0, 0.177342772, 0)
  332. P2.Size = UDim2.new(0, 92, 0, 39)
  333. P2.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  334. P2.Font = Enum.Font.SourceSans
  335. P2.Text = "Place 2"
  336. P2.TextColor3 = Color3.new(0, 0, 0)
  337. P2.TextSize = 14
  338. P2.MouseButton1Down:connect(function()
  339. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-374.2388, -37.0378761, 885.253296))
  340. end)
  341.  
  342. P1.Name = "P1"
  343. P1.Parent = bar2
  344. P1.BackgroundColor3 = Color3.new(1, 1, 1)
  345. P1.Position = UDim2.new(0.0140186772, 0, 0.174303263, 0)
  346. P1.Size = UDim2.new(0, 92, 0, 39)
  347. P1.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  348. P1.Font = Enum.Font.SourceSans
  349. P1.Text = "Place 1"
  350. P1.TextColor3 = Color3.new(0, 0, 0)
  351. P1.TextSize = 14
  352. P1.MouseButton1Down:connect(function()
  353. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(0.295806587, -37.0378761, 890.214355))
  354. end)
  355.  
  356. P3.Name = "P3"
  357. P3.Parent = bar2
  358. P3.BackgroundColor3 = Color3.new(1, 1, 1)
  359. P3.Position = UDim2.new(0.0140186772, 0, 0.335101962, 0)
  360. P3.Size = UDim2.new(0, 92, 0, 39)
  361. P3.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  362. P3.Font = Enum.Font.SourceSans
  363. P3.Text = "Place 3"
  364. P3.TextColor3 = Color3.new(0, 0, 0)
  365. P3.TextSize = 14
  366. P3.MouseButton1Down:connect(function()
  367. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-760.199097, -37.0378761, 880.302246))
  368. end)
  369.  
  370.  
  371. P4.Name = "P4"
  372. P4.Parent = bar2
  373. P4.BackgroundColor3 = Color3.new(1, 1, 1)
  374. P4.Position = UDim2.new(0.528037369, 0, 0.332062453, 0)
  375. P4.Size = UDim2.new(0, 92, 0, 39)
  376. P4.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  377. P4.Font = Enum.Font.SourceSans
  378. P4.Text = "Place 4"
  379. P4.TextColor3 = Color3.new(0, 0, 0)
  380. P4.TextSize = 14
  381. P4.MouseButton1Down:connect(function()
  382. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-1140.22437, -37.0378761, 885.195129))
  383. end)
  384.  
  385. M1.Name = "M1"
  386. M1.Parent = bar2
  387. M1.BackgroundColor3 = Color3.new(1, 1, 1)
  388. M1.Position = UDim2.new(0.065420568, 0, 0.647416413, 0)
  389. M1.Size = UDim2.new(0, 173, 0, 39)
  390. M1.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  391. M1.Font = Enum.Font.SourceSans
  392. M1.Text = "Moon 1 [ Use This To Use Below ]"
  393. M1.TextColor3 = Color3.new(0, 0, 0)
  394. M1.TextSize = 14
  395. M1.MouseButton1Down:connect(function()
  396. local mapname = "Moon"
  397. local Event = game:GetService("Workspace")["__REMOTES"]["Load Map"]
  398. Event:FireServer(mapname)
  399. end)
  400.  
  401. P5.Name = "P5"
  402. P5.Parent = bar2
  403. P5.BackgroundColor3 = Color3.new(1, 1, 1)
  404. P5.Position = UDim2.new(0.247663543, 0, 0.493842274, 0)
  405. P5.Size = UDim2.new(0, 92, 0, 39)
  406. P5.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  407. P5.Font = Enum.Font.SourceSans
  408. P5.Text = "Place 5"
  409. P5.TextColor3 = Color3.new(0, 0, 0)
  410. P5.TextSize = 14
  411. P5.MouseButton1Down:connect(function()
  412. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-1534.46313, -33.038002, 887.088318))
  413. end)
  414.  
  415. M2.Name = "M2"
  416. M2.Parent = bar2
  417. M2.BackgroundColor3 = Color3.new(1, 1, 1)
  418. M2.Position = UDim2.new(0.0280373693, 0, 0.817688882, 0)
  419. M2.Size = UDim2.new(0, 92, 0, 39)
  420. M2.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  421. M2.Font = Enum.Font.SourceSans
  422. M2.Text = "Moon 2"
  423. M2.TextColor3 = Color3.new(0, 0, 0)
  424. M2.TextSize = 14
  425. M2.MouseButton1Down:connect(function()
  426. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(80.3468018, 144.27951, -1706.91724))
  427. end)
  428.  
  429. Spawn.Name = "Spawn"
  430. Spawn.Parent = bar2
  431. Spawn.BackgroundColor3 = Color3.new(1, 1, 1)
  432. Spawn.Position = UDim2.new(0.00934579503, 0, 0.0186170191, 0)
  433. Spawn.Size = UDim2.new(0, 92, 0, 39)
  434. Spawn.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  435. Spawn.Font = Enum.Font.SourceSans
  436. Spawn.Text = "Spawn"
  437. Spawn.TextColor3 = Color3.new(0, 0, 0)
  438. Spawn.TextSize = 14
  439. Spawn.MouseButton1Down:connect(function()
  440. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(536.137939, -36.409977, 886.542542))
  441. end)
  442.  
  443. C.Name = "C"
  444. C.Parent = bar2
  445. C.BackgroundColor3 = Color3.new(1, 1, 1)
  446. C.Position = UDim2.new(0.532710254, 0, 0.813751876, 0)
  447. C.Size = UDim2.new(0, 92, 0, 39)
  448. C.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  449. C.Font = Enum.Font.SourceSans
  450. C.Text = "Candy"
  451. C.TextColor3 = Color3.new(0, 0, 0)
  452. C.TextSize = 14
  453. C.MouseButton1Down:connect(function()
  454. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(8.77877998, 144.27951, -1443.94481))
  455. end)
  456.  
  457. X.Name = "X"
  458. X.Parent = bar2
  459. X.BackgroundColor3 = Color3.new(1, 0.0313726, 0.160784)
  460. X.Position = UDim2.new (0.888, 0,0,0.964, 0)
  461. X.Size = UDim2.new(0, 25, 0, 17)
  462. X.Font = Enum.Font.SciFi
  463. X.Text = "X"
  464. X.TextColor3 = Color3.new(0, 0, 0)
  465. X.TextSize = 14
  466. X.MouseButton1Down:connect(function()
  467. bar2.Visible = false
  468. end)
Add Comment
Please, Sign In to add comment