ElDiskCode

script atravesar a jugadores HumanoidColision

May 1st, 2025 (edited)
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | Gaming | 0 0
  1. local PhysService = game:GetService("PhysicsService")
  2. local PlayerGroup = PhysService:CreateCollisionGroup("p")
  3. PhysService:CollisionGroupSetCollidable("p","p",false)
  4.  
  5. function NoCollide(model)
  6.     for k,v in pairs (model:GetChildren()) do
  7.         if v:IsA"BasePart" then
  8.             PhysService:SetPartCollisionGroup(v,"p")
  9.  
  10.         end
  11.     end
  12. end
  13.  
  14. game:GetService("Players").PlayerAdded:connect(function(player)
  15.     player.CharacterAdded:connect(function(char)
  16.         char:WaitForChild("HumanoidRootPart")
  17.         char:WaitForChild("Head")
  18.         char:WaitForChild("Humanoid")
  19.         wait(0.1)
  20.         NoCollide(char)
  21.  
  22.         if player.Character then
  23.             NoCollide(player.Character)
  24.         end
  25.     end)
  26. end)
Add Comment
Please, Sign In to add comment