Advertisement
Dark_OS-Devs

Hitbox Expender

Feb 26th, 2022
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.18 KB | None | 0 0
  1. -- Function
  2. function getplrsname()
  3.     for i,v in pairs(game:GetChildren()) do
  4.         if v.ClassName == "Players" then
  5.             return v.Name
  6.         end
  7.     end
  8. end
  9.  
  10. -- Variables
  11. local players = getplrsname()
  12. local plr = game[players].LocalPlayer
  13.  
  14. -- Settings
  15. Transparency = 1
  16.  
  17. -- Code
  18. coroutine.resume(coroutine.create(function()
  19.     while  wait(1) do
  20.         coroutine.resume(coroutine.create(function()
  21.             for _,v in pairs(game[players]:GetPlayers()) do
  22.                 if v.Name ~= plr.Name and v.Character then
  23.                     v.Character.RightUpperLeg.CanCollide = false
  24.                     v.Character.RightUpperLeg.Transparency = Transparency
  25.                     v.Character.RightUpperLeg.Size = Vector3.new(13,13,13)
  26.  
  27.                     v.Character.LeftUpperLeg.CanCollide = false
  28.                     v.Character.LeftUpperLeg.Transparency = Transparency
  29.                     v.Character.LeftUpperLeg.Size = Vector3.new(13,13,13)
  30.  
  31.                     v.Character.HeadHB.CanCollide = false
  32.                     v.Character.HeadHB.Transparency = Transparency
  33.                     v.Character.HeadHB.Size = Vector3.new(13,13,13)
  34.  
  35.                     v.Character.HumanoidRootPart.CanCollide = false
  36.                     v.Character.HumanoidRootPart.Transparency = Transparency
  37.                     v.Character.HumanoidRootPart.Size = Vector3.new(13,13,13)
  38.  
  39.                 end
  40.             end
  41.         end))
  42.     end
  43. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement