Advertisement
Haxdserioxdada

hacks xd

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