Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Part = Instance.new("Part")
- Part.Name = "Handle"
- Tool.Name = "up"
- Part.Parent = Tool
- Part.Size = Vector3.new(1.75,2,0.5)
- Tool.Parent = owner.Character
- local decal = Instance.new("Decal", Part)
- decal.Face = Enum.NormalId.Front
- local happyFace = "http://www.roblox.com/asset/?id=9104817"
- decal.Texture = happyFace
- Part.BottomSurface = Enum.SurfaceType.Smooth
- Part.BrickColor = BrickColor.new("Pastel Blue")
- Part.TopSurface = Enum.SurfaceType.Smooth
- Part.brickColor = BrickColor.new("Pastel Blue")
- local Goodbye = Instance.new("Sound", owner.character.Head)
- Goodbye.SoundId = "rbxassetid://5574462925"
- Goodbye.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
- Goodbye:Play()
- if humm.Health > 0 then
- gotsomeone = true
- Goodbye.Ended:Wait()
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement