TheUnknownDiscord

knife

Nov 19th, 2021 (edited)
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Tool = Instance.new("Tool")
  2. local Part = Instance.new("Part")
  3. Part.Name = "Handle"
  4. Part.Parent = Tool
  5. Tool.Parent = owner.Character
  6. Tool.Name = "London"
  7. Tool.GripPos = Vector3.new(0,0.75,0)
  8. local Mesh = Instance.new("SpecialMesh")
  9. Mesh.Parent = Part
  10. swinging = Instance.new("Sound",owner.Character.Head)
  11. swinging.SoundId = "rbxassetid://6241709963"
  12. swinging.Volume = 2.5
  13. stabbed = Instance.new("Sound",owner.Character.Head)
  14. stabbed.SoundId = "rbxassetid://7346429615"
  15. stabbed.Volume = 10
  16. Mesh.MeshId = "http://www.roblox.com/asset/?id=7701203199"
  17. Mesh.TextureId = "http://www.roblox.com/asset/?id=7701203374"
  18. Mesh.Scale = Vector3.new(0.035,0.035,0.035)
  19. Part.Size = Vector3.new(2,4,1.5)
  20. Part2 = Instance.new("Part",owner.Character)
  21. Mesh2 = Instance.new("SpecialMesh")
  22. Mesh2.Parent = Part2
  23. Mesh2.MeshId = "http://www.roblox.com/asset/?id=7701203199"
  24. Mesh2.TextureId = "http://www.roblox.com/asset/?id=7701203374"
  25. Mesh2.Scale = Vector3.new(0.035,0.035,0.035)
  26. Part2.Size = Vector3.new(2,4,1.5)
  27. Part2.Transparency = 1
  28. Part2.CanCollide = false
  29. Part2.CanTouch = false
  30. Part2.CanQuery = false
  31. Part2.Massless = true
  32. local knife = Instance.new("Weld", owner.Character["Right Arm"])
  33. knife.Part0 = owner.Character["Right Arm"]
  34. knife.Part1 = Part2
  35. knife.C0 = CFrame.new(0,-1,0) * CFrame.Angles(math.rad(90),0,0)
  36. local armm = Instance.new("Weld", owner.Character.Torso)
  37. armm.Part0 = owner.Character.Torso
  38. armm.Part1 = owner.Character["Right Arm"]
  39. armm.C0 = CFrame.new(1.5,0,0)
  40. armm.Name = "armmWeld"
  41. armm.Enabled = false
  42. local tweenService = game:GetService("TweenService")
  43. local timeToFade = 0.5
  44. local object = armm
  45. local tweenInfo = TweenInfo.new(timeToFade)
  46. local goal = {}
  47. goal.C0 = CFrame.new(1.5,0.75,-0.75) * CFrame.Angles(math.rad(105),0,0) * CFrame.Angles(0,0,math.rad(30))
  48. local equipped = tweenService:Create(object, tweenInfo, goal)
  49. local timeToFade4 = 0.5
  50. local object4 = armm
  51. local tweenInfo4 = TweenInfo.new(timeToFade4)
  52. local goal7 = {}
  53. goal7.C0 = CFrame.new(1.5,0.75,-0.75) * CFrame.Angles(math.rad(65),0,0) * CFrame.Angles(0,math.rad(0),math.rad(35))
  54. local unequipped = tweenService:Create(object, tweenInfo4, goal7)
  55. local goal11 = {}
  56. goal11.C0 = CFrame.new(1.5,0,0) * CFrame.Angles(math.rad(0),0,0) * CFrame.Angles(0,0,math.rad(0))
  57. local unequipped2 = tweenService:Create(object, tweenInfo4, goal11)
  58. local goal12 = {}
  59. goal12.C0 = CFrame.new(1.25,0,-0.75) * CFrame.Angles(math.rad(85),0,0) * CFrame.Angles(0,0,math.rad(-45)) * CFrame.Angles(0,math.rad(-45),0)
  60. local timeToFade3 = 0.125
  61. local timeToFadeswing = 0.25
  62. local object3 = armm
  63. local tweenInfo3 = TweenInfo.new(timeToFade3)
  64. local tweenInfoswing = TweenInfo.new(timeToFadeswing)
  65. local goal6 = {}
  66. goal6.C0 = CFrame.new(1.5,1,-0.75) * CFrame.Angles(math.rad(165),0,math.rad(15))
  67. local swing = tweenService:Create(object, tweenInfoswing, goal12)
  68. local equipped2 = tweenService:Create(object3, tweenInfo3, goal6)
  69. local timeToFade2 = 0.125
  70. local tweenInfo2 = TweenInfo.new(timeToFade2)
  71. local object2 = Tool
  72. local goal2 = {}
  73. goal2.Grip = CFrame.Angles(math.rad(-89),0,0)
  74. local goal4 = {}
  75. goal4.GripPos = Vector3.new(0,0,1.5)
  76. local equippedknife = tweenService:Create(object2, tweenInfoswing, goal2)
  77. local goal10 = {}
  78. goal10.C0 = CFrame.new(0,-1,-0.5) * CFrame.Angles(math.rad(-46),0,0)
  79. local object6 = knife
  80. local unequippedknife = tweenService:Create(object6, tweenInfo2, goal10)
  81. local equippedknife3 = tweenService:Create(object2, tweenInfoswing, goal4)
  82. local goal3 = {}
  83. goal3.Grip = CFrame.Angles(math.rad(-180),0,0)
  84. local goal5 = {}
  85. goal5.GripPos = Vector3.new(0,0,-0.5)
  86. local equippedknife2 = tweenService:Create(object2, tweenInfoswing, goal3)
  87. local goal3 = {}
  88. goal3.Grip = CFrame.Angles(math.rad(-180),0,0)
  89. local goal9 = {}
  90. goal9.C0 = CFrame.new(0,-1,-0.5) * CFrame.Angles(math.rad(-90),0,0)
  91. local unequippedknife2 = tweenService:Create(object6, tweenInfo2, goal9)
  92. local equippedknife4 = tweenService:Create(object2, tweenInfoswing, goal5)
  93. Tool.Equipped:Connect(function()
  94. armm.Enabled = true
  95. equipped:Play()
  96. wait(0.25)
  97. equippedknife:Play()
  98. equippedknife3:Play()
  99. equipped2:Play()
  100. swinging.PlaybackSpeed = 2
  101. swinging:Play()
  102. wait(0.125)
  103. equipped:Play()
  104. swinging.PlaybackSpeed = 1.75
  105. swinging:Play()
  106. equippedknife2:Play()
  107. equippedknife4:Play()
  108. end)
  109. Tool.Unequipped:Connect(function()
  110. armm.Enabled = true
  111. Tool.Grip = CFrame.Angles(math.rad(0),0,0)
  112. Part2.Transparency = 0
  113. unequipped:Play()
  114. unequippedknife:Play()
  115. wait(0.25)
  116. unequippedknife2:Play()
  117. unequipped2:Play()
  118. wait(0.5)
  119. armm.Enabled = false
  120. knife.C0 = CFrame.new(0,-1,0) * CFrame.Angles(math.rad(90),0,0)
  121. Part2.Transparency = 1
  122. end)
  123. canattack = false
  124. Tool.Activated:Connect(function()
  125. swing:Play()
  126. swinging.PlaybackSpeed = 1.35
  127. swinging:Play()
  128. canattack = true
  129. wait(0.25)
  130. equipped:Play()
  131. wait(0.125)
  132. canattack = false
  133. end)
  134. function isplatformstand(PC)
  135. coroutine.wrap(function()
  136. PC.Character.Humanoid.PlatformStand = true
  137. wait(5)
  138. for i,v in pairs(PC.Character:GetDescendants()) do
  139. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  140. v.Enabled = true
  141. end
  142. end
  143. PC.Character.Humanoid.PlatformStand = false
  144. end)()
  145. end
  146. local debris = game:GetService("Debris")
  147. function killfunction(part)
  148. local Model = part:FindFirstAncestorOfClass("Model")
  149. if Model then
  150. local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
  151. if PC then
  152. if PC ~= owner then
  153. PC.Character.Humanoid.RequiresNeck = false
  154. PC.Character.Humanoid.BreakJointsOnDeath = false
  155. local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Hand"))
  156. limbcollider.Size = Vector3.new(0.5,1,1)
  157. limbcollider.Shape = "Cylinder"
  158. limbcollider.Transparency = 1
  159. limbcollider.Name = "LimbCollider"
  160. local limbcolliderweld = Instance.new("Weld", limbcollider)
  161. limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Hand")
  162. limbcolliderweld.Part1 = limbcollider
  163. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  164. local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
  165. limbcollider.Size = Vector3.new(1.4,1,1)
  166. limbcollider.Shape = "Cylinder"
  167. limbcollider.Transparency = 1
  168. limbcollider.Name = "LimbCollider"
  169. local limbcolliderweld = Instance.new("Weld", limbcollider)
  170. limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
  171. limbcolliderweld.Part1 = limbcollider
  172. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  173. local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Hand"))
  174. limbcollider2.Size = Vector3.new(0.5,1,1)
  175. limbcollider2.Shape = "Cylinder"
  176. limbcollider2.Transparency = 1
  177. limbcollider2.Name = "LimbCollider"
  178. local limbcolliderweld2 = Instance.new("Weld", limbcollider)
  179. limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Hand")
  180. limbcolliderweld2.Part1 = limbcollider2
  181. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  182. local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
  183. limbcollider2.Size = Vector3.new(1.4,1,1)
  184. limbcollider2.Shape = "Cylinder"
  185. limbcollider2.Transparency = 1
  186. limbcollider2.Name = "LimbCollider"
  187. local limbcolliderweld2 = Instance.new("Weld", limbcollider)
  188. limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
  189. limbcolliderweld2.Part1 = limbcollider2
  190. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  191. local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Foot"))
  192. limbcollider3.Size = Vector3.new(0.4,1,1)
  193. limbcollider3.Shape = "Cylinder"
  194. limbcollider3.Transparency = 1
  195. limbcollider3.Name = "LimbCollider"
  196. local limbcolliderweld3 = Instance.new("Weld", limbcollider)
  197. limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Foot")
  198. limbcolliderweld3.Part1 = limbcollider3
  199. limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  200. local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
  201. limbcollider3.Size = Vector3.new(1.3,1,1)
  202. limbcollider3.Shape = "Cylinder"
  203. limbcollider3.Transparency = 1
  204. limbcollider3.Name = "LimbCollider"
  205. local limbcolliderweld3 = Instance.new("Weld", limbcollider)
  206. limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
  207. limbcolliderweld3.Part1 = limbcollider3
  208. limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  209. local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Foot"))
  210. limbcollider4.Size = Vector3.new(0.4,1,1)
  211. limbcollider4.Shape = "Cylinder"
  212. limbcollider4.Transparency = 1
  213. limbcollider4.Name = "LimbCollider"
  214. local limbcolliderweld4 = Instance.new("Weld", limbcollider)
  215. limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Foot")
  216. limbcolliderweld4.Part1 = limbcollider4
  217. limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  218. local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
  219. limbcollider4.Size = Vector3.new(1.3,1,1)
  220. limbcollider4.Shape = "Cylinder"
  221. limbcollider4.Transparency = 1
  222. limbcollider4.Name = "LimbCollider"
  223. local limbcolliderweld4 = Instance.new("Weld", limbcollider)
  224. limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
  225. limbcolliderweld4.Part1 = limbcollider4
  226. limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  227. debris:AddItem(limbcollider, 5)
  228. debris:AddItem(limbcollider2, 5)
  229. debris:AddItem(limbcollider3, 5)
  230. debris:AddItem(limbcollider4, 5)
  231. isplatformstand(PC)
  232. for i,v in pairs(PC.Character:GetDescendants()) do
  233. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  234. local Socket = Instance.new("BallSocketConstraint")
  235. local a1 = Instance.new("Attachment")
  236. local a2 = Instance.new("Attachment")
  237. a1.Parent = v.Part0
  238. a2.Parent = v.Part1
  239. Socket.Parent = v.Parent
  240. Socket.Attachment0 = a1
  241. Socket.Attachment1 = a2
  242. a1.CFrame = v.C0
  243. a2.CFrame = v.C1
  244. Socket.LimitsEnabled = true
  245. Socket.TwistLimitsEnabled = true
  246. v.Enabled = false
  247. debris:AddItem(a1, 5)
  248. debris:AddItem(a2, 5)
  249. debris:AddItem(Socket, 5)
  250. end
  251. end
  252. end
  253. end
  254. end
  255. end
  256. Part.Touched:Connect(function(hit)
  257. if canattack then
  258. local humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
  259. if humanoid then
  260. if humanoid ~= owner.Character.Humanoid then
  261. canattack = false
  262. humanoid.Health = humanoid.Health - math.random(45,77.5)
  263. killfunction(hit)
  264. stabbed:Play()
  265. local pe = Instance.new("ParticleEmitter", hit)
  266. rand = math.random
  267. pe.Color = ColorSequence.new(Color3.fromRGB(100,0,0))
  268. pe.LightEmission = 0
  269. pe.LightInfluence = 1
  270. pe.EmissionDirection = "Top"
  271. pe.Orientation = Enum.ParticleOrientation.VelocityParallel
  272. pe.Size = NumberSequence.new(1,0)
  273. pe.Texture = "rbxassetid://243132757"
  274. pe.Transparency = NumberSequence.new(0,0.4)
  275. pe.Lifetime = NumberRange.new(0.25,0.4)
  276. pe.Rate = 300
  277. pe.Rotation = NumberRange.new(90)
  278. pe.RotSpeed = NumberRange.new(0)
  279. pe.Speed = NumberRange.new(15)
  280. pe.SpreadAngle = Vector2.new(-15,15)
  281. pe.Drag = NumberRange.new(1)
  282. pe.Acceleration = Vector3.new(rand(-20,20),-50,rand(-20,20))
  283. game:GetService("Debris"):AddItem(pe,2)
  284. coroutine.wrap(function()
  285. for i = 1, 10 do
  286. local bloodpartfloor = Instance.new("SpawnLocation", workspace)
  287. bloodpartfloor.Enabled = false
  288. local random2 = math.random(-5,5)
  289. bloodpartfloor.Size = Vector3.new(0.05,0.5,0.5)
  290. bloodpartfloor.CanCollide = false
  291. bloodpartfloor.Material = "Glass"
  292. bloodpartfloor.Shape = "Cylinder"
  293. bloodpartfloor.Anchored = true
  294. local params = RaycastParams.new()
  295. params.FilterDescendantsInstances = {hit, owner.Character,bloodpartfloor}
  296. params.FilterType = Enum.RaycastFilterType.Blacklist
  297. local result = workspace:Raycast(hit.Position + Vector3.new(random2,0,random2), hit.Position + Vector3.new(random2,-50,random2), params)
  298. if result then
  299. bloodpartfloor.Position = result.Position
  300. local currentRightVector = hit.CFrame.RightVector
  301. local upVector = result.Normal
  302. local newFacialVector = currentRightVector:Cross(upVector)
  303. bloodpartfloor.CFrame = CFrame.fromMatrix(bloodpartfloor.Position, currentRightVector, upVector, newFacialVector) * CFrame.Angles(0,0,math.rad(90))
  304. bloodpartfloor.BrickColor = BrickColor.new("Maroon")
  305. game:GetService("Debris"):AddItem(bloodpartfloor,10)
  306. local tweenService = game:GetService("TweenService")
  307. local timeToFade = 7.5
  308. local object = bloodpartfloor
  309. local tweenInfo = TweenInfo.new(timeToFade)
  310. local goal = {}
  311. local random = math.random(1,5)
  312. goal.Size = Vector3.new(0.05,random,random)
  313. local grow = tweenService:Create(object, tweenInfo, goal)
  314. grow:Play()
  315. end
  316. end
  317. end)()
  318. end
  319. end
  320. end
  321. end)
RAW Paste Data