Advertisement
Guest User

Pet Simulator Script

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