Advertisement
SigmaBoy456

Asylum life Roblox auto hit

Sep 12th, 2024
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. -- Auto hit all by MawinCK
  2. local player = game.Players.LocalPlayer
  3. local character = player.Character or player.CharacterAdded:Wait()
  4. local localroot = character:WaitForChild("LeftHand") or character:WaitForChild("LeftArm")
  5. local Active = false
  6.  
  7. local function unCollideBody()
  8. for _, v in pairs(game.Players:GetPlayers()) do
  9. if v ~= player and v.Character then
  10. for _, g in pairs(v.Character:GetChildren()) do
  11. if g:IsA("BasePart") and g.CanCollide then
  12. g.CanCollide = false
  13. end
  14. end
  15. end
  16. end
  17. end
  18.  
  19. unCollideBody()
  20.  
  21. local function Bring()
  22. Active = true
  23. while Active do
  24. game:GetService("RunService").Heartbeat:Wait()
  25. for _, v in pairs(game.Players:GetPlayers()) do
  26. if v ~= player and v.Character and not v.Character:FindFirstChildWhichIsA("ForceField") then
  27. local JN = v.Character:FindFirstChild("HumanoidRootPart")
  28. local JNR = v.Character:FindFirstChildOfClass("Humanoid")
  29. if JN and JNR and JNR.Health > 0 then
  30. while Active and JNR.Health > 0 do
  31. game:GetService("RunService").RenderStepped:Wait()
  32. unCollideBody()
  33. JN.CFrame = localroot.CFrame * CFrame.new(0, 0, 0)
  34. JN.CanCollide = false
  35. JN.Size = Vector3.new(5, 5, 5)
  36. JN.Transparency = 0.5
  37. end
  38. end
  39. end
  40. end
  41. end
  42. end
  43.  
  44. pcall(function()
  45. Bring()
  46. end)
  47.  
  48. game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  49. character = char
  50. localroot = character:WaitForChild("LeftHand") or character:WaitForChild("LeftArm")
  51. Active = false
  52. wait(0.1)
  53. pcall(function()
  54. Bring()
  55. end)
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement