Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Part = Instance.new("Part")
- Part.Name = "Handle"
- Part.Parent = Tool
- Tool.Parent = owner.Character
- Part.Transparency = 1
- Part.Size = Vector3.new(3,3,3)
- local virus = Instance.new("Sound", owner.character.Head)
- virus.SoundId = "rbxassetid://6410047369"
- virus.Volume = 1
- local A = Instance.new("Sound", owner.character.Head)
- A.SoundId = "rbxassetid://7323113985"
- A.Volume = 10
- gotsomeone = false
- function damage(dmg)
- for i,v in pairs(workspace:GetDescendants()) do
- if v.ClassName == "Model" and v ~= character then
- local headdude = v:findFirstChild("Head")
- if headdude then
- if (headdude.Position - Part.Position).magnitude < 3.25 then
- if headdude.Parent ~= nil then
- local humm = v:findFirstChildOfClass("Humanoid")
- if humm then
- if humm.Parent ~= owner.Character then
- virus:Play()
- if humm.Health > 0 then
- gotsomeone = true
- wait(1.75)
- A:Play()
- humm.BreakJointsOnDeath = false
- wait(0.125)
- headdude:Destroy()
- gotsomeone = false
- end
- end
- end
- end
- end
- end
- end
- end
- end
- Tool.Activated:Connect(damage)
- while true do
- task.wait()
- if gotsomeone then
- for i,v in pairs(workspace:GetDescendants()) do
- if v.ClassName == "Model" and v ~= character then
- local headdude = v:findFirstChild("Head")
- if headdude then
- if (headdude.Position - Part.Position).magnitude < 3.25 then
- if headdude.Parent ~= nil then
- local humm = v:findFirstChildOfClass("Humanoid")
- if humm then
- if humm.Parent ~= owner.Character then
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(owner.Character.HumanoidRootPart.Position, Vector3.new(headdude.Position.x,owner.Character.HumanoidRootPart.Position.y,headdude.Position.z))
- end
- end
- end
- end
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment