Advertisement
Guest User

PvZ Battlegrounds/GvG Battlegrounds Script

a guest
Feb 26th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.24 KB | None | 0 0
  1. -- GUI made by martisBU
  2. -- Script made by Flinn
  3. -- Objects
  4.  
  5. local ScreenGui = Instance.new("ScreenGui")
  6. local Frame = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local TextBox = Instance.new("TextBox")
  9. local TextButton = Instance.new("TextButton")
  10. local TextBox_2 = Instance.new("TextBox")
  11. local TextBox_3 = Instance.new("TextBox")
  12. local TextBox_4 = Instance.new("TextBox")
  13. local TextBox_5 = Instance.new("TextBox")
  14. local TextBox_6 = Instance.new("TextBox")
  15. local TextBox_7 = Instance.new("TextBox")
  16. local TextBox_8 = Instance.new("TextBox")
  17. local TextBox_9 = Instance.new("TextBox")
  18. local TextBox_10 = Instance.new("TextBox")
  19. local TextButton_2 = Instance.new("TextButton")
  20.  
  21. -- Properties
  22.  
  23. ScreenGui.Parent = game.CoreGui
  24.  
  25. Frame.Parent = ScreenGui
  26. Frame.BackgroundColor3 = Color3.new(0.109804, 0.690196, 0.917647)
  27. Frame.BorderSizePixel = 2
  28. Frame.Position = UDim2.new(0, 535, 0, 170)
  29. Frame.Size = UDim2.new(0, 299, 0, 575)
  30. Frame.Active = true
  31. Frame.Draggable = true
  32.  
  33. Frame_2.Parent = Frame
  34. Frame_2.BackgroundColor3 = Color3.new(0, 0.564706, 0.917647)
  35. Frame_2.BorderSizePixel = 2
  36. Frame_2.Size = UDim2.new(0, 299, 0, 29)
  37.  
  38. TextBox.Parent = Frame
  39. TextBox.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  40. TextBox.BorderSizePixel = 2
  41. TextBox.Position = UDim2.new(0, 16, 0, 54)
  42. TextBox.Size = UDim2.new(0, 266, 0, 26)
  43. TextBox.Font = Enum.Font.SourceSansBold
  44. TextBox.TextColor3 = Color3.new(1, 1, 1)
  45. TextBox.TextSize = 14
  46. TextBox.Text = "Enter SunTokens"
  47. TextBox.PlaceholderText = "Enter SunTokens"
  48. TextBox.PlaceholderColor3 = Color3.new(1,1,1)
  49.  
  50. TextButton.Parent = Frame
  51. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  52. TextButton.BackgroundTransparency = 1
  53. TextButton.Position = UDim2.new(0, 269, 0, 0)
  54. TextButton.Size = UDim2.new(0, 30, 0, 29)
  55. TextButton.Font = Enum.Font.SourceSansBold
  56. TextButton.Text = "X"
  57. TextButton.TextSize = 30
  58.  
  59. TextBox_2.Parent = Frame
  60. TextBox_2.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  61. TextBox_2.BorderSizePixel = 2
  62. TextBox_2.Position = UDim2.new(0, 16, 0, 95)
  63. TextBox_2.Size = UDim2.new(0, 266, 0, 26)
  64. TextBox_2.Font = Enum.Font.SourceSansBold
  65. TextBox_2.TextColor3 = Color3.new(1, 1, 1)
  66. TextBox_2.TextSize = 14
  67. TextBox_2.Text = "Enter Diamonds"
  68. TextBox_2.PlaceholderText = "Enter Diamonds"
  69. TextBox_2.PlaceholderColor3 = Color3.new(1,1,1)
  70.  
  71. TextBox_3.Parent = Frame
  72. TextBox_3.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  73. TextBox_3.BorderSizePixel = 2
  74. TextBox_3.Position = UDim2.new(0, 16, 0, 134)
  75. TextBox_3.Size = UDim2.new(0, 266, 0, 26)
  76. TextBox_3.Font = Enum.Font.SourceSansBold
  77. TextBox_3.TextColor3 = Color3.new(1, 1, 1)
  78. TextBox_3.TextSize = 14
  79. TextBox_3.Text = "Enter Cookies"
  80. TextBox_3.PlaceholderText = "Enter Cookies"
  81. TextBox_3.PlaceholderColor3 = Color3.new(1,1,1)
  82.  
  83. TextBox_4.Parent = Frame
  84. TextBox_4.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  85. TextBox_4.BorderSizePixel = 2
  86. TextBox_4.Position = UDim2.new(0, 16, 0, 176)
  87. TextBox_4.Size = UDim2.new(0, 266, 0, 26)
  88. TextBox_4.Font = Enum.Font.SourceSansBold
  89. TextBox_4.TextColor3 = Color3.new(1, 1, 1)
  90. TextBox_4.TextSize = 14
  91. TextBox_4.Text = "Enter Treats"
  92. TextBox_4.PlaceholderText = "Enter Treats"
  93. TextBox_4.PlaceholderColor3 = Color3.new(1,1,1)
  94.  
  95. TextBox_5.Parent = Frame
  96. TextBox_5.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  97. TextBox_5.BorderSizePixel = 2
  98. TextBox_5.Position = UDim2.new(0, 16, 0, 218)
  99. TextBox_5.Size = UDim2.new(0, 266, 0, 26)
  100. TextBox_5.Font = Enum.Font.SourceSansBold
  101. TextBox_5.TextColor3 = Color3.new(1, 1, 1)
  102. TextBox_5.TextSize = 14
  103. TextBox_5.Text = "Enter XP"
  104. TextBox_5.PlaceholderText = "Enter XP"
  105. TextBox_5.PlaceholderColor3 = Color3.new(1,1,1)
  106.  
  107. TextBox_6.Parent = Frame
  108. TextBox_6.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  109. TextBox_6.BorderSizePixel = 2
  110. TextBox_6.Position = UDim2.new(0, 17, 0, 262)
  111. TextBox_6.Size = UDim2.new(0, 266, 0, 26)
  112. TextBox_6.Font = Enum.Font.SourceSansBold
  113. TextBox_6.TextColor3 = Color3.new(1, 1, 1)
  114. TextBox_6.TextSize = 14
  115. TextBox_6.Text = "Enter WalkSpeed"
  116. TextBox_6.PlaceholderText = "Enter WalkSpeed"
  117. TextBox_6.PlaceholderColor3 = Color3.new(1,1,1)
  118.  
  119. TextBox_7.Parent = Frame
  120. TextBox_7.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  121. TextBox_7.BorderSizePixel = 2
  122. TextBox_7.Position = UDim2.new(0, 17, 0, 304)
  123. TextBox_7.Size = UDim2.new(0, 266, 0, 26)
  124. TextBox_7.Font = Enum.Font.SourceSansBold
  125. TextBox_7.TextColor3 = Color3.new(1, 1, 1)
  126. TextBox_7.TextSize = 14
  127. TextBox_7.Text = "Enter Wins"
  128. TextBox_7.PlaceholderText = "Enter Wins"
  129. TextBox_7.PlaceholderColor3 = Color3.new(1,1,1)
  130.  
  131. TextBox_8.Parent = Frame
  132. TextBox_8.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  133. TextBox_8.BorderSizePixel = 2
  134. TextBox_8.Position = UDim2.new(0, 17, 0, 347)
  135. TextBox_8.Size = UDim2.new(0, 266, 0, 26)
  136. TextBox_8.Font = Enum.Font.SourceSansBold
  137. TextBox_8.TextColor3 = Color3.new(1, 1, 1)
  138. TextBox_8.TextSize = 14
  139. TextBox_8.Text = "Enter Average KD"
  140. TextBox_8.PlaceholderText = "Enter Average KD"
  141. TextBox_8.PlaceholderColor3 = Color3.new(1,1,1)
  142.  
  143. TextBox_9.Parent = Frame
  144. TextBox_9.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  145. TextBox_9.BorderSizePixel = 2
  146. TextBox_9.Position = UDim2.new(0, 17, 0, 393)
  147. TextBox_9.Size = UDim2.new(0, 266, 0, 26)
  148. TextBox_9.Font = Enum.Font.SourceSansBold
  149. TextBox_9.TextColor3 = Color3.new(1, 1, 1)
  150. TextBox_9.TextSize = 14
  151. TextBox_9.Text = "Enter Level"
  152. TextBox_9.PlaceholderText = "Enter Level"
  153. TextBox_9.PlaceholderColor3 = Color3.new(1,1,1)
  154.  
  155. TextBox_10.Parent = Frame
  156. TextBox_10.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  157. TextBox_10.BorderSizePixel = 2
  158. TextBox_10.Position = UDim2.new(0, 17, 0, 437)
  159. TextBox_10.Size = UDim2.new(0, 266, 0, 26)
  160. TextBox_10.Font = Enum.Font.SourceSansBold
  161. TextBox_10.TextColor3 = Color3.new(1, 1, 1)
  162. TextBox_10.TextSize = 14
  163. TextBox_10.Text = "Enter Kills"
  164. TextBox_10.PlaceholderText = "Enter Kills"
  165. TextBox_10.PlaceholderColor3 = Color3.new(1,1,1)
  166.  
  167. TextButton_2.Parent = Frame
  168. TextButton_2.BackgroundColor3 = Color3.new(0, 0.490196, 0.917647)
  169. TextButton_2.BorderSizePixel = 2
  170. TextButton_2.Position = UDim2.new(0, 50, 0, 493)
  171. TextButton_2.Size = UDim2.new(0, 200, 0, 50)
  172. TextButton_2.Font = Enum.Font.SourceSansBold
  173. TextButton_2.Text = "Set Stats"
  174. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  175. TextButton_2.TextSize = 50
  176.  
  177. TextButton.MouseButton1Click:connect(function()
  178. ScreenGui:Destroy()
  179. end)
  180.  
  181. TextBox.Changed:connect(function()
  182. num = tonumber(TextBox.Text)
  183. end)
  184.  
  185. TextBox_2.Changed:connect(function()
  186. num2 = tonumber(TextBox_2.Text)
  187. end)
  188.  
  189. TextBox_3.Changed:connect(function()
  190. num3 = tonumber(TextBox_3.Text)
  191. end)
  192.  
  193. TextBox_4.Changed:connect(function()
  194. num4 = tonumber(TextBox_4.Text)
  195. end)
  196.  
  197. TextBox_5.Changed:connect(function()
  198. num5 = tonumber(TextBox_5.Text)
  199. end)
  200.  
  201. TextBox_6.Changed:connect(function()
  202. num6 = tonumber(TextBox_6.Text)
  203. end)
  204.  
  205. TextBox_7.Changed:connect(function()
  206. num7 = tonumber(TextBox_7.Text)
  207. end)
  208.  
  209. TextBox_8.Changed:connect(function()
  210. num8 = tonumber(TextBox_8.Text)
  211. end)
  212.  
  213. TextBox_9.Changed:connect(function()
  214. num9 = tonumber(TextBox_9.Text)
  215. end)
  216.  
  217. TextBox_10.Changed:connect(function()
  218. num10 = tonumber(TextBox_10.Text)
  219. end)
  220.  
  221. TextButton_2.MouseButton1Click:connect(function()
  222. game.Players.LocalPlayer.PlayerData[game.Players.LocalPlayer.Name].Value = '{"codes":[],"PlayerSettings":{"MusicEnabled":true,"HintsEnabled":true},"badges":[],"consumables":{"DoubleXP":[null,600]},"currencies":{"Cookies":' .. (num3) .. ',"SunTokens":' .. (num) .. ',"Diamonds":' .. (num2) .. ',"Treats":' .. (num4) .. '},"owned_items":{"Skins":[],"Pets":[],"Classes":[["P01",4,0,1,0,40,0,0,""],["P02",0,0,0,0,0,0,0,""],["Z01",2,0,0,0,20,0,0,""],["Z02",0,1,0,0,5,0,0,""],["P04",0,0,1,0,0,0,0,""],["Z04",0,0,0,0,0,0,0,""]]},"SaveIncrement":88,"stats":{"XP":' .. (num5) .. ',"error_fixes":{"CP1":false,"CP2":true,"CP3":false},"Assists":1,"HealingDone":0,"DamageDone":0,"EquippedPet":"","Losses":0,"Robux_Spent":999999,"DamageBlocked":0,"Wins":' .. (num7) .. ',"SunTokens_Spent":0,"Deaths":0,"AvgKD":' .. (num8) .. ',"Treats_Spent":0,"Kills":' .. (num10) .. ',"Level":' .. (num9) ..',"Cookies_Spent":0,"TransferredSave":false,"Time_Played":{"hour":2,"day":0,"sec":21,"min":49},"Diamonds_Spent":0,"Draws":0},"TableVersion":1}'
  223. game.Players.LocalPlayer.GameStats.PlayerSpeed.Value = (num6)
  224. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (num6)
  225. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement