Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool",owner.Backpack)
- part = Instance.new("Part",tool)
- part.Name = "Handle"
- part.Color = Color3.fromRGB(120,4,164)
- tool.Name = "man behind the slaughter"
- a = Instance.new("Sound",part)
- a.SoundId = "http://www.roblox.com/asset/?id=4879614820"
- a.Looped = true
- a.Volume = 0.5
- part.Size = Vector3.new(1.5,1.5,1.5)
- tool.Grip = CFrame.new(0,0,0.75)
- part.Material = "Neon"
- local billboard = Instance.new("BillboardGui", part)
- billboard.Size = UDim2.new(1.5,0,1.5,0)
- local frame = Instance.new("ImageLabel", billboard)
- frame.BackgroundTransparency = 1
- frame.Image = "http://www.roblox.com/asset/?id=7871416092"
- frame.Size = UDim2.new(1,0,1,0)
- frame.ResampleMode = Enum.ResamplerMode.Pixelated
- part.Transparency = 1
- tool.Equipped:Connect(function()
- a:Resume()
- end)
- tool.Unequipped:Connect(function()
- a:Pause()
- end)
- stopped = true
- force = 200
- tool.Activated:Connect(function()
- frame.Image = "http://www.roblox.com/asset/?id=215826391"
- end)
- local knives = {}
- local toolout = false
- tool.Equipped:Connect(function()
- toolout = true
- end)
- tool.Unequipped:Connect(function()
- toolout = false
- end)
- hit = Instance.new("Sound",script)
- hit.SoundId = "http://www.roblox.com/asset/?id=5924183835"
- hit.PlayOnRemove = true
- hit.Volume = 1
- e = Instance.new("RemoteEvent",tool)
- e.OnServerEvent:Connect(function(plr,speed)
- if toolout then
- pcall(function()
- coroutine.wrap(function()
- wait(0.25)
- frame.Image = "http://www.roblox.com/asset/?id=7871416092"
- end)()
- local knife = Instance.new("SpawnLocation",script)
- knife.Enabled = false
- knife.Size = Vector3.new(0.4, 3, 0.7)
- knife.CFrame = part.CFrame
- knife:ApplyImpulse(speed)
- knife:ApplyAngularImpulse(knife.CFrame.rightVector * -5)
- flying = Instance.new("Sound",knife)
- flying.SoundId = "http://www.roblox.com/asset/?id=608509471"
- flying.Looped = true
- flying.Volume = 4
- flying:Play()
- game:GetService("Debris"):AddItem(knife,45)
- table.insert(knives,knife)
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = knife
- Mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
- yeet = Instance.new("Trail",knife)
- local attach1 = Instance.new("Attachment", knife)
- local attach2 = Instance.new("Attachment", knife)
- attach1.CFrame = CFrame.new(0, -0.2, 0.15)
- attach2.CFrame = CFrame.new(0, 0.7, 0.15)
- yeet.Attachment0 = attach1
- yeet.Attachment1 = attach2
- yeet.LightInfluence = 1
- yeet.Transparency = NumberSequence.new(0.8125,1)
- yeet.Lifetime = 0.15000000596046
- force = 200
- local rayhit = false
- wait()
- while task.wait() and not rayhit do
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {knifes, owner.Character}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local result = game.Workspace:Raycast(knife.Position, knife.CFrame.lookVector * 1.75,params)
- local result2 = game.Workspace:Raycast(knife.Position, knife.CFrame.lookVector * -1.75,params)
- local result3 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * 2.5,params)
- local result4 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * -2.5,params)
- local result5 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * -2.5 + knife.CFrame.lookVector * 1.75,params)
- local result6 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * -2.5 + knife.CFrame.lookVector * -1.75,params)
- local result7 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * 2.5 + knife.CFrame.lookVector * 1.75,params)
- local result8 = game.Workspace:Raycast(knife.Position, knife.CFrame.upVector * 2.5 + knife.CFrame.lookVector * -1.75,params)
- if result or result2 or result3 or result4 or result5 or result6 or result7 or result8 then
- flying:Stop()
- flying:Destroy()
- hit.Parent = knife
- hit.Parent = nil
- end
- if result then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local whathit = result.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = result.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = result.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result2 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local whathit = result2.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = result2.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = result2.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result3 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local whathit = result3.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = result3.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = result3.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result4 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local whathit = result4.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = result4.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = result4.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result5 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local res = result5
- local whathit = res.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = res.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = res.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result6 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local res = result6
- local whathit = res.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = res.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = res.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result7 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local res = result7
- local whathit = res.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = res.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = res.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- elseif result8 then
- rayhit = true
- yeet.Enabled = false
- game:GetService("Debris"):AddItem(yeet,2)
- local res = result8
- local whathit = res.Instance
- local currentRightVector = whathit.CFrame.RightVector
- local upVector = res.Normal
- local newFacialVector = currentRightVector:Cross(upVector)
- knife.Position = res.Position
- local x, y, z = CFrame.new(part.Position,knife.Position):ToEulerAnglesXYZ()
- knife.CFrame = CFrame.fromMatrix(knife.Position, currentRightVector, upVector, newFacialVector)
- * CFrame.Angles(0,y,0) * CFrame.Angles(math.rad(180),0,0)
- weld = Instance.new("WeldConstraint",knife)
- weld.Part0 = knife
- weld.Part1 = whathit
- if whathit.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- elseif whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") and whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid") ~= owner.Character.Humanoid then
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
- whathit.Parent.Parent:FindFirstChildWhichIsA("Humanoid").Health = 0
- end
- end
- end
- end)
- end
- end)
- local object = Instance.new("ObjectValue", owner.PlayerGui)
- object.Value = e
- object.Name = "Remote"
- local object2 = Instance.new("ObjectValue", owner.PlayerGui)
- object2.Value = part
- object2.Name = "handle"
- NLS([[
- local e = owner.PlayerGui.Remote.Value
- local handle = owner.PlayerGui.handle.Value
- mouse = owner:GetMouse()
- mouse.Button1Up:Connect(function()
- local t = 0.6
- local g = Vector3.new(0, -game.Workspace.Gravity, 0)
- if (mouse.Hit.p - handle.Position).magnitude < 150 then
- local v0 = (mouse.Hit.p - handle.CFrame * Vector3.new(0,0,0) - 0.25*g*t*t)/t -- thank ego moose for calculations
- e:FireServer(v0)
- else
- local v0 = (Vector3.new(150,150,150) * (mouse.Hit.p - handle.Position).Unit - 0.5*g*t*t)/t -- thank ego moose for calculations
- e:FireServer(v0)
- end
- end)
- ]],owner.PlayerGui)
Add Comment
Please, Sign In to add comment