arfiakbar123

Pet Sim 2 Script Update

Oct 3rd, 2018
1,720
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. -- By:Arfiakbar
  2. -- Version: V3
  3.  
  4. local Main = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextButton = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local TextLabel_2 = Instance.new("TextLabel")
  9. local TextLabel_3 = Instance.new("TextLabel")
  10. local TextButton_2 = Instance.new("TextButton")
  11. local TextButton_3 = Instance.new("TextButton")
  12. local TextLabel_4 = Instance.new("TextLabel")
  13. local TextLabel_5 = Instance.new("TextLabel")
  14.  
  15. Main.Name = "Main"
  16. Main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18. Frame.Parent = Main
  19. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  20. Frame.Position = UDim2.new(0, 0, 0.585755885, 0)
  21. Frame.Size = UDim2.new(0, 216, 0, 285)
  22. Frame.Style = Enum.FrameStyle.RobloxSquare
  23.  
  24. TextButton.Parent = Frame
  25. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  26. TextButton.BorderColor3 = Color3.new(0.666667, 0, 0)
  27. TextButton.Position = UDim2.new(-0.00462962966, 0, 0.273684204, 0)
  28. TextButton.Size = UDim2.new(0, 200, 0, 25)
  29. TextButton.Font = Enum.Font.SourceSans
  30. TextButton.Text = "Teleport Ke Moon"
  31. TextButton.TextColor3 = Color3.new(1, 1, 1)
  32. TextButton.TextSize = 14
  33. TextButton.MouseButton1Down:connect(function()
  34. local mapname = "Moon"
  35. local Event = game:GetService("Workspace")["__REMOTES"]["Load Map"]
  36. Event:FireServer(mapname)
  37. end)
  38.  
  39. TextLabel.Parent = Frame
  40. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  41. TextLabel.BorderColor3 = Color3.new(0.666667, 0, 0)
  42. TextLabel.Position = UDim2.new(-0.0324074067, 0, -0.150877193, 0)
  43. TextLabel.Size = UDim2.new(0, 215, 0, 32)
  44. TextLabel.Font = Enum.Font.SourceSans
  45. TextLabel.Text = "PetSimulator"
  46. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  47. TextLabel.TextSize = 14
  48. TextLabel.TextStrokeColor3 = Color3.new(0.666667, 0, 0)
  49.  
  50. TextLabel_2.Parent = Frame
  51. TextLabel_2.BackgroundColor3 = Color3.new(0, 0, 0)
  52. TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
  53. TextLabel_2.Position = UDim2.new(0.0231481474, 0, -0.126315787, 0)
  54. TextLabel_2.Size = UDim2.new(0, 35, 0, 19)
  55. TextLabel_2.Font = Enum.Font.SourceSans
  56. TextLabel_2.Text = "V3"
  57. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  58. TextLabel_2.TextSize = 14
  59.  
  60. TextLabel_3.Parent = Frame
  61. TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
  62. TextLabel_3.BorderColor3 = Color3.new(0.666667, 0, 0)
  63. TextLabel_3.Position = UDim2.new(-0.0379129127, 0, 0.957894802, 0)
  64. TextLabel_3.Size = UDim2.new(0, 83, 0, 20)
  65. TextLabel_3.Font = Enum.Font.SourceSans
  66. TextLabel_3.Text = "By:ArfiAkbar"
  67. TextLabel_3.TextColor3 = Color3.new(0, 0, 0)
  68. TextLabel_3.TextSize = 14
  69.  
  70. TextButton_2.Parent = Frame
  71. TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
  72. TextButton_2.BorderColor3 = Color3.new(0.666667, 0, 0)
  73. TextButton_2.Position = UDim2.new(-0.0231481493, 0, 0.715789497, 0)
  74. TextButton_2.Size = UDim2.new(0, 200, 0, 25)
  75. TextButton_2.Font = Enum.Font.SourceSans
  76. TextButton_2.Text = "Panen Uang"
  77. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  78. TextButton_2.TextSize = 14
  79. TextButton_2.MouseButton1Down:connect(function()
  80. local amount = 1000 -- experiment with this value, 1000 is maximum and for pets with high levels
  81. local coins = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Coins")
  82. local save = game.Workspace:WaitForChild("__REMOTES"):WaitForChild("Get Other Stats"):InvokeServer()
  83. local plr = game:GetService("Players").LocalPlayer
  84. local petids = {}
  85. local pets = game:GetService("Workspace")["__REMOTES"].Pets
  86. local a = #save[plr.Name]["Save"]["Pets"]
  87. local done = "lol meme"
  88. function random(t)
  89. local keys = {}
  90. for key, value in pairs(t) do
  91. keys[#keys+1] = key
  92. end
  93. index = keys[math.random(1, #keys)]
  94. return t[index]
  95. end
  96. for i=1,a do
  97. if(save[plr.Name]["Save"]["Pets"][a].e == true) then
  98. table.insert(petids, save[plr.Name]["Save"]["Pets"][a].id)
  99. end
  100. a = a - 1
  101. end
  102. function co(b)
  103. local done = b
  104. print("Mining coin: " .. b.Name)
  105. while(b:FindFirstChild"Health" ~= nil and b:FindFirstChild"Health".Value > 0) do
  106. warn(b.Name .. "- Health: " .. b.Health.Value)
  107. wait(0.2)
  108. coins:FireServer("Mine",b.Name, amount, random(petids))
  109. end
  110. end
  111. for _,b in next, workspace.__THINGS.Coins:GetChildren() do
  112. if(done ~= b) then
  113. coroutine.wrap(function()co(b)end)()
  114. end
  115. end
  116. end)
  117.  
  118. TextButton_3.Parent = Frame
  119. TextButton_3.BackgroundColor3 = Color3.new(0, 0, 0)
  120. TextButton_3.BorderColor3 = Color3.new(0.666667, 0, 0)
  121. TextButton_3.Position = UDim2.new(0, 0, 0.424561411, 0)
  122. TextButton_3.Size = UDim2.new(0, 200, 0, 25)
  123. TextButton_3.Font = Enum.Font.SourceSans
  124. TextButton_3.Text = "Teleport Ke Candy"
  125. TextButton_3.TextColor3 = Color3.new(1, 1, 1)
  126. TextButton_3.TextSize = 14
  127. TextButton_3.MouseButton1Down:connect(function()
  128. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(8.77877998, 144.27951, -1443.94481))
  129. end)
  130.  
  131. TextLabel_4.Parent = Frame
  132. TextLabel_4.BackgroundColor3 = Color3.new(0, 0, 0)
  133. TextLabel_4.BorderColor3 = Color3.new(0.666667, 0, 0)
  134. TextLabel_4.Position = UDim2.new(0.0879629254, 0, 0.0947368369, 0)
  135. TextLabel_4.Size = UDim2.new(0, 153, 0, 20)
  136. TextLabel_4.Font = Enum.Font.SourceSans
  137. TextLabel_4.Text = "Tp"
  138. TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
  139. TextLabel_4.TextSize = 14
  140. TextLabel_4.TextStrokeColor3 = Color3.new(0.666667, 0, 0)
  141.  
  142. TextLabel_5.Parent = Frame
  143. TextLabel_5.BackgroundColor3 = Color3.new(0, 0, 0)
  144. TextLabel_5.BorderColor3 = Color3.new(0.666667, 0, 0)
  145. TextLabel_5.Position = UDim2.new(0.0833332986, 0, 0.578947365, 0)
  146. TextLabel_5.Size = UDim2.new(0, 153, 0, 20)
  147. TextLabel_5.Font = Enum.Font.SourceSans
  148. TextLabel_5.Text = "Panen"
  149. TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
  150. TextLabel_5.TextSize = 14
  151. TextLabel_5.TextStrokeColor3 = Color3.new(0.666667, 0, 0)
Advertisement
Add Comment
Please, Sign In to add comment