Advertisement
Paulo87

invisible hitbox

Mar 20th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3.  
  4. getgenv().HitboxSize = 7 -- Valor inicial
  5. getgenv().HitboxTransparency = 1
  6. getgenv().HitboxStatus = true -- Ativado por padrão
  7.  
  8. -- Removendo a função onChat e a conexão com o evento Chatted
  9. -- player.Chatted:Connect(onChat)
  10.  
  11. game:GetService('RunService').RenderStepped:connect(function()
  12. if getgenv().HitboxStatus then
  13. for i,v in next, Players:GetPlayers() do
  14. if v.Name ~= player.Name then
  15. pcall(function()
  16. v.Character.HumanoidRootPart.Size = Vector3.new(getgenv().HitboxSize, getgenv().HitboxSize, getgenv().HitboxSize)
  17. v.Character.HumanoidRootPart.Transparency = getgenv().HitboxTransparency
  18. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really black")
  19. v.Character.HumanoidRootPart.Material = "Neon"
  20. v.Character.HumanoidRootPart.CanCollide = false
  21. end)
  22. end
  23. end
  24. else
  25. for i,v in next, Players:GetPlayers() do
  26. if v.Name ~= player.Name then
  27. pcall(function()
  28. v.Character.HumanoidRootPart.Size = Vector3.new(2,2,1)
  29. v.Character.HumanoidRootPart.Transparency = 1
  30. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Medium stone grey")
  31. v.Character.HumanoidRootPart.Material = "Plastic"
  32. v.Character.HumanoidRootPart.CanCollide = false
  33. end)
  34. end
  35. end
  36. end
  37. end)
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement