TX_YT1234

arsenal hitbox extender

Jan 20th, 2021 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. --// source: https://v3rmillion.net/showthread.php?tid=1024610
  2. --// credits: Arsenal Hitbox Extender by Postman Pat.
  3.  
  4. repeat wait() until game:IsLoaded()
  5.  
  6. local Players = game:GetService("Players")
  7. local UserInputService = game:GetService("UserInputService")
  8. local plr = Players.LocalPlayer
  9. local size = 10 --change size of hitbox
  10. local key = "c" -- change key to what you want (https://developer.roblox.com/en-us/api-reference/enum/KeyCode)
  11. local bighead = false -- This changes if you want the head hitbox or not. personally, i suggest you have this off to seem legit. (If you record arsenal gameplay set the size to 3 because the head hitbox is invisible)
  12. local isVisible = true -- change this if u want to see head hit box
  13. local toggle = true
  14. key = key:sub(1, 1):upper()..key:sub(2, #key)
  15.  
  16. if isVisible then
  17. isVisible = 0
  18. else
  19. isVisible = 1
  20. end
  21.  
  22. UserInputService.InputEnded:Connect(function(input)
  23. if UserInputService:GetFocusedTextBox() then return end
  24. if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode[key] then
  25. toggle = not toggle
  26. for _,v in pairs(game.Players:GetPlayers()) do
  27. if v ~= game.Players.LocalPlayer then
  28. update(v)
  29. end
  30. end
  31. end
  32. end)
  33.  
  34. originalSizes = {LowerTorso=plr.Character.LowerTorso.Size,HumanoidRootPart=plr.Character.HumanoidRootPart.Size,HeadHB=plr.Character.HeadHB.Size}
  35.  
  36. function update(player)
  37. if not player or not player.Character then return end
  38. if toggle and player ~= plr and player.Status.Team.Value ~= plr.Status.Team.Value then
  39. if bighead ~= true then
  40. player.Character.LowerTorso.Size = Vector3.new(size,size,size)
  41. player.Character.LowerTorso.Transparency = isVisible
  42. else
  43. player.Character.HeadHB.Size = Vector3.new(size,size,size)
  44. player.Character.HeadHB.Transparency = isVisible
  45. end
  46. player.Character.HumanoidRootPart.Size = Vector3.new(size,size,size)
  47. player.Character.HumanoidRootPart.Transparency = isVisible
  48. else
  49. player.Character.HeadHB.Transparency = 1
  50. player.Character.LowerTorso.Size = originalSizes.LowerTorso
  51. player.Character.HumanoidRootPart.Size = originalSizes.HumanoidRootPart
  52. player.Character.HeadHB.Size = originalSizes.HeadHB
  53. end
  54. end
  55.  
  56. function onjoin(player)
  57. if player then player = game.Players[player.Name] else return end
  58. player.Status.Team:GetPropertyChangedSignal("Value"):Connect(function()
  59. update(player)
  60. end)
  61. update(player)
  62. end
  63.  
  64. game.Players.PlayerAdded:Connect(function(player)
  65. player.CharacterAdded:Connect(onjoin)
  66. end)
  67.  
  68. for _,v in pairs(Players:GetPlayers()) do
  69. v.Status.Team:GetPropertyChangedSignal("Value"):Connect(function()
  70. if v == game.Players.LocalPlayer then
  71. for _,b in pairs(Players:GetPlayers()) do
  72. if b ~= game.Players.LocalPlayer then
  73. update(b)
  74. end
  75. end
  76. else
  77. update(v)
  78. end
  79. end)
  80. if v ~= game.Players.LocalPlayer then
  81. update(v)
  82. end
  83. end
Add Comment
Please, Sign In to add comment