Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toolout = false
- hitsomething = Instance.new("Sound", script)
- hitsomething.PlayOnRemove = true
- hitsomething.SoundId = "rbxassetid://4412016490"
- hitsomething.Volume = 2
- tool = Instance.new("Tool",owner.Backpack)
- Instance.new("RemoteEvent",tool)
- tool.Equipped:Connect(function() toolout = true end)
- tool.Unequipped:Connect(function() toolout = false end)
- part = Instance.new("Part",tool)
- part.Name = "Handle"
- part.Color = Color3.fromRGB(240, 40, 5)
- part.Material = "Slate"
- part.Size = Vector3.new(0.85,0.35,0.5)
- part2 = Instance.new("Part",part)
- part2.Size = Vector3.new(3,1,2)
- part2.CanCollide = false
- part2.Transparency = 1
- part2.Name = "the"
- local wel = Instance.new("Weld",part)
- wel.Part0 = part2
- wel.Part1 = part
- e = Instance.new("RemoteEvent",owner.Character)
- e.Name = "The"
- t = 0.25
- function bones(limb)
- coroutine.wrap(function()
- local bone = Instance.new("Part", limb)
- bone:BreakJoints()
- bone.Massless = true
- pcall(function()
- bone:SetNetworkOwner(limb.Parent.Parent)
- end)
- local bonew = Instance.new("Weld", bone)
- bonew.Part0 = limb
- bonew.Part1 = bone
- bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
- if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
- bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
- else
- bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
- end
- bone.Transparency = 1
- bone.Shape = "Cylinder"
- game:GetService("Debris"):AddItem(bone,1)
- end)()
- end
- function kill(Character)
- coroutine.wrap(function()
- pcall(function()
- local nek = Character.Humanoid.RequiresNeck
- Character.Humanoid.RequiresNeck = false
- Character.Humanoid.PlatformStand = true
- if not Character:findFirstChild("UpperTorso") then
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Motor6D") then
- coroutine.wrap(function()
- v.Enabled = false
- wait(1)
- v.Enabled = true
- end)()
- end
- end
- coroutine.wrap(function()
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = Character["Left Arm"]
- a2.Parent = Character.Torso
- Socket.Parent = Character["Left Arm"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
- Socket.LimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = Character["Left Leg"]
- a2.Parent = Character.Torso
- Socket.Parent = Character["Left Leg"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
- Socket.LimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = Character["Right Leg"]
- a2.Parent = Character.Torso
- Socket.Parent = Character["Right Leg"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- Socket.LimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0.5,-1.5,0)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = Character.HumanoidRootPart
- a2.Parent = Character.Torso
- Socket.Parent = Character.HumanoidRootPart
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame
- a2.WorldCFrame = a1.Parent.CFrame
- Socket.LimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = Character.Head
- a2.Parent = Character.Torso
- Socket.Parent = Character.Head
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-0.5,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1.0625,0)
- Socket.TwistLimitsEnabled = true
- Socket.LimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = Character["Right Arm"]
- a2.Parent = Character.Torso
- Socket.Parent = Character["Right Arm"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
- a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0)
- Socket.LimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- end)()
- coroutine.wrap(function()
- local ch = Character
- bones(ch["Left Arm"])
- bones(ch["Right Arm"])
- bones(ch["Left Leg"])
- bones(ch["Right Leg"])
- bones(ch.Head)
- end)()
- else
- coroutine.wrap(function()
- local ch = Character
- bones(ch.LeftUpperArm)
- bones(ch.LeftLowerArm)
- bones(ch.RightUpperArm)
- bones(ch.RightLowerArm)
- bones(ch.LeftUpperLeg)
- bones(ch.LeftLowerLeg)
- bones(ch.RightUpperLeg)
- bones(ch.RightLowerLeg)
- bones(ch.Head)
- end)()
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = v.Part0
- a2.Parent = v.Part1
- Socket.Parent = v.Parent
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = v.C0
- a2.CFrame = v.C1
- Socket.LimitsEnabled = true
- Socket.TwistLimitsEnabled = true
- game:GetService("Debris"):AddItem(Socket,1)
- coroutine.wrap(function()
- v.Enabled = false
- wait(1)
- v.Enabled = true
- end)()
- end
- end
- end
- coroutine.wrap(function()
- wait(1)
- Character.Humanoid.PlatformStand = false
- wait(0.1)
- Character.Humanoid.RequiresNeck = nek
- end)()
- end)
- end)()
- end
- e.OnServerEvent:Connect(function(_,hit)
- if toolout then
- local g = Vector3.new(0, -game.Workspace.Gravity, 0);
- local x0 = owner.Character.HumanoidRootPart.CFrame * Vector3.new(0, 2, -4)
- local v0 = (hit - x0 - 0.5*g*t*t)/t;
- local p = part:Clone()
- p.Parent = script;
- p.CanCollide = true;
- p.CFrame = CFrame.new(x0) * CFrame.Angles(CFrame.new(part.Position,part.Position + v0):ToEulerAnglesXYZ())
- p.Velocity = v0
- task.wait()
- local db = false
- p.the.Touched:Connect(function(hitp)
- local hum = hitp.Parent:FindFirstChildWhichIsA("Humanoid") or hitp.Parent.Parent:FindFirstChildWhichIsA("Humanoid")
- if hum then
- if not db then
- db = true
- hum.Health -= 5
- if hitp.Parent:FindFirstChildWhichIsA("Humanoid") then
- local bf2 = Instance.new("BodyVelocity",hitp.Parent:FindFirstChildWhichIsA("Part"))
- bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bf2.Velocity = CFrame.new(part.Position,hitp.Position).lookVector * 40
- game:GetService("Debris"):AddItem(bf2,0.1)
- local bon = Instance.new("Part",script)
- bon.CanCollide = false
- bon.Transparency = 1
- bon.Anchored = true
- bon.CFrame = hitp.Parent:FindFirstChildWhichIsA("Part").CFrame
- local billboard = Instance.new("BillboardGui", bon)
- billboard.Size = UDim2.new(2,0,2,0)
- local frame = Instance.new("ImageLabel", billboard)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = bon
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.CFrame = bon.CFrame * CFrame.new(0,3,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- frame.BackgroundTransparency = 1
- frame.ImageTransparency = 1
- frame.Image = "http://www.roblox.com/asset/?id=4866749889"
- frame.Size = UDim2.new(1,0,1,0)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = frame
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.ImageTransparency = 0
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(bon,2)
- else
- local bf2 = Instance.new("BodyVelocity",hitp.Parent.Parent:FindFirstChildWhichIsA("Part"))
- bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bf2.Velocity = CFrame.new(part.Position,hitp.Position).lookVector * 40
- game:GetService("Debris"):AddItem(bf2,0.1)
- local bon = Instance.new("Part",script)
- bon.CanCollide = false
- bon.Transparency = 1
- bon.Anchored = true
- bon.CFrame = hitp.Parent.Parent:FindFirstChildWhichIsA("Part").CFrame
- local billboard = Instance.new("BillboardGui", bon)
- billboard.Size = UDim2.new(2,0,2,0)
- local frame = Instance.new("ImageLabel", billboard)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = bon
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.CFrame = bon.CFrame * CFrame.new(0,3,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- frame.BackgroundTransparency = 1
- frame.ImageTransparency = 1
- frame.Image = "http://www.roblox.com/asset/?id=4866749889"
- frame.Size = UDim2.new(1,0,1,0)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.125
- local object = frame
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.ImageTransparency = 0
- local tween = tweenService:Create(object, tweenInfo, goal)
- tween:Play()
- game:GetService("Debris"):AddItem(bon,2)
- end
- hitsomething.Parent = hitp
- hitsomething.Parent = nil
- coroutine.wrap(function()
- if hitp.Parent:FindFirstChildWhichIsA("Humanoid") then
- kill(hitp.Parent)
- par = hitp.Parent
- else
- kill(hitp.Parent.Parent)
- par = hitp.Parent.Parent
- end
- end)()
- end
- end
- end)
- game:GetService("Debris"):AddItem(p,10)
- end
- end)
- NLS([[
- e = owner.Character:WaitForChild("The")
- mouse = owner:GetMouse()
- owner:GetMouse().Button1Down:Connect(function()
- e:FireServer(mouse.Hit.p)
- end)
- ]],owner.PlayerGui)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement