chandreeeee

op script pet simulator

Sep 5th, 2018
11,819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.72 KB | None | 0 0
  1. local petsimulator = Instance.new("ScreenGui")
  2. local box1 = Instance.new("Frame")
  3. local cre = Instance.new("TextLabel")
  4. local highfarm = Instance.new("TextButton")
  5. local mediumfarm = Instance.new("TextButton")
  6. local lowfarm = Instance.new("TextButton")
  7. local SUPERFARM = Instance.new("TextButton")
  8. local close1 = Instance.new("TextButton")
  9. local box2 = Instance.new("Frame")
  10. local egg2 = Instance.new("TextButton")
  11. local egg3 = Instance.new("TextButton")
  12. local egg4 = Instance.new("TextButton")
  13. local egg5 = Instance.new("TextButton")
  14. local egg1 = Instance.new("TextButton")
  15. local name = Instance.new("TextLabel")
  16. local ULALL = Instance.new("TextButton")
  17. local OPEN = Instance.new("TextButton")
  18. --Properties:
  19. petsimulator.Name = "petsimulator"
  20. petsimulator.Parent = game.Players.LocalPlayer.PlayerGui
  21.  
  22. box1.Name = "box1"
  23. box1.Parent = petsimulator
  24. box1.BackgroundColor3 = Color3.new(0, 0, 0)
  25. box1.Position = UDim2.new(-1.49011612e-08, 0, 0.376725823, 0)
  26. box1.Size = UDim2.new(0, 182, 0, 200)
  27. box1.Active = true
  28. box1.Draggable = true
  29.  
  30. cre.Name = "cre"
  31. cre.Parent = box1
  32. cre.BackgroundColor3 = Color3.new(0.568627, 0.392157, 0.784314)
  33. cre.Position = UDim2.new(0, 0, 0.0301507544, 0)
  34. cre.Size = UDim2.new(0, 182, 0, 17)
  35. cre.Font = Enum.Font.SourceSans
  36. cre.Text = "made by a noob"
  37. cre.TextColor3 = Color3.new(0, 0, 0)
  38. cre.TextSize = 14
  39.  
  40. highfarm.Name = "highfarm"
  41. highfarm.Parent = box1
  42. highfarm.BackgroundColor3 = Color3.new(0.333333, 0.666667, 0)
  43. highfarm.Position = UDim2.new(0, 0, 0.336683422, 0)
  44. highfarm.Size = UDim2.new(0, 182, 0, 44)
  45. highfarm.Font = Enum.Font.SourceSans
  46. highfarm.Text = "high farm"
  47. highfarm.TextColor3 = Color3.new(0, 0, 0)
  48. highfarm.TextSize = 14
  49.  
  50. mediumfarm.Name = "mediumfarm"
  51. mediumfarm.Parent = box1
  52. mediumfarm.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  53. mediumfarm.Position = UDim2.new(0, 0, 0.557788968, 0)
  54. mediumfarm.Size = UDim2.new(0, 182, 0, 44)
  55. mediumfarm.Font = Enum.Font.SourceSans
  56. mediumfarm.Text = "medium farm"
  57. mediumfarm.TextColor3 = Color3.new(0, 0, 0)
  58. mediumfarm.TextSize = 14
  59.  
  60. lowfarm.Name = "lowfarm"
  61. lowfarm.Parent = box1
  62. lowfarm.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  63. lowfarm.Position = UDim2.new(0, 0, 0.778894424, 0)
  64. lowfarm.Size = UDim2.new(0, 182, 0, 44)
  65. lowfarm.Font = Enum.Font.SourceSans
  66. lowfarm.Text = "low farm"
  67. lowfarm.TextColor3 = Color3.new(0, 0, 0)
  68. lowfarm.TextSize = 14
  69.  
  70. SUPERFARM.Name = "SUPER FARM"
  71. SUPERFARM.Parent = box1
  72. SUPERFARM.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  73. SUPERFARM.Position = UDim2.new(0, 0, 0.115577891, 0)
  74. SUPERFARM.Size = UDim2.new(0, 182, 0, 44)
  75. SUPERFARM.Font = Enum.Font.SourceSans
  76. SUPERFARM.Text = "SUPER farm"
  77. SUPERFARM.TextColor3 = Color3.new(0, 0, 0)
  78. SUPERFARM.TextSize = 14
  79.  
  80. close1.Name = "close1"
  81. close1.Parent = box1
  82. close1.BackgroundColor3 = Color3.new(0.333333, 1, 0.498039)
  83. close1.Size = UDim2.new(0, 23, 0, 23)
  84. close1.Font = Enum.Font.SourceSans
  85. close1.Text = "X"
  86. close1.TextColor3 = Color3.new(0, 0, 0)
  87. close1.TextSize = 14
  88.  
  89. box2.Name = "box2"
  90. box2.Parent = box1
  91. box2.BackgroundColor3 = Color3.new(1, 1, 1)
  92. box2.Position = UDim2.new(1, 0, -0.215000004, 0)
  93. box2.Size = UDim2.new(0, 82, 0, 243)
  94.  
  95. egg2.Name = "egg2"
  96. egg2.Parent = box2
  97. egg2.BackgroundColor3 = Color3.new(1, 1, 0)
  98. egg2.Position = UDim2.new(0, 0, 0.271604925, 0)
  99. egg2.Size = UDim2.new(0, 82, 0, 44)
  100. egg2.Font = Enum.Font.SourceSans
  101. egg2.Text = "tier11egg"
  102. egg2.TextColor3 = Color3.new(0, 0, 0)
  103. egg2.TextSize = 14
  104.  
  105. egg3.Name = "egg3"
  106. egg3.Parent = box2
  107. egg3.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  108. egg3.Position = UDim2.new(0, 0, 0.448559672, 0)
  109. egg3.Size = UDim2.new(0, 82, 0, 45)
  110. egg3.Font = Enum.Font.SourceSans
  111. egg3.Text = "tier12egg"
  112. egg3.TextColor3 = Color3.new(0, 0, 0)
  113. egg3.TextSize = 14
  114.  
  115. egg4.Name = "egg4"
  116. egg4.Parent = box2
  117. egg4.BackgroundColor3 = Color3.new(0.666667, 1, 0.498039)
  118. egg4.Position = UDim2.new(0, 0, 0.633744895, 0)
  119. egg4.Size = UDim2.new(0, 82, 0, 44)
  120. egg4.Font = Enum.Font.SourceSans
  121. egg4.Text = "tier13egg"
  122. egg4.TextColor3 = Color3.new(0, 0, 0)
  123. egg4.TextSize = 14
  124.  
  125. egg5.Name = "egg5"
  126. egg5.Parent = box2
  127. egg5.BackgroundColor3 = Color3.new(0.666667, 0.666667, 1)
  128. egg5.Position = UDim2.new(0, 0, 0.81893003, 0)
  129. egg5.Size = UDim2.new(0, 82, 0, 44)
  130. egg5.Font = Enum.Font.SourceSans
  131. egg5.Text = "tier14egg"
  132. egg5.TextColor3 = Color3.new(0, 0, 0)
  133. egg5.TextSize = 14
  134.  
  135. egg1.Name = "egg1"
  136. egg1.Parent = box2
  137. egg1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  138. egg1.Position = UDim2.new(0, 0, 0.0864197537, 0)
  139. egg1.Size = UDim2.new(0, 82, 0, 45)
  140. egg1.Font = Enum.Font.SourceSans
  141. egg1.Text = "tier10egg"
  142. egg1.TextColor3 = Color3.new(0, 0, 0)
  143. egg1.TextSize = 14
  144.  
  145. name.Name = "name"
  146. name.Parent = box2
  147. name.BackgroundColor3 = Color3.new(0.666667, 1, 0)
  148. name.Size = UDim2.new(0, 82, 0, 21)
  149. name.Font = Enum.Font.SourceSans
  150. name.Text = "fast buy egg"
  151. name.TextColor3 = Color3.new(0, 0, 0)
  152. name.TextSize = 14
  153.  
  154. ULALL.Name = "ULALL"
  155. ULALL.Parent = box2
  156. ULALL.BackgroundColor3 = Color3.new(1, 0.666667, 0.498039)
  157. ULALL.Position = UDim2.new(1, 0, 0, 0)
  158. ULALL.Size = UDim2.new(0, 71, 0, 243)
  159. ULALL.Font = Enum.Font.SourceSans
  160. ULALL.Text = "UNLOCKALL"
  161. ULALL.TextColor3 = Color3.new(0, 0, 0)
  162. ULALL.TextSize = 14
  163.  
  164. OPEN.Name = "OPEN "
  165. OPEN.Parent = petsimulator
  166. OPEN.BackgroundColor3 = Color3.new(1, 1, 1)
  167. OPEN.Position = UDim2.new(0, 0, 0.77120316, 0)
  168. OPEN.Size = UDim2.new(0, 157, 0, 50)
  169. OPEN.Style = Enum.ButtonStyle.RobloxRoundButton
  170. OPEN.Font = Enum.Font.SourceSans
  171. OPEN.Text = "OPEN GUI"
  172. OPEN.TextColor3 = Color3.new(0, 0, 0)
  173. OPEN.TextSize = 14
  174. -- Scripts:
  175.  
  176. OPEN.MouseButton1Down:connect(function()
  177. box1.Visible = true
  178. end)
  179.  
  180. close1.MouseButton1Down:connect(function()
  181. box1.Visible = false
  182. end)
  183.  
  184. SUPERFARM.MouseButton1Down:connect(function()
  185. local amount = 10000
  186. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  187. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  188. local plr = game:GetService("Players").LocalPlayer
  189. local petids = {}
  190. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  191. local a = #save[plr.Name]["Save"]["Pets"]
  192. local done = "lol meme"
  193. function random(t)
  194. local keys = {}
  195. for key, value in pairs(t) do
  196. keys[#keys+1] = key
  197. end
  198. index = keys[math.random(1, #keys)]
  199. return t[index]
  200. end
  201. for i=1,a do
  202. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  203. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  204. end
  205. a = a - 1
  206. end
  207. function co(b)
  208. local done = b
  209. print("Mining coin: " .. b.Name)
  210. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  211. warn(b.Name .. "- Health: " .. b.Health.Value)
  212. wait(0.2)
  213. coins:FireServer("Mine",b.Name, amount, random(petids))
  214. end
  215. end
  216. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  217. if(done ~= b) then
  218. coroutine.wrap(function()co(b)end)()
  219. end
  220. end
  221. end)
  222.  
  223. highfarm.MouseButton1Down:connect(function()
  224. local amount = 5000
  225. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  226. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  227. local plr = game:GetService("Players").LocalPlayer
  228. local petids = {}
  229. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  230. local a = #save[plr.Name]["Save"]["Pets"]
  231. local done = "lol meme"
  232. function random(t)
  233. local keys = {}
  234. for key, value in pairs(t) do
  235. keys[#keys+1] = key
  236. end
  237. index = keys[math.random(1, #keys)]
  238. return t[index]
  239. end
  240. for i=1,a do
  241. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  242. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  243. end
  244. a = a - 1
  245. end
  246. function co(b)
  247. local done = b
  248. print("Mining coin: " .. b.Name)
  249. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  250. warn(b.Name .. "- Health: " .. b.Health.Value)
  251. wait(0.2)
  252. coins:FireServer("Mine",b.Name, amount, random(petids))
  253. end
  254. end
  255. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  256. if(done ~= b) then
  257. coroutine.wrap(function()co(b)end)()
  258. end
  259. end
  260. end)
  261.  
  262. mediumfarm.MouseButton1Down:connect(function()
  263. local amount = 2000
  264. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  265. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  266. local plr = game:GetService("Players").LocalPlayer
  267. local petids = {}
  268. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  269. local a = #save[plr.Name]["Save"]["Pets"]
  270. local done = "lol meme"
  271. function random(t)
  272. local keys = {}
  273. for key, value in pairs(t) do
  274. keys[#keys+1] = key
  275. end
  276. index = keys[math.random(1, #keys)]
  277. return t[index]
  278. end
  279. for i=1,a do
  280. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  281. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  282. end
  283. a = a - 1
  284. end
  285. function co(b)
  286. local done = b
  287. print("Mining coin: " .. b.Name)
  288. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  289. warn(b.Name .. "- Health: " .. b.Health.Value)
  290. wait(0.2)
  291. coins:FireServer("Mine",b.Name, amount, random(petids))
  292. end
  293. end
  294. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  295. if(done ~= b) then
  296. coroutine.wrap(function()co(b)end)()
  297. end
  298. end
  299. end)
  300.  
  301. lowfarm.MouseButton1Down:connect(function()
  302. local amount = 1000
  303. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  304. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  305. local plr = game:GetService("Players").LocalPlayer
  306. local petids = {}
  307. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  308. local a = #save[plr.Name]["Save"]["Pets"]
  309. local done = "lol meme"
  310. function random(t)
  311. local keys = {}
  312. for key, value in pairs(t) do
  313. keys[#keys+1] = key
  314. end
  315. index = keys[math.random(1, #keys)]
  316. return t[index]
  317. end
  318. for i=1,a do
  319. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  320. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  321. end
  322. a = a - 1
  323. end
  324. function co(b)
  325. local done = b
  326. print("Mining coin: " .. b.Name)
  327. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  328. warn(b.Name .. "- Health: " .. b.Health.Value)
  329. wait(0.2)
  330. coins:FireServer("Mine",b.Name, amount, random(petids))
  331. end
  332. end
  333. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  334. if(done ~= b) then
  335. coroutine.wrap(function()co(b)end)()
  336. end
  337. end
  338. end)
  339.  
  340. ULALL.MouseButton1Down:connect(function()
  341. local barriers_table = { "Barrier1", "Barrier2", "Barrier3", "Barrier4", "Barrier5" }
  342. local barriers = game:GetService("Workspace").__THINGS["Barriers"]
  343. barriers:Destroy()
  344. end)
  345.  
  346. egg1.MouseButton1Down:connect(function()
  347. local A_1 = "Buy"
  348. local A_2 = "Egg"
  349. local A_3 = "Tier 10"
  350. local Event = game:GetService("Workspace")["__REMOTES"].Shop
  351. Event:InvokeServer(A_1, A_2, A_3)
  352. end)
  353.  
  354. egg2.MouseButton1Down:connect(function()
  355. local A_1 = "Buy"
  356. local A_2 = "Egg"
  357. local A_3 = "Tier 11"
  358. local Event = game:GetService("Workspace")["__REMOTES"].Shop
  359. Event:InvokeServer(A_1, A_2, A_3)
  360. end)
  361.  
  362. egg3.MouseButton1Down:connect(function()
  363. local A_1 = "Buy"
  364. local A_2 = "Egg"
  365. local A_3 = "Tier 12"
  366. local Event = game:GetService("Workspace")["__REMOTES"].Shop
  367. Event:InvokeServer(A_1, A_2, A_3)
  368. end)
  369.  
  370. egg4.MouseButton1Down:connect(function()
  371. local A_1 = "Buy"
  372. local A_2 = "Egg"
  373. local A_3 = "Tier 13"
  374. local Event = game:GetService("Workspace")["__REMOTES"].Shop
  375. Event:InvokeServer(A_1, A_2, A_3)
  376. end)
  377.  
  378. egg5.MouseButton1Down:connect(function()
  379. local A_1 = "Buy"
  380. local A_2 = "Egg"
  381. local A_3 = "Tier 14"
  382. local Event = game:GetService("Workspace")["__REMOTES"].Shop
  383. Event:InvokeServer(A_1, A_2, A_3)
  384. end)
Add Comment
Please, Sign In to add comment