Advertisement
KrYn0MoRe

katana v1.6

Mar 9th, 2019 (edited)
758
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 77.30 KB | None | 0 0
  1. local tool = Instance.new("Tool")
  2. local Model1 = Instance.new("Model")
  3. local Part2 = Instance.new("Part")
  4. local SpecialMesh3 = Instance.new("SpecialMesh")
  5. local Part4 = Instance.new("Part")
  6. local SpecialMesh5 = Instance.new("SpecialMesh")
  7. local Part6 = Instance.new("Part")
  8. local SpecialMesh7 = Instance.new("SpecialMesh")
  9. local Part8 = Instance.new("Part")
  10. local SpecialMesh9 = Instance.new("SpecialMesh")
  11. local Part10 = Instance.new("Part")
  12. local SpecialMesh11 = Instance.new("SpecialMesh")
  13. local Part12 = Instance.new("Part")
  14. local SpecialMesh13 = Instance.new("SpecialMesh")
  15. local Part14 = Instance.new("Part")
  16. local SpecialMesh15 = Instance.new("SpecialMesh")
  17. local Part16 = Instance.new("Part")
  18. local SpecialMesh17 = Instance.new("SpecialMesh")
  19. local Blade = Instance.new("Part")
  20. local SpecialMesh19 = Instance.new("SpecialMesh")
  21. local EndPiece = Instance.new("Part")
  22. local SpecialMesh21 = Instance.new("SpecialMesh")
  23. local HandGuard = Instance.new("Part")
  24. local SpecialMesh23 = Instance.new("SpecialMesh")
  25. local HandGuard2 = Instance.new("Part")
  26. local SpecialMesh25 = Instance.new("SpecialMesh")
  27. local Handle = Instance.new("Part")
  28. local SpecialMesh27 = Instance.new("SpecialMesh")
  29. local Hilt = Instance.new("Part")
  30. local SpecialMesh29 = Instance.new("SpecialMesh")
  31. local Hilt2 = Instance.new("Part")
  32. local SpecialMesh31 = Instance.new("SpecialMesh")
  33. local Sheath = Instance.new("Part")
  34. local SpecialMesh33 = Instance.new("SpecialMesh")
  35. local Texture34 = Instance.new("Texture")
  36. local Texture35 = Instance.new("Texture")
  37. local Texture36 = Instance.new("Texture")
  38. local Texture37 = Instance.new("Texture")
  39. local Texture38 = Instance.new("Texture")
  40. local Texture39 = Instance.new("Texture")
  41. tool.Name = "Katana"
  42. tool.Grip = CFrame.new(0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1)
  43. Model1.Name = "Cloth"
  44. Model1.Parent = tool
  45. Part2.Name = "cloth1"
  46. Part2.Parent = Model1
  47. Part2.CFrame = CFrame.new(8.89884567, 2.74100494, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  48. Part2.Orientation = Vector3.new(0, 0, -90)
  49. Part2.Position = Vector3.new(8.89884567, 2.74100494, 2.74181032)
  50. Part2.Rotation = Vector3.new(0, 0, -90)
  51. Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  52. Part2.Size = Vector3.new(0.420896888, 0.0854082704, 0.242092505)
  53. Part2.Anchored = true
  54. Part2.BottomSurface = Enum.SurfaceType.Smooth
  55. Part2.BrickColor = BrickColor.new("Really black")
  56. Part2.CanCollide = false
  57. Part2.Locked = true
  58. Part2.Material = Enum.Material.Fabric
  59. Part2.Reflectance = 0.60000002384186
  60. Part2.TopSurface = Enum.SurfaceType.Smooth
  61. Part2.brickColor = BrickColor.new("Really black")
  62. SpecialMesh3.Parent = Part2
  63. SpecialMesh3.MeshId = "rbxassetid://4568296395"
  64. SpecialMesh3.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  65. SpecialMesh3.TextureId = "rbxassetid://4568343753"
  66. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  67. Part4.Name = "cloth2"
  68. Part4.Parent = Model1
  69. Part4.CFrame = CFrame.new(8.98425388, 2.74100494, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  70. Part4.Orientation = Vector3.new(0, 0, -90)
  71. Part4.Position = Vector3.new(8.98425388, 2.74100494, 2.74181032)
  72. Part4.Rotation = Vector3.new(0, 0, -90)
  73. Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  74. Part4.Size = Vector3.new(0.420896888, 0.0854082704, 0.242092505)
  75. Part4.Anchored = true
  76. Part4.BottomSurface = Enum.SurfaceType.Smooth
  77. Part4.BrickColor = BrickColor.new("Really black")
  78. Part4.CanCollide = false
  79. Part4.Locked = true
  80. Part4.Material = Enum.Material.Fabric
  81. Part4.TopSurface = Enum.SurfaceType.Smooth
  82. Part4.brickColor = BrickColor.new("Really black")
  83. SpecialMesh5.Parent = Part4
  84. SpecialMesh5.MeshId = "rbxassetid://4568296477"
  85. SpecialMesh5.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  86. SpecialMesh5.TextureId = "rbxassetid://4568343753"
  87. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  88. Part6.Name = "cloth4"
  89. Part6.Parent = Model1
  90. Part6.CFrame = CFrame.new(8.98425388, 3.16128683, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  91. Part6.Orientation = Vector3.new(0, 0, -90)
  92. Part6.Position = Vector3.new(8.98425388, 3.16128683, 2.74181032)
  93. Part6.Rotation = Vector3.new(0, 0, -90)
  94. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  95. Part6.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
  96. Part6.Anchored = true
  97. Part6.BottomSurface = Enum.SurfaceType.Smooth
  98. Part6.BrickColor = BrickColor.new("Really black")
  99. Part6.CanCollide = false
  100. Part6.Locked = true
  101. Part6.Material = Enum.Material.Fabric
  102. Part6.TopSurface = Enum.SurfaceType.Smooth
  103. Part6.brickColor = BrickColor.new("Really black")
  104. SpecialMesh7.Parent = Part6
  105. SpecialMesh7.MeshId = "rbxassetid://4568296667"
  106. SpecialMesh7.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  107. SpecialMesh7.TextureId = "rbxassetid://4568343753"
  108. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  109. Part8.Name = "cloth3"
  110. Part8.Parent = Model1
  111. Part8.CFrame = CFrame.new(8.89884567, 3.16128683, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  112. Part8.Orientation = Vector3.new(0, 0, -90)
  113. Part8.Position = Vector3.new(8.89884567, 3.16128683, 2.74181032)
  114. Part8.Rotation = Vector3.new(0, 0, -90)
  115. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  116. Part8.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
  117. Part8.Anchored = true
  118. Part8.BottomSurface = Enum.SurfaceType.Smooth
  119. Part8.BrickColor = BrickColor.new("Really black")
  120. Part8.CanCollide = false
  121. Part8.Locked = true
  122. Part8.Material = Enum.Material.Fabric
  123. Part8.TopSurface = Enum.SurfaceType.Smooth
  124. Part8.brickColor = BrickColor.new("Really black")
  125. SpecialMesh9.Parent = Part8
  126. SpecialMesh9.MeshId = "rbxassetid://4568296564"
  127. SpecialMesh9.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  128. SpecialMesh9.TextureId = "rbxassetid://4568343753"
  129. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  130. Part10.Name = "cloth7"
  131. Part10.Parent = Model1
  132. Part10.CFrame = CFrame.new(8.89884567, 3.99877858, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  133. Part10.Orientation = Vector3.new(0, 0, -90)
  134. Part10.Position = Vector3.new(8.89884567, 3.99877858, 2.74181032)
  135. Part10.Rotation = Vector3.new(0, 0, -90)
  136. Part10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  137. Part10.Size = Vector3.new(0.419053525, 0.0854082704, 0.242092505)
  138. Part10.Anchored = true
  139. Part10.BottomSurface = Enum.SurfaceType.Smooth
  140. Part10.BrickColor = BrickColor.new("Really black")
  141. Part10.CanCollide = false
  142. Part10.Locked = true
  143. Part10.Material = Enum.Material.Fabric
  144. Part10.TopSurface = Enum.SurfaceType.Smooth
  145. Part10.brickColor = BrickColor.new("Really black")
  146. SpecialMesh11.Parent = Part10
  147. SpecialMesh11.MeshId = "rbxassetid://4568297179"
  148. SpecialMesh11.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  149. SpecialMesh11.TextureId = "rbxassetid://4568343753"
  150. SpecialMesh11.MeshType = Enum.MeshType.FileMesh
  151. Part12.Name = "cloth5"
  152. Part12.Parent = Model1
  153. Part12.CFrame = CFrame.new(8.89884567, 3.57972622, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  154. Part12.Orientation = Vector3.new(0, 0, -90)
  155. Part12.Position = Vector3.new(8.89884567, 3.57972622, 2.74181032)
  156. Part12.Rotation = Vector3.new(0, 0, -90)
  157. Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  158. Part12.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
  159. Part12.Anchored = true
  160. Part12.BottomSurface = Enum.SurfaceType.Smooth
  161. Part12.BrickColor = BrickColor.new("Really black")
  162. Part12.CanCollide = false
  163. Part12.Locked = true
  164. Part12.Material = Enum.Material.Fabric
  165. Part12.TopSurface = Enum.SurfaceType.Smooth
  166. Part12.brickColor = BrickColor.new("Really black")
  167. SpecialMesh13.Parent = Part12
  168. SpecialMesh13.MeshId = "rbxassetid://4568296759"
  169. SpecialMesh13.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  170. SpecialMesh13.TextureId = "rbxassetid://4568343753"
  171. SpecialMesh13.MeshType = Enum.MeshType.FileMesh
  172. Part14.Name = "cloth8"
  173. Part14.Parent = Model1
  174. Part14.CFrame = CFrame.new(8.98425388, 3.99877858, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  175. Part14.Orientation = Vector3.new(0, 0, -90)
  176. Part14.Position = Vector3.new(8.98425388, 3.99877858, 2.74181032)
  177. Part14.Rotation = Vector3.new(0, 0, -90)
  178. Part14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  179. Part14.Size = Vector3.new(0.419053525, 0.0854082704, 0.242092505)
  180. Part14.Anchored = true
  181. Part14.BottomSurface = Enum.SurfaceType.Smooth
  182. Part14.BrickColor = BrickColor.new("Really black")
  183. Part14.CanCollide = false
  184. Part14.Locked = true
  185. Part14.Material = Enum.Material.Fabric
  186. Part14.TopSurface = Enum.SurfaceType.Smooth
  187. Part14.brickColor = BrickColor.new("Really black")
  188. SpecialMesh15.Parent = Part14
  189. SpecialMesh15.MeshId = "rbxassetid://4568297272"
  190. SpecialMesh15.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  191. SpecialMesh15.TextureId = "rbxassetid://4568343753"
  192. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  193. Part16.Name = "cloth6"
  194. Part16.Parent = Model1
  195. Part16.CFrame = CFrame.new(8.98425388, 3.57972622, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  196. Part16.Orientation = Vector3.new(0, 0, -90)
  197. Part16.Position = Vector3.new(8.98425388, 3.57972622, 2.74181032)
  198. Part16.Rotation = Vector3.new(0, 0, -90)
  199. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  200. Part16.Size = Vector3.new(0.41843909, 0.0854082704, 0.242092505)
  201. Part16.Anchored = true
  202. Part16.BottomSurface = Enum.SurfaceType.Smooth
  203. Part16.BrickColor = BrickColor.new("Really black")
  204. Part16.CanCollide = false
  205. Part16.Locked = true
  206. Part16.Material = Enum.Material.Fabric
  207. Part16.TopSurface = Enum.SurfaceType.Smooth
  208. Part16.brickColor = BrickColor.new("Really black")
  209. SpecialMesh17.Parent = Part16
  210. SpecialMesh17.MeshId = "rbxassetid://4568296864"
  211. SpecialMesh17.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  212. SpecialMesh17.TextureId = "rbxassetid://4568343753"
  213. SpecialMesh17.MeshType = Enum.MeshType.FileMesh
  214. Blade.Name = "Blade"
  215. Blade.Parent = tool
  216. Blade.CFrame = CFrame.new(8.94124222, 6.77731228, 3.00909495, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  217. Blade.Orientation = Vector3.new(0, 0, -90)
  218. Blade.Position = Vector3.new(8.94124222, 6.77731228, 3.00909495)
  219. Blade.Rotation = Vector3.new(0, 0, -90)
  220. Blade.Color = Color3.new(0.905882, 0.905882, 0.92549)
  221. Blade.Size = Vector3.new(4.37486982, 0.092781648, 0.729349792)
  222. Blade.Anchored = true
  223. Blade.BottomSurface = Enum.SurfaceType.Smooth
  224. Blade.BrickColor = BrickColor.new("Pearl")
  225. Blade.CanCollide = false
  226. Blade.Locked = true
  227. Blade.Material = Enum.Material.Glass
  228. Blade.Reflectance = 0.60000002384186
  229. Blade.TopSurface = Enum.SurfaceType.Smooth
  230. Blade.brickColor = BrickColor.new("Pearl")
  231. SpecialMesh19.Parent = Blade
  232. SpecialMesh19.MeshId = "rbxassetid://4568221814"
  233. SpecialMesh19.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  234. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  235. EndPiece.Name = "EndPiece"
  236. EndPiece.Parent = tool
  237. EndPiece.CFrame = CFrame.new(8.94124222, 2.50505638, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  238. EndPiece.Orientation = Vector3.new(0, 0, -90)
  239. EndPiece.Position = Vector3.new(8.94124222, 2.50505638, 2.74181032)
  240. EndPiece.Rotation = Vector3.new(0, 0, -90)
  241. EndPiece.Color = Color3.new(0.937255, 0.721569, 0.219608)
  242. EndPiece.Size = Vector3.new(0.0516136326, 0.172659889, 0.252538145)
  243. EndPiece.Anchored = true
  244. EndPiece.BottomSurface = Enum.SurfaceType.Smooth
  245. EndPiece.BrickColor = BrickColor.new("Gold")
  246. EndPiece.CanCollide = false
  247. EndPiece.Locked = true
  248. EndPiece.Material = Enum.Material.Metal
  249. EndPiece.TopSurface = Enum.SurfaceType.Smooth
  250. EndPiece.brickColor = BrickColor.new("Gold")
  251. SpecialMesh21.Parent = EndPiece
  252. SpecialMesh21.MeshId = "rbxassetid://4568221898"
  253. SpecialMesh21.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  254. SpecialMesh21.MeshType = Enum.MeshType.FileMesh
  255. HandGuard.Name = "HandGuard"
  256. HandGuard.Parent = tool
  257. HandGuard.CFrame = CFrame.new(8.94124222, 4.42581987, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  258. HandGuard.Orientation = Vector3.new(0, 0, -90)
  259. HandGuard.Position = Vector3.new(8.94124222, 4.42581987, 2.74181032)
  260. HandGuard.Rotation = Vector3.new(0, 0, -90)
  261. HandGuard.Color = Color3.new(0.937255, 0.721569, 0.219608)
  262. HandGuard.Size = Vector3.new(0.0553003214, 0.357608765, 0.462679356)
  263. HandGuard.Anchored = true
  264. HandGuard.BottomSurface = Enum.SurfaceType.Smooth
  265. HandGuard.BrickColor = BrickColor.new("Gold")
  266. HandGuard.CanCollide = false
  267. HandGuard.Locked = true
  268. HandGuard.Material = Enum.Material.Metal
  269. HandGuard.TopSurface = Enum.SurfaceType.Smooth
  270. HandGuard.brickColor = BrickColor.new("Gold")
  271. SpecialMesh23.Parent = HandGuard
  272. SpecialMesh23.MeshId = "rbxassetid://4568307999"
  273. SpecialMesh23.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  274. SpecialMesh23.MeshType = Enum.MeshType.FileMesh
  275. HandGuard2.Name = "HandGuard2"
  276. HandGuard2.Parent = tool
  277. HandGuard2.CFrame = CFrame.new(8.94124222, 4.42581987, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  278. HandGuard2.Orientation = Vector3.new(0, 0, -90)
  279. HandGuard2.Position = Vector3.new(8.94124222, 4.42581987, 2.74181032)
  280. HandGuard2.Rotation = Vector3.new(0, 0, -90)
  281. HandGuard2.Color = Color3.new(0.937255, 0.721569, 0.219608)
  282. HandGuard2.Size = Vector3.new(0.0553003214, 0.462679356, 0.293091714)
  283. HandGuard2.Anchored = true
  284. HandGuard2.BottomSurface = Enum.SurfaceType.Smooth
  285. HandGuard2.BrickColor = BrickColor.new("Gold")
  286. HandGuard2.CanCollide = false
  287. HandGuard2.Locked = true
  288. HandGuard2.Material = Enum.Material.Metal
  289. HandGuard2.TopSurface = Enum.SurfaceType.Smooth
  290. HandGuard2.brickColor = BrickColor.new("Gold")
  291. SpecialMesh25.Parent = HandGuard2
  292. SpecialMesh25.MeshId = "rbxassetid://4568307893"
  293. SpecialMesh25.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  294. SpecialMesh25.MeshType = Enum.MeshType.FileMesh
  295. Handle.Name = "Handle"
  296. Handle.Parent = tool
  297. Handle.CFrame = CFrame.new(8.94124222, 3.3701992, 2.74058151, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  298. Handle.Orientation = Vector3.new(0, 0, -90)
  299. Handle.Position = Vector3.new(8.94124222, 3.3701992, 2.74058151)
  300. Handle.Rotation = Vector3.new(0, 0, -90)
  301. Handle.Color = Color3.new(0.458824, 0, 0)
  302. Handle.Size = Vector3.new(1.67928648, 0.159756482, 0.232875794)
  303. Handle.Anchored = true
  304. Handle.BottomSurface = Enum.SurfaceType.Smooth
  305. Handle.BrickColor = BrickColor.new("Maroon")
  306. Handle.CanCollide = false
  307. Handle.Locked = true
  308. Handle.Material = Enum.Material.Sand
  309. Handle.TopSurface = Enum.SurfaceType.Smooth
  310. Handle.brickColor = BrickColor.new("Maroon")
  311. SpecialMesh27.Parent = Handle
  312. SpecialMesh27.MeshId = "rbxassetid://4568222002"
  313. SpecialMesh27.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  314. SpecialMesh27.TextureId = "rbxassetid://4568344218"
  315. SpecialMesh27.MeshType = Enum.MeshType.FileMesh
  316. Hilt.Name = "Hilt"
  317. Hilt.Parent = tool
  318. Hilt.CFrame = CFrame.new(8.94124222, 4.30354452, 2.74181032, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  319. Hilt.Orientation = Vector3.new(0, 0, -90)
  320. Hilt.Position = Vector3.new(8.94124222, 4.30354452, 2.74181032)
  321. Hilt.Rotation = Vector3.new(0, 0, -90)
  322. Hilt.Color = Color3.new(0.937255, 0.721569, 0.219608)
  323. Hilt.Size = Vector3.new(0.19170779, 0.177575484, 0.256224811)
  324. Hilt.Anchored = true
  325. Hilt.BottomSurface = Enum.SurfaceType.Smooth
  326. Hilt.BrickColor = BrickColor.new("Gold")
  327. Hilt.CanCollide = false
  328. Hilt.Locked = true
  329. Hilt.Material = Enum.Material.Metal
  330. Hilt.TopSurface = Enum.SurfaceType.Smooth
  331. Hilt.brickColor = BrickColor.new("Gold")
  332. SpecialMesh29.Parent = Hilt
  333. SpecialMesh29.MeshId = "rbxassetid://4568222332"
  334. SpecialMesh29.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  335. SpecialMesh29.MeshType = Enum.MeshType.FileMesh
  336. Hilt2.Name = "Hilt2"
  337. Hilt2.Parent = tool
  338. Hilt2.CFrame = CFrame.new(8.94124222, 4.52044487, 2.74058151, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  339. Hilt2.Orientation = Vector3.new(0, 0, -90)
  340. Hilt2.Position = Vector3.new(8.94124222, 4.52044487, 2.74058151)
  341. Hilt2.Rotation = Vector3.new(0, 0, -90)
  342. Hilt2.Color = Color3.new(0.937255, 0.721569, 0.219608)
  343. Hilt2.Size = Vector3.new(0.142551929, 0.106913954, 0.215671256)
  344. Hilt2.Anchored = true
  345. Hilt2.BottomSurface = Enum.SurfaceType.Smooth
  346. Hilt2.BrickColor = BrickColor.new("Gold")
  347. Hilt2.CanCollide = false
  348. Hilt2.Locked = true
  349. Hilt2.Material = Enum.Material.Metal
  350. Hilt2.TopSurface = Enum.SurfaceType.Smooth
  351. Hilt2.brickColor = BrickColor.new("Gold")
  352. SpecialMesh31.Parent = Hilt2
  353. SpecialMesh31.MeshId = "rbxassetid://4568222411"
  354. SpecialMesh31.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  355. SpecialMesh31.MeshType = Enum.MeshType.FileMesh
  356. Sheath.Name = "Sheath"
  357. Sheath.Parent = tool
  358. Sheath.CFrame = CFrame.new(8.94124222, 6.81540871, 3.03121519, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  359. Sheath.Orientation = Vector3.new(0, 0, -90)
  360. Sheath.Position = Vector3.new(8.94124222, 6.81540871, 3.03121519)
  361. Sheath.Rotation = Vector3.new(0, 0, -90)
  362. Sheath.Size = Vector3.new(4.71465969, 0.108757302, 0.851624966)
  363. Sheath.Anchored = true
  364. Sheath.BottomSurface = Enum.SurfaceType.Smooth
  365. Sheath.CanCollide = false
  366. Sheath.Locked = true
  367. Sheath.Material = Enum.Material.SmoothPlastic
  368. Sheath.TopSurface = Enum.SurfaceType.Smooth
  369. SpecialMesh33.Parent = Sheath
  370. SpecialMesh33.MeshId = "rbxassetid://4568222503"
  371. SpecialMesh33.Scale = Vector3.new(0.614448011, 0.614448011, 0.614448011)
  372. SpecialMesh33.MeshType = Enum.MeshType.FileMesh
  373. Texture34.Parent = Sheath
  374. Texture34.Texture = "rbxassetid://4568344297"
  375. Texture34.Face = Enum.NormalId.Top
  376. Texture34.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
  377. Texture35.Parent = Sheath
  378. Texture35.Texture = "rbxassetid://4568344297"
  379. Texture35.Face = Enum.NormalId.Back
  380. Texture35.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
  381. Texture36.Parent = Sheath
  382. Texture36.Texture = "rbxassetid://4568344297"
  383. Texture36.Face = Enum.NormalId.Bottom
  384. Texture36.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
  385. Texture37.Parent = Sheath
  386. Texture37.Texture = "rbxassetid://4568344297"
  387. Texture37.Face = Enum.NormalId.Left
  388. Texture37.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
  389. Texture38.Parent = Sheath
  390. Texture38.Texture = "rbxassetid://4568344297"
  391. Texture38.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
  392. Texture39.Parent = Sheath
  393. Texture39.Texture = "rbxassetid://4568344297"
  394. Texture39.Face = Enum.NormalId.Right
  395. Texture39.Color3 = Color3.new(0.176471, 0.176471, 0.176471)
  396. local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
  397. a1.Parent = Blade
  398. a1.Position = Vector3.new(2.188, 0, -0.27)
  399. a2.Parent = Blade
  400. a2.Position = Vector3.new(-2.188, 0, 0.36)
  401. Trail.Parent = Blade
  402. Trail.Attachment0 = a1
  403. Trail.Attachment1 = a2
  404. Trail.LightInfluence = 1
  405. Trail.Transparency = NumberSequence.new(0.5,1)
  406. Trail.Lifetime = 1
  407. Trail.Enabled = false
  408. --
  409. local plr = owner
  410. local char = plr.Character
  411. local torso = char:FindFirstChild("Torso")
  412. local rootpart = char:FindFirstChild("HumanoidRootPart")
  413. local hum = char:FindFirstChildOfClass("Humanoid")
  414. if not char then warn("Character is missing.") return end
  415. if hum.RigType ~= Enum.HumanoidRigType.R6 then warn("Character must be R6 to use this script.") return end
  416. --
  417. for _,v in pairs(tool:GetDescendants()) do
  418.     if v ~= Handle and v:IsA("Part") then
  419.         v.Anchored = false
  420.         local weld = Instance.new("Weld")
  421.         weld.Part0 = Handle
  422.         weld.Part1 = v
  423.         weld.Parent = v
  424.         weld.C0 = Handle.CFrame:Inverse()
  425.         weld.C1 = v.CFrame:Inverse()
  426.     end
  427. end
  428. Handle.Anchored = false
  429. tool.Parent = plr['Backpack']
  430. --
  431. local sheathmodel = nil
  432. local sheath_handle = nil
  433. local equipped = false
  434. local using = false
  435. local bleeding = false
  436. local bloody = false
  437. local damage = math.random(40,60)
  438. local animval = 1
  439. local dmg_type = 'slice'
  440. local swings = {3203891943,3203892072,3203892234,3203892370,3203892588,3203892719}
  441. local wallhits = {3203893315,3203893704,3203893934}
  442. --
  443. local hit = Instance.new("Sound")
  444. hit.SoundId = 'rbxassetid://3203895449' --3939937734
  445. hit.Volume = 0.6
  446. hit.Parent = Blade
  447. local hit2 = Instance.new("Sound")
  448. hit2.SoundId = 'rbxassetid://3203894821' --2017482557
  449. hit2.Volume = 0.6
  450. hit2.Parent = Blade
  451. local hit3 = Instance.new("Sound")
  452. hit3.SoundId = 'rbxassetid://3203895660' --344936319
  453. hit3.Volume = 0.6
  454. hit3.Parent = Blade
  455. local hitwall = Instance.new("Sound")
  456. hitwall.SoundId = 'rbxassetid://' .. wallhits[math.random(1,#wallhits)]
  457. hitwall.Volume = 0.6
  458. hitwall.Parent = Blade
  459. local swing = Instance.new("Sound")
  460. swing.SoundId = 'rbxassetid://338586299' --338586299
  461. swing.Volume = 0.4
  462. swing.Parent = Blade
  463. local swing2 = Instance.new("Sound")
  464. swing2.SoundId = 'rbxassetid://338586318' --338586318
  465. swing2.Volume = 0.5
  466. swing2.Parent = Blade
  467. local swing3 = Instance.new("Sound")
  468. swing3.SoundId = 'rbxassetid://338586331' --338586331
  469. swing3.Volume = 0.5
  470. swing3.Parent = Blade
  471. local equip = Instance.new("Sound")
  472. equip.SoundId = 'rbxassetid://274937234'
  473. equip.Volume = 0.5
  474. equip.PlaybackSpeed = 1
  475. equip.Parent = Blade
  476. local sheathe = Instance.new("Sound")
  477. sheathe.SoundId = 'rbxassetid://3211793833'
  478. sheathe.Volume = 0.5
  479. sheathe.PlaybackSpeed = 1
  480. sheathe.Parent = Blade
  481. --[[
  482. local finish_s = Instance.new("Sound")
  483. finish_s.SoundId = 'rbxassetid://3203887818'
  484. finish_s.Volume = 0.6
  485. finish_s.Parent = Blade
  486. ]]
  487. local bleeding = Instance.new("Sound")
  488. bleeding.SoundId = 'rbxassetid://360007673'
  489. bleeding.Volume = 0.5
  490. bleeding.Parent = Blade
  491. --
  492. local swing_anims = {33169596,204062532,218504594,186934910}
  493.  
  494. local swing_animation = Instance.new("Animation")
  495. swing_animation.AnimationId = "rbxassetid://" .. swing_anims[math.random(1,#swing_anims)]
  496.  
  497. local swing_anim = hum:LoadAnimation(swing_animation)
  498. --
  499. local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
  500.  
  501. local e_s = 1
  502.  
  503. function add_decal(f,t,obj)
  504.     spawn(function()
  505.     local texture = Instance.new("Texture")
  506.     texture.Parent = obj
  507.     texture.Face = f
  508.     texture.Texture = 'rbxassetid://' .. t
  509.     if f == 'Left' or f == 'Right' then
  510.         texture.StudsPerTileV = obj.Size.Y + e_s
  511.         if (obj.Size.X > obj.Size.Z) then
  512.             texture.StudsPerTileV = obj.Size.Z + e_s
  513.         elseif (obj.Size.Z > obj.Size.X) then
  514.             texture.StudsPerTileU = obj.Size.X + e_s
  515.         else
  516.             texture.StudsPerTileU = obj.Size.X + e_s
  517.         end
  518.     elseif f == 'Front' or f == 'Back' then
  519.         texture.StudsPerTileV = obj.Size.Y + e_s
  520.         if (obj.Size.X > obj.Size.Z) then
  521.             texture.StudsPerTileV = obj.Size.X + e_s
  522.         elseif (obj.Size.Z > obj.Size.X) then
  523.             texture.StudsPerTileU = obj.Size.Z + e_s
  524.         else
  525.             texture.StudsPerTileU = obj.Size.X + e_s
  526.         end
  527.     elseif f == 'Top' or f == 'Bottom' then
  528.         texture.StudsPerTileV = obj.Size.X + e_s
  529.         texture.StudsPerTileU = obj.Size.Z + e_s
  530.     end
  531.     end)
  532. end
  533.  
  534. function add_blood(obj)
  535.     local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
  536.     add_decal('Top',t1,obj)
  537.     add_decal('Bottom',t2,obj)
  538.     add_decal('Left',t3,obj)
  539.     add_decal('Right',t4,obj)
  540.     add_decal('Front',t5,obj)
  541.     add_decal('Back',t6,obj)
  542. end
  543.  
  544. function make_bone(obj,targtorso)
  545.     if obj.Name == 'Left Arm' or obj.Name == 'LeftUpperArm' then
  546.         local bone = Instance.new("Part")
  547.         bone.name = 'bone'
  548.         bone.CanCollide = false
  549.         bone.Anchored = false
  550.         bone.CFrame = targtorso.CFrame
  551.         bone.Size = targtorso.Size
  552.         bone.Massless = true
  553.         bone.Locked = true
  554.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  555.         if not exists then
  556.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  557.         end
  558.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  559.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  560.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  561.         local weld = Instance.new("Weld")
  562.         weld.Part0 = bone
  563.         weld.Part1 = targtorso
  564.         weld.C1 = CFrame.new(-0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(90))
  565.         weld.Parent = bone
  566.         targtorso.Anchored = false
  567.         bone.Parent = script
  568.         local mesh = Instance.new("SpecialMesh")
  569.         mesh.MeshId = 'rbxassetid://1076136382'
  570.         mesh.TextureId = 'rbxassetid://1076137938'
  571.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  572.         mesh.Parent = bone
  573.         --
  574.         local bone = Instance.new("Part")
  575.         bone.Name = 'bone'
  576.         bone.CanCollide = false
  577.         bone.Anchored = false
  578.         bone.CFrame = obj.CFrame
  579.         bone.Size = obj.Size
  580.         bone.Massless = true
  581.         bone.Locked = true
  582.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  583.         if not exists then
  584.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  585.         end
  586.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  587.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  588.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  589.         local weld = Instance.new("Weld")
  590.         weld.Part0 = bone
  591.         weld.Part1 = obj
  592.         weld.C1 = CFrame.new(0.13,0.26,0)
  593.         weld.Parent = bone
  594.         obj.Anchored = false
  595.         bone.Parent = script
  596.         local mesh = Instance.new("SpecialMesh")
  597.         mesh.MeshId = 'rbxassetid://36780032'
  598.         mesh.TextureId = 'rbxassetid://36780292'
  599.         mesh.Parent = bone
  600.     elseif obj.Name == 'Right Arm' or obj.Name == 'RightUpperArm' then
  601.         local bone = Instance.new("Part")
  602.         bone.Name = 'bone'
  603.         bone.CanCollide = false
  604.         bone.Anchored = false
  605.         bone.CFrame = targtorso.CFrame
  606.         bone.Size = targtorso.Size
  607.         bone.Massless = true
  608.         bone.Locked = true
  609.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  610.         if not exists then
  611.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  612.         end
  613.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  614.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  615.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  616.         local weld = Instance.new("Weld")
  617.         weld.Part0 = bone
  618.         weld.Part1 = targtorso
  619.         weld.C1 = CFrame.new(0.61,0.77,0.03)*CFrame.Angles(math.rad(90),0,math.rad(-90))
  620.         weld.Parent = bone
  621.         targtorso.Anchored = false
  622.         bone.Parent = script
  623.         local mesh = Instance.new("SpecialMesh")
  624.         mesh.MeshId = 'rbxassetid://1076136382'
  625.         mesh.TextureId = 'rbxassetid://1076137938'
  626.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  627.         mesh.Parent = bone
  628.         --
  629.         local bone = Instance.new("Part")
  630.         bone.Name = 'bone'
  631.         bone.CanCollide = false
  632.         bone.Anchored = false
  633.         bone.CFrame = obj.CFrame
  634.         bone.Size = obj.Size
  635.         bone.Massless = true
  636.         bone.Locked = true
  637.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  638.         if not exists then
  639.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  640.         end
  641.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  642.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  643.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  644.         local weld = Instance.new("Weld")
  645.         weld.Part0 = bone
  646.         weld.Part1 = obj
  647.         weld.C1 = CFrame.new(-0.13,0.26,0)
  648.         weld.Parent = bone
  649.         obj.Anchored = false
  650.         bone.Parent = script
  651.         local mesh = Instance.new("SpecialMesh")
  652.         mesh.MeshId = 'rbxassetid://36780156'
  653.         mesh.TextureId = 'rbxassetid://36780292'
  654.         mesh.Parent = bone
  655.     elseif obj.Name == 'Left Leg' or obj.Name == 'LeftUpperLeg' then
  656.         local bone = Instance.new("Part")
  657.         bone.Name = 'bone'
  658.         bone.CanCollide = false
  659.         bone.Anchored = false
  660.         bone.CFrame = targtorso.CFrame
  661.         bone.Size = targtorso.Size
  662.         bone.Massless = true
  663.         bone.Locked = true
  664.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  665.         if not exists then
  666.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  667.         end
  668.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  669.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  670.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  671.         local weld = Instance.new("Weld")
  672.         weld.Part0 = bone
  673.         weld.Part1 = targtorso
  674.         weld.C1 = CFrame.new(-0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  675.         weld.Parent = bone
  676.         targtorso.Anchored = false
  677.         bone.Parent = script
  678.         local mesh = Instance.new("SpecialMesh")
  679.         mesh.MeshId = 'rbxassetid://1076136382'
  680.         mesh.TextureId = 'rbxassetid://1076137938'
  681.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  682.         mesh.Parent = bone
  683.         --
  684.         local bone = Instance.new("Part")
  685.         bone.Name = 'bone'
  686.         bone.CanCollide = false
  687.         bone.Anchored = false
  688.         bone.CFrame = obj.CFrame
  689.         bone.Size = obj.Size
  690.         bone.Massless = true
  691.         bone.Locked = true
  692.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  693.         if not exists then
  694.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  695.         end
  696.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  697.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  698.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  699.         local weld = Instance.new("Weld")
  700.         weld.Part0 = bone
  701.         weld.Part1 = obj
  702.         weld.C1 = CFrame.new(0,0.09,0.13)
  703.         weld.Parent = bone
  704.         obj.Anchored = false
  705.         bone.Parent = script
  706.         local mesh = Instance.new("SpecialMesh")
  707.         mesh.MeshId = 'rbxassetid://36780156'
  708.         mesh.TextureId = 'rbxassetid://36780292'
  709.         mesh.Parent = bone
  710.     elseif obj.Name == 'Right Leg' or obj.Name == 'RightUpperLeg' then
  711.         local bone = Instance.new("Part")
  712.         bone.Name = 'bone'
  713.         bone.CanCollide = false
  714.         bone.Anchored = false
  715.         bone.CFrame = targtorso.CFrame
  716.         bone.Size = targtorso.Size
  717.         bone.Massless = true
  718.         bone.Locked = true
  719.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  720.         if not exists then
  721.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  722.         end
  723.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  724.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  725.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  726.         local weld = Instance.new("Weld")
  727.         weld.Part0 = bone
  728.         weld.Part1 = targtorso
  729.         weld.C1 = CFrame.new(0.6,-0.64,0.11)*CFrame.Angles(0,0,math.rad(180))
  730.         weld.Parent = bone
  731.         targtorso.Anchored = false
  732.         bone.Parent = script
  733.         local mesh = Instance.new("SpecialMesh")
  734.         mesh.MeshId = 'rbxassetid://1076136382'
  735.         mesh.TextureId = 'rbxassetid://1076137938'
  736.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  737.         mesh.Parent = bone
  738.         --
  739.         local bone = Instance.new("Part")
  740.         bone.Name = 'bone'
  741.         bone.CanCollide = false
  742.         bone.Anchored = false
  743.         bone.CFrame = obj.CFrame
  744.         bone.Size = obj.Size
  745.         bone.Massless = true
  746.         bone.Locked = true
  747.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  748.         if not exists then
  749.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  750.         end
  751.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  752.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  753.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  754.         local weld = Instance.new("Weld")
  755.         weld.Part0 = bone
  756.         weld.Part1 = obj
  757.         weld.C1 = CFrame.new(0,0.09,0.13)
  758.         weld.Parent = bone
  759.         obj.Anchored = false
  760.         bone.Parent = script
  761.         local mesh = Instance.new("SpecialMesh")
  762.         mesh.MeshId = 'rbxassetid://36780195'
  763.         mesh.TextureId = 'rbxassetid://36780292'
  764.         mesh.Parent = bone
  765.     elseif obj.Name == 'Head' then
  766.         local bone = Instance.new("Part")
  767.         bone.Name = 'bone'
  768.         bone.CanCollide = false
  769.         bone.Anchored = false
  770.         bone.CFrame = targtorso.CFrame
  771.         bone.Size = targtorso.Size
  772.         bone.Massless = true
  773.         bone.Locked = true
  774.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  775.         if not exists then
  776.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  777.         end
  778.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  779.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  780.         game:GetService("PhysicsService"):SetPartCollisionGroup(targtorso,'Limb Collide')
  781.         local weld = Instance.new("Weld")
  782.         weld.Part0 = bone
  783.         weld.Part1 = targtorso
  784.         weld.C1 = CFrame.new(0,0.66,0)
  785.         weld.Parent = bone
  786.         targtorso.Anchored = false
  787.         bone.Parent = script
  788.         local mesh = Instance.new("SpecialMesh")
  789.         mesh.MeshId = 'rbxassetid://1076136382'
  790.         mesh.TextureId = 'rbxassetid://1076137938'
  791.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  792.         mesh.Parent = bone
  793.         --
  794.         local bone = Instance.new("Part")
  795.         bone.Name = 'bone'
  796.         bone.CanCollide = false
  797.         bone.Anchored = false
  798.         bone.CFrame = obj.CFrame
  799.         bone.Size = obj.Size
  800.         bone.Massless = true
  801.         bone.Locked = true
  802.         local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  803.         if not exists then
  804.             game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  805.         end
  806.         game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  807.         game:GetService("PhysicsService"):SetPartCollisionGroup(bone,'Limb Collide')
  808.         game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  809.         local weld = Instance.new("Weld")
  810.         weld.Part0 = bone
  811.         weld.Part1 = obj
  812.         weld.C1 = CFrame.new(0,-0.23,0)*CFrame.Angles(0,math.rad(-90),0)
  813.         weld.Parent = bone
  814.         obj.Anchored = false
  815.         bone.Parent = script
  816.         local mesh = Instance.new("SpecialMesh")
  817.         mesh.MeshId = 'rbxassetid://1076136382'
  818.         mesh.TextureId = 'rbxassetid://1076137938'
  819.         mesh.Scale = Vector3.new(0.03,0.03,0.03)
  820.         mesh.Parent = bone
  821.     end
  822. end
  823.  
  824. function break_limb(obj,rig,targtorso,targhum,dir)
  825.     if not obj:FindFirstChild('Dismembered') and obj.Name ~= 'Torso' and obj.Name ~= 'HumanoidRootPart' and obj.Name ~= 'UpperTorso' and obj.Name ~= 'LowerTorso' then else return end
  826.     local confirm = Instance.new("ObjectValue")
  827.     confirm.Name = 'Dismembered'
  828.     confirm.Parent = obj
  829.     local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  830.     if bsc then
  831.         bsc:Destroy()
  832.     end
  833.     bleed2(obj,targhum,false,5,false)
  834.     add_blood(obj)
  835.     make_bone(obj,targtorso)
  836.     local kb = 25
  837.     local bv = Instance.new("BodyVelocity")
  838.     bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  839.     bv.Velocity = dir*kb+Vector3.new(0,kb,0)
  840.     bv.Parent = obj
  841.     game:GetService("Debris"):AddItem(bv,0.1)
  842.     if rig == Enum.HumanoidRigType.R6 then
  843.         local bsc = obj:FindFirstChildOfClass("BallSocketConstraint")
  844.         if bsc then
  845.             bsc:Destroy()
  846.         end
  847.         for i,v in pairs(targtorso:GetChildren()) do
  848.             if v:IsA("Motor6D") then
  849.                 if obj.Name == 'Head' and v.Name == 'Neck' then
  850.                     v:Destroy()
  851.                 elseif obj.Name == 'Left Arm' and v.Name == 'Left Shouldver' then
  852.                     v:Destroy()
  853.                 elseif obj.Name == 'Right Arm' and v.Name == 'Right Shoulder' then
  854.                     v:Destroy()
  855.                 elseif obj.Name == 'Left Leg' and v.Name == 'Left Hip' then
  856.                     if obj.Parent:FindFirstChild("Right Leg") then
  857.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  858.                     else
  859.                         targhum.WalkSpeed = 0
  860.                     end
  861.                     v:Destroy()
  862.                 elseif obj.Name == 'Right Leg' and v.Name == 'Right Hip' then
  863.                     if obj.Parent:FindFirstChild("Left Leg") then
  864.                         targhum.WalkSpeed = targhum.WalkSpeed/2
  865.                     else
  866.                         targhum.WalkSpeed = 0
  867.                     end
  868.                     v:Destroy()
  869.                 end
  870.             end
  871.         end
  872.     elseif rig == Enum.HumanoidRigType.R15 then
  873.         for i,v in pairs(obj:GetChildren()) do
  874.             if v:IsA("Motor6D") then
  875.                 if (obj.Name == 'LeftUpperLeg' and obj.Parent:FindFirstChild("RightUpperLeg")) or (obj.Name == 'RightUpperLeg' and obj.Parent:FindFirstChild("LeftUpperLeg")) then
  876.                     targhum.WalkSpeed = targhum.WalkSpeed/2
  877.                 elseif obj.Name == 'RightUpperLeg' or obj.Name == 'LeftUpperLeg' then
  878.                     targhum.WalkSpeed = 0
  879.                 end
  880.                 v:Destroy()
  881.             end
  882.         end
  883.     end
  884.     local cb = Instance.new("Part")
  885.     cb.Name = 'limb'
  886.     cb.Transparency = 1
  887.     cb.CanCollide = true
  888.     cb.Anchored = false
  889.     cb.CFrame = obj.CFrame
  890.     cb.Size = obj.Size
  891.     cb.Massless = true
  892.     cb.Locked = true
  893.     local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  894.     if not exists then
  895.         game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  896.     end
  897.     game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  898.     game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
  899.     game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  900.     local weld = Instance.new("Weld")
  901.     weld.Part0 = cb
  902.     weld.Part1 = obj
  903.     weld.Parent = cb
  904.     obj.Massless = true
  905.     obj.Anchored = false
  906.     cb.Parent = script
  907. end
  908. --
  909. function bleed(p)
  910.     bleeding = true
  911.     local ParticleEmitter0 = Instance.new("ParticleEmitter")
  912.     local ParticleEmitter1 = Instance.new("ParticleEmitter")
  913.     local ParticleEmitter2 = Instance.new("ParticleEmitter")
  914.     ParticleEmitter0.Name = "Blood"
  915.     ParticleEmitter0.Parent = p
  916.     ParticleEmitter0.Speed = NumberRange.new(5, 10)
  917.     ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  918.     ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  919.     ParticleEmitter0.Enabled = false
  920.     ParticleEmitter0.LightEmission = 0.40000000596046
  921.     ParticleEmitter0.LightInfluence = 1
  922.     ParticleEmitter0.Texture = "rbxassetid://73547327"
  923.     ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  924.     ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  925.     ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  926.     ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  927.     ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  928.     ParticleEmitter0.LockedToPart = true
  929.     ParticleEmitter0.Rate = 1000
  930.     ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  931.     ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  932.     ParticleEmitter0.VelocitySpread = 360
  933.     ParticleEmitter1.Name = "Blood2"
  934.     ParticleEmitter1.Parent = p
  935.     ParticleEmitter1.Speed = NumberRange.new(5, 14)
  936.     ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  937.     ParticleEmitter1.Enabled = false
  938.     ParticleEmitter1.LightEmission = 0.20000000298023
  939.     ParticleEmitter1.LightInfluence = 1
  940.     ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  941.     ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  942.     ParticleEmitter1.ZOffset = 1
  943.     ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  944.     ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  945.     ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  946.     ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  947.     ParticleEmitter1.LockedToPart = true
  948.     ParticleEmitter1.Rate = 1000
  949.     ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  950.     ParticleEmitter1.VelocitySpread = 360
  951.     ParticleEmitter2.Name = "Blood3"
  952.     ParticleEmitter2.Parent = p
  953.     ParticleEmitter2.Speed = NumberRange.new(3, 7)
  954.     ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  955.     ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  956.     ParticleEmitter2.Enabled = false
  957.     ParticleEmitter2.LightEmission = 0.20000000298023
  958.     ParticleEmitter2.LightInfluence = 1
  959.     ParticleEmitter2.Texture = "rbxassetid://241779220"
  960.     ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  961.     ParticleEmitter2.ZOffset = 0.5
  962.     ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  963.     ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  964.     ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  965.     ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  966.     ParticleEmitter2.LockedToPart = true
  967.     ParticleEmitter2.Rate = 1000
  968.     ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  969.     ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  970.     ParticleEmitter2.VelocitySpread = 360
  971.     ParticleEmitter0.Enabled = true
  972.     ParticleEmitter1.Enabled = true
  973.     ParticleEmitter2.Enabled = true
  974.     spawn(function()
  975.         game:GetService("Debris"):AddItem(ParticleEmitter0,1)
  976.         game:GetService("Debris"):AddItem(ParticleEmitter1,1)
  977.         game:GetService("Debris"):AddItem(ParticleEmitter2,1)
  978.         wait(.1)
  979.         ParticleEmitter0.Enabled = false
  980.         ParticleEmitter1.Enabled = false
  981.         ParticleEmitter2.Enabled = false
  982.         bleeding = false
  983.     end)
  984. end
  985. function Attack()
  986.     if not using and equipped then else return end
  987.     using = true
  988.     Animate('attack')
  989.     wait(0.6)
  990.     tool.Grip = CFrame.new(0, 0, 0, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1)
  991.     hit_wall = false
  992.     using = false
  993. end
  994. function Animate(mode)
  995.     if mode == 'attack' then
  996.         animval = animval + 1
  997.         if animval > #swing_anims then animval = 1 end
  998.         swing_animation.AnimationId = "rbxassetid://" .. swing_anims[animval]
  999.         swing_anim = hum:LoadAnimation(swing_animation)
  1000.         if animval == 1 then
  1001.             dmg_type = 'stab'
  1002.             swing.PlaybackSpeed = math.random(95,105)/100
  1003.             swing.SoundId = 'rbxassetid://' .. tostring(swings[math.random(1,2)])
  1004.             swing:Play()
  1005.             swing_anim:Play(.05,1,1) -- front swing
  1006.         elseif animval == 2 then
  1007.             dmg_type = 'slice'
  1008.             tool.Grip = CFrame.new(0, 0, 0, -1, 8.74227766e-08, 0, -8.74227766e-08, -1, 0, 0, 0, 1)
  1009.             swing2.PlaybackSpeed = math.random(95,105)/100
  1010.             swing2.SoundId = 'rbxassetid://' .. tostring(swings[math.random(3,4)])
  1011.             swing2:Play()
  1012.             swing_anim:Play(.04,1,1.2) -- left swing
  1013.         elseif animval == 3 then
  1014.             dmg_type = 'slice'
  1015.             swing2.PlaybackSpeed = math.random(95,105)/100
  1016.             swing2.SoundId = 'rbxassetid://' .. tostring(swings[math.random(3,4)])
  1017.             swing2:Play()
  1018.             swing_anim:Play(.04,1,1) -- right swing
  1019.         elseif animval == 4 then
  1020.             dmg_type = 'slice2'
  1021.             swing3.PlaybackSpeed = math.random(95,105)/100
  1022.             swing3.SoundId = 'rbxassetid://' .. tostring(swings[math.random(5,6)])
  1023.             swing3:Play()
  1024.             swing_anim:Play(.04,1,1) -- right 360 spin
  1025.         end
  1026.     end
  1027. end
  1028. function CheckAlive()
  1029.     local result = false
  1030.     if (char and char.Parent and plr and plr.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0) then result = true; end
  1031.     return result
  1032. end
  1033. function GetChar()
  1034.     char = tool.Parent
  1035.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  1036.     torso = char:FindFirstChild("Torso")
  1037.     hum = char:FindFirstChildOfClass("Humanoid")
  1038.     if (not CheckAlive()) then equipped = false; tool.Parent = workspace; return end
  1039. end
  1040. function Ragdoll(targchar,headless,insta)
  1041.     local pc = targchar
  1042.     local pc_torso
  1043.     for _,obj in pairs(pc:GetDescendants()) do
  1044.         obj.Archivable = true
  1045.         if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
  1046.             obj.Massless = true
  1047.             obj.Locked = true
  1048.             obj.CanCollide = true
  1049.         end
  1050.     end
  1051.     if pc ~= nil then
  1052.         local hum = pc:FindFirstChild'Humanoid'
  1053.         local LArm = pc:FindFirstChild'Left Arm'
  1054.         local RArm = pc:FindFirstChild'Right Arm'
  1055.         local LLeg = pc:FindFirstChild'Left Leg'
  1056.         local RLeg = pc:FindFirstChild'Right Leg'
  1057.         local torso = pc:FindFirstChild'Torso'
  1058.         local head = pc:FindFirstChild'Head'
  1059.        
  1060.        
  1061.         local LUA = pc:FindFirstChild'LeftUpperArm'
  1062.         local LLA = pc:FindFirstChild'LeftLowerArm'
  1063.         local LH = pc:FindFirstChild'LeftHand'
  1064.        
  1065.         local RUA = pc:FindFirstChild'RightUpperArm'
  1066.         local RLA = pc:FindFirstChild'RightLowerArm'
  1067.         local RH = pc:FindFirstChild'RightHand'
  1068.        
  1069.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  1070.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  1071.         local LF = pc:FindFirstChild'LeftFoot'
  1072.        
  1073.         local RUL = pc:FindFirstChild'RightUpperLeg'
  1074.         local RLL = pc:FindFirstChild'RightLowerLeg'
  1075.         local RF = pc:FindFirstChild'RightFoot'
  1076.        
  1077.         local UT = pc:FindFirstChild'UpperTorso'
  1078.         local LT = pc:FindFirstChild'LowerTorso'
  1079.        
  1080.         if hum and LArm and RArm and LLeg and RLeg and head then
  1081.             pc_torso = torso
  1082.             hum.BreakJointsOnDeath = false
  1083.             if insta then
  1084.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  1085.                     for _,v in pairs(torso:GetDescendants()) do
  1086.                         if v:IsA('Motor6D') or v:IsA('Motor') or v:IsA('Weld') then
  1087.                             v:Destroy()
  1088.                         end
  1089.                     end
  1090.                    local vis = false
  1091.                    local vis2 = false
  1092.                     if not LArm:FindFirstChild('Dismembered') then
  1093.                        local at1 = Instance.new("Attachment")
  1094.                        at1.Parent = torso
  1095.                        at1.Visible = vis
  1096.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  1097.                        at1.Position = Vector3.new(-1,1,0)
  1098.                                        
  1099.                        local at1p2 = Instance.new("Attachment")
  1100.                        at1p2.Parent = LArm
  1101.                        at1p2.Visible = vis
  1102.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  1103.                        at1p2.Position = Vector3.new(.5,1,0)
  1104.                            
  1105.                        local bis = Instance.new("BallSocketConstraint")
  1106.                        bis.Parent = LArm
  1107.                        bis.Attachment0 = at1
  1108.                        bis.Attachment1 = at1p2
  1109.                        bis.LimitsEnabled = true
  1110.                        bis.UpperAngle = 15
  1111.                        bis.Visible = vis2
  1112.                        bis.TwistLimitsEnabled = true
  1113.                        bis.UpperAngle = -45
  1114.                        bis.TwistLowerAngle = -45
  1115.                     end
  1116.                     if not RArm:FindFirstChild('Dismembered') then    
  1117.                         local at2 = Instance.new("Attachment")
  1118.                         at2.Parent = torso
  1119.                         at2.Visible = vis
  1120.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  1121.                         at2.Position = Vector3.new(1,1,0)
  1122.                                
  1123.                         local at2p2 = Instance.new("Attachment")
  1124.                         at2p2.Parent = RArm
  1125.                         at2p2.Visible = vis
  1126.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  1127.                         at2p2.Position = Vector3.new(-.5,1,0)
  1128.                        
  1129.                         local bis2 = Instance.new("BallSocketConstraint")
  1130.                         bis2.Parent = RArm
  1131.                         bis2.Attachment0 = at2
  1132.                         bis2.Attachment1 = at2p2
  1133.                         bis2.LimitsEnabled = true
  1134.                         bis2.UpperAngle = 15
  1135.                         bis2.Visible = vis2
  1136.                         bis2.TwistLimitsEnabled = true
  1137.                         bis2.UpperAngle = -45
  1138.                         bis2.TwistLowerAngle = -45
  1139.                     end
  1140.                      if not RLeg:FindFirstChild('Dismembered') then
  1141.                         local at3 = Instance.new("Attachment")
  1142.                         at3.Parent = torso
  1143.                         at3.Visible = vis
  1144.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1145.                         at3.Position = Vector3.new(.5,-1,0)
  1146.                                
  1147.                         local at3p2 = Instance.new("Attachment")
  1148.                         at3p2.Parent = RLeg
  1149.                         at3p2.Visible = vis
  1150.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  1151.                         at3p2.Position = Vector3.new(0,1,0)
  1152.                        
  1153.                         local bis3 = Instance.new("BallSocketConstraint")
  1154.                         bis3.Parent = RLeg
  1155.                         bis3.Attachment0 = at3
  1156.                         bis3.Attachment1 = at3p2
  1157.                         bis3.LimitsEnabled = true
  1158.                         bis3.UpperAngle = 180-15
  1159.                         bis3.Visible = vis2
  1160.                     end
  1161.                          
  1162.                     if not LLeg:FindFirstChild('Dismembered') then  
  1163.                         local at4 = Instance.new("Attachment")
  1164.                         at4.Parent = torso
  1165.                         at4.Visible = vis
  1166.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1167.                         at4.Position = Vector3.new(-.5,-1,0)
  1168.                                
  1169.                         local at4p2 = Instance.new("Attachment")
  1170.                         at4p2.Parent = LLeg
  1171.                         at4p2.Visible = vis
  1172.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  1173.                         at4p2.Position = Vector3.new(0,1,0)
  1174.                    
  1175.                         local bis4 = Instance.new("BallSocketConstraint")
  1176.                         bis4.Parent = LLeg
  1177.                         bis4.Attachment0 = at4
  1178.                         bis4.Attachment1 = at4p2
  1179.                         bis4.LimitsEnabled = true
  1180.                         bis4.UpperAngle = 180-15
  1181.                         bis4.Visible = vis2
  1182.                     end
  1183.                    
  1184.                     if not headless and not head:FindFirstChild('Dismembered') then  
  1185.                             local at5 = Instance.new("Attachment")
  1186.                             at5.Parent = torso
  1187.                             at5.Visible = vis
  1188.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  1189.                             at5.Position = Vector3.new(0,1,0)
  1190.                          
  1191.                             local at5p2 = Instance.new("Attachment")
  1192.                             at5p2.Parent = head
  1193.                             at5p2.Visible = vis
  1194.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  1195.                             at5p2.Position = Vector3.new(0,-.5,0)
  1196.                    
  1197.                             local bis5 = Instance.new("BallSocketConstraint")
  1198.                             bis5.Parent = head
  1199.                             bis5.Attachment0 = at5p2
  1200.                             bis5.Attachment1 = at5
  1201.                             bis5.LimitsEnabled = true
  1202.                             bis5.UpperAngle = 75
  1203.                             bis5.Visible = vis2
  1204.                             bis5.TwistLimitsEnabled = true
  1205.                             bis5.UpperAngle = -45
  1206.                             bis5.TwistLowerAngle = -45
  1207.                         else
  1208.                             --head:BreakJoints()
  1209.                         end
  1210.                     end
  1211.             else
  1212.                 hum.Died:Connect(function()
  1213.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  1214.                     for _,v in pairs(torso:GetDescendants()) do
  1215.                         if v:IsA('Motor6D') or v:IsA('Motor') or v:IsA('Weld') then
  1216.                             v:Destroy()
  1217.                         end
  1218.                     end
  1219.                    local vis = false
  1220.                    local vis2 = false
  1221.                     if not LArm:FindFirstChild('Dismembered') then
  1222.                        local at1 = Instance.new("Attachment")
  1223.                        at1.Parent = torso
  1224.                        at1.Visible = vis
  1225.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  1226.                        at1.Position = Vector3.new(-1,1,0)
  1227.                                        
  1228.                        local at1p2 = Instance.new("Attachment")
  1229.                        at1p2.Parent = LArm
  1230.                        at1p2.Visible = vis
  1231.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  1232.                        at1p2.Position = Vector3.new(.5,1,0)
  1233.                            
  1234.                        local bis = Instance.new("BallSocketConstraint")
  1235.                        bis.Parent = LArm
  1236.                        bis.Attachment0 = at1
  1237.                        bis.Attachment1 = at1p2
  1238.                        bis.LimitsEnabled = true
  1239.                        bis.UpperAngle = 15
  1240.                        bis.Visible = vis2
  1241.                        bis.TwistLimitsEnabled = true
  1242.                        bis.UpperAngle = -45
  1243.                        bis.TwistLowerAngle = -45
  1244.                     end
  1245.                     if not RArm:FindFirstChild('Dismembered') then    
  1246.                         local at2 = Instance.new("Attachment")
  1247.                         at2.Parent = torso
  1248.                         at2.Visible = vis
  1249.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  1250.                         at2.Position = Vector3.new(1,1,0)
  1251.                                
  1252.                         local at2p2 = Instance.new("Attachment")
  1253.                         at2p2.Parent = RArm
  1254.                         at2p2.Visible = vis
  1255.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  1256.                         at2p2.Position = Vector3.new(-.5,1,0)
  1257.                        
  1258.                         local bis2 = Instance.new("BallSocketConstraint")
  1259.                         bis2.Parent = RArm
  1260.                         bis2.Attachment0 = at2
  1261.                         bis2.Attachment1 = at2p2
  1262.                         bis2.LimitsEnabled = true
  1263.                         bis2.UpperAngle = 15
  1264.                         bis2.Visible = vis2
  1265.                         bis2.TwistLimitsEnabled = true
  1266.                         bis2.UpperAngle = -45
  1267.                         bis2.TwistLowerAngle = -45
  1268.                     end
  1269.                      if not RLeg:FindFirstChild('Dismembered') then
  1270.                         local at3 = Instance.new("Attachment")
  1271.                         at3.Parent = torso
  1272.                         at3.Visible = vis
  1273.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1274.                         at3.Position = Vector3.new(.5,-1,0)
  1275.                                
  1276.                         local at3p2 = Instance.new("Attachment")
  1277.                         at3p2.Parent = RLeg
  1278.                         at3p2.Visible = vis
  1279.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  1280.                         at3p2.Position = Vector3.new(0,1,0)
  1281.                        
  1282.                         local bis3 = Instance.new("BallSocketConstraint")
  1283.                         bis3.Parent = RLeg
  1284.                         bis3.Attachment0 = at3
  1285.                         bis3.Attachment1 = at3p2
  1286.                         bis3.LimitsEnabled = true
  1287.                         bis3.UpperAngle = 180-15
  1288.                         bis3.Visible = vis2
  1289.                     end
  1290.                          
  1291.                     if not LLeg:FindFirstChild('Dismembered') then  
  1292.                         local at4 = Instance.new("Attachment")
  1293.                         at4.Parent = torso
  1294.                         at4.Visible = vis
  1295.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1296.                         at4.Position = Vector3.new(-.5,-1,0)
  1297.                                
  1298.                         local at4p2 = Instance.new("Attachment")
  1299.                         at4p2.Parent = LLeg
  1300.                         at4p2.Visible = vis
  1301.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  1302.                         at4p2.Position = Vector3.new(0,1,0)
  1303.                    
  1304.                         local bis4 = Instance.new("BallSocketConstraint")
  1305.                         bis4.Parent = LLeg
  1306.                         bis4.Attachment0 = at4
  1307.                         bis4.Attachment1 = at4p2
  1308.                         bis4.LimitsEnabled = true
  1309.                         bis4.UpperAngle = 180-15
  1310.                         bis4.Visible = vis2
  1311.                     end
  1312.                    
  1313.                     if not headless and not head:FindFirstChild('Dismembered') then  
  1314.                             local at5 = Instance.new("Attachment")
  1315.                             at5.Parent = torso
  1316.                             at5.Visible = vis
  1317.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  1318.                             at5.Position = Vector3.new(0,1,0)
  1319.                          
  1320.                             local at5p2 = Instance.new("Attachment")
  1321.                             at5p2.Parent = head
  1322.                             at5p2.Visible = vis
  1323.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  1324.                             at5p2.Position = Vector3.new(0,-.5,0)
  1325.                    
  1326.                             local bis5 = Instance.new("BallSocketConstraint")
  1327.                             bis5.Parent = head
  1328.                             bis5.Attachment0 = at5p2
  1329.                             bis5.Attachment1 = at5
  1330.                             bis5.LimitsEnabled = true
  1331.                             bis5.UpperAngle = 75
  1332.                             bis5.Visible = vis2
  1333.                             bis5.TwistLimitsEnabled = true
  1334.                             bis5.UpperAngle = -45
  1335.                             bis5.TwistLowerAngle = -45
  1336.                         else
  1337.                             --head:BreakJoints()
  1338.                         end
  1339.                     end
  1340.                 end)
  1341.             end
  1342.         elseif head and hum then
  1343.             pc_torso = pc:FindFirstChild("HumanoidRootPart")
  1344.             hum.BreakJointsOnDeath = false
  1345.             if insta then
  1346.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  1347.                     for _,v in pairs(pc:GetDescendants()) do
  1348.                         if v:IsA('Motor6D') or v:IsA('Motor') then
  1349.                             v:Destroy()
  1350.                         end
  1351.                     end
  1352.                     local vis = false
  1353.                     local vis2 = false
  1354.                    
  1355.                 if not LF:FindFirstChild('Dismembered') then  
  1356.                     local bsc1 = Instance.new("BallSocketConstraint",LF)
  1357.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  1358.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1359.                 end
  1360.                 if not LLL:FindFirstChild('Dismembered') then  
  1361.                     local bsc2 = Instance.new("BallSocketConstraint",LLL)
  1362.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1363.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1364.                 end
  1365.                 if not LUL:FindFirstChild('Dismembered') then  
  1366.                     local bsc3 = Instance.new("BallSocketConstraint",LUL)
  1367.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1368.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  1369.                 end
  1370.                 if not RF:FindFirstChild('Dismembered') then  
  1371.                     local bsc4 = Instance.new("BallSocketConstraint",RF)
  1372.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1373.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1374.                 end
  1375.                 if not RLL:FindFirstChild('Dismembered') then  
  1376.                     local bsc5 = Instance.new("BallSocketConstraint",RLL)
  1377.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1378.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1379.                 end
  1380.                 if not RUL:FindFirstChild('Dismembered') then  
  1381.                     local bsc6 = Instance.new("BallSocketConstraint",RUL)
  1382.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  1383.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  1384.                 end
  1385.                 if not LH:FindFirstChild('Dismembered') then  
  1386.                     local bsc7 = Instance.new("BallSocketConstraint",LH)
  1387.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  1388.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1389.                 end
  1390.                 if not LLA:FindFirstChild('Dismembered') then  
  1391.                     local bsc8 = Instance.new("BallSocketConstraint",LLA)
  1392.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1393.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1394.                 end
  1395.                 if not LUA:FindFirstChild('Dismembered') then  
  1396.                     local bsc9 = Instance.new("BallSocketConstraint",LUA)
  1397.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1398.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  1399.                 end
  1400.                 if not RH:FindFirstChild('Dismembered') then  
  1401.                     local bsc10 = Instance.new("BallSocketConstraint",RH)
  1402.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  1403.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  1404.                 end
  1405.                 if not RLA:FindFirstChild('Dismembered') then  
  1406.                     local bsc11 = Instance.new("BallSocketConstraint",RLA)
  1407.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1408.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1409.                 end
  1410.                 if not RUA:FindFirstChild('Dismembered') then  
  1411.                     local bsc12 = Instance.new("BallSocketConstraint",RUA)
  1412.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  1413.                     bsc12.Attachment1 = UT.RightCollarAttachment
  1414.                 end
  1415.                 if not LT:FindFirstChild('Dismembered') then  
  1416.                     local bsc13 = Instance.new("BallSocketConstraint",LT)
  1417.                     bsc13.Attachment0 = LT.WaistRigAttachment
  1418.                     bsc13.Attachment1 = UT.WaistRigAttachment
  1419.                 end
  1420.                     if not headless and not head:FindFirstChild('Dismembered')  then
  1421.                         local bsc14 = Instance.new("BallSocketConstraint",head)
  1422.                         bsc14.Attachment0 = UT.NeckRigAttachment
  1423.                         bsc14.Attachment1 = head.NeckRigAttachment
  1424.                         bsc14.LimitsEnabled = true
  1425.                         bsc14.UpperAngle = -75
  1426.                         bsc14.TwistLimitsEnabled = true
  1427.                         bsc14.UpperAngle = -45
  1428.                         bsc14.TwistLowerAngle = -45
  1429.                     else
  1430.                         --head:BreakJoints()
  1431.                     end
  1432.                 end
  1433.             else
  1434.                 hum.Died:Connect(function()
  1435.                     if hum.RigType==Enum.HumanoidRigType.R15 then
  1436.                         for _,v in pairs(pc:GetDescendants()) do
  1437.                             if v:IsA('Motor6D') or v:IsA('Motor') then
  1438.                                 v:Destroy()
  1439.                             end
  1440.                         end
  1441.                         local vis = false
  1442.                         local vis2 = false
  1443.                        
  1444.                     if not LF:FindFirstChild('Dismembered') then  
  1445.                         local bsc1 = Instance.new("BallSocketConstraint",LF)
  1446.                         bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  1447.                         bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1448.                     end
  1449.                     if not LLL:FindFirstChild('Dismembered') then  
  1450.                         local bsc2 = Instance.new("BallSocketConstraint",LLL)
  1451.                         bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1452.                         bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1453.                     end
  1454.                     if not LUL:FindFirstChild('Dismembered') then  
  1455.                         local bsc3 = Instance.new("BallSocketConstraint",LUL)
  1456.                         bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1457.                         bsc3.Attachment1 = LT.LeftHipRigAttachment
  1458.                     end
  1459.                     if not RF:FindFirstChild('Dismembered') then  
  1460.                         local bsc4 = Instance.new("BallSocketConstraint",RF)
  1461.                         bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1462.                         bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1463.                     end
  1464.                     if not RLL:FindFirstChild('Dismembered') then  
  1465.                         local bsc5 = Instance.new("BallSocketConstraint",RLL)
  1466.                         bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1467.                         bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1468.                     end
  1469.                     if not RUL:FindFirstChild('Dismembered') then  
  1470.                         local bsc6 = Instance.new("BallSocketConstraint",RUL)
  1471.                         bsc6.Attachment0 = RUL.RightHipRigAttachment
  1472.                         bsc6.Attachment1 = LT.RightHipRigAttachment
  1473.                     end
  1474.                     if not LH:FindFirstChild('Dismembered') then  
  1475.                         local bsc7 = Instance.new("BallSocketConstraint",LH)
  1476.                         bsc7.Attachment0 = LH.LeftWristRigAttachment
  1477.                         bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1478.                     end
  1479.                     if not LLA:FindFirstChild('Dismembered') then  
  1480.                         local bsc8 = Instance.new("BallSocketConstraint",LLA)
  1481.                         bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1482.                         bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1483.                     end
  1484.                     if not LUA:FindFirstChild('Dismembered') then  
  1485.                         local bsc9 = Instance.new("BallSocketConstraint",LUA)
  1486.                         bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1487.                         bsc9.Attachment1 = UT.LeftCollarAttachment
  1488.                     end
  1489.                     if not RH:FindFirstChild('Dismembered') then  
  1490.                         local bsc10 = Instance.new("BallSocketConstraint",RH)
  1491.                         bsc10.Attachment0 = RH.RightWristRigAttachment
  1492.                         bsc10.Attachment1 = RLA.RightWristRigAttachment
  1493.                     end
  1494.                     if not RLA:FindFirstChild('Dismembered') then  
  1495.                         local bsc11 = Instance.new("BallSocketConstraint",RLA)
  1496.                         bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1497.                         bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1498.                     end
  1499.                     if not RUA:FindFirstChild('Dismembered') then  
  1500.                         local bsc12 = Instance.new("BallSocketConstraint",RUA)
  1501.                         bsc12.Attachment0 = RUA.RightShoulderAttachment
  1502.                         bsc12.Attachment1 = UT.RightCollarAttachment
  1503.                     end
  1504.                     if not LT:FindFirstChild('Dismembered') then  
  1505.                         local bsc13 = Instance.new("BallSocketConstraint",LT)
  1506.                         bsc13.Attachment0 = LT.WaistRigAttachment
  1507.                         bsc13.Attachment1 = UT.WaistRigAttachment
  1508.                     end
  1509.                         if not headless and not head:FindFirstChild('Dismembered')  then
  1510.                             local bsc14 = Instance.new("BallSocketConstraint",head)
  1511.                             bsc14.Attachment0 = UT.NeckRigAttachment
  1512.                             bsc14.Attachment1 = head.NeckRigAttachment
  1513.                             bsc14.LimitsEnabled = true
  1514.                             bsc14.UpperAngle = -75
  1515.                             bsc14.TwistLimitsEnabled = true
  1516.                             bsc14.UpperAngle = -45
  1517.                             bsc14.TwistLowerAngle = -45
  1518.                         else
  1519.                             --head:BreakJoints()
  1520.                         end
  1521.                     end
  1522.                 end)
  1523.             end
  1524.         end
  1525.     end
  1526.     return pc,pc_torso
  1527. end
  1528. function Decap(obj)
  1529.     local targchar,targhead,targtorso,targhum,killval,hitval
  1530.     pcall(function()
  1531.         targchar = obj.Parent
  1532.     end)
  1533.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1534.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  1535.             targchar = v.Character
  1536.         end
  1537.     end
  1538.     pcall(function()
  1539.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  1540.     end)
  1541.     pcall(function()
  1542.         targhead = targchar:FindFirstChild("Head")
  1543.     end)
  1544.     pcall(function()
  1545.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1546.     end)
  1547.     pcall(function()
  1548.         killval = targhum:FindFirstChild("killer")
  1549.     end)
  1550.     pcall(function()
  1551.         hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with katana by " .. plr.Name)
  1552.     end)
  1553.     if hum and hum.Health > 0 and targchar and targhead and targtorso and targhum and targhum ~= hum and hum and not killval --[[and not hitval]] and using then
  1554.         add_blood(obj)
  1555.         if not bloody then
  1556.             bloody = true
  1557.             add_blood(Blade)
  1558.         end
  1559.         local dir = ((targtorso.Position-rootpart.Position)*Vector3.new(1,0,1)).Unit
  1560.         break_limb(targhead,targhum.RigType,targtorso,targhum,dir)
  1561.         break_limb(obj,targhum.RigType,targtorso,targhum,dir)
  1562.         targhum:TakeDamage(1/0)
  1563.         if 0 > targhum.Health then
  1564.             bleeding:Play()
  1565.             local fakechar,faketorso
  1566.             local tempkillval = Instance.new("ObjectValue",targhum)
  1567.             tempkillval.Name = "killer"
  1568.             tempkillval.Value = plr
  1569.             pcall(function()
  1570.                 Ragdoll(targchar,true,false)
  1571.             end)
  1572.             bleed2(targtorso,targhum,true,5,true)
  1573.             local kb = 35
  1574.             local bv = Instance.new("BodyVelocity")
  1575.             bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1576.             bv.Velocity = dir*kb+Vector3.new(0,kb,0)
  1577.             bv.Parent = targtorso
  1578.             game:GetService("Debris"):AddItem(bv,0.1)
  1579.             if dmg_type == 'slice' then
  1580.                 hit.PlaybackSpeed = math.random(9,11)/10
  1581.                 hit:Play()
  1582.                 damage = math.random(25,35)
  1583.             elseif dmg_type == 'stab' then
  1584.                 hit2.PlaybackSpeed = math.random(9,11)/10
  1585.                 hit2:Play()
  1586.                 damage = math.random(35,55)
  1587.             elseif dmg_type == 'slice2' then
  1588.                 hit3.PlaybackSpeed = math.random(9,11)/10
  1589.                 hit3:Play()
  1590.                 damage = 1/0
  1591.             end
  1592.             --[[
  1593.             spawn(function()
  1594.                 wait(0.25)
  1595.                 finish_s:Play()
  1596.             end)
  1597.             ]]
  1598.             local decap_bleed = Instance.new("Sound")
  1599.             decap_bleed.SoundId = 'rbxassetid://244502094'
  1600.             decap_bleed.Volume = 0.5
  1601.             decap_bleed.Parent = targtorso
  1602.             decap_bleed:Play()
  1603.             local decap_head = Instance.new("Sound")
  1604.             decap_head.SoundId = 'rbxassetid://1255040462' --222406108
  1605.             decap_head.Volume = 1
  1606.             decap_head.Parent = targtorso
  1607.             decap_head:Play()
  1608.             local att = Instance.new("Attachment")
  1609.             att.Parent = targtorso
  1610.             att.Position = Vector3.new(0,targtorso.Size.Y/2,0)
  1611.             local blood_emitter = Instance.new("ParticleEmitter")
  1612.             blood_emitter.Name = "Blood2"
  1613.             blood_emitter.Parent = att
  1614.             blood_emitter.Speed = NumberRange.new(5, 14)
  1615.             blood_emitter.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  1616.             blood_emitter.LightEmission = 0.20000000298023
  1617.             blood_emitter.LightInfluence = 1
  1618.             blood_emitter.Texture = "http://www.roblox.com/asset/?id=134531274"
  1619.             blood_emitter.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  1620.             blood_emitter.ZOffset = 0
  1621.             blood_emitter.Size = NumberSequence.new(0.12499988079071,0)
  1622.             blood_emitter.Acceleration = Vector3.new(0, -20, 0)
  1623.             blood_emitter.Lifetime = NumberRange.new(0.5, 1.5)
  1624.             blood_emitter.Rate = 100000
  1625.             blood_emitter.SpreadAngle = Vector2.new(90, 90)
  1626.             blood_emitter.VelocitySpread = 90
  1627.             blood_emitter.Enabled = true
  1628.             spawn(function()
  1629.                 wait(5)
  1630.                 blood_emitter.Enabled = false
  1631.                 game:GetService("Debris"):AddItem(blood_emitter,2)
  1632.             end)
  1633.         end
  1634.     end
  1635. end
  1636. function bleed2(frick,targhum,can_hurt,t,splat)
  1637.     spawn(function()
  1638.     if not frick:FindFirstChild("bleeding from kry's " .. tool.Name) then else return end
  1639.     local tempbleedval = Instance.new("ObjectValue")
  1640.     tempbleedval.Name = "bleeding from kry's " .. tool.Name
  1641.     tempbleedval.Parent = frick
  1642.     local bleeding = true
  1643.     local rig = targhum.RigType
  1644.     local limbs = {'Head','Left Arm','Right Arm','Left Leg','Right Leg','RightUpperLeg','LeftUpperLeg','RightUpperArm','LeftUpperArm','RightLowerLeg','LeftLowerLeg','RightLowerArm','LeftLowerArm','RightFoot','LeftFoot','RightHand','LeftHand'}
  1645.     spawn(function()
  1646.         wait(t)
  1647.         bleeding = false
  1648.         tempbleedval:Destroy()
  1649.     end)
  1650.     while bleeding and frick and frick.Parent do
  1651.         if --[[(targhum and targhum.Parent and targhum.Health > 0) or]] (not frick or not frick.Parent or not targhum or not targhum.Parent) then
  1652.             break
  1653.         end
  1654.         local max_limbs = 0
  1655.         local current_limbs = 0
  1656.         local gone_limbs = 0
  1657.         local targchar = targhum.Parent
  1658.         if rig == Enum.HumanoidRigType.R6 then
  1659.             max_limbs = 5
  1660.         elseif rig == Enum.HumanoidRigType.R15 then
  1661.             max_limbs = 13
  1662.         end
  1663.         for i,v in pairs(targchar:GetChildren()) do
  1664.             local found = false
  1665.             for i,n in pairs(limbs) do if n == v.Name then found = true; end; end;
  1666.             if found and not v:FindFirstChild("Dismembered") then
  1667.                 current_limbs = current_limbs + 1
  1668.             end
  1669.         end
  1670.         gone_limbs = (max_limbs-current_limbs)
  1671.         if targhum and can_hurt then
  1672.             if gone_limbs >= 1 then
  1673.                 targhum:TakeDamage(0.5*gone_limbs)
  1674.             else
  1675.                 targhum:TakeDamage(0.5)
  1676.             end
  1677.         end
  1678.         spawn(function()
  1679.             local thing = Instance.new('Part')
  1680.             thing.Parent = workspace
  1681.             thing.Size = Vector3.new(0.1,0.1,0.1)
  1682.             thing.CFrame = frick.CFrame*CFrame.new(0,frick.Size.Y/2,0)
  1683.             if splat then
  1684.                 thing.Transparency = 0
  1685.             elseif not splat then
  1686.                 thing.Transparency = 1
  1687.             end
  1688.             thing.Color = Color3.fromRGB(75, 0, 0)
  1689.             thing.Material = Enum.Material.Glass
  1690.             thing.Name = "blood_drop"
  1691.             thing.CanCollide =false
  1692.             thing:BreakJoints()
  1693.             local mesh = Instance.new('SpecialMesh')
  1694.             mesh.MeshType = Enum.MeshType.Sphere
  1695.             mesh.Parent = thing
  1696.             --game:GetService("Debris"):AddItem(thing,5)
  1697.             local att1,att2 = Instance.new("Attachment"),Instance.new("Attachment")
  1698.             att1.Parent = thing
  1699.             att1.Position = Vector3.new(0,-(thing.Size.Y/2),0)
  1700.             att2.Parent = thing
  1701.             att2.Position = Vector3.new(0,(thing.Size.Y/2),0)
  1702.             if splat then
  1703.                 local trail_drop = Instance.new("Trail")
  1704.                 trail_drop.Parent = thing
  1705.                 trail_drop.Attachment0 = att1
  1706.                 trail_drop.Attachment1 = att2
  1707.                 trail_drop.Color = ColorSequence.new(Color3.new(0.294118, 0, 0),Color3.new(0.294118, 0, 0))
  1708.                 trail_drop.FaceCamera = true
  1709.                 trail_drop.LightInfluence = 1
  1710.                 trail_drop.Transparency = NumberSequence.new(0.1,1)
  1711.                 trail_drop.Lifetime = 1
  1712.                 trail_drop.MinLength = 0
  1713.             end
  1714.             local rawrxd = Instance.new('BodyForce')
  1715.             rawrxd.Parent = thing
  1716.             if splat then
  1717.                 rawrxd.Force = frick.CFrame.upVector+Vector3.new(math.random(-5, 5)/10,3,math.random(-5, 5)/10)
  1718.             elseif not splat then
  1719.                 rawrxd.Force = frick.CFrame.upVector*(math.random()*2)+Vector3.new(math.random(-5, 5)/10,1.5,0)
  1720.             end
  1721.             game:GetService("Debris"):AddItem(rawrxd,0.01)
  1722.             thing.Touched:connect(function(tou)
  1723.                 if tou and tou.Parent and not tou:IsDescendantOf(targchar) and not tou.Parent:FindFirstChildOfClass("Humanoid") and not tou.Parent.Parent:FindFirstChildOfClass("Humanoid") and not tou.Parent:IsA("Accessory") and tou.Name ~= 'Handle' and tou.Parent.Name ~= 'Handle' and not tou.Parent:IsA("Tool") and not string.match(tou.Name:lower(),'blood_drop') and not string.match(tou.Name:lower(),'bullet') and not string.match(tou.Name:lower(),'bone') and not string.match(tou.Name:lower(),'gun mag') and not string.match(tou.Name:lower(),'limb') then
  1724.                     local pos = Vector3.new(thing.Position.X,(tou.Position.Y+(tou.Size.Y/2))+(0.02/2),thing.Position.Z)
  1725.                     local Point1 = pos-Vector3.new(0.01,0.01,0.01)
  1726.                     local Point2 = pos+Vector3.new(0.01,0.01,0.01)
  1727.                     local Region = Region3.new(Point1,Point2)
  1728.                     for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  1729.                         if Part.Name == "blood" then
  1730.                             tou = Part
  1731.                         end
  1732.                     end
  1733.                     thing:Destroy()
  1734.                     if tou.Name == "blood" then
  1735.                         local reee = tou.CFrame
  1736.                         if tou.Transparency > -0.2 then
  1737.                             tou.Transparency = tou.Transparency - 0.1
  1738.                         end
  1739.                         if tou.Size.X < 5 then
  1740.                             tou.Size = tou.Size+Vector3.new(0.4,0,0.4)
  1741.                             tou.CFrame = reee
  1742.                         elseif tou.Size.X < 7.5 then
  1743.                             tou.Size = tou.Size+Vector3.new(0.3,0,0.3)
  1744.                             tou.CFrame = reee
  1745.                         elseif tou.Size.X < 10 then
  1746.                             tou.Size = tou.Size+Vector3.new(0.2,0,0.2)
  1747.                             tou.CFrame = reee
  1748.                         end
  1749.                     elseif tou.CanCollide == true then
  1750.                         local bloodlol = Instance.new('Part')
  1751.                         if gone_limbs >= 1 then
  1752.                             bloodlol.Size = Vector3.new(1*gone_limbs,0.2,1*gone_limbs)
  1753.                         else
  1754.                             bloodlol.Size = Vector3.new(1,0.2,1)
  1755.                         end
  1756.                         bloodlol.Name = "blood"
  1757.                         bloodlol.Anchored = true
  1758.                         bloodlol.CanCollide = false
  1759.                         bloodlol.Material = Enum.Material.Glass
  1760.                         bloodlol.Color = Color3.fromRGB(75, 0, 0)
  1761.                         local mesh = Instance.new('SpecialMesh')
  1762.                         mesh.MeshType = Enum.MeshType.Sphere
  1763.                         mesh.Parent = bloodlol
  1764.                         bloodlol.Parent = workspace
  1765.                         bloodlol.CFrame = CFrame.new(pos)
  1766.                         while bloodlol and bloodlol.Parent ~= nil do
  1767.                             if bloodlol.Transparency < 1 then
  1768.                                 bloodlol.Transparency = bloodlol.Transparency + 0.05
  1769.                             else
  1770.                                 bloodlol:Destroy()
  1771.                             end
  1772.                             wait(0.1)
  1773.                         end
  1774.                     end
  1775.                 end
  1776.             end)
  1777.         end)
  1778.         wait(0.1)
  1779.     end
  1780.     tempbleedval:Destroy()
  1781.     end)
  1782. end
  1783. function Damage(obj)
  1784.     local targchar,targtorso,targhum,killval,hitval
  1785.     pcall(function()
  1786.         targchar = obj.Parent
  1787.     end)
  1788.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1789.         if v and v.Character and obj:IsDescendantOf(v.Character) then
  1790.             targchar = v.Character
  1791.         end
  1792.     end
  1793.     pcall(function()
  1794.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  1795.     end)
  1796.     pcall(function()
  1797.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1798.     end)
  1799.     pcall(function()
  1800.         killval = targhum:FindFirstChild("killer")
  1801.     end)
  1802.     pcall(function()
  1803.         hitval = targhum:FindFirstChild("hit " .. targchar.Name .. " with katana by " .. plr.Name)
  1804.     end)
  1805.     if targchar and targhum and targhum ~= hum and hum and hum.Health > 0 and not killval and not hitval and using then
  1806.         local temphitval = Instance.new("ObjectValue",targhum)
  1807.         temphitval.Name = ("hit " .. targchar.Name .. " with katana by " .. plr.Name)
  1808.         game:GetService("Debris"):AddItem(temphitval,.6)
  1809.         if dmg_type == 'slice' then
  1810.             hit.PlaybackSpeed = math.random(9,11)/10
  1811.             hit:Play()
  1812.             damage = math.random(25,35)
  1813.         elseif dmg_type == 'stab' then
  1814.             hit2.PlaybackSpeed = math.random(9,11)/10
  1815.             hit2:Play()
  1816.             damage = math.random(35,55)
  1817.         elseif dmg_type == 'slice2' then
  1818.             hit3.PlaybackSpeed = math.random(9,11)/10
  1819.             hit3:Play()
  1820.             damage = 1/0
  1821.         end
  1822.         --[[
  1823.         spawn(function()
  1824.             wait(0.25)
  1825.             finish_s:Play()
  1826.         end)
  1827.         ]]
  1828.         if targhum.Health > 0 then
  1829.             targhum:TakeDamage(damage)
  1830.         end
  1831.         if 0 >= targhum.Health then
  1832.             local tempkillval = Instance.new("ObjectValue",targhum)
  1833.             tempkillval.Name = "killer"
  1834.             tempkillval.Value = plr
  1835.             bleeding:Play()
  1836.             pcall(function()
  1837.                 Ragdoll(targchar,false,false)
  1838.             end)
  1839.         end
  1840.         if not bleeding then
  1841.             pcall(function()
  1842.                 bleed(targtorso)
  1843.             end)
  1844.         end
  1845.         targhum.Died:Connect(function()
  1846.             if targchar and targhum and targhum ~= hum and hum and not killval then
  1847.                 local tempkillval = Instance.new("ObjectValue",targhum)
  1848.                 tempkillval.Name = "killer"
  1849.                 tempkillval.Value = plr
  1850.                 pcall(function()
  1851.                     Ragdoll(targchar,false,true)
  1852.                 end)
  1853.             end
  1854.         end)
  1855.         bleed2(targtorso,targhum,true,5,false)
  1856.     end
  1857. end
  1858. function Hit_Decide(obj)
  1859.     local targpar,targhum,killval,hitval,hitval2
  1860.     pcall(function()
  1861.         targpar = obj.Parent
  1862.     end)
  1863.     pcall(function()
  1864.         targhum = obj.Parent:FindFirstChildOfClass("Humanoid")
  1865.     end)
  1866.     pcall(function()
  1867.         killval = targhum:FindFirstChild("killer")
  1868.     end)
  1869.     pcall(function()
  1870.         hitval = targhum:FindFirstChild("hit " .. targpar.Name .. " with katana by " .. plr.Name)
  1871.     end)
  1872.     pcall(function()
  1873.         hitval2 = targpar:FindFirstChild("hit with katana by " .. plr.Name)
  1874.     end)
  1875.    
  1876.     if targpar and using and targhum and targhum.Health > 0 and not killval and not hitval then
  1877.         Decap(obj)
  1878.     elseif targpar and not hit_wall and using and not targhum and not killval and not hitval and not hitval2 and not obj:FindFirstChild("Dismembered") and not obj.Parent:IsA("Tool") and not obj.Parent:IsA("Accessory") and obj.Parent.Name ~= 'Handle' and not string.match(obj.Name:lower(),'blood') and not string.match(obj.Name:lower(),'bullet') and not string.match(obj.Name:lower(),'limb') then
  1879.         hit_wall = true
  1880.         local tempval = Instance.new("ObjectValue")
  1881.         tempval.Name = ("hit " .. targpar.Name .. " with katana by " .. plr.Name)
  1882.         tempval.Parent = targpar
  1883.         hitwall.SoundId = 'rbxassetid://' .. wallhits[math.random(1,#wallhits)]
  1884.         hitwall:Play()
  1885.     end
  1886. end
  1887. function Weld(x,y)
  1888.     local W = Instance.new("Weld")
  1889.     W.Part0 = x
  1890.     W.Part1 = y
  1891.     local CJ = CFrame.new(x.Position)
  1892.     local C0 = x.CFrame:inverse()*CJ
  1893.     local C1 = y.CFrame:inverse()*CJ
  1894.     W.C0 = C0
  1895.     W.C1 = C1
  1896.     W.Parent = y
  1897. end
  1898. function Sheathe(mode)
  1899.     if tool.Parent ~= workspace then else sheathmodel:Destroy() return end
  1900.     if sheathmodel and sheathmodel.Parent and mode == 2 then
  1901.         for _,v in pairs(sheathmodel:GetDescendants()) do
  1902.             if v:IsA("Part") and v.Name ~= 'Sheath' then
  1903.                 v.Transparency = 1
  1904.             end
  1905.         end
  1906.         for _,v in pairs(sheathmodel:GetDescendants()) do
  1907.             if v.Name == 'Sheath' then
  1908.                 v.Transparency = 0
  1909.             end
  1910.             if v:IsA("Texture") then
  1911.                 v.Transparency = 0
  1912.             end
  1913.         end
  1914.         for _,v in pairs(Sheath:GetChildren()) do
  1915.             if v:IsA("Texture") then
  1916.                 v.Transparency = 1
  1917.             end
  1918.         end
  1919.         Sheath.Transparency = 1
  1920.     elseif sheathmodel and sheathmodel.Parent and mode == 1 then
  1921.         for _,v in pairs(sheathmodel:GetDescendants()) do
  1922.             if v:IsA("Part") then
  1923.                 v.Transparency = 0
  1924.             end
  1925.         end
  1926.     else
  1927.         if sheathmodel then
  1928.             sheathmodel:Destroy()
  1929.         end
  1930.         sheathmodel = Instance.new("Model")
  1931.         for _,v in pairs(tool:GetDescendants()) do
  1932.             if v:IsA("Part") then
  1933.                 local sp = v:Clone()
  1934.                 if sp.Name == 'Handle' then
  1935.                     sheath_handle = sp
  1936.                 end
  1937.                 local tool_weld = sp:FindFirstChildOfClass("Weld")
  1938.                 if tool_weld then
  1939.                     tool_weld:Destroy()
  1940.                 end
  1941.                 sp.Parent = sheathmodel
  1942.             end
  1943.         end
  1944.         for _,v in pairs(sheathmodel:GetDescendants()) do
  1945.             if v:IsA("Part") then
  1946.                 if v ~= sheath_handle and v:IsA("Part") then
  1947.                     Weld(sheath_handle,v)
  1948.                 end
  1949.             end
  1950.         end
  1951.         if mode == 2 then
  1952.             for _,v in pairs(sheathmodel:GetDescendants()) do
  1953.                 if v:IsA("Part") and v.Name ~= 'Sheath' then
  1954.                     v.Transparency = 1
  1955.                 end
  1956.             end
  1957.             for _,v in pairs(sheathmodel:GetDescendants()) do
  1958.                 if v.Name == 'Sheath' then
  1959.                     v.Transparency = 0
  1960.                 end
  1961.                 if v:IsA("Texture") then
  1962.                     v.Transparency = 0
  1963.                 end
  1964.             end
  1965.             for _,v in pairs(Sheath:GetChildren()) do
  1966.                 if v:IsA("Texture") then
  1967.                     v.Transparency = 1
  1968.                 end
  1969.             end
  1970.             Sheath.Transparency = 1
  1971.         elseif mode == 1 then
  1972.             for _,v in pairs(sheathmodel:GetDescendants()) do
  1973.                 if v:IsA("Part") then
  1974.                     v.Transparency = 0
  1975.                 end
  1976.             end
  1977.         end
  1978.         local weld = Instance.new("Weld")
  1979.         weld.Part0 = torso
  1980.         weld.Part1 = sheath_handle
  1981.         weld.Parent = sheath_handle
  1982.         weld.C0 = CFrame.new(-1, -0.2, -1.6)*CFrame.Angles(math.rad(110),math.rad(180),math.rad(-90))
  1983.         sheathmodel.Parent = char
  1984.     end
  1985. end
  1986. --
  1987. tool.Equipped:Connect(function()
  1988.     GetChar()
  1989.     equipped = true
  1990.     Sheathe(2)
  1991.     equip:Play()
  1992. end)
  1993. tool.Unequipped:Connect(function()
  1994.     equipped = false
  1995.     Sheathe(1)
  1996.     swing_anim:Stop()
  1997.     --swing:Stop()
  1998.     equip:Stop()
  1999.     --hit:Stop()
  2000. end)
  2001.  
  2002. tool.Activated:Connect(Attack)
  2003. Blade.Touched:Connect(Hit_Decide)
  2004.  
  2005. Sheathe(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement