Advertisement
TheNadie

Untitled

Dec 29th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.52 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Speed = Instance.new("TextBox")
  6. local Rotation = Instance.new("TextBox")
  7. local MaxFireRate = Instance.new("TextBox")
  8. local Cooldown = Instance.new("TextButton")
  9. local Spread = Instance.new("TextBox")
  10. local ReloadSpeed = Instance.new("TextBox")
  11. local AllowedInSpawn = Instance.new("TextButton")
  12. local InfiniteAmmo = Instance.new("TextButton")
  13.  
  14. -- Properties
  15.  
  16. ScreenGui.Parent = game.CoreGui
  17.  
  18. Frame.Parent = ScreenGui
  19. Frame.Active = true
  20. Frame.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15)
  21. Frame.BackgroundTransparency = 0.1
  22. Frame.BorderColor3 = Color3.new(1, 1, 1)
  23. Frame.Draggable = true
  24. Frame.Position = UDim2.new(0.7, 0, 0.7, 0)
  25. Frame.Selectable = true
  26. Frame.Size = UDim2.new(0, 215, 0, 145)
  27.  
  28. Speed.Name = "Speed"
  29. Speed.Parent = Frame
  30. Speed.AnchorPoint = Vector2.new(0.5, 0)
  31. Speed.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  32. Speed.BorderColor3 = Color3.new(1, 1, 1)
  33. Speed.Position = UDim2.new(0.257, 0, 0.03, 0)
  34. Speed.Size = UDim2.new(0, 100, 0, 30)
  35. Speed.Font = Enum.Font.SourceSansBold
  36. Speed.Text = "Set Speed"
  37. Speed.TextColor3 = Color3.new(1, 1, 1)
  38. Speed.TextSize = 14
  39.  
  40. Rotation.Name = "Rotation"
  41. Rotation.Parent = Frame
  42. Rotation.AnchorPoint = Vector2.new(0.5, 0)
  43. Rotation.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  44. Rotation.BorderColor3 = Color3.new(1, 1, 1)
  45. Rotation.Position = UDim2.new(0.743, 0, 0.03, 0)
  46. Rotation.Size = UDim2.new(0, 100, 0, 30)
  47. Rotation.Font = Enum.Font.SourceSansBold
  48. Rotation.Text = "Set Rotation Speed"
  49. Rotation.TextColor3 = Color3.new(1, 1, 1)
  50. Rotation.TextSize = 13
  51.  
  52. MaxFireRate.Name = "MaxFireRate"
  53. MaxFireRate.Parent = Frame
  54. MaxFireRate.AnchorPoint = Vector2.new(0.5, 0)
  55. MaxFireRate.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  56. MaxFireRate.BorderColor3 = Color3.new(1, 1, 1)
  57. MaxFireRate.Position = UDim2.new(0.257, 0, 0.275, 0)
  58. MaxFireRate.Size = UDim2.new(0, 100, 0, 30)
  59. MaxFireRate.Font = Enum.Font.SourceSansBold
  60. MaxFireRate.Text = "Set Max Fire Rate"
  61. MaxFireRate.TextColor3 = Color3.new(1, 1, 1)
  62. MaxFireRate.TextSize = 14
  63.  
  64. ReloadSpeed.Name = "ReloadSpeed"
  65. ReloadSpeed.Parent = Frame
  66. ReloadSpeed.AnchorPoint = Vector2.new(0.5, 0)
  67. ReloadSpeed.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  68. ReloadSpeed.BorderColor3 = Color3.new(1, 1, 1)
  69. ReloadSpeed.Position = UDim2.new(0.743, 0, 0.275, 0)
  70. ReloadSpeed.Size = UDim2.new(0, 100, 0, 30)
  71. ReloadSpeed.Font = Enum.Font.SourceSansBold
  72. ReloadSpeed.Text = "Set Reload Speed"
  73. ReloadSpeed.TextColor3 = Color3.new(1, 1, 1)
  74. ReloadSpeed.TextSize = 14
  75.  
  76. Spread.Name = "Spread"
  77. Spread.Parent = Frame
  78. Spread.AnchorPoint = Vector2.new(0.5, 0)
  79. Spread.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  80. Spread.BorderColor3 = Color3.new(1, 1, 1)
  81. Spread.Position = UDim2.new(0.257, 0, 0.515, 0)
  82. Spread.Size = UDim2.new(0, 100, 0, 30)
  83. Spread.Font = Enum.Font.SourceSansBold
  84. Spread.Text = "Set Weapon Spread"
  85. Spread.TextColor3 = Color3.new(1, 1, 1)
  86. Spread.TextSize = 13
  87.  
  88. Cooldown.Name = "Cooldown"
  89. Cooldown.Parent = Frame
  90. Cooldown.AnchorPoint = Vector2.new(0.5, 0)
  91. Cooldown.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  92. Cooldown.BorderColor3 = Color3.new(1, 1, 1)
  93. Cooldown.Position = UDim2.new(0.743, 0, 0.515, 0)
  94. Cooldown.Size = UDim2.new(0, 100, 0, 30)
  95. Cooldown.AutoButtonColor = false
  96. Cooldown.Font = Enum.Font.SourceSansBold
  97. Cooldown.Text = "No Ability Cooldown:\nOff"
  98. Cooldown.TextColor3 = Color3.new(1, 1, 1)
  99. Cooldown.TextSize = 13
  100.  
  101. AllowedInSpawn.Name = "AllowedInSpawn"
  102. AllowedInSpawn.Parent = Frame
  103. AllowedInSpawn.AnchorPoint = Vector2.new(0.5, 0)
  104. AllowedInSpawn.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  105. AllowedInSpawn.BorderColor3 = Color3.new(1, 1, 1)
  106. AllowedInSpawn.Position = UDim2.new(0.257, 0, 0.755, 0)
  107. AllowedInSpawn.Size = UDim2.new(0, 100, 0, 30)
  108. AllowedInSpawn.AutoButtonColor = false
  109. AllowedInSpawn.Font = Enum.Font.SourceSansBold
  110. AllowedInSpawn.Text = "Allowed In Spawn:\nOff"
  111. AllowedInSpawn.TextColor3 = Color3.new(1, 1, 1)
  112. AllowedInSpawn.TextSize = 14
  113.  
  114. InfiniteAmmo.Name = "InfiniteAmmo"
  115. InfiniteAmmo.Parent = Frame
  116. InfiniteAmmo.AnchorPoint = Vector2.new(0.5, 0)
  117. InfiniteAmmo.BackgroundColor3 = Color3.new(0.165, 0.165, 0.165)
  118. InfiniteAmmo.BorderColor3 = Color3.new(1, 1, 1)
  119. InfiniteAmmo.Position = UDim2.new(0.743, 0, 0.755, 0)
  120. InfiniteAmmo.Size = UDim2.new(0, 100, 0, 30)
  121. InfiniteAmmo.AutoButtonColor = false
  122. InfiniteAmmo.Font = Enum.Font.SourceSansBold
  123. InfiniteAmmo.Text = "Infinite Ammo:\nOff"
  124. InfiniteAmmo.TextColor3 = Color3.new(1, 1, 1)
  125. InfiniteAmmo.TextSize = 14
  126.  
  127. game.Workspace.Tanks:WaitForChild("Tank-"..game.Players.LocalPlayer.Name)
  128. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  129. InfAmmo = false
  130. Allowed = false
  131. AbilityCooldown = false
  132.  
  133. for i,v in pairs(Tank.AvailableAmmo:GetChildren()) do
  134. if v.Name ~= Base then
  135. DefaultAmmo = v.Value
  136. end
  137. end
  138.  
  139. Speed2 = Default
  140. Rotation2 = Default
  141. MaxFireRate2 = Default
  142. Spread2 = Default
  143. ReloadSpeed2 = Default
  144.  
  145. Speed.FocusLost:connect(function()
  146. warn("New Tank Speed: "..Speed.Text.." studs every 1s")
  147. Speed2 = Speed.Text
  148. Speed.Text = "Set Speed"
  149. end)
  150.  
  151. Rotation.FocusLost:connect(function()
  152. warn("New Tank Rotation Speed: "..Rotation.Text.."° every 1s")
  153. Rotation2 = Rotation.Text
  154. Rotation.Text = "Set Rotation Speed"
  155. end)
  156.  
  157. MaxFireRate.FocusLost:connect(function()
  158. warn("New Max Fire Rate: 1 shot every "..MaxFireRate.Text.."s")
  159. MaxFireRate2 = MaxFireRate.Text
  160. MaxFireRate.Text = "Set Max Fire Rate"
  161. end)
  162.  
  163. ReloadSpeed.FocusLost:connect(function()
  164. warn("New Weapon Reload Speed: 1 shot every "..ReloadSpeed.Text.."s")
  165. ReloadSpeed2 = ReloadSpeed.Text
  166. ReloadSpeed.Text = "Set Reload Speed"
  167. end)
  168.  
  169. Spread.FocusLost:connect(function()
  170. warn("New Weapon Spread: "..Spread.Text.."°")
  171. Spread2 = Spread.Text
  172. Spread.Text = "Set Weapon Spread"
  173. end)
  174.  
  175. Cooldown.MouseButton1Down:connect(function()
  176. if AbilityCooldown == true then
  177. AbilityCooldown = false
  178. warn("No Ability Cooldown Turned Off")
  179. Cooldown.Text = "No Ability Cooldown:\nOff"
  180. wait(0.1)
  181. else
  182. AbilityCooldown = true
  183. warn("No Ability Cooldown Turned On")
  184. Cooldown.Text = "No Ability Cooldown:\nOn"
  185. end
  186. end)
  187.  
  188. AllowedInSpawn.MouseButton1Down:connect(function()
  189. if Allowed == true then
  190. Allowed = false
  191. warn("Always Allowed in Spawn Area Turned Off")
  192. AllowedInSpawn.Text = "Allowed In Spawn:\nOff"
  193. else
  194. Allowed = true
  195. warn("Always Allowed in Spawn Area Turned On")
  196. AllowedInSpawn.Text = "Allowed In Spawn:\nOn"
  197. end
  198. end)
  199.  
  200. InfiniteAmmo.MouseButton1Down:connect(function()
  201. if InfAmmo == true then
  202. InfAmmo = false
  203. warn("Infinite Ammo Turned Off")
  204. InfiniteAmmo.Text = "Infinite Ammo:\nOff"
  205. wait(0.1)
  206. Tank.Settings.LoadedShots.Value = 0
  207. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  208. for i,v in pairs(Tank.AvailableAmmo:GetChildren()) do
  209. if v.Name ~= Base then
  210. v.Value = DefaultAmmo
  211. end
  212. end
  213. for i,v in pairs(Tank.AvailableAmmo:GetChildren()) do
  214. if v.Name ~= Base then
  215. DefaultAmmo = v.Value
  216. end
  217. end
  218. if game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main:FindFirstChild("ControllerHUD_0") then
  219. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main.ControllerHUD_0:GetChildren()) do
  220. if v.Name ~= "Base" then
  221. game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main.ControllerHUD_0[v.Name].Image.AmmoCount.Text = "x"..DefaultAmmo
  222. game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main.ControllerHUD_0[v.Name].Image.AmmoCount.AmmoCount.Text = "x"..DefaultAmmo
  223. end
  224. end
  225. end
  226. else
  227. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  228. for i,v in pairs(Tank.AvailableAmmo:GetChildren()) do
  229. if v.Name ~= Base then
  230. DefaultAmmo = v.Value
  231. end
  232. end
  233. InfAmmo = true
  234. warn("Infinite Ammo Turned On")
  235. InfiniteAmmo.Text = "Infinite Ammo:\nOn"
  236. end
  237. end)
  238.  
  239. game:GetService('RunService').Stepped:connect(function()
  240. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") and Speed2 ~= Default then
  241. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  242. Tank.Settings.MoveSpeed.Value = Speed2
  243. end
  244. wait(0.1)
  245. end)
  246.  
  247. game:GetService('RunService').Stepped:connect(function()
  248. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") and Rotation2 ~= Default then
  249. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  250. Tank.Settings.RotationSpeed.Value = Rotation2
  251. end
  252. wait(0.1)
  253. end)
  254.  
  255. game:GetService('RunService').Stepped:connect(function()
  256. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") and MaxFireRate2 ~= Default then
  257. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  258. Tank.Settings.MaxFireRate.Value = MaxFireRate2
  259. end
  260. wait(0.1)
  261. end)
  262.  
  263. game:GetService('RunService').Stepped:connect(function()
  264. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") and ReloadSpeed2 ~= Default then
  265. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  266. Tank.Settings.ReloadTime.Value = ReloadSpeed2
  267. Tank.Settings.ConsecutiveReloadTime.Value = ReloadSpeed2
  268. end
  269. wait(0.1)
  270. end)
  271.  
  272. game:GetService('RunService').Stepped:connect(function()
  273. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") and Spread2 ~= Default then
  274. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  275. Tank.Settings.Spread.Value = Spread2
  276. end
  277. wait(0.1)
  278. end)
  279.  
  280. game:GetService('RunService').Stepped:connect(function()
  281. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") then
  282. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  283. Tank.Settings.AbilityCooldownProgress.Value = 1
  284. end
  285. wait(0.1)
  286. end)
  287.  
  288. game:GetService('RunService').Stepped:connect(function()
  289. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") then
  290. if Allowed == true then
  291. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  292. Tank.Settings.AllowedInSpawn.Value = true
  293. end
  294. end
  295. wait(0.1)
  296. end)
  297.  
  298. game:GetService('RunService').Stepped:connect(function()
  299. if game.Workspace.Tanks:FindFirstChild("Tank-"..game.Players.LocalPlayer.Name) and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("Settings") and game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]:FindFirstChild("AvailableAmmo") then
  300. if InfAmmo == true then
  301. Tank = game.Workspace.Tanks["Tank-"..game.Players.LocalPlayer.Name]
  302. Tank.Settings.LoadedShots.Value = 1e+18
  303. for i,v in pairs(Tank.AvailableAmmo:GetChildren()) do
  304. if v.Name ~= Base then
  305. v.Value = 1e+18
  306. end
  307. end
  308. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main.ControllerHUD_0:GetChildren()) do
  309. if v.Name == "Piercing" or v.Name == "Explosive" or v.Name == "Rocket" or v.Name == "Bouncy" then
  310. game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main.ControllerHUD_0[v.Name].Image.AmmoCount.Text = "Infinite"
  311. game.Players.LocalPlayer.PlayerGui.MainScreen.Main.AmmoHUD.Main.ControllerHUD_0[v.Name].Image.AmmoCount.AmmoCount.Text = "Infinite"
  312. end
  313. end
  314. end
  315. end
  316. wait(0.1)
  317. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement