Advertisement
ProScripter29

Hitbox Expander

Nov 18th, 2022 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2.  
  3. local LocalPlayer = Players:WaitForChild("realprohacx")
  4.  
  5. task.wait() -- Wait until everything is LOADED
  6.  
  7. while task.wait(0.1) do
  8. for _, Player in pairs(game.Players:GetPlayers()) do
  9. if Player ~= LocalPlayer then
  10. local Character = Player.Character
  11. if Character then
  12. spawn(function()
  13. local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
  14. if HumanoidRootPart then
  15. local TestPart = Instance.new("Part")
  16. TestPart.BrickColor = Player.TeamColor
  17. local Color = TestPart.Color
  18. TestPart:Destroy()
  19. HumanoidRootPart.Size = Vector3.new(22,22,22)
  20. HumanoidRootPart.CanCollide = false
  21. HumanoidRootPart.Transparency = 0.7
  22. if Player.Character:FindFirstChild("Head") and (not Player.Character:FindFirstChildOfClass("ForceField")) and Player.Character:FindFirstChild("Humanoid") and (Player.Character.Humanoid.Health < 1000) then
  23. Player.Character.Head.Position = LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(2,0,0)
  24. Player.Character.Head.Anchored = true
  25. Player.Character.Head.CanCollide = false
  26. end
  27. if not HumanoidRootPart:FindFirstChild("_Hitbox") then
  28. local HitboxHighlight = Instance.new("Highlight", HumanoidRootPart)
  29. HitboxHighlight.Name = "_Hitbox"
  30. HitboxHighlight.OutlineTransparency = 1
  31. HitboxHighlight.FillTransparency = 0.7
  32. HitboxHighlight.FillColor = Color
  33. end
  34. end
  35. end)
  36. end
  37. end
  38. end
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement