Advertisement
Adel987654321

Pet Simulator Gui 2

Dec 11th, 2019
1,876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.79 KB | None | 0 0
  1. Made By mamdoh987 { Don't Copy this }
  2.  
  3. local PetGui = Instance.new("ScreenGui")
  4. local MainFrame = Instance.new("Frame")
  5. local TitleGui = Instance.new("TextLabel")
  6. local TutupMain = Instance.new("TextButton")
  7. local TundaMain = Instance.new("TextButton")
  8. local MoneyFarm = Instance.new("TextButton")
  9. local SpeedValue = Instance.new("TextBox")
  10. local SpeedHack = Instance.new("TextButton")
  11. local Toko = Instance.new("TextButton")
  12. local TempatHidup = Instance.new("TextButton")
  13. local Area1 = Instance.new("TextButton")
  14. local Area2 = Instance.new("TextButton")
  15. local Area3 = Instance.new("TextButton")
  16. local Area4 = Instance.new("TextButton")
  17. local Area5 = Instance.new("TextButton")
  18. local ImageLabel = Instance.new("ImageLabel")
  19. local LoginFrame = Instance.new("Frame")
  20. local LoginTitle = Instance.new("TextLabel")
  21. local KeyBox = Instance.new("TextBox")
  22. local KeySubmit = Instance.new("TextButton")
  23. local TundaFrame = Instance.new("Frame")
  24. local BukaFrame = Instance.new("TextButton")
  25.  
  26. -- Properties
  27.  
  28. PetGui.Name = "PetGui"
  29. PetGui.Parent = game.CoreGui
  30.  
  31. MainFrame.Name = "MainFrame"
  32. MainFrame.Parent = PetGui
  33. MainFrame.Active = true
  34. MainFrame.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  35. MainFrame.BackgroundTransparency = 0.20000000298023
  36. MainFrame.Position = UDim2.new(0.210526317, 0, 0.523046136, 0)
  37. MainFrame.Size = UDim2.new(0, 470, 0, 269)
  38. MainFrame.Visible = false
  39. MainFrame.Draggable = true
  40.  
  41. TitleGui.Name = "TitleGui"
  42. TitleGui.Parent = MainFrame
  43. TitleGui.BackgroundColor3 = Color3.new(0, 0, 0)
  44. TitleGui.BackgroundTransparency = 0.20000000298023
  45. TitleGui.Size = UDim2.new(0, 470, 0, 38)
  46. TitleGui.Font = Enum.Font.SourceSansBold
  47. TitleGui.Text = "Pet Simulator Gui"
  48. TitleGui.TextColor3 = Color3.new(1, 1, 1)
  49. TitleGui.TextSize = 25
  50.  
  51. TutupMain.Name = "TutupMain"
  52. TutupMain.Parent = MainFrame
  53. TutupMain.BackgroundColor3 = Color3.new(0, 0, 0)
  54. TutupMain.BorderSizePixel = 0
  55. TutupMain.Position = UDim2.new(0.891489387, 0, 0, 0)
  56. TutupMain.Size = UDim2.new(0, 51, 0, 38)
  57. TutupMain.Font = Enum.Font.SourceSansBold
  58. TutupMain.Text = "X"
  59. TutupMain.TextColor3 = Color3.new(1, 0, 0)
  60. TutupMain.TextSize = 25
  61. TutupMain.MouseButton1Down:connect(function()
  62. MainFrame.Visible = false
  63. end)
  64.  
  65. TundaMain.Name = "TundaMain"
  66. TundaMain.Parent = MainFrame
  67. TundaMain.BackgroundColor3 = Color3.new(0, 0, 0)
  68. TundaMain.BorderSizePixel = 0
  69. TundaMain.Position = UDim2.new(0.765957475, 0, 0, 0)
  70. TundaMain.Size = UDim2.new(0, 51, 0, 38)
  71. TundaMain.Font = Enum.Font.SourceSansBold
  72. TundaMain.Text = "-"
  73. TundaMain.TextColor3 = Color3.new(1, 0, 0)
  74. TundaMain.TextSize = 25
  75. TundaMain.MouseButton1Down:connect(function()
  76. MainFrame.Visible = false
  77. TundaFrame.Visible = true
  78. end)
  79.  
  80. MoneyFarm.Name = "MoneyFarm"
  81. MoneyFarm.Parent = MainFrame
  82. MoneyFarm.BackgroundColor3 = Color3.new(0, 0, 0)
  83. MoneyFarm.Position = UDim2.new(0.0446808524, 0, 0.208178446, 0)
  84. MoneyFarm.Size = UDim2.new(0, 171, 0, 50)
  85. MoneyFarm.Font = Enum.Font.Cartoon
  86. MoneyFarm.Text = "Money Farm"
  87. MoneyFarm.TextColor3 = Color3.new(1, 1, 1)
  88. MoneyFarm.TextSize = 25
  89. MoneyFarm.MouseButton1Down:connect(function()
  90. local amount = 1000 -- experiment with this value, 1000 is maximum and for pets with high levels
  91. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  92. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  93. local plr = game:GetService("Players").LocalPlayer
  94. local petids = {}
  95. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  96. local a = #save[plr.Name]["Save"]["Pets"]
  97. local done = "lol meme"
  98. function random(t)
  99. local keys = {}
  100. for key, value in pairs(t) do
  101. keys[#keys+1] = key
  102. end
  103. index = keys[math.random(1, #keys)]
  104. return t[index]
  105. end
  106. for i=1,a do
  107. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  108. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  109. end
  110. a = a - 1
  111. end
  112. function co(b)
  113. local done = b
  114. print("Mining coin: " .. b.Name)
  115. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  116. warn(b.Name .. "- Health: " .. b.Health.Value)
  117. wait(0.2)
  118. coins:FireServer("Mine",b.Name, amount, random(petids))
  119. end
  120. end
  121. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  122. if(done ~= b) then
  123. coroutine.wrap(function()co(b)end)()
  124. end
  125. end
  126. end)
  127.  
  128. SpeedValue.Name = "SpeedValue"
  129. SpeedValue.Parent = MainFrame
  130. SpeedValue.BackgroundColor3 = Color3.new(0, 0, 0)
  131. SpeedValue.Position = UDim2.new(0.514893591, 0, 0.208178446, 0)
  132. SpeedValue.Size = UDim2.new(0, 208, 0, 50)
  133. SpeedValue.Font = Enum.Font.Cartoon
  134. SpeedValue.Text = "Speed Value"
  135. SpeedValue.TextColor3 = Color3.new(1, 1, 1)
  136. SpeedValue.TextSize = 25
  137.  
  138. SpeedHack.Name = "SpeedHack"
  139. SpeedHack.Parent = MainFrame
  140. SpeedHack.BackgroundColor3 = Color3.new(0, 0, 0)
  141. SpeedHack.Position = UDim2.new(0.597872376, 0, 0.434944212, 0)
  142. SpeedHack.Size = UDim2.new(0, 129, 0, 50)
  143. SpeedHack.Font = Enum.Font.Cartoon
  144. SpeedHack.Text = "Submit"
  145. SpeedHack.TextColor3 = Color3.new(1, 1, 1)
  146. SpeedHack.TextSize = 25
  147. SpeedHack.MouseButton1Down:connect(function()
  148. while true do
  149. wait()
  150. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = SpeedValue.Text
  151. end
  152. end)
  153.  
  154. Toko.Name = "Toko"
  155. Toko.Parent = MainFrame
  156. Toko.BackgroundColor3 = Color3.new(0, 0, 0)
  157. Toko.Position = UDim2.new(0.0234042555, 0, 0.434944242, 0)
  158. Toko.Size = UDim2.new(0, 200, 0, 50)
  159. Toko.Font = Enum.Font.Cartoon
  160. Toko.Text = "Store / Toko"
  161. Toko.TextColor3 = Color3.new(1, 1, 1)
  162. Toko.TextSize = 25
  163. Toko.MouseButton1Down:connect(function()
  164. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(719.225952, -33.6261177, 894.049072))
  165. end)
  166.  
  167. TempatHidup.Name = "TempatHidup"
  168. TempatHidup.Parent = MainFrame
  169. TempatHidup.BackgroundColor3 = Color3.new(0, 0, 0)
  170. TempatHidup.Position = UDim2.new(0.0446808524, 0, 0.665427506, 0)
  171. TempatHidup.Size = UDim2.new(0, 113, 0, 36)
  172. TempatHidup.Font = Enum.Font.Cartoon
  173. TempatHidup.Text = "Spawn"
  174. TempatHidup.TextColor3 = Color3.new(1, 1, 1)
  175. TempatHidup.TextSize = 25
  176. TempatHidup.MouseButton1Down:connect(function()
  177. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(536.137939, -36.409977, 886.542542))
  178. end)
  179.  
  180. Area1.Name = "Area1"
  181. Area1.Parent = MainFrame
  182. Area1.BackgroundColor3 = Color3.new(0, 0, 0)
  183. Area1.Position = UDim2.new(0.38085106, 0, 0.665427506, 0)
  184. Area1.Size = UDim2.new(0, 109, 0, 36)
  185. Area1.Font = Enum.Font.Cartoon
  186. Area1.Text = "Area 1"
  187. Area1.TextColor3 = Color3.new(1, 1, 1)
  188. Area1.TextSize = 25
  189. Area1.MouseButton1Down:connect(function()
  190. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(0.295806587, -37.0378761, 890.214355))
  191. end)
  192.  
  193. Area2.Name = "Area2"
  194. Area2.Parent = MainFrame
  195. Area2.BackgroundColor3 = Color3.new(0, 0, 0)
  196. Area2.Position = UDim2.new(0.693617046, 0, 0.665427506, 0)
  197. Area2.Size = UDim2.new(0, 110, 0, 36)
  198. Area2.Font = Enum.Font.Cartoon
  199. Area2.Text = "Area 2"
  200. Area2.TextColor3 = Color3.new(1, 1, 1)
  201. Area2.TextSize = 25
  202. Area2.MouseButton1Down:connect(function()
  203. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-374.2388, -37.0378761, 885.253296))
  204. end)
  205.  
  206. Area3.Name = "Area3"
  207. Area3.Parent = MainFrame
  208. Area3.BackgroundColor3 = Color3.new(0, 0, 0)
  209. Area3.Position = UDim2.new(0.0446808524, 0, 0.843866169, 0)
  210. Area3.Size = UDim2.new(0, 113, 0, 36)
  211. Area3.Font = Enum.Font.Cartoon
  212. Area3.Text = "Area 3"
  213. Area3.TextColor3 = Color3.new(1, 1, 1)
  214. Area3.TextSize = 25
  215. Area3.MouseButton1Down:connect(function()
  216. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-760.199097, -37.0378761, 880.302246))
  217. end)
  218.  
  219. Area4.Name = "Area4"
  220. Area4.Parent = MainFrame
  221. Area4.BackgroundColor3 = Color3.new(0, 0, 0)
  222. Area4.Position = UDim2.new(0.38085106, 0, 0.843866169, 0)
  223. Area4.Size = UDim2.new(0, 109, 0, 36)
  224. Area4.Font = Enum.Font.Cartoon
  225. Area4.Text = "Area 4"
  226. Area4.TextColor3 = Color3.new(1, 1, 1)
  227. Area4.TextSize = 25
  228. Area4.MouseButton1Down:connect(function()
  229. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-1140.22437, -37.0378761, 885.195129))
  230. end)
  231.  
  232. Area5.Name = "Area5"
  233. Area5.Parent = MainFrame
  234. Area5.BackgroundColor3 = Color3.new(0, 0, 0)
  235. Area5.Position = UDim2.new(0.693617046, 0, 0.843866169, 0)
  236. Area5.Size = UDim2.new(0, 110, 0, 36)
  237. Area5.Font = Enum.Font.Cartoon
  238. Area5.Text = "Area 5"
  239. Area5.TextColor3 = Color3.new(1, 1, 1)
  240. Area5.TextSize = 25
  241. Area5.MouseButton1Down:connect(function()
  242. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-1534.46313, -33.038002, 887.088318))
  243. end)
  244.  
  245. ImageLabel.Parent = MainFrame
  246. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  247. ImageLabel.BackgroundTransparency = 1
  248. ImageLabel.Position = UDim2.new(0.023814857, 0, -0.00111746788, 0)
  249. ImageLabel.Size = UDim2.new(0, 123, 0, 38)
  250. ImageLabel.Image = "rbxassetid://2216228868"
  251.  
  252. LoginFrame.Name = "LoginFrame"
  253. LoginFrame.Parent = PetGui
  254. LoginFrame.Active = true
  255. LoginFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  256. LoginFrame.Position = UDim2.new(0.570972919, 0, 0.615230441, 0)
  257. LoginFrame.Size = UDim2.new(0, 240, 0, 310)
  258. LoginFrame.Style = Enum.FrameStyle.RobloxRound
  259. LoginFrame.Draggable = true
  260.  
  261. LoginTitle.Name = "LoginTitle"
  262. LoginTitle.Parent = LoginFrame
  263. LoginTitle.BackgroundColor3 = Color3.new(0, 0, 0)
  264. LoginTitle.BackgroundTransparency = 1
  265. LoginTitle.Position = UDim2.new(0.0541666672, 0, 0.0419354849, 0)
  266. LoginTitle.Size = UDim2.new(0, 200, 0, 50)
  267. LoginTitle.Font = Enum.Font.SourceSansBold
  268. LoginTitle.Text = "Login "
  269. LoginTitle.TextColor3 = Color3.new(1, 1, 1)
  270. LoginTitle.TextSize = 25
  271.  
  272. KeyBox.Name = "KeyBox"
  273. KeyBox.Parent = LoginFrame
  274. KeyBox.BackgroundColor3 = Color3.new(0, 0, 0)
  275. KeyBox.Position = UDim2.new(0.0541666672, 0, 0.338709682, 0)
  276. KeyBox.Size = UDim2.new(0, 200, 0, 50)
  277. KeyBox.Font = Enum.Font.Code
  278. KeyBox.Text = "Key"
  279. KeyBox.TextColor3 = Color3.new(1, 1, 1)
  280. KeyBox.TextSize = 25
  281.  
  282. KeySubmit.Name = "KeySubmit"
  283. KeySubmit.Parent = LoginFrame
  284. KeySubmit.BackgroundColor3 = Color3.new(0, 0, 0)
  285. KeySubmit.Position = UDim2.new(0.0291666649, 0, 0.577419341, 0)
  286. KeySubmit.Size = UDim2.new(0, 211, 0, 49)
  287. KeySubmit.Font = Enum.Font.Cartoon
  288. KeySubmit.Text = "Login"
  289. KeySubmit.TextColor3 = Color3.new(1, 1, 1)
  290. KeySubmit.TextSize = 25
  291. KeySubmit.MouseButton1Down:connect(function()
  292. if KeyBox.Text == "Anwarun Gui" then
  293. LoginFrame.Visible = false
  294. MainFrame.Visible = true
  295. end
  296. end)
  297.  
  298. TundaFrame.Name = "TundaFrame"
  299. TundaFrame.Parent = PetGui
  300. TundaFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  301. TundaFrame.Position = UDim2.new(0, 0, 0.831663311, 0)
  302. TundaFrame.Size = UDim2.new(0, 134, 0, 54)
  303. TundaFrame.Visible = false
  304.  
  305. BukaFrame.Name = "BukaFrame"
  306. BukaFrame.Parent = TundaFrame
  307. BukaFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  308. BukaFrame.Size = UDim2.new(0, 134, 0, 54)
  309. BukaFrame.Font = Enum.Font.SourceSansBold
  310. BukaFrame.Text = "Open / Buka"
  311. BukaFrame.TextColor3 = Color3.new(1, 1, 1)
  312. BukaFrame.TextSize = 25
  313. BukaFrame.MouseButton1Down:connect(function()
  314. TundaFrame.Visible = false
  315. MainFrame.Visible = true
  316. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement