Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --By Rufus14 boi
  2. local Player = game:GetService("Players").yurixc
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").yurixc
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. wait(0.2)
  83. local LocalPlayer = Player.Name
  84. --Converted with ttyyuu12345's model to script plugin v4
  85. function sandbox(var,func)
  86. local env = getfenv(func)
  87. local newenv = setmetatable({},{
  88. __index = function(self,k)
  89. if k=="script" then
  90. return var
  91. else
  92. return env[k]
  93. end
  94. end,
  95. })
  96. setfenv(func,newenv)
  97. return func
  98. end
  99. cors = {}
  100. mas = Instance.new("Model",game:GetService("Lighting"))
  101. Model0 = Instance.new("Model")
  102. Part1 = Instance.new("Part")
  103. SpecialMesh2 = Instance.new("SpecialMesh")
  104. Part3 = Instance.new("Part")
  105. Weld4 = Instance.new("Weld")
  106. Model0.Name = "K"
  107. Model0.Parent = mas
  108. Part1.Name = "realknife"
  109. Part1.Parent = Model0
  110. Part1.Rotation = Vector3.new(0, -90, 0)
  111. Part1.CanCollide = false
  112. Part1.Size = Vector3.new(1.56900003, 0.259999305, 0.459999979)
  113. Part1.CFrame = CFrame.new(-20.8307228, 1.96215653, -28.7958698, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  114. Part1.BottomSurface = Enum.SurfaceType.Smooth
  115. Part1.TopSurface = Enum.SurfaceType.Smooth
  116. Part1.Position = Vector3.new(-20.8307228, 1.96215653, -28.7958698)
  117. Part1.Orientation = Vector3.new(0, -90, 0)
  118. SpecialMesh2.Parent = Part1
  119. SpecialMesh2.MeshId = "rbxassetid://430428354"
  120. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  121. SpecialMesh2.TextureId = "rbxassetid://430428397"
  122. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  123. SpecialMesh2.Scale = Vector3.new(0.349999994, 0.300000012, 0.300000012)
  124. Part3.Name = "hitbox"
  125. Part3.Parent = Model0
  126. Part3.Transparency = 1
  127. Part3.Size = Vector3.new(0.0799999982, 1, 4.23999929)
  128. Part3.CFrame = CFrame.new(-20.8435993, 1.97891688, -28.7396412, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  129. Part3.BottomSurface = Enum.SurfaceType.Smooth
  130. Part3.TopSurface = Enum.SurfaceType.Smooth
  131. Part3.Position = Vector3.new(-20.8435993, 1.97891688, -28.7396412)
  132. Part3.CanCollide = false
  133. Weld4.Parent = Part3
  134. Weld4.C0 = CFrame.new(0.0128765106, -0.0167603493, -0.0562286377, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  135. Weld4.Part0 = Part3
  136. Weld4.Part1 = Part1
  137. for i,v in pairs(mas:GetChildren()) do
  138. v.Parent = Player.Character
  139. pcall(function() v:MakeJoints() end)
  140. end
  141. mas:Destroy()
  142. for i,v in pairs(cors) do
  143. spawn(function()
  144. pcall(v)
  145. end)
  146. end
  147. local rootjointclone = Player.Character.HumanoidRootPart.RootJoint:Clone()
  148. Player.Character.HumanoidRootPart.RootJoint:Remove()
  149. local humanoidrootpart = Instance.new("Weld", Player.Character.Torso)
  150. humanoidrootpart.Part0 = Player.Character.HumanoidRootPart
  151. humanoidrootpart.Part1 = Player.Character.Torso
  152. local rhandclone = Player.Character.Torso["Right Shoulder"]:Clone()
  153. local rhandweld = Instance.new("Weld", Player.Character.Torso)
  154. rhandweld.Part0 = Player.Character.Torso
  155. rhandweld.Part1 = Player.Character["Right Arm"]
  156. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  157. local lhandclone = Player.Character.Torso["Left Shoulder"]:Clone()
  158. local lhandweld = Instance.new("Weld", Player.Character.Torso)
  159. lhandweld.Part0 = Player.Character.Torso
  160. lhandweld.Part1 = Player.Character["Left Arm"]
  161. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  162. local heed = Player.Character.Torso["Neck"]:Clone()
  163. local headweld = Instance.new("Weld", Player.Character.Torso)
  164. headweld.Part0 = Player.Character.Torso
  165. headweld.Part1 = Player.Character.Head
  166. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  167. Player.Character.Torso.Neck:Remove()
  168. local waeld = Instance.new("Weld", Player.Character["Right Arm"])
  169. waeld.Part0 = Player.Character["Right Arm"]
  170. waeld.Part1 = Part1
  171. waeld.C0 = CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0)
  172. canuse = true
  173. throwie = false
  174. damged = false
  175. throwval = 0
  176. hitwall = Instance.new("Sound", Model0.realknife)
  177. hitwall.SoundId = "rbxassetid://214755079"
  178. hitwall.Volume = 10
  179. throwB = Instance.new("Sound", Model0.realknife)
  180. throwB.SoundId = "rbxassetid://166423113"
  181. throwB.Volume = 10
  182. slash = Instance.new("Sound", Model0.realknife)
  183. slash.SoundId = "rbxassetid://978101945"
  184. slash.Volume = 10
  185. for i,v in pairs(cors) do
  186. spawn(function()
  187. pcall(v)
  188. end)
  189. end
  190. function stab(key)
  191. if canuse then
  192. canuse = false
  193. for i = 0,1 , 0.05 do
  194. 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)
  195. 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)
  196. 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)
  197. 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)
  198. wait()
  199. end
  200. slash:Play()
  201. damged = true
  202. for i = 0,1 , 0.07 do
  203. 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)
  204. 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)
  205. 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)
  206. 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)
  207. 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)
  208. wait()
  209. end
  210. damged = false
  211. canuse = true
  212. end
  213. end
  214. mouse.Button1Down:connect(stab)
  215. function stabbystabby(part)
  216. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  217. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  218. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  219. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  220. if damged and humanoid and part.Parent.Name ~= gPlayer.Name then
  221. humanoid.Parent:BreakJoints()
  222. damged = false
  223. wait()
  224. local isr15 = part.Parent:findFirstChild("UpperTorso")
  225. if isr15 then
  226. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  227. humanoid.Parent.HumanoidRootPart.CanCollide = false
  228. end
  229. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  230. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  231. constraint.Attachment0 = attachone
  232. constraint.Attachment1 = attachtwo
  233. constraint.LimitsEnabled = true
  234. constraint.TwistLimitsEnabled = true
  235. constraint.TwistLowerAngle = lowang
  236. constraint.TwistUpperAngle = upperang
  237. constraint.UpperAngle = twist
  238. end
  239. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  240. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  241. constraint.Attachment0 = attachone
  242. constraint.Attachment1 = attachtwo
  243. constraint.LimitsEnabled = true
  244. constraint.LowerAngle = lowang
  245. constraint.UpperAngle = upperang
  246. end
  247. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  248. if v.ClassName == "Accessory" then
  249. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  250. if findhandle then
  251. local attach = findhandle:findFirstChildOfClass("Attachment")
  252. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  253. if w.Name == "UpperTorso" or w.Name == "Head" then
  254. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  255. end
  256. end
  257. if attach and attach1 then
  258. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  259. constraint.Attachment0 = attach
  260. constraint.Attachment1 = attach1
  261. constraint.LimitsEnabled = true
  262. constraint.LowerAngle = 0
  263. constraint.UpperAngle = 0
  264. end
  265. end
  266. end
  267. end
  268. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  269. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  270. attachment.Position = Vector3.new(0, -0.5, 0)
  271. attachment.Name = "lol"
  272. attachment.Visible = false
  273. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  274. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  275. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  276. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  277. ball.Attachment1 = attachment
  278. ball.LimitsEnabled = true
  279. ball.TwistLimitsEnabled = true
  280. ball.UpperAngle = 40
  281. ball.Restitution = 0.5
  282. ball.TwistUpperAngle = 40
  283. ball.TwistLowerAngle = -40
  284. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  285. collidepartofleftleg.Name = "Bone"
  286. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  287. collidepartofleftleg.Transparency = 1
  288. collidepartofleftleg:BreakJoints()
  289. local weeld = Instance.new("Weld", collidepartofleftleg)
  290. weeld.Part0 = collidepartofleftleg
  291. weeld.Part1 = humanoid.Parent["Head"]
  292. if humanoid.Parent.Head:findFirstChild("Neck") then
  293. humanoid.Parent.Head.Neck:destroy()
  294. end
  295. if humanoid.Parent.Head:findFirstChild("face") then
  296. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  297. end
  298. end
  299. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  300. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  301. --
  302. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  303. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  304. --
  305. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  306. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  307. --
  308. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  309. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  310. --Foot & Hands--
  311.  
  312. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  313. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  314. --
  315. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  316. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  317.  
  318. --END--
  319. --TORSOS--
  320.  
  321. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  322. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  323.  
  324. --END--
  325. if LowerTorso then
  326. if LeftUpperLeg then
  327. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  328. end
  329. if RightUpperLeg then
  330. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  331. end
  332. if LeftLowerLeg then
  333. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  334. end
  335. if RightLowerLeg then
  336. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  337. end
  338. if LeftFoot then
  339. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  340. end
  341. if RightFoot then
  342. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  343. end
  344. if UpperTorso then
  345. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  346. end
  347. end
  348. if UpperTorso then
  349. local hitsound = Instance.new("Sound", UpperTorso)
  350. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  351. hitsound:Play()
  352. hitsound.Volume = math.random(5,10)
  353. local canhit = true
  354. local hitval = 15
  355. local uptor = humanoid.Parent.UpperTorso
  356. if RightUpperArm then
  357. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  358. end
  359. if RightLowerArm then
  360. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  361. end
  362. if RightHand then
  363. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  364. end
  365. if LeftUpperArm then
  366. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  367. end
  368. if LeftLowerArm then
  369. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  370. end
  371. if LeftHand then
  372. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  373. end
  374. end
  375. elseif part.Parent:findFirstChild("Torso") then
  376. canspin = false
  377. if humanoid.Parent:findFirstChild("Health") then
  378. humanoid.Parent.Health:Remove()
  379. end
  380. humanoid.WalkSpeed = 0
  381. humanoid.JumpPower = 0
  382. humanoid.PlatformStand = true
  383. for z,x in pairs(humanoid.Parent:GetChildren()) do
  384. if x.ClassName == "Accessory" then
  385. local handle = x:findFirstChild("Handle")
  386. if handle then
  387. local attachment = handle:findFirstChildOfClass("Attachment")
  388. if attachment then
  389. for q,w in pairs(humanoid.Parent:GetChildren()) do
  390. if w.Name == "Torso" or w.Name == "Head" then
  391. local anotherone = w:findFirstChild(attachment.Name)
  392. if attachment and anotherone then
  393. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  394. constraint.Attachment0 = attachment
  395. constraint.Attachment1 = anotherone
  396. constraint.LimitsEnabled = true
  397. constraint.LowerAngle = 0
  398. constraint.UpperAngle = 0
  399. end
  400. end
  401. end
  402. end
  403. end
  404. end
  405. end
  406. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  407. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  408. attachment.Position = Vector3.new(1, 1, 0)
  409. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  410. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  411. ball.Attachment1 = attachment
  412. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  413. collidepartofleftleg.Name = "Bone"
  414. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  415. collidepartofleftleg.Transparency = 1
  416. collidepartofleftleg:BreakJoints()
  417. local weeld = Instance.new("Weld", collidepartofleftleg)
  418. weeld.Part0 = humanoid.Parent["Right Arm"]
  419. weeld.Part1 = collidepartofleftleg
  420. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  421. end
  422. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  423. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  424. attachment.Position = Vector3.new(-1, 1, 0)
  425. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  426. ball.Attachment0 = attachment
  427. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  428. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  429. collidepartofleftleg.Name = "Bone"
  430. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  431. collidepartofleftleg.Transparency = 1
  432. collidepartofleftleg:BreakJoints()
  433. local weeld = Instance.new("Weld", collidepartofleftleg)
  434. weeld.Part0 = humanoid.Parent["Left Arm"]
  435. weeld.Part1 = collidepartofleftleg
  436. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  437. end
  438. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  439. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  440. attachment.Position = Vector3.new(0.5, -1, 0)
  441. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  442. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  443. ball.Attachment1 = attachment
  444. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  445. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  446. collidepartofleftleg.Name = "Bone"
  447. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  448. collidepartofleftleg.Transparency = 1
  449. collidepartofleftleg:BreakJoints()
  450. local weeld = Instance.new("Weld", collidepartofleftleg)
  451. weeld.Part0 = humanoid.Parent["Right Leg"]
  452. weeld.Part1 = collidepartofleftleg
  453. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  454. end
  455. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  456. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  457. attachment.Position = Vector3.new(-0.5, -1, 0)
  458. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  459. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  460. ball.Attachment1 = attachment
  461. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  462. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  463. collidepartofleftleg.Name = "Bone"
  464. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  465. collidepartofleftleg.Transparency = 1
  466. collidepartofleftleg:BreakJoints()
  467. local weeld = Instance.new("Weld", collidepartofleftleg)
  468. weeld.Part0 = humanoid.Parent["Left Leg"]
  469. weeld.Part1 = collidepartofleftleg
  470. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  471. end
  472. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  473. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  474. attachment.Position = Vector3.new(0, -0.5, 0)
  475. attachment.Name = "lol"
  476. attachment.Visible = false
  477. humanoid.Parent.Torso.NeckAttachment.Visible = false
  478. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  479. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  480. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  481. ball.Attachment1 = attachment
  482. ball.LimitsEnabled = true
  483. ball.TwistLimitsEnabled = true
  484. ball.UpperAngle = 90
  485. ball.Restitution = 0.5
  486. ball.TwistUpperAngle = 90
  487. ball.TwistLowerAngle = -90
  488. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  489. collidepartofleftleg.Name = "Bone"
  490. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  491. collidepartofleftleg.Transparency = 1
  492. collidepartofleftleg:BreakJoints()
  493. local weeld = Instance.new("Weld", collidepartofleftleg)
  494. weeld.Part0 = collidepartofleftleg
  495. weeld.Part1 = humanoid.Parent["Head"]
  496. if humanoid.Parent.Torso:findFirstChild("Neck") then
  497. humanoid.Parent.Torso.Neck:destroy()
  498. end
  499. if humanoid.Parent.Head:findFirstChild("face") then
  500. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  501. end
  502. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  503. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  504. hitsound:Play()
  505. hitsound.Volume = math.random(5,10)
  506. end
  507. if humanoid.Parent:findFirstChild("Head") then
  508. local aah = Instance.new("Sound", humanoid.Parent.Head)
  509. if aah then
  510. aah.Volume = 8
  511. local aahmath = math.random(2,8)
  512. if aahmath == 2 then
  513. aah.SoundId = "rbxassetid://884348443"
  514. aah:Play()
  515. end
  516. if aahmath == 3 then
  517. aah.SoundId = "rbxassetid://681582832"
  518. aah.Volume = 10
  519. aah:Play()
  520. end
  521. if aahmath == 4 then
  522. aah.SoundId = "rbxassetid://1080363252"
  523. aah:Play()
  524. end
  525. if aahmath == 5 then
  526. aah.SoundId = "rbxassetid://150245085"
  527. aah:Play()
  528. end
  529. if aahmath == 6 then
  530. aah.SoundId = "rbxassetid://345287845"
  531. aah.TimePosition = 2.5
  532. aah:Play()
  533. end
  534. if aahmath == 7 then
  535. aah.SoundId = "rbxassetid://147758746"
  536. aah.TimePosition = 1.3
  537. aah:Play()
  538. end
  539. if aahmath == 8 then
  540. aah.SoundId = "rbxassetid://131314452"
  541. aah:Play()
  542. end
  543. end
  544. end
  545. end
  546. end
  547. end
  548. Part1.Touched:connect(stabbystabby)
  549. function throw(key)
  550. key = key:lower()
  551. if key == "e" and canuse then
  552. canuse = false
  553. for i = 0,1 , 0.03 do
  554. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.87712723, 0, -0.480258077, 0, 1, 0, 0.480258077, 0, 0.87712723),i)
  555. 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)
  556. 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)
  557. wait()
  558. end
  559. local knifeclone = Model0:Clone()
  560. knifeclone.Parent = Player.Character
  561. knifeclone.hitbox:destroy()
  562. Part1.Transparency = 1
  563. local thrownpos = knifeclone.realknife.Position
  564. local canspin = true
  565. local downval = 0
  566. local mouselook = mouse.Hit.lookVector
  567. local mousepos = mouse.Hit
  568. throwB:Play()
  569. local velo = Instance.new("BodyVelocity", knifeclone.realknife)
  570. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  571. velo.Velocity = mouse.Hit.lookVector * 110
  572. knifeclone.realknife.CanCollide = true
  573. knifeclone.realknife.CFrame = Player.Character.Head.CFrame * CFrame.new(0,0,-4)
  574. knifeclone.realknife.CFrame = CFrame.new(knifeclone.realknife.Position, mouse.Hit.p)
  575. knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  576. local function attach(part)
  577. --[[knifeclone.hitbox.CFrame = CFrame.new(knifeclone.hitbox.CFrame.p, thrownpos)
  578. knifeclone.hitbox.Weld.C0 = CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  579. knifeclone.hitbox.CFrame = knifeclone.hitbox.CFrame--]]
  580. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  581. if humanoid and part.Parent.Name ~= Player.Name then
  582. canspin = false
  583. humanoid.Parent:BreakJoints()
  584. knifeclone:destroy()
  585. wait()
  586. local isr15 = part.Parent:findFirstChild("UpperTorso")
  587. if isr15 then
  588. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  589. humanoid.Parent.HumanoidRootPart.CanCollide = false
  590. end
  591. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  592. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  593. constraint.Attachment0 = attachone
  594. constraint.Attachment1 = attachtwo
  595. constraint.LimitsEnabled = true
  596. constraint.TwistLimitsEnabled = true
  597. constraint.TwistLowerAngle = lowang
  598. constraint.TwistUpperAngle = upperang
  599. constraint.UpperAngle = twist
  600. end
  601. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  602. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  603. constraint.Attachment0 = attachone
  604. constraint.Attachment1 = attachtwo
  605. constraint.LimitsEnabled = true
  606. constraint.LowerAngle = lowang
  607. constraint.UpperAngle = upperang
  608. end
  609. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  610. if v.ClassName == "Accessory" then
  611. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  612. if findhandle then
  613. local attach = findhandle:findFirstChildOfClass("Attachment")
  614. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  615. if w.Name == "UpperTorso" or w.Name == "Head" then
  616. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  617. end
  618. end
  619. if attach and attach1 then
  620. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  621. constraint.Attachment0 = attach
  622. constraint.Attachment1 = attach1
  623. constraint.LimitsEnabled = true
  624. constraint.LowerAngle = 0
  625. constraint.UpperAngle = 0
  626. end
  627. end
  628. end
  629. end
  630. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  631. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  632. attachment.Position = Vector3.new(0, -0.5, 0)
  633. attachment.Name = "lol"
  634. attachment.Visible = false
  635. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  636. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  637. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  638. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  639. ball.Attachment1 = attachment
  640. ball.LimitsEnabled = true
  641. ball.TwistLimitsEnabled = true
  642. ball.UpperAngle = 40
  643. ball.Restitution = 0.5
  644. ball.TwistUpperAngle = 40
  645. ball.TwistLowerAngle = -40
  646. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  647. collidepartofleftleg.Name = "Bone"
  648. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  649. collidepartofleftleg.Transparency = 1
  650. collidepartofleftleg:BreakJoints()
  651. local weeld = Instance.new("Weld", collidepartofleftleg)
  652. weeld.Part0 = collidepartofleftleg
  653. weeld.Part1 = humanoid.Parent["Head"]
  654. if humanoid.Parent.Head:findFirstChild("Neck") then
  655. humanoid.Parent.Head.Neck:destroy()
  656. end
  657. if humanoid.Parent.Head:findFirstChild("face") then
  658. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  659. end
  660. end
  661. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  662. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  663. --
  664. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  665. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  666. --
  667. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  668. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  669. --
  670. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  671. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  672. --Foot & Hands--
  673.  
  674. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  675. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  676. --
  677. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  678. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  679.  
  680. --END--
  681. --TORSOS--
  682.  
  683. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  684. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  685.  
  686. --END--
  687. if LowerTorso then
  688. if LeftUpperLeg then
  689. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  690. end
  691. if RightUpperLeg then
  692. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  693. end
  694. if LeftLowerLeg then
  695. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  696. end
  697. if RightLowerLeg then
  698. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  699. end
  700. if LeftFoot then
  701. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  702. end
  703. if RightFoot then
  704. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  705. end
  706. if UpperTorso then
  707. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  708. end
  709. end
  710. if UpperTorso then
  711. local vel = Instance.new("BodyVelocity", UpperTorso)
  712. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  713. vel.Velocity = mouselook *25 + Vector3.new(0,10,0)
  714. game.Debris:AddItem(vel, 0.1)
  715. local hitsound = Instance.new("Sound", UpperTorso)
  716. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  717. hitsound:Play()
  718. hitsound.Volume = math.random(5,10)
  719. local canhit = true
  720. local hitval = 15
  721. local uptor = humanoid.Parent.UpperTorso
  722. if RightUpperArm then
  723. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  724. end
  725. if RightLowerArm then
  726. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  727. end
  728. if RightHand then
  729. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  730. end
  731. if LeftUpperArm then
  732. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  733. end
  734. if LeftLowerArm then
  735. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  736. end
  737. if LeftHand then
  738. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  739. end
  740. end
  741. elseif part.Parent:findFirstChild("Torso") then
  742. canspin = false
  743. if humanoid.Parent:findFirstChild("Health") then
  744. humanoid.Parent.Health:Remove()
  745. end
  746. humanoid.WalkSpeed = 0
  747. humanoid.JumpPower = 0
  748. humanoid.PlatformStand = true
  749. if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
  750. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  751. attachment.Position = Vector3.new(1, 1, 0)
  752. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  753. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  754. ball.Attachment1 = attachment
  755. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  756. collidepartofleftleg.Name = "Bone"
  757. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  758. collidepartofleftleg.Transparency = 1
  759. collidepartofleftleg:BreakJoints()
  760. local weeld = Instance.new("Weld", collidepartofleftleg)
  761. weeld.Part0 = humanoid.Parent["Right Arm"]
  762. weeld.Part1 = collidepartofleftleg
  763. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  764. end
  765. if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
  766. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  767. attachment.Position = Vector3.new(-1, 1, 0)
  768. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  769. ball.Attachment0 = attachment
  770. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  771. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  772. collidepartofleftleg.Name = "Bone"
  773. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  774. collidepartofleftleg.Transparency = 1
  775. collidepartofleftleg:BreakJoints()
  776. local weeld = Instance.new("Weld", collidepartofleftleg)
  777. weeld.Part0 = humanoid.Parent["Left Arm"]
  778. weeld.Part1 = collidepartofleftleg
  779. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  780. end
  781. if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
  782. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  783. attachment.Position = Vector3.new(0.5, -1, 0)
  784. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  785. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  786. ball.Attachment1 = attachment
  787. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  788. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  789. collidepartofleftleg.Name = "Bone"
  790. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  791. collidepartofleftleg.Transparency = 1
  792. collidepartofleftleg:BreakJoints()
  793. local weeld = Instance.new("Weld", collidepartofleftleg)
  794. weeld.Part0 = humanoid.Parent["Right Leg"]
  795. weeld.Part1 = collidepartofleftleg
  796. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  797. end
  798. if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
  799. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  800. attachment.Position = Vector3.new(-0.5, -1, 0)
  801. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  802. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  803. ball.Attachment1 = attachment
  804. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  805. collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  806. collidepartofleftleg.Name = "Bone"
  807. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  808. collidepartofleftleg.Transparency = 1
  809. collidepartofleftleg:BreakJoints()
  810. local weeld = Instance.new("Weld", collidepartofleftleg)
  811. weeld.Part0 = humanoid.Parent["Left Leg"]
  812. weeld.Part1 = collidepartofleftleg
  813. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  814. end
  815. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
  816. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  817. attachment.Position = Vector3.new(0, -0.5, 0)
  818. attachment.Name = "lol"
  819. attachment.Visible = false
  820. humanoid.Parent.Torso.NeckAttachment.Visible = false
  821. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  822. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  823. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  824. ball.Attachment1 = attachment
  825. ball.LimitsEnabled = true
  826. ball.TwistLimitsEnabled = true
  827. ball.UpperAngle = 90
  828. ball.Restitution = 0.5
  829. ball.TwistUpperAngle = 90
  830. ball.TwistLowerAngle = -90
  831. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  832. collidepartofleftleg.Name = "Bone"
  833. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  834. collidepartofleftleg.Transparency = 1
  835. collidepartofleftleg:BreakJoints()
  836. local weeld = Instance.new("Weld", collidepartofleftleg)
  837. weeld.Part0 = collidepartofleftleg
  838. weeld.Part1 = humanoid.Parent["Head"]
  839. if humanoid.Parent.Torso:findFirstChild("Neck") then
  840. humanoid.Parent.Torso.Neck:destroy()
  841. end
  842. if humanoid.Parent.Head:findFirstChild("face") then
  843. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  844. end
  845. local hitsound = Instance.new("Sound", humanoid.Parent.Head)
  846. hitsound.SoundId = "http://www.roblox.com/asset/?id=93706376"
  847. hitsound:Play()
  848. hitsound.Volume = math.random(5,10)
  849. end
  850. for z,x in pairs(humanoid.Parent:GetChildren()) do
  851. if x.ClassName == "Accessory" then
  852. local handle = x:findFirstChild("Handle")
  853. if handle then
  854. local attachment = handle:findFirstChildOfClass("Attachment")
  855. if attachment then
  856. for q,w in pairs(humanoid.Parent:GetChildren()) do
  857. if w.Name == "Torso" or w.Name == "Head" then
  858. local anotherone = w:findFirstChild(attachment.Name)
  859. if attachment and anotherone then
  860. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  861. constraint.Attachment0 = attachment
  862. constraint.Attachment1 = anotherone
  863. constraint.LimitsEnabled = true
  864. constraint.LowerAngle = 0
  865. constraint.UpperAngle = 0
  866. end
  867. end
  868. end
  869. end
  870. end
  871. end
  872. end
  873. if humanoid.Parent:findFirstChild("Head") then
  874. local aah = Instance.new("Sound", humanoid.Parent.Head)
  875. if aah then
  876. aah.Volume = 8
  877. local aahmath = math.random(2,8)
  878. if aahmath == 2 then
  879. aah.SoundId = "rbxassetid://884348443"
  880. aah:Play()
  881. end
  882. if aahmath == 3 then
  883. aah.SoundId = "rbxassetid://681582832"
  884. aah.Volume = 10
  885. aah:Play()
  886. end
  887. if aahmath == 4 then
  888. aah.SoundId = "rbxassetid://1080363252"
  889. aah:Play()
  890. end
  891. if aahmath == 5 then
  892. aah.SoundId = "rbxassetid://150245085"
  893. aah:Play()
  894. end
  895. if aahmath == 6 then
  896. aah.SoundId = "rbxassetid://345287845"
  897. aah.TimePosition = 2.5
  898. aah:Play()
  899. end
  900. if aahmath == 7 then
  901. aah.SoundId = "rbxassetid://147758746"
  902. aah.TimePosition = 1.3
  903. aah:Play()
  904. end
  905. if aahmath == 8 then
  906. aah.SoundId = "rbxassetid://131314452"
  907. aah:Play()
  908. end
  909. end
  910. end
  911. end
  912. else
  913. if part.Parent.ClassName ~= "Accessory" then
  914. canspin = false
  915. hitwall:Play()
  916. knifeclone.realknife.Anchored = true
  917. local knifeclonen = knifeclone:Clone()
  918. knifeclonen.Parent = workspace
  919. knifeclone:destroy()
  920. knifeclonen.realknife.CFrame = CFrame.new(knifeclonen.realknife.Position, thrownpos)
  921. knifeclonen.realknife.CFrame = knifeclonen.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  922. game.Debris:AddItem(knifeclonen, 10)
  923. end
  924. end
  925. end
  926. knifeclone.realknife.Touched:connect(attach)
  927. local function spin()
  928. if workspace:FindFirstChild(Model0.Name) then
  929. if canspin then
  930. downval = downval + 1
  931. --knifeclone.realknife.CFrame = knifeclone.realknife.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.25)
  932. if downval < 150 then
  933. --knifeclone.realknife.RotVelocity = mousepos.rightVector * -2
  934. velo.Velocity = velo.Velocity + Vector3.new(0,-0.7,0)
  935. end
  936. end
  937. end
  938. end
  939. spin()
  940. for i = 0.2,1 , 0.1 do
  941. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.652971387, 0, 0.757382512, 0, 1, 0, -0.757382512, 0, 0.652971387),i)
  942. 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)
  943. 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)
  944. wait()
  945. end
  946. canuse = true
  947. for i = 0,1 , 0.01 do
  948. if canuse then
  949. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  950. 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)
  951. 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)
  952. wait()
  953. end
  954. end
  955. Part1.Transparency = 0
  956. Part1.CanCollide = false
  957. Part3.CanCollide = false
  958. end
  959. end
  960. mouse.KeyDown:connect(throw)
  961. for i = 0,1 , 0.01 do
  962. if canuse then
  963. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  964. 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)
  965. 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)
  966. wait()
  967. end
  968. end
  969. while true do
  970. if canuse then
  971. for i = 0,1 , 0.01 do
  972. if canuse then
  973. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  974. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  975. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  976. 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)
  977. 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)
  978. wait()
  979. end
  980. end
  981. for i = 0,1 , 0.01 do
  982. if canuse then
  983. waeld.C0 = waeld.C0:lerp(CFrame.new(-0.0107059479, -1.0378592, -0.905899048, 0, 0, -1, 0, 0.999999881, 0, 1, 0, 0),i)
  984. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0),i)
  985. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  986. 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)
  987. 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)
  988. wait()
  989. end
  990. end
  991. end
  992. if throwB.Parent == nil then
  993. throwB.Parent = Model0.realknife
  994. end
  995. if slash.Parent == nil then
  996. slash.Parent = Model0.realknife
  997. end
  998. if hitwall.Parent == nil then
  999. hitwall.Parent = Model0.realknife
  1000. end
  1001. wait()
  1002. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement