Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plrName = "Sarnaif"
- while wait(3) do
- if game.Workspace:FindFirstChild(plrName) then
- if game.Workspace:FindFirstChild(plrName).Humanoid.Health > 0 then
- local hrp = game.Workspace:FindFirstChild(plrName).HumanoidRootPart
- local ball = Instance.new("Part")
- ball.Shape = "Ball"
- ball.Size = Vector3.new(1,1,1)
- ball.Parent = game.Workspace
- ball.Position = Vector3.new(hrp.Position.X, hrp.Position.Y + 5, hrp.Position.Z)
- ball.CanCollide = false
- local gyro = Instance.new("BodyGyro")
- gyro.Parent = ball
- gyro.D = 1000000
- gyro.MaxTorque = Vector3.new(1000000, 1000000, 1000000)
- gyro.P = 1000000
- local att0 = Instance.new("Attachment")
- att0.Parent = hrp
- local att1 = Instance.new("Attachment")
- att1.Parent = ball
- local rope = Instance.new("RopeConstraint")
- rope.Parent = hrp
- rope.Attachment0 = att0
- rope.Attachment1 = att1
- rope.Length = math.random(1, 2)
- ball.Touched:Connect(function(hit)
- if hit.Parent.Name ~= plrName then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid").Health = 0
- end
- end
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement