Advertisement
Dodikman

aaa

Mar 4th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. local plrName = "Sarnaif"
  2. while wait(3) do
  3. if game.Workspace:FindFirstChild(plrName) then
  4. if game.Workspace:FindFirstChild(plrName).Humanoid.Health > 0 then
  5. local hrp = game.Workspace:FindFirstChild(plrName).HumanoidRootPart
  6. local ball = Instance.new("Part")
  7. ball.Shape = "Ball"
  8. ball.Size = Vector3.new(1,1,1)
  9. ball.Parent = game.Workspace
  10. ball.Position = Vector3.new(hrp.Position.X, hrp.Position.Y + 5, hrp.Position.Z)
  11. ball.CanCollide = false
  12. local gyro = Instance.new("BodyGyro")
  13. gyro.Parent = ball
  14. gyro.D = 1000000
  15. gyro.MaxTorque = Vector3.new(1000000, 1000000, 1000000)
  16. gyro.P = 1000000
  17. local att0 = Instance.new("Attachment")
  18. att0.Parent = hrp
  19. local att1 = Instance.new("Attachment")
  20. att1.Parent = ball
  21. local rope = Instance.new("RopeConstraint")
  22. rope.Parent = hrp
  23. rope.Attachment0 = att0
  24. rope.Attachment1 = att1
  25. rope.Length = math.random(1, 2)
  26. ball.Touched:Connect(function(hit)
  27. if hit.Parent.Name ~= plrName then
  28. if hit.Parent:FindFirstChild("Humanoid") then
  29. hit.Parent:FindFirstChild("Humanoid").Health = 0
  30. end
  31. end
  32. end)
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement