Advertisement
SigmaBoy456

Roblox Hitbox expander v6 (IMPROVED)(BETTER)

Jun 11th, 2024
19,943
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.35 KB | None | 0 0
  1. --Script Head Hitbox expander v6 by Mawin_CK
  2. --this script improve Headshot, Aimbot, slient aim, more Which Make Alot easier to Headshot enemy or hot enemy head
  3. --This script can Also Resizing AI, npc ,bot, dummy head even though They are not Player
  4. --this script is Universal can be Used in Many Map work in many Map but sometime this script dont work On some Map that Has Good Hitbox Check or some hitbox client reason
  5. --Mobile supported This script i made it smooth and not Laggy too much for Mobile Which i already set the Delay of resizing Head to reduce lag
  6. --Little Issue Sometime of game You Play Turn yourself to Model or Something Like Part For example Character you choosing Which Not recognized as LocalPlayer on this script Which idk how to fix it anyway just wait for v7 of this script I'll make it alot better and developing it better
  7. --Total my rating out of all 7/10
  8. --Enjoy the Script
  9. local player = game.Players.LocalPlayer
  10. local character = player.Character or player.CharacterAdded:Wait()
  11. local head = character:FindFirstChild("Head")
  12.  
  13. local function resizeHead(part)
  14.     if part then
  15.         part.Size = Vector3.new(5, 5, 5)
  16.         part.Transparency = 0.5
  17.     end
  18. end
  19.  
  20. local function stopResizing(part)
  21.     if part then
  22.         return part.Size == Vector3.new(5, 5, 5)
  23.     end
  24.     return false
  25. end
  26.  
  27. local function shouldResizeLocalPlayer()
  28.     return head and not stopResizing(head)
  29. end
  30.  
  31. while true do
  32.     -- Resize the player's head if it's not already resized
  33.     if shouldResizeLocalPlayer() then
  34.         resizeHead(head)
  35.     end
  36.  
  37.     -- Resize heads of other players
  38.     for _, v in ipairs(game.Players:GetPlayers()) do
  39.         if v ~= player and v.Character then
  40.             local otherHead = v.Character:FindFirstChild("Head")
  41.             if not stopResizing(otherHead) then
  42.                 resizeHead(otherHead)
  43.             end
  44.         end
  45.     end
  46.  
  47.     -- Resize heads of all parts and models in the workspace
  48.     for _, h in ipairs(game.Workspace:GetDescendants()) do
  49.         if h:IsA("Model") or h:IsA("Part") then
  50.             local headU = h:FindFirstChild("Head")
  51.             if not stopResizing(headU) then
  52.                 resizeHead(headU)
  53.             end
  54.         end
  55.     end
  56.  
  57.     wait(5) -- a small delay to prevent excessive loop iteration dont put too less or else is lag unless you have good device of wifi
  58. end
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement