xvc200

hitbox

Jan 22nd, 2025 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. local HeadSize = 20
  2. local IsDisabled = true
  3. local IsTeamCheckEnabled = false
  4.  
  5. game:GetService('RunService').RenderStepped:Connect(function()
  6. if IsDisabled then
  7. local localPlayer = game:GetService('Players').LocalPlayer
  8. if not localPlayer then return end
  9.  
  10. local localPlayerTeam = localPlayer.Team
  11.  
  12. for _, player in ipairs(game:GetService('Players'):GetPlayers()) do
  13. if player ~= localPlayer and (not IsTeamCheckEnabled or player.Team ~= localPlayerTeam) then
  14. local humanoidRootPart = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
  15. if humanoidRootPart then
  16. humanoidRootPart.Size = Vector3.new(HeadSize, HeadSize, HeadSize)
  17. humanoidRootPart.Transparency = 0.7
  18. humanoidRootPart.BrickColor = BrickColor.new("Really black")
  19. humanoidRootPart.Material = Enum.Material.Neon
  20. humanoidRootPart.CanCollide = false
  21. end
  22. end
  23. end
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment