Advertisement
ericdesouza

knife script V2

Feb 25th, 2018
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.69 KB | None | 0 0
  1. --By Rufus14 boi
  2. --edited by ericdesouza
  3. mouse = game.Players.LocalPlayer:GetMouse()
  4. --Converted with ttyyuu12345's model to script plugin v4
  5. function sandbox(var,func)
  6. local env = getfenv(func)
  7. local newenv = setmetatable({},{
  8. __index = function(self,k)
  9. if k=="script" then
  10. return var
  11. else
  12. return env[k]
  13. end
  14. end,
  15. })
  16. setfenv(func,newenv)
  17. return func
  18. end
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. Model0 = Instance.new("Model")
  22. Part1 = Instance.new("Part")
  23. SpecialMesh2 = Instance.new("SpecialMesh")
  24. Part3 = Instance.new("Part")
  25. Weld4 = Instance.new("Weld")
  26. Model0.Name = "legend knife"
  27. Model0.Parent = mas
  28. Part1.Name = "realknife"
  29. Part1.Parent = Model0
  30. Part1.Rotation = Vector3.new(0, -360, 0)
  31. Part1.CanCollide = false
  32. Part1.Size = Vector3.new(1.56900003, 0.259999305, 0.459999979)
  33. Part1.CFrame = CFrame.new(-20.8307228, 1.96215653, -28.7958698, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  34. Part1.BottomSurface = Enum.SurfaceType.Smooth
  35. Part1.TopSurface = Enum.SurfaceType.Smooth
  36. Part1.Position = Vector3.new(-20.8307228, 1.96215653, -28.7958698)
  37. Part1.Orientation = Vector3.new(0, 90, 0)
  38. SpecialMesh2.Parent = Part1
  39. SpecialMesh2.MeshId = "rbxassetid://69464145"
  40. SpecialMesh2.Scale = Vector3.new(3, 3, 3)
  41. SpecialMesh2.TextureId = "rbxassetid://119889819"
  42. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  43. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  44. Part3.Name = "hitbox"
  45. Part3.Parent = Model0
  46. Part3.Transparency = 1
  47. Part3.Size = Vector3.new(0.0799999982, 1, 4.23999929)
  48. Part3.CFrame = CFrame.new(-20.8435993, 1.97891688, -28.7396412, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  49. Part3.BottomSurface = Enum.SurfaceType.Smooth
  50. Part3.TopSurface = Enum.SurfaceType.Smooth
  51. Part3.Position = Vector3.new(-20.8435993, 1.97891688, -28.7396412)
  52. Part3.CanCollide = false
  53. Weld4.Parent = Part3
  54. Weld4.C0 = CFrame.new(0.0128765106, -0.0167603493, -0.0562286377, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  55. Weld4.Part0 = Part3
  56. Weld4.Part1 = Part1
  57. for i,v in pairs(mas:GetChildren()) do
  58. v.Parent = game:GetService("Players").LocalPlayer.Character
  59. pcall(function() v:MakeJoints() end)
  60. end
  61. mas:Destroy()
  62. for i,v in pairs(cors) do
  63. spawn(function()
  64. pcall(v)
  65. end)
  66. end
  67. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  68. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  69. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  70. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  71. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  72. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  73. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  74. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  75. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  76. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  77. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  78. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  79. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  80. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  81. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  82. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  83. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  84. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  85. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  86. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  87. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  88. local waeld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  89. waeld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  90. waeld.Part1 = Part1
  91. waeld.C0 = CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  92. canuse = true
  93. throwie = false
  94. damged = false
  95. throwval = 0
  96. hitwall = Instance.new("Sound", Model0.realknife)
  97. hitwall.SoundId = "rbxassetid://214755079"
  98. hitwall.Volume = 10
  99. throwB = Instance.new("Sound", Model0.realknife)
  100. throwB.SoundId = "rbxassetid://166423113"
  101. throwB.Volume = 10
  102. slash = Instance.new("Sound", Model0.realknife)
  103. slash.SoundId = "rbxassetid://978101945"
  104. slash.Volume = 10
  105. for i,v in pairs(cors) do
  106. spawn(function()
  107. pcall(v)
  108. end)
  109. end
  110. function stab(key)
  111. if canuse then
  112. canuse = false
  113. for i = 0,1 , 0.05 do
  114. headweld.C0 = headweld.C0:lerp(CFrame.new(-1.90734863e-06, 1.50000036, 0, 0.532369733, 3.7252903e-09, 0.84651196, -1.86264515e-09, 0.99999994, 3.7252903e-09, -0.84651196, 9.31322575e-10, 0.532369792),i)
  115. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.204963252, 0.0110486243, -0.978707314, -0.0538272448, 0.998550236, 0, 0.977288425, 0.0526811182, 0.205260843),i)
  116. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.62274551, 0.625679851, -0.324334621, 0.892506719, 0.394126594, -0.219307721, -0.335090578, 0.253951877, -0.907316029, -0.301903814, 0.88327384, 0.358722001),i)
  117. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.38278389, 0.358563185, -0.35576582, 0.622085154, 0.589078009, 0.515749037, 0.520516813, 0.180908665, -0.834466279, -0.584869266, 0.787565291, -0.194084436),i)
  118. game:GetService("RunService").RenderStepped:wait()
  119. end
  120. slash:Play()
  121. damged = true
  122. for i = 0,1 , 0.07 do
  123. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0235719681, -1.80648994, -0.295873642, 0.999999881, -1.41840428e-06, -2.03028321e-07, 4.39584255e-07, 0.17365025, 0.984807372, -1.45006925e-06, -0.984806836, 0.173650339) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),i)
  124. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49999952, -1.43051147e-06, -0.249196813, 2.23517418e-08, -0.968452811, -4.48198989e-09, 0.999999821, -2.98023224e-08, 0.968452811, 1.86264515e-09, -0.249196798),i)
  125. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, -0.240329295, -0.02552839, 0.97035563, -0.0975859016, 0.995224953, 0.00201342511, -0.965773642, -0.0942091718, -0.241672948),i)
  126. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.94862175, 0.589737892, 0.036031723, 0.437891245, 0.895518184, 0.0793625563, -0.734854102, 0.407384276, -0.542242527, -0.517919183, 0.179123357, 0.836465418),i)
  127. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.88391113, 0.481715679, 0.273626804, -0.245335877, -0.935992301, -0.252445042, -0.152630016, 0.29444921, -0.943399429, 0.957347453, -0.192919195, -0.215099543),i)
  128. game:GetService("RunService").RenderStepped:wait()
  129. end
  130. damged = false
  131. canuse = true
  132. end
  133. end
  134. mouse.Button1Down:connect(stab)
  135. function stabbystabby(part)
  136. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  137. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  138. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  139. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  140. if damged and humanoid and part.Parent.Name ~= game.Players.LocalPlayer.Name then
  141. humanoid.Parent:BreakJoints()
  142. damged = false
  143. wait()
  144. local isr15 = part.Parent:findFirstChild("UpperTorso")
  145. if isr15 then
  146. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  147. humanoid.Parent.HumanoidRootPart.CanCollide = false
  148. end
  149. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  150. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  151. constraint.Attachment0 = attachone
  152. constraint.Attachment1 = attachtwo
  153. constraint.LimitsEnabled = true
  154. constraint.TwistLimitsEnabled = true
  155. constraint.TwistLowerAngle = lowang
  156. constraint.TwistUpperAngle = upperang
  157. constraint.UpperAngle = twist
  158. end
  159. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  160. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  161. constraint.Attachment0 = attachone
  162. constraint.Attachment1 = attachtwo
  163. constraint.LimitsEnabled = true
  164. constraint.LowerAngle = lowang
  165. constraint.UpperAngle = upperang
  166. end
  167. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  168. if v.ClassName == "Accessory" then
  169. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  170. if findhandle then
  171. local attach = findhandle:findFirstChildOfClass("Attachment")
  172. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  173. if w.Name == "UpperTorso" or w.Name == "Head" then
  174. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  175. end
  176. end
  177. if attach and attach1 then
  178. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  179. constraint.Attachment0 = attach
  180. constraint.Attachment1 = attach1
  181. constraint.LimitsEnabled = true
  182. constraint.LowerAngle = 0
  183. constraint.UpperAngle = 0
  184. end
  185. end
  186. end
  187. end
  188. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  189. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  190. attachment.Position = Vector3.new(0, -0.5, 0)
  191. attachment.Name = "lol"
  192. attachment.Visible = false
  193. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  194. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  195. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  196. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  197. ball.Attachment1 = attachment
  198. ball.LimitsEnabled = true
  199. ball.TwistLimitsEnabled = true
  200. ball.UpperAngle = 40
  201. ball.Restitution = 0.5
  202. ball.TwistUpperAngle = 40
  203. ball.TwistLowerAngle = -40
  204. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  205. collidepartofleftleg.Name = "Bone"
  206. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  207. collidepartofleftleg.Transparency = 1
  208. collidepartofleftleg:BreakJoints()
  209. local weeld = Instance.new("Weld", collidepartofleftleg)
  210. weeld.Part0 = collidepartofleftleg
  211. weeld.Part1 = humanoid.Parent["Head"]
  212. if humanoid.Parent.Head:findFirstChild("Neck") then
  213. humanoid.Parent.Head.Neck:destroy()
  214. end
  215. if humanoid.Parent.Head:findFirstChild("face") then
  216. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  217. end
  218. end
  219. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  220. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  221. --
  222. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  223. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  224. --
  225. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  226. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  227. --
  228. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  229. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  230. --Foot & Hands--
  231.  
  232. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  233. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  234. --
  235. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  236. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  237.  
  238. --END--
  239. --TORSOS--
  240.  
  241. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  242. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  243.  
  244. --END--
  245. if LowerTorso then
  246. if LeftUpperLeg then
  247. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  248. end
  249. if RightUpperLeg then
  250. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  251. end
  252. if LeftLowerLeg then
  253. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  254. end
  255. if RightLowerLeg then
  256. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  257. end
  258. if LeftFoot then
  259. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  260. end
  261. if RightFoot then
  262. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  263. end
  264. if UpperTorso then
  265. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  266. end
  267. end
  268. if UpperTorso then
  269. local hitsound = Instance.new("Sound", UpperTorso)
  270. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  271. hitsound:Play()
  272. hitsound.Volume = math.random(5,10)
  273. local canhit = true
  274. local hitval = 15
  275. local uptor = humanoid.Parent.UpperTorso
  276. if RightUpperArm then
  277. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  278. end
  279. if RightLowerArm then
  280. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  281. end
  282. if RightHand then
  283. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  284. end
  285. if LeftUpperArm then
  286. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  287. end
  288. if LeftLowerArm then
  289. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  290. end
  291. if LeftHand then
  292. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  293. end
  294. end
  295. elseif part.Parent:findFirstChild("Torso") then
  296. canspin = false
  297. if humanoid.Parent:findFirstChild("Health") then
  298. humanoid.Parent.Health:Remove(99)
  299. end
  300. humanoid.WalkSpeed = 16
  301. humanoid.JumpPower = 16
  302. humanoid.PlatformStand = true
  303. for z,x in pairs(humanoid.Parent:GetChildren()) do
  304. if x.ClassName == "Accessory" then
  305. local handle = x:findFirstChild("Handle")
  306. if handle then
  307. local attachment = handle:findFirstChildOfClass("Attachment")
  308. if attachment then
  309. for q,w in pairs(humanoid.Parent:GetChildren()) do
  310. if w.Name == "Torso" or w.Name == "Head" then
  311. local anotherone = w:findFirstChild(attachment.Name)
  312. if attachment and anotherone then
  313. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  314. constraint.Attachment0 = attachment
  315. constraint.Attachment1 = anotherone
  316. constraint.LimitsEnabled = true
  317. constraint.LowerAngle = 0
  318. constraint.UpperAngle = 0
  319. end
  320. end
  321. end
  322. end
  323. end
  324. end
  325. end
  326. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  327. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  328. attachment.Position = Vector3.new(1, 1, 0)
  329. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  330. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  331. ball.Attachment1 = attachment
  332. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  333. collidepartofleftleg.Name = "Bone"
  334. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  335. collidepartofleftleg.Transparency = 1
  336. collidepartofleftleg:BreakJoints()
  337. local weeld = Instance.new("Weld", collidepartofleftleg)
  338. weeld.Part0 = humanoid.Parent["Right Arm"]
  339. weeld.Part1 = collidepartofleftleg
  340. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  341. end
  342. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  343. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  344. attachment.Position = Vector3.new(-1, 1, 0)
  345. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  346. ball.Attachment0 = attachment
  347. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  348. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  349. collidepartofleftleg.Name = "Bone"
  350. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  351. collidepartofleftleg.Transparency = 1
  352. collidepartofleftleg:BreakJoints()
  353. local weeld = Instance.new("Weld", collidepartofleftleg)
  354. weeld.Part0 = humanoid.Parent["Left Arm"]
  355. weeld.Part1 = collidepartofleftleg
  356. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  357. end
  358. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  359. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  360. attachment.Position = Vector3.new(0.5, -1, 0)
  361. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  362. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  363. ball.Attachment1 = attachment
  364. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  365. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  366. collidepartofleftleg.Name = "Bone"
  367. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  368. collidepartofleftleg.Transparency = 1
  369. collidepartofleftleg:BreakJoints()
  370. local weeld = Instance.new("Weld", collidepartofleftleg)
  371. weeld.Part0 = humanoid.Parent["Right Leg"]
  372. weeld.Part1 = collidepartofleftleg
  373. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  374. end
  375. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  376. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  377. attachment.Position = Vector3.new(-0.5, -1, 0)
  378. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  379. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  380. ball.Attachment1 = attachment
  381. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  382. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  383. collidepartofleftleg.Name = "Bone"
  384. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  385. collidepartofleftleg.Transparency = 1
  386. collidepartofleftleg:BreakJoints()
  387. local weeld = Instance.new("Weld", collidepartofleftleg)
  388. weeld.Part0 = humanoid.Parent["Left Leg"]
  389. weeld.Part1 = collidepartofleftleg
  390. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  391. end
  392. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  393. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  394. attachment.Position = Vector3.new(0, -0.5, 0)
  395. attachment.Name = "lol"
  396. attachment.Visible = false
  397. humanoid.Parent.Torso.NeckAttachment.Visible = false
  398. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  399. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  400. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  401. ball.Attachment1 = attachment
  402. ball.LimitsEnabled = true
  403. ball.TwistLimitsEnabled = true
  404. ball.UpperAngle = 90
  405. ball.Restitution = 0.5
  406. ball.TwistUpperAngle = 90
  407. ball.TwistLowerAngle = -90
  408. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  409. collidepartofleftleg.Name = "Bone"
  410. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  411. collidepartofleftleg.Transparency = 1
  412. collidepartofleftleg:BreakJoints()
  413. local weeld = Instance.new("Weld", collidepartofleftleg)
  414. weeld.Part0 = collidepartofleftleg
  415. weeld.Part1 = humanoid.Parent["Head"]
  416. if humanoid.Parent.Torso:findFirstChild("Neck") then
  417. humanoid.Parent.Torso.Neck:destroy()
  418. end
  419. if humanoid.Parent.Head:findFirstChild("face") then
  420. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  421. end
  422. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  423. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  424. hitsound:Play()
  425. hitsound.Volume = math.random(5,10)
  426. end
  427. if humanoid.Parent:findFirstChild("Head") then
  428. local aah = Instance.new("Sound", humanoid.Parent.Head)
  429. if aah then
  430. aah.Volume = 8
  431. local aahmath = math.random(2,8)
  432. if aahmath == 2 then
  433. aah.SoundId = "rbxassetid://884348443"
  434. aah:Play()
  435. end
  436. if aahmath == 3 then
  437. aah.SoundId = "rbxassetid://681582832"
  438. aah.Volume = 10
  439. aah:Play()
  440. end
  441. if aahmath == 4 then
  442. aah.SoundId = "rbxassetid://1080363252"
  443. aah:Play()
  444. end
  445. if aahmath == 5 then
  446. aah.SoundId = "rbxassetid://150245085"
  447. aah:Play()
  448. end
  449. if aahmath == 6 then
  450. aah.SoundId = "rbxassetid://345287845"
  451. aah.TimePosition = 2.5
  452. aah:Play()
  453. end
  454. if aahmath == 7 then
  455. aah.SoundId = "rbxassetid://147758746"
  456. aah.TimePosition = 1.3
  457. aah:Play()
  458. end
  459. if aahmath == 8 then
  460. aah.SoundId = "rbxassetid://131314452"
  461. aah:Play()
  462. end
  463. end
  464. end
  465. end
  466. end
  467. end
  468. Part1.Touched:connect(stabbystabby)
  469. function throw(key)
  470. key = key:lower()
  471. if key == "e" and canuse then
  472. canuse = false
  473. for i = 0,1 , 0.03 do
  474. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.87712723, 0, -0.480258077, 0, 1, 0, 0.480258077, 0, 0.87712723),i)
  475. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.08419418, 0.439404726, -0.699457169, 0.786269963, -0.617883086, 0, 0.0533286743, 0.0678619221, -0.996268392, 0.6155774, 0.783335984, 0.0863086879),i)
  476. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.94801712, 0.221992493, 0.99999994, 0, 0, 0, -0.896033943, 0.443985492, 0, -0.443985522, -0.896034002),i)
  477. game:GetService("RunService").RenderStepped:wait()
  478. end
  479. local knifeclone = Model0:Clone()
  480. knifeclone.Parent = game.Players.LocalPlayer.Character
  481. knifeclone.hitbox:destroy()
  482. Part1.Transparency = 1
  483. local thrownpos = knifeclone.realknife.Position
  484. local canspin = true
  485. local downval = 0
  486. local mouselook = mouse.Hit.lookVector
  487. local mousepos = mouse.Hit
  488. throwB:Play()
  489. local velo = Instance.new("BodyVelocity", knifeclone.realknife)
  490. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  491. velo.Velocity = mouse.Hit.lookVector * 110
  492. knifeclone.realknife.CanCollide = true
  493. knifeclone.realknife.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(0,0,-4)
  494. knifeclone.realknife.CFrame = CFrame.new(knifeclone.realknife.Position, mouse.Hit.p)
  495. knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  496. local function attach(part)
  497. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  498. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  499. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  500. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  501. if humanoid and part.Parent.Name ~= game.Players.LocalPlayer.Name then
  502. canspin = false
  503. humanoid.Parent:BreakJoints()
  504. knifeclone:destroy()
  505. wait()
  506. local isr15 = part.Parent:findFirstChild("UpperTorso")
  507. if isr15 then
  508. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  509. humanoid.Parent.HumanoidRootPart.CanCollide = false
  510. end
  511. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  512. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  513. constraint.Attachment0 = attachone
  514. constraint.Attachment1 = attachtwo
  515. constraint.LimitsEnabled = true
  516. constraint.TwistLimitsEnabled = true
  517. constraint.TwistLowerAngle = lowang
  518. constraint.TwistUpperAngle = upperang
  519. constraint.UpperAngle = twist
  520. end
  521. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  522. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  523. constraint.Attachment0 = attachone
  524. constraint.Attachment1 = attachtwo
  525. constraint.LimitsEnabled = true
  526. constraint.LowerAngle = lowang
  527. constraint.UpperAngle = upperang
  528. end
  529. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  530. if v.ClassName == "Accessory" then
  531. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  532. if findhandle then
  533. local attach = findhandle:findFirstChildOfClass("Attachment")
  534. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  535. if w.Name == "UpperTorso" or w.Name == "Head" then
  536. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  537. end
  538. end
  539. if attach and attach1 then
  540. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  541. constraint.Attachment0 = attach
  542. constraint.Attachment1 = attach1
  543. constraint.LimitsEnabled = true
  544. constraint.LowerAngle = 0
  545. constraint.UpperAngle = 0
  546. end
  547. end
  548. end
  549. end
  550. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  551. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  552. attachment.Position = Vector3.new(0, -0.5, 0)
  553. attachment.Name = "lol"
  554. attachment.Visible = false
  555. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  556. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  557. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  558. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  559. ball.Attachment1 = attachment
  560. ball.LimitsEnabled = true
  561. ball.TwistLimitsEnabled = true
  562. ball.UpperAngle = 40
  563. ball.Restitution = 0.5
  564. ball.TwistUpperAngle = 40
  565. ball.TwistLowerAngle = -40
  566. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  567. collidepartofleftleg.Name = "Bone"
  568. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  569. collidepartofleftleg.Transparency = 1
  570. collidepartofleftleg:BreakJoints()
  571. local weeld = Instance.new("Weld", collidepartofleftleg)
  572. weeld.Part0 = collidepartofleftleg
  573. weeld.Part1 = humanoid.Parent["Head"]
  574. if humanoid.Parent.Head:findFirstChild("Neck") then
  575. humanoid.Parent.Head.Neck:destroy()
  576. end
  577. if humanoid.Parent.Head:findFirstChild("face") then
  578. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  579. end
  580. end
  581. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  582. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  583. --
  584. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  585. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  586. --
  587. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  588. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  589. --
  590. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  591. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  592. --Foot & Hands--
  593.  
  594. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  595. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  596. --
  597. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  598. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  599.  
  600. --END--
  601. --TORSOS--
  602.  
  603. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  604. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  605.  
  606. --END--
  607. if LowerTorso then
  608. if LeftUpperLeg then
  609. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  610. end
  611. if RightUpperLeg then
  612. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  613. end
  614. if LeftLowerLeg then
  615. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  616. end
  617. if RightLowerLeg then
  618. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  619. end
  620. if LeftFoot then
  621. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  622. end
  623. if RightFoot then
  624. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  625. end
  626. if UpperTorso then
  627. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  628. end
  629. end
  630. if UpperTorso then
  631. local vel = Instance.new("BodyVelocity", UpperTorso)
  632. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  633. vel.Velocity = mouselook *25 + Vector3.new(0,10,0)
  634. game.Debris:AddItem(vel, 0.1)
  635. local hitsound = Instance.new("Sound", UpperTorso)
  636. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  637. hitsound:Play()
  638. hitsound.Volume = math.random(5,10)
  639. local canhit = true
  640. local hitval = 15
  641. local uptor = humanoid.Parent.UpperTorso
  642. if RightUpperArm then
  643. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  644. end
  645. if RightLowerArm then
  646. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  647. end
  648. if RightHand then
  649. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  650. end
  651. if LeftUpperArm then
  652. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  653. end
  654. if LeftLowerArm then
  655. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  656. end
  657. if LeftHand then
  658. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  659. end
  660. end
  661. elseif part.Parent:findFirstChild("Torso") then
  662. canspin = false
  663. if humanoid.Parent:findFirstChild("Health") then
  664. humanoid.Parent.Health:Remove()
  665. end
  666. humanoid.WalkSpeed = 0
  667. humanoid.JumpPower = 0
  668. humanoid.PlatformStand = true
  669. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  670. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  671. attachment.Position = Vector3.new(1, 1, 0)
  672. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  673. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  674. ball.Attachment1 = attachment
  675. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  676. collidepartofleftleg.Name = "Bone"
  677. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  678. collidepartofleftleg.Transparency = 1
  679. collidepartofleftleg:BreakJoints()
  680. local weeld = Instance.new("Weld", collidepartofleftleg)
  681. weeld.Part0 = humanoid.Parent["Right Arm"]
  682. weeld.Part1 = collidepartofleftleg
  683. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  684. end
  685. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  686. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  687. attachment.Position = Vector3.new(-1, 1, 0)
  688. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  689. ball.Attachment0 = attachment
  690. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  691. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  692. collidepartofleftleg.Name = "Bone"
  693. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  694. collidepartofleftleg.Transparency = 1
  695. collidepartofleftleg:BreakJoints()
  696. local weeld = Instance.new("Weld", collidepartofleftleg)
  697. weeld.Part0 = humanoid.Parent["Left Arm"]
  698. weeld.Part1 = collidepartofleftleg
  699. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  700. end
  701. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  702. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  703. attachment.Position = Vector3.new(0.5, -1, 0)
  704. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  705. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  706. ball.Attachment1 = attachment
  707. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  708. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  709. collidepartofleftleg.Name = "Bone"
  710. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  711. collidepartofleftleg.Transparency = 1
  712. collidepartofleftleg:BreakJoints()
  713. local weeld = Instance.new("Weld", collidepartofleftleg)
  714. weeld.Part0 = humanoid.Parent["Right Leg"]
  715. weeld.Part1 = collidepartofleftleg
  716. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  717. end
  718. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  719. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  720. attachment.Position = Vector3.new(-0.5, -1, 0)
  721. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  722. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  723. ball.Attachment1 = attachment
  724. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  725. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  726. collidepartofleftleg.Name = "Bone"
  727. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  728. collidepartofleftleg.Transparency = 1
  729. collidepartofleftleg:BreakJoints()
  730. local weeld = Instance.new("Weld", collidepartofleftleg)
  731. weeld.Part0 = humanoid.Parent["Left Leg"]
  732. weeld.Part1 = collidepartofleftleg
  733. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  734. end
  735. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  736. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  737. attachment.Position = Vector3.new(0, -0.5, 0)
  738. attachment.Name = "lol"
  739. attachment.Visible = false
  740. humanoid.Parent.Torso.NeckAttachment.Visible = false
  741. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  742. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  743. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  744. ball.Attachment1 = attachment
  745. ball.LimitsEnabled = true
  746. ball.TwistLimitsEnabled = true
  747. ball.UpperAngle = 90
  748. ball.Restitution = 0.5
  749. ball.TwistUpperAngle = 90
  750. ball.TwistLowerAngle = -90
  751. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  752. collidepartofleftleg.Name = "Bone"
  753. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  754. collidepartofleftleg.Transparency = 1
  755. collidepartofleftleg:BreakJoints()
  756. local weeld = Instance.new("Weld", collidepartofleftleg)
  757. weeld.Part0 = collidepartofleftleg
  758. weeld.Part1 = humanoid.Parent["Head"]
  759. if humanoid.Parent.Torso:findFirstChild("Neck") then
  760. humanoid.Parent.Torso.Neck:destroy()
  761. end
  762. if humanoid.Parent.Head:findFirstChild("face") then
  763. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  764. end
  765. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  766. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  767. hitsound:Play()
  768. hitsound.Volume = math.random(5,10)
  769. end
  770. for z,x in pairs(humanoid.Parent:GetChildren()) do
  771. if x.ClassName == "Accessory" then
  772. local handle = x:findFirstChild("Handle")
  773. if handle then
  774. local attachment = handle:findFirstChildOfClass("Attachment")
  775. if attachment then
  776. for q,w in pairs(humanoid.Parent:GetChildren()) do
  777. if w.Name == "Torso" or w.Name == "Head" then
  778. local anotherone = w:findFirstChild(attachment.Name)
  779. if attachment and anotherone then
  780. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  781. constraint.Attachment0 = attachment
  782. constraint.Attachment1 = anotherone
  783. constraint.LimitsEnabled = true
  784. constraint.LowerAngle = 0
  785. constraint.UpperAngle = 0
  786. end
  787. end
  788. end
  789. end
  790. end
  791. end
  792. end
  793. if humanoid.Parent:findFirstChild("Head") then
  794. local aah = Instance.new("Sound", humanoid.Parent.Head)
  795. if aah then
  796. aah.Volume = 8
  797. local aahmath = math.random(2,8)
  798. if aahmath == 2 then
  799. aah.SoundId = "rbxassetid://884348443"
  800. aah:Play()
  801. end
  802. if aahmath == 3 then
  803. aah.SoundId = "rbxassetid://681582832"
  804. aah.Volume = 10
  805. aah:Play()
  806. end
  807. if aahmath == 4 then
  808. aah.SoundId = "rbxassetid://1080363252"
  809. aah:Play()
  810. end
  811. if aahmath == 5 then
  812. aah.SoundId = "rbxassetid://150245085"
  813. aah:Play()
  814. end
  815. if aahmath == 6 then
  816. aah.SoundId = "rbxassetid://345287845"
  817. aah.TimePosition = 2.5
  818. aah:Play()
  819. end
  820. if aahmath == 7 then
  821. aah.SoundId = "rbxassetid://147758746"
  822. aah.TimePosition = 1.3
  823. aah:Play()
  824. end
  825. if aahmath == 8 then
  826. aah.SoundId = "rbxassetid://131314452"
  827. aah:Play()
  828. end
  829. end
  830. end
  831. end
  832. else
  833. if part.Parent.ClassName ~= "Accessory" then
  834. canspin = false
  835. hitwall:Play()
  836. knifeclone.realknife.Anchored = true
  837. local knifeclonen = knifeclone:Clone()
  838. knifeclonen.Parent = workspace
  839. knifeclone:destroy()
  840. knifeclonen.realknife.CFrame = CFrame.new(knifeclonen.realknife.Position, thrownpos)
  841. knifeclonen.realknife.CFrame = knifeclonen.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  842. game.Debris:AddItem(knifeclonen, 10)
  843. end
  844. end
  845. end
  846. knifeclone.realknife.Touched:connect(attach)
  847. local function spin()
  848. if workspace:FindFirstChild(Model0.Name) then
  849. if canspin then
  850. downval = downval + 1
  851. --knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.25)
  852. if downval < 150 then
  853. --knifeclone.realknife.RotVelocity = mousepos.rightVector * -2
  854. velo.Velocity = velo.Velocity + Vector3.new(0,-0.7,0)
  855. end
  856. end
  857. end
  858. end
  859. game:GetService("RunService").RenderStepped:connect(spin)
  860. for i = 0.2,1 , 0.1 do
  861. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.652971387, 0, 0.757382512, 0, 1, 0, -0.757382512, 0, 0.652971387),i)
  862. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.60898972, 0.1406672, -0.00325965881, 0.786269963, 0.431710958, -0.442046583, 0.0533286743, 0.665336668, 0.744636238, 0.6155774, -0.609058917, 0.500111818),i)
  863. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.11553216, -0.319662094, 0.99999994, 0, 0, 0, 0.768935919, -0.639325857, 0, 0.639325917, 0.768935978),i)
  864. game:GetService("RunService").RenderStepped:wait()
  865. end
  866. canuse = true
  867. for i = 0,1 , 0.01 do
  868. if canuse then
  869. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  870. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.11091232, 0.239697695, -0.648029327, 0.78627032, -0.564446628, -0.251355588, 0.0533286557, 0.467276007, -0.882501543, 0.615577579, 0.68048048, 0.397506446),i)
  871. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.23454857, 0.183438778, -0.669290543, 0.622085392, 0.528965533, 0.577239931, 0.520516932, 0.271329552, -0.809593856, -0.584869325, 0.804099798, -0.106545292),i)
  872. game:GetService("RunService").RenderStepped:wait()
  873. end
  874. end
  875. Part1.Transparency = 0
  876. Part1.CanCollide = false
  877. Part3.CanCollide = false
  878. end
  879. end
  880. mouse.KeyDown:connect(throw)
  881. for i = 0,1 , 0.01 do
  882. if canuse then
  883. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  884. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.11091232, 0.239697695, -0.648029327, 0.78627032, -0.564446628, -0.251355588, 0.0533286557, 0.467276007, -0.882501543, 0.615577579, 0.68048048, 0.397506446),i)
  885. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.23454857, 0.183438778, -0.669290543, 0.622085392, 0.528965533, 0.577239931, 0.520516932, 0.271329552, -0.809593856, -0.584869325, 0.804099798, -0.106545292),i)
  886. game:GetService("RunService").RenderStepped:wait()
  887. end
  888. end
  889. while true do
  890. if canuse then
  891. for i = 0,1 , 0.01 do
  892. if canuse then
  893. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  894. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  895. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  896. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.11091232, 0.239697695, -0.648029327, 0.78627032, -0.564446628, -0.251355588, 0.0533286557, 0.467276007, -0.882501543, 0.615577579, 0.68048048, 0.397506446),i)
  897. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.23454857, 0.183438778, -0.669290543, 0.622085392, 0.528965533, 0.577239931, 0.520516932, 0.271329552, -0.809593856, -0.584869325, 0.804099798, -0.106545292),i)
  898. game:GetService("RunService").RenderStepped:wait()
  899. end
  900. end
  901. for i = 0,1 , 0.01 do
  902. if canuse then
  903. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  904. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  905. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  906. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.08373642, 0.349919796, -0.692287445, 0.78627032, -0.577653646, -0.21930784, 0.0533286557, 0.417053103, -0.907316148, 0.615577579, 0.701700509, 0.358722091),i)
  907. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.16544914, 0.291818857, -0.64632988, 0.622085392, 0.589078248, 0.515749276, 0.520516932, 0.180908725, -0.834466338, -0.584869325, 0.787565589, -0.19408451),i)
  908. game:GetService("RunService").RenderStepped:wait()
  909. end
  910. end
  911. end
  912. if throwB.Parent == nil then
  913. throwB.Parent = Model0.realknife
  914. end
  915. if slash.Parent == nil then
  916. slash.Parent = Model0.realknife
  917. end
  918. if hitwall.Parent == nil then
  919. hitwall.Parent = Model0.realknife
  920. end
  921. wait()
  922. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement