Advertisement
Imperious123

Untitled

Jul 27th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.10 KB | None | 0 0
  1.  
  2.  
  3. --usage esparsenal();
  4.  
  5. getgenv().esparsenal = function()
  6. game:GetService("RunService").Heartbeat:Connect(function()
  7. for Index, Value in next, game:GetService("Players"):GetPlayers() do
  8. if Value ~= game:GetService("Players").LocalPlayer then
  9. if not Value.Character:FindFirstChild("Pos") then
  10. local Pos = Instance.new("BillboardGui");
  11. Pos.Name = "Pos";
  12. Pos.Parent = Value.Character.Head;
  13. Pos.AlwaysOnTop = true;
  14. Pos.LightInfluence = 0;
  15. Pos.Enabled = true;
  16. Pos.Size = UDim2.new(1.75, 0, 1.75, 0);
  17. Pos.Parent = Value.Character;
  18. local Frame = Instance.new("Frame", Pos);
  19. if Value.TeamColor == game:GetService("Players").LocalPlayer.TeamColor then
  20. Frame.BackgroundColor3 = Color3.fromRGB(0, 255, 0);
  21. else
  22. Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0);
  23. end;
  24. Frame.Size = UDim2.new(1, 0, 1, 0);
  25. else
  26. if Value.TeamColor == game:GetService("Players").LocalPlayer.TeamColor then
  27. Value.Character:FindFirstChild("Pos").Frame.BackgroundColor3 = Color3.fromRGB(0, 255, 0);
  28. else
  29. Value.Character:FindFirstChild("Pos").Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0);
  30. end;
  31. end;
  32. end;
  33. end;
  34. end);
  35. end;
  36.  
  37.  
  38.  
  39. getgenv().gunmods = function()
  40. for Index, Value in next, getgc(true) do
  41. if typeof(Value) == "table" and rawget(Value, "recoil") then
  42. spawn(function()
  43. while wait() do
  44. rawset(Value, "recoil", 0);
  45. end;
  46. end);
  47. end;
  48. if typeof(Value) == "table" and rawget(Value, "mode") then
  49. spawn(function()
  50. while wait() do
  51. rawset(Value, "mode", "automatic");
  52. end;
  53. end);
  54. end;
  55. if typeof(Value) == "table" and rawget(Value, "inducefalldamage") then
  56. spawn(function()
  57. while wait() do
  58. rawset(Value, "inducefalldamage", function()
  59. return nil;
  60. end);
  61. end;
  62. end);
  63. end;
  64. if typeof(Value) == "table" and rawget(Value, "currentspread") then
  65. spawn(function()
  66. while wait() do
  67. rawset(Value, "currentspread", 0);
  68. end;
  69. end);
  70. end;
  71. end;
  72. end;
  73.  
  74. getgenv().hitbox = function()
  75. repeat wait() until game:IsLoaded()
  76.  
  77. local Players = game:GetService("Players")
  78. local UserInputService = game:GetService("UserInputService")
  79. local plr = Players.LocalPlayer
  80. local size = 8 --change size of hitbox
  81. local key = "c" -- change key to what you want (https://developer.roblox.com/en-us/api-reference/enum/KeyCode)
  82. local bighead = true -- This changes if you want the head hitbox or not (If you record arsenal gameplay set the size to 3 because the head hitbox is invisible)
  83. local isVisible = true -- change this if u want to see head hit box
  84. local toggle = true
  85. key = key:sub(1, 1):upper()..key:sub(2, #key)
  86.  
  87. if isVisible then
  88. isVisible = 0
  89. else
  90. isVisible = 1
  91. end
  92.  
  93. UserInputService.InputEnded:Connect(function(input)
  94. if UserInputService:GetFocusedTextBox() then return end
  95. if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode[key] then
  96. toggle = not toggle
  97. for _,v in pairs(game.Players:GetPlayers()) do
  98. if v ~= game.Players.LocalPlayer then
  99. update(v)
  100. end
  101. end
  102. end
  103. end)
  104.  
  105. originalSizes = {LowerTorso=plr.Character.LowerTorso.Size,HumanoidRootPart=plr.Character.HumanoidRootPart.Size,HeadHB=plr.Character.HeadHB.Size}
  106.  
  107. function update(player)
  108. if not player or not player.Character then return end
  109. if toggle and player ~= plr and player.Status.Team.Value ~= plr.Status.Team.Value then
  110. if bighead ~= true then
  111. player.Character.LowerTorso.Size = Vector3.new(size,size,size)
  112. player.Character.LowerTorso.Transparency = isVisible
  113. else
  114. player.Character.HeadHB.Size = Vector3.new(size,size,size)
  115. player.Character.HeadHB.Transparency = isVisible
  116. end
  117. player.Character.HumanoidRootPart.Size = Vector3.new(size,size,size)
  118. player.Character.HumanoidRootPart.Transparency = isVisible
  119. else
  120. player.Character.HeadHB.Transparency = 1
  121. player.Character.LowerTorso.Size = originalSizes.LowerTorso
  122. player.Character.HumanoidRootPart.Size = originalSizes.HumanoidRootPart
  123. player.Character.HeadHB.Size = originalSizes.HeadHB
  124. end
  125. end
  126.  
  127. function onjoin(player)
  128. if player then player = game.Players[player.Name] else return end
  129. player.Status.Team:GetPropertyChangedSignal("Value"):Connect(function()
  130. update(player)
  131. end)
  132. update(player)
  133. end
  134.  
  135. game.Players.PlayerAdded:Connect(function(player)
  136. player.CharacterAdded:Connect(onjoin)
  137. end)
  138.  
  139. for _,v in pairs(Players:GetPlayers()) do
  140. v.Status.Team:GetPropertyChangedSignal("Value"):Connect(function()
  141. if v == game.Players.LocalPlayer then
  142. for _,b in pairs(Players:GetPlayers()) do
  143. if b ~= game.Players.LocalPlayer then
  144. update(b)
  145. end
  146. end
  147. else
  148. update(v)
  149. end
  150. end)
  151. if v ~= game.Players.LocalPlayer then
  152. update(v)
  153. end
  154. end
  155. end;
  156.  
  157. getgenv().Rainbowgun = function()
  158. function zigzag(X)
  159. return math.acos(math.cos(X*math.pi))/math.pi;
  160. end;
  161.  
  162. counter = 0;
  163. color = Color3.fromHSV(zigzag(counter), 1, 1);
  164.  
  165. while wait(0.1) do
  166. color = Color3.fromHSV(zigzag(counter), 1, 1);
  167. pcall(function()
  168. for Index, Value in next, workspace.CurrentCamera.Arms:GetChildren() do
  169. if Value.Name ~= "CSSArms" then
  170. pcall(function()
  171. Value.Color = color;
  172. counter = counter + 0.001;
  173. end);
  174. end;
  175. end;
  176. end);
  177. end;
  178. end;
  179.  
  180. getgenv().noreload = function()
  181. for Index, Value in next, getgc(true) do
  182. if typeof(Value) == "table" and rawget(Value, "currentspread") then
  183. for Index2, Value2 in next, Value do
  184. if string.match(tostring(Index2), "reload") then
  185. if typeof(Value2) == "function" then
  186. spawn(function()
  187. while wait() do
  188. Value2();
  189. end;
  190. end);
  191. end;
  192. end;
  193. end;
  194. end;
  195. end;
  196. end
  197.  
  198.  
  199. getgenv().traces = function()
  200. local AlreadyGot = {};
  201. game:GetService("RunService").Heartbeat:Connect(function()
  202. for i,v in pairs(game.Players:GetChildren()) do
  203. local chara = v.Character
  204. if AlreadyGot[chara] == nil then
  205. table.insert(AlreadyGot, chara);
  206. local Line = Drawing.new("Line")
  207. local a,b = workspace.CurrentCamera:WorldToViewportPoint(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).X, workspace.CurrentCamera:WorldToViewportPoint(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).Y
  208. local x,y = workspace.CurrentCamera:WorldToViewportPoint(chara.HumanoidRootPart.Position).X, workspace.CurrentCamera:WorldToViewportPoint(chara:WaitForChild("HumanoidRootPart").Position).Y
  209. local chara = v.Character
  210. local _, withinScreenBounds = workspace.CurrentCamera:WorldToScreenPoint(chara.Head.Position)
  211.  
  212. if withinScreenBounds then
  213. Line.Visible = true
  214. else
  215. Line.Visible = false
  216. end;
  217. Line.From = Vector2.new(a,b)
  218.  
  219. Line.To = Vector2.new(x,y)
  220. if v.TeamColor == game:GetService("Players").LocalPlayer.TeamColor then
  221. Line.Color = Color3.fromRGB(0, 255, 0)
  222. else
  223. Line.Color = Color3.fromRGB(255, 0, 0)
  224. end;
  225. Line.Thickness = 2
  226. Line.Transparency = 1
  227. wait(0.001);
  228. Line:Remove()
  229.  
  230. end
  231. end;
  232. end)
  233. end;
  234.  
  235. getgenv().flying = true
  236. getgenv().speed = 2
  237. local function FLY()
  238. local T = game:service("Players").LocalPlayer.Character.HumanoidRootPart
  239. local iyflyspeed = getgenv().speed
  240. local IYMouse = game:service("Players").LocalPlayer:GetMouse()
  241. local CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  242. local lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  243. local SPEED = 0
  244. local fly = getgenv().flying
  245. local BG = Instance.new('BodyGyro', T)
  246. local BV = Instance.new('BodyVelocity', T)
  247. BG.P = 9e4
  248. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  249. BG.cframe = T.CFrame
  250. BV.velocity = Vector3.new(0, 0, 0)
  251. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  252. spawn(function()
  253. repeat wait()
  254. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then
  255. SPEED = 50
  256. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then
  257. SPEED = 0
  258. end
  259. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then
  260. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  261. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  262. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then
  263. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  264. else
  265. BV.velocity = Vector3.new(0, 0, 0)
  266. end
  267. BG.cframe = workspace.CurrentCamera.CoordinateFrame
  268. until not getgenv().flying
  269. CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  270. lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  271. SPEED = 0
  272. BG:destroy()
  273. BV:destroy()
  274. end)
  275. IYMouse.KeyDown:connect(function(KEY)
  276. if KEY:lower() == 'w' then
  277. if vfly then
  278. CONTROL.F = vehicleflyspeed
  279. else
  280. CONTROL.F = iyflyspeed
  281. end
  282. elseif KEY:lower() == 's' then
  283. if vfly then
  284. CONTROL.B = - vehicleflyspeed
  285. else
  286. CONTROL.B = - iyflyspeed
  287. end
  288. elseif KEY:lower() == 'a' then
  289. if vfly then
  290. CONTROL.L = - vehicleflyspeed
  291. else
  292. CONTROL.L = - iyflyspeed
  293. end
  294. elseif KEY:lower() == 'd' then
  295. if vfly then
  296. CONTROL.R = vehicleflyspeed
  297. else
  298. CONTROL.R = iyflyspeed
  299. end
  300. elseif KEY:lower() == 'e' then
  301. if vfly then
  302. CONTROL.Q = vehicleflyspeed*2
  303. else
  304. CONTROL.Q = iyflyspeed*2
  305. end
  306. elseif KEY:lower() == 'q' then
  307. if vfly then
  308. CONTROL.E = -vehicleflyspeed*2
  309. else
  310. CONTROL.E = -iyflyspeed*2
  311. end
  312. end
  313. end)
  314. IYMouse.KeyUp:connect(function(KEY)
  315. if KEY:lower() == 'w' then
  316. CONTROL.F = 0
  317. elseif KEY:lower() == 's' then
  318. CONTROL.B = 0
  319. elseif KEY:lower() == 'a' then
  320. CONTROL.L = 0
  321. elseif KEY:lower() == 'd' then
  322. CONTROL.R = 0
  323. elseif KEY:lower() == 'e' then
  324. CONTROL.Q = 0
  325. elseif KEY:lower() == 'q' then
  326. CONTROL.E = 0
  327. end
  328. end)
  329. end
  330. FLY()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement