Hydasi

Collisions Enabler Script

Feb 2nd, 2023
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. --makes it so that you can collide with players and their limbs (Use with scripts like Snake)
  2. --NOTE: collision is not server sided and only happens on your client (Fling scripts only work on you not others)
  3.  
  4. LP = game.Players.LocalPlayer
  5. while wait(3) do
  6. for i,v in pairs(game.Players:GetDescendants()) do
  7. if v:IsA("Player") and workspace:FindFirstChild(v.Name) and v ~= LP and workspace[v.Name]:FindFirstChild("CHECKER") == nil then
  8. checker = Instance.new("BoolValue",workspace[v.Name])
  9. checker.Name = "CHECKER"
  10. for i,v in pairs(workspace:WaitForChild(v.Name):GetDescendants()) do
  11. if v:IsA("Part") or v:IsA("MeshPart") then
  12. local collider = Instance.new("Part",v)
  13. collider.Size = v.Size
  14. collider.Position = v.Position
  15. collider.Transparency = 1
  16. local weld = Instance.new("Weld",v)
  17. weld.Part0 = v
  18. weld.Part1 = collider
  19. end
  20. end
  21. end
  22. end
  23. end
Add Comment
Please, Sign In to add comment