Rufus14

Baseball Bat remake

Jul 20th, 2021 (edited)
1,681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 74.37 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4.     local env = getfenv(func)
  5.     local newenv = setmetatable({},{
  6.         __index = function(self,k)
  7.             if k=="script" then
  8.                 return var
  9.             else
  10.                 return env[k]
  11.             end
  12.         end,
  13.     })
  14.     setfenv(func,newenv)
  15.     return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. Trail2 = Instance.new("Trail")
  22. Trail2.Parent = Part1
  23. Trail2.Transparency = NumberSequence.new(0.9)
  24. Trail2.Color = ColorSequence.new(Color3.fromRGB(255,255,255))
  25. Trail2.Name = "trail"
  26. Trail2.Lifetime = 0.05
  27. Trail2.MinLength = 0.1
  28. Trail2.MaxLength = 0
  29. Trail2.Enabled = false
  30. SpecialMesh3 = Instance.new("SpecialMesh")
  31. Model4 = Instance.new("Model")
  32. Part5 = Instance.new("Part")
  33. Part6 = Instance.new("Part")
  34. Part7 = Instance.new("Part")
  35. Part8 = Instance.new("Part")
  36. Weld9 = Instance.new("Weld")
  37. Weld10 = Instance.new("Weld")
  38. Weld11 = Instance.new("Weld")
  39. Weld12 = Instance.new("Weld")
  40. Model13 = Instance.new("Model")
  41. Part14 = Instance.new("Part")
  42. SpecialMesh15 = Instance.new("SpecialMesh")
  43. Part16 = Instance.new("Part")
  44. SpecialMesh17 = Instance.new("SpecialMesh")
  45. Part18 = Instance.new("Part")
  46. SpecialMesh19 = Instance.new("SpecialMesh")
  47. Part20 = Instance.new("Part")
  48. SpecialMesh21 = Instance.new("SpecialMesh")
  49. Part22 = Instance.new("Part")
  50. SpecialMesh23 = Instance.new("SpecialMesh")
  51. Part24 = Instance.new("Part")
  52. SpecialMesh25 = Instance.new("SpecialMesh")
  53. Part26 = Instance.new("Part")
  54. SpecialMesh27 = Instance.new("SpecialMesh")
  55. Part28 = Instance.new("Part")
  56. SpecialMesh29 = Instance.new("SpecialMesh")
  57. Part30 = Instance.new("Part")
  58. SpecialMesh31 = Instance.new("SpecialMesh")
  59. Part32 = Instance.new("Part")
  60. SpecialMesh33 = Instance.new("SpecialMesh")
  61. Part34 = Instance.new("Part")
  62. SpecialMesh35 = Instance.new("SpecialMesh")
  63. Part36 = Instance.new("Part")
  64. SpecialMesh37 = Instance.new("SpecialMesh")
  65. Part38 = Instance.new("Part")
  66. SpecialMesh39 = Instance.new("SpecialMesh")
  67. Part40 = Instance.new("Part")
  68. SpecialMesh41 = Instance.new("SpecialMesh")
  69. Part42 = Instance.new("Part")
  70. SpecialMesh43 = Instance.new("SpecialMesh")
  71. Part44 = Instance.new("Part")
  72. SpecialMesh45 = Instance.new("SpecialMesh")
  73. Weld46 = Instance.new("Weld")
  74. Weld47 = Instance.new("Weld")
  75. Weld48 = Instance.new("Weld")
  76. Weld49 = Instance.new("Weld")
  77. Weld50 = Instance.new("Weld")
  78. Weld51 = Instance.new("Weld")
  79. Weld52 = Instance.new("Weld")
  80. Weld53 = Instance.new("Weld")
  81. Weld54 = Instance.new("Weld")
  82. Weld55 = Instance.new("Weld")
  83. Weld56 = Instance.new("Weld")
  84. Weld57 = Instance.new("Weld")
  85. Weld58 = Instance.new("Weld")
  86. Weld59 = Instance.new("Weld")
  87. Weld60 = Instance.new("Weld")
  88. Weld61 = Instance.new("Weld")
  89. Script62 = Instance.new("Script")
  90. RemoteEvent63 = Instance.new("RemoteEvent")
  91. LocalScript64 = Instance.new("LocalScript")
  92. Tool0.Name = "Bat"
  93. Tool0.Parent = mas
  94. Part1.Name = "Handle"
  95. Part1.Parent = Tool0
  96. Part1.CFrame = CFrame.new(-9.71002674, 0.275000066, -31.7200317, 0.999999881, 0, 8.94069387e-08, 1.49011612e-08, 1.00000012, -6.55724364e-11, 8.94068819e-08, -6.55709931e-11, 1)
  97. Part1.Position = Vector3.new(-9.7100267410278, 0.27500006556511, -31.720031738281)
  98. Part1.Color = Color3.new(0.356863, 0.364706, 0.411765)
  99. Part1.Size = Vector3.new(0.40000003576279, 0.40000003576279, 4.2000007629395)
  100. Part1.BottomSurface = Enum.SurfaceType.Smooth
  101. Part1.BrickColor = BrickColor.new("Smoky grey")
  102. Part1.Material = Enum.Material.CorrodedMetal
  103. Part1.TopSurface = Enum.SurfaceType.Smooth
  104. Part1.brickColor = BrickColor.new("Smoky grey")
  105. Trail2.Name = "trail"
  106. Trail2.Parent = Part1
  107. Trail2.Attachment0 = nil
  108. Trail2.Attachment1 = nil
  109. Trail2.Enabled = false
  110. Trail2.LightInfluence = 1
  111. Trail2.Transparency = NumberSequence.new(0.89999997615814,0.89999997615814)
  112. Trail2.Lifetime = 0.050000000745058
  113. SpecialMesh3.Parent = Part1
  114. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=54983181 "
  115. SpecialMesh3.Scale = Vector3.new(2.2000000476837, 2.2000000476837, 1.5)
  116. SpecialMesh3.TextureId = "rbxassetid://0"
  117. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  118. Model4.Name = "band"
  119. Model4.Parent = Part1
  120. Part5.Name = "thing"
  121. Part5.Parent = Model4
  122. Part5.CFrame = CFrame.new(-9.71045971, 0.274865776, -33.0146942, 2.08616214e-07, -0.000669842761, -0.999999642, -1.82170098e-10, 1.00000036, -0.000669857603, 1, -3.05539538e-10, -2.38418352e-07)
  123. Part5.Orientation = Vector3.new(0.03999999910593, -90, 0)
  124. Part5.Position = Vector3.new(-9.7104597091675, 0.27486577630043, -33.014694213867)
  125. Part5.Rotation = Vector3.new(90.019996643066, -89.949996948242, 89.980003356934)
  126. Part5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  127. Part5.Size = Vector3.new(0.19999992847443, 0.20000001788139, 0.23000001907349)
  128. Part5.BottomSurface = Enum.SurfaceType.Smooth
  129. Part5.BrickColor = BrickColor.new("Black")
  130. Part5.TopSurface = Enum.SurfaceType.Smooth
  131. Part5.brickColor = BrickColor.new("Black")
  132. Part5.Shape = Enum.PartType.Cylinder
  133. Part6.Name = "thing"
  134. Part6.Parent = Model4
  135. Part6.CFrame = CFrame.new(-9.71045971, 0.274865776, -32.7646942, 2.08616214e-07, -0.000669842761, -0.999999642, -1.82170098e-10, 1.00000036, -0.000669857603, 1, -3.05539538e-10, -2.38418352e-07)
  136. Part6.Orientation = Vector3.new(0.03999999910593, -90, 0)
  137. Part6.Position = Vector3.new(-9.7104597091675, 0.27486577630043, -32.764694213867)
  138. Part6.Rotation = Vector3.new(90.019996643066, -89.949996948242, 89.980003356934)
  139. Part6.Color = Color3.new(0.105882, 0.164706, 0.207843)
  140. Part6.Size = Vector3.new(0.19999992847443, 0.20000001788139, 0.25000002980232)
  141. Part6.BottomSurface = Enum.SurfaceType.Smooth
  142. Part6.BrickColor = BrickColor.new("Black")
  143. Part6.TopSurface = Enum.SurfaceType.Smooth
  144. Part6.brickColor = BrickColor.new("Black")
  145. Part6.Shape = Enum.PartType.Cylinder
  146. Part7.Name = "thing"
  147. Part7.Parent = Model4
  148. Part7.CFrame = CFrame.new(-9.71045971, 0.274865776, -32.5146942, 2.08616214e-07, -0.000669842761, -0.999999642, -1.82170098e-10, 1.00000036, -0.000669857603, 1, -3.05539538e-10, -2.38418352e-07)
  149. Part7.Orientation = Vector3.new(0.03999999910593, -90, 0)
  150. Part7.Position = Vector3.new(-9.7104597091675, 0.27486577630043, -32.514694213867)
  151. Part7.Rotation = Vector3.new(90.019996643066, -89.949996948242, 89.980003356934)
  152. Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  153. Part7.Size = Vector3.new(0.19999992847443, 0.20000001788139, 0.20000001788139)
  154. Part7.BottomSurface = Enum.SurfaceType.Smooth
  155. Part7.BrickColor = BrickColor.new("Black")
  156. Part7.TopSurface = Enum.SurfaceType.Smooth
  157. Part7.brickColor = BrickColor.new("Black")
  158. Part7.Shape = Enum.PartType.Cylinder
  159. Part8.Name = "thing"
  160. Part8.Parent = Model4
  161. Part8.CFrame = CFrame.new(-9.71045971, 0.274865776, -33.2646942, 2.08616214e-07, -0.000669842761, -0.999999642, -1.82170098e-10, 1.00000036, -0.000669857603, 1, -3.05539538e-10, -2.38418352e-07)
  162. Part8.Orientation = Vector3.new(0.03999999910593, -90, 0)
  163. Part8.Position = Vector3.new(-9.7104597091675, 0.27486577630043, -33.264694213867)
  164. Part8.Rotation = Vector3.new(90.019996643066, -89.949996948242, 89.980003356934)
  165. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  166. Part8.Size = Vector3.new(0.19999992847443, 0.20000001788139, 0.20000001788139)
  167. Part8.BottomSurface = Enum.SurfaceType.Smooth
  168. Part8.BrickColor = BrickColor.new("Black")
  169. Part8.TopSurface = Enum.SurfaceType.Smooth
  170. Part8.brickColor = BrickColor.new("Black")
  171. Part8.Shape = Enum.PartType.Cylinder
  172. Weld9.Parent = Model4
  173. Weld9.C0 = CFrame.new(-0.00043296814, -0.000134289265, -1.29466057, 1.1920929e-07, -0.000669842819, -0.999999762, -1.16599425e-10, 1.00000024, -0.000669842644, 1, -1.80079965e-10, -1.49011527e-07)
  174. Weld9.Part0 = Part1
  175. Weld9.Part1 = Part5
  176. Weld9.part1 = Part5
  177. Weld10.Parent = Model4
  178. Weld10.C0 = CFrame.new(-0.00043296814, -0.000134289265, -1.04466057, 1.1920929e-07, -0.000669842819, -0.999999762, -1.16599425e-10, 1.00000024, -0.000669842644, 1, -1.80079965e-10, -1.49011527e-07)
  179. Weld10.Part0 = Part1
  180. Weld10.Part1 = Part6
  181. Weld10.part1 = Part6
  182. Weld11.Parent = Model4
  183. Weld11.C0 = CFrame.new(-0.00043296814, -0.000134289265, -0.794660568, 1.1920929e-07, -0.000669842819, -0.999999762, -1.16599425e-10, 1.00000024, -0.000669842644, 1, -1.80079965e-10, -1.49011527e-07)
  184. Weld11.Part0 = Part1
  185. Weld11.Part1 = Part7
  186. Weld11.part1 = Part7
  187. Weld12.Parent = Model4
  188. Weld12.C0 = CFrame.new(-0.00043296814, -0.000134289265, -1.54466057, 1.1920929e-07, -0.000669842819, -0.999999762, -1.16599425e-10, 1.00000024, -0.000669842644, 1, -1.80079965e-10, -1.49011527e-07)
  189. Weld12.Part0 = Part1
  190. Weld12.Part1 = Part8
  191. Weld12.part1 = Part8
  192. Model13.Name = "barbedwire"
  193. Model13.Parent = Part1
  194. Part14.Name = "Wire"
  195. Part14.Parent = Model13
  196. Part14.CFrame = CFrame.new(-9.71000004, 0.289999932, -29.9799995, -2.98023135e-08, -3.57628096e-07, -0.999999762, 1.00000036, 2.9933318e-08, -1.4901163e-08, 2.96710141e-08, -1, 4.76063633e-13)
  197. Part14.Orientation = Vector3.new(0, -90, 90)
  198. Part14.Position = Vector3.new(-9.710000038147, 0.2899999320507, -29.979999542236)
  199. Part14.Rotation = Vector3.new(90, -89.959999084473, 94.76000213623)
  200. Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
  201. Part14.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  202. Part14.BottomSurface = Enum.SurfaceType.Smooth
  203. Part14.BrickColor = BrickColor.new("Dark stone grey")
  204. Part14.CanCollide = false
  205. Part14.FrontSurface = Enum.SurfaceType.Weld
  206. Part14.Reflectance = 0.25
  207. Part14.TopSurface = Enum.SurfaceType.Smooth
  208. Part14.brickColor = BrickColor.new("Dark stone grey")
  209. Part14.FormFactor = Enum.FormFactor.Symmetric
  210. Part14.formFactor = Enum.FormFactor.Symmetric
  211. SpecialMesh15.Parent = Part14
  212. SpecialMesh15.MeshId = "http://www.roblox.com/asset/?id=1051557"
  213. SpecialMesh15.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  214. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  215. Part16.Name = "Wire"
  216. Part16.Parent = Model13
  217. Part16.CFrame = CFrame.new(-9.71000004, 0.290000141, -30.0699997, -0.422618181, -3.57628124e-07, -0.906307518, 0.906307995, 2.99333642e-08, -0.422618389, 2.68912466e-08, -1, -1.25390542e-08)
  218. Part16.Orientation = Vector3.new(25, -90, 90)
  219. Part16.Position = Vector3.new(-9.710000038147, 0.29000014066696, -30.069999694824)
  220. Part16.Rotation = Vector3.new(90, -65, 180)
  221. Part16.Color = Color3.new(0.388235, 0.372549, 0.384314)
  222. Part16.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  223. Part16.BottomSurface = Enum.SurfaceType.Smooth
  224. Part16.BrickColor = BrickColor.new("Dark stone grey")
  225. Part16.CanCollide = false
  226. Part16.FrontSurface = Enum.SurfaceType.Weld
  227. Part16.Reflectance = 0.25
  228. Part16.TopSurface = Enum.SurfaceType.Smooth
  229. Part16.brickColor = BrickColor.new("Dark stone grey")
  230. Part16.FormFactor = Enum.FormFactor.Symmetric
  231. Part16.formFactor = Enum.FormFactor.Symmetric
  232. SpecialMesh17.Parent = Part16
  233. SpecialMesh17.MeshId = "http://www.roblox.com/asset/?id=1051557"
  234. SpecialMesh17.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  235. SpecialMesh17.MeshType = Enum.MeshType.FileMesh
  236. Part18.Name = "Wire"
  237. Part18.Parent = Model13
  238. Part18.CFrame = CFrame.new(-9.70999908, 0.28999871, -30.1749973, -0.819151819, -3.57628096e-07, -0.573576331, 0.573576629, 2.99333003e-08, -0.819152355, 1.70189907e-08, -1, -2.43048035e-08)
  239. Part18.Orientation = Vector3.new(55, -90, 90)
  240. Part18.Position = Vector3.new(-9.7099990844727, 0.28999871015549, -30.174997329712)
  241. Part18.Rotation = Vector3.new(90, -35, 180)
  242. Part18.Color = Color3.new(0.388235, 0.372549, 0.384314)
  243. Part18.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  244. Part18.BottomSurface = Enum.SurfaceType.Smooth
  245. Part18.BrickColor = BrickColor.new("Dark stone grey")
  246. Part18.CanCollide = false
  247. Part18.FrontSurface = Enum.SurfaceType.Weld
  248. Part18.Reflectance = 0.25
  249. Part18.TopSurface = Enum.SurfaceType.Smooth
  250. Part18.brickColor = BrickColor.new("Dark stone grey")
  251. Part18.FormFactor = Enum.FormFactor.Symmetric
  252. Part18.formFactor = Enum.FormFactor.Symmetric
  253. SpecialMesh19.Parent = Part18
  254. SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=1051557"
  255. SpecialMesh19.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  256. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  257. Part20.Name = "Wire"
  258. Part20.Parent = Model13
  259. Part20.CFrame = CFrame.new(-9.71000004, 0.289999187, -30.2649975, -0.984807551, -3.57628096e-07, -0.173648149, 0.173648193, 2.99333074e-08, -0.984808087, 5.15280618e-09, -1, -2.92201729e-08)
  260. Part20.Orientation = Vector3.new(80, -90, 90)
  261. Part20.Position = Vector3.new(-9.710000038147, 0.28999918699265, -30.2649974823)
  262. Part20.Rotation = Vector3.new(90, -10, 180)
  263. Part20.Color = Color3.new(0.388235, 0.372549, 0.384314)
  264. Part20.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  265. Part20.BottomSurface = Enum.SurfaceType.Smooth
  266. Part20.BrickColor = BrickColor.new("Dark stone grey")
  267. Part20.CanCollide = false
  268. Part20.FrontSurface = Enum.SurfaceType.Weld
  269. Part20.Reflectance = 0.25
  270. Part20.TopSurface = Enum.SurfaceType.Smooth
  271. Part20.brickColor = BrickColor.new("Dark stone grey")
  272. Part20.FormFactor = Enum.FormFactor.Symmetric
  273. Part20.formFactor = Enum.FormFactor.Symmetric
  274. SpecialMesh21.Parent = Part20
  275. SpecialMesh21.MeshId = "http://www.roblox.com/asset/?id=1051557"
  276. SpecialMesh21.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  277. SpecialMesh21.MeshType = Enum.MeshType.FileMesh
  278. Part22.Name = "Wire"
  279. Part22.Parent = Model13
  280. Part22.CFrame = CFrame.new(-9.71000004, 0.289999187, -30.4599972, -0.984807551, -3.57628153e-07, -0.173648089, 0.173648193, 2.99333571e-08, -0.984808087, 5.15279197e-09, -1, -2.92201232e-08)
  281. Part22.Orientation = Vector3.new(80, -90, 90)
  282. Part22.Position = Vector3.new(-9.710000038147, 0.28999918699265, -30.459997177124)
  283. Part22.Rotation = Vector3.new(90, -10, 180)
  284. Part22.Color = Color3.new(0.388235, 0.372549, 0.384314)
  285. Part22.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  286. Part22.BottomSurface = Enum.SurfaceType.Smooth
  287. Part22.BrickColor = BrickColor.new("Dark stone grey")
  288. Part22.CanCollide = false
  289. Part22.FrontSurface = Enum.SurfaceType.Weld
  290. Part22.Reflectance = 0.25
  291. Part22.TopSurface = Enum.SurfaceType.Smooth
  292. Part22.brickColor = BrickColor.new("Dark stone grey")
  293. Part22.FormFactor = Enum.FormFactor.Symmetric
  294. Part22.formFactor = Enum.FormFactor.Symmetric
  295. SpecialMesh23.Parent = Part22
  296. SpecialMesh23.MeshId = "http://www.roblox.com/asset/?id=1051557"
  297. SpecialMesh23.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  298. SpecialMesh23.MeshType = Enum.MeshType.FileMesh
  299. Part24.Name = "Wire"
  300. Part24.Parent = Model13
  301. Part24.CFrame = CFrame.new(-9.71000004, 0.289999932, -30.1749992, -2.98023135e-08, -3.57628124e-07, -0.999999762, 1.00000024, 2.99333571e-08, -1.4901163e-08, 2.96709732e-08, -1, 4.76063633e-13)
  302. Part24.Orientation = Vector3.new(0, -90, 90)
  303. Part24.Position = Vector3.new(-9.710000038147, 0.2899999320507, -30.174999237061)
  304. Part24.Rotation = Vector3.new(90, -89.959999084473, 94.76000213623)
  305. Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
  306. Part24.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  307. Part24.BottomSurface = Enum.SurfaceType.Smooth
  308. Part24.BrickColor = BrickColor.new("Dark stone grey")
  309. Part24.CanCollide = false
  310. Part24.FrontSurface = Enum.SurfaceType.Weld
  311. Part24.Reflectance = 0.25
  312. Part24.TopSurface = Enum.SurfaceType.Smooth
  313. Part24.brickColor = BrickColor.new("Dark stone grey")
  314. Part24.FormFactor = Enum.FormFactor.Symmetric
  315. Part24.formFactor = Enum.FormFactor.Symmetric
  316. SpecialMesh25.Parent = Part24
  317. SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=1051557"
  318. SpecialMesh25.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  319. SpecialMesh25.MeshType = Enum.MeshType.FileMesh
  320. Part26.Name = "Wire"
  321. Part26.Parent = Model13
  322. Part26.CFrame = CFrame.new(-9.71000004, 0.290000141, -30.2649994, -0.422618181, -3.57628124e-07, -0.906307518, 0.906307995, 2.99333607e-08, -0.422618389, 2.68912466e-08, -1, -1.25390613e-08)
  323. Part26.Orientation = Vector3.new(25, -90, 90)
  324. Part26.Position = Vector3.new(-9.710000038147, 0.29000014066696, -30.264999389648)
  325. Part26.Rotation = Vector3.new(90, -65, 180)
  326. Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
  327. Part26.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  328. Part26.BottomSurface = Enum.SurfaceType.Smooth
  329. Part26.BrickColor = BrickColor.new("Dark stone grey")
  330. Part26.CanCollide = false
  331. Part26.FrontSurface = Enum.SurfaceType.Weld
  332. Part26.Reflectance = 0.25
  333. Part26.TopSurface = Enum.SurfaceType.Smooth
  334. Part26.brickColor = BrickColor.new("Dark stone grey")
  335. Part26.FormFactor = Enum.FormFactor.Symmetric
  336. Part26.formFactor = Enum.FormFactor.Symmetric
  337. SpecialMesh27.Parent = Part26
  338. SpecialMesh27.MeshId = "http://www.roblox.com/asset/?id=1051557"
  339. SpecialMesh27.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  340. SpecialMesh27.MeshType = Enum.MeshType.FileMesh
  341. Part28.Name = "Wire"
  342. Part28.Parent = Model13
  343. Part28.CFrame = CFrame.new(-9.70999908, 0.28999871, -30.369997, -0.819151819, -3.57628124e-07, -0.573576331, 0.57357657, 2.99333394e-08, -0.819152296, 1.70189693e-08, -1, -2.43047715e-08)
  344. Part28.Orientation = Vector3.new(55, -90, 90)
  345. Part28.Position = Vector3.new(-9.7099990844727, 0.28999871015549, -30.369997024536)
  346. Part28.Rotation = Vector3.new(90, -35, 180)
  347. Part28.Color = Color3.new(0.388235, 0.372549, 0.384314)
  348. Part28.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  349. Part28.BottomSurface = Enum.SurfaceType.Smooth
  350. Part28.BrickColor = BrickColor.new("Dark stone grey")
  351. Part28.CanCollide = false
  352. Part28.FrontSurface = Enum.SurfaceType.Weld
  353. Part28.Reflectance = 0.25
  354. Part28.TopSurface = Enum.SurfaceType.Smooth
  355. Part28.brickColor = BrickColor.new("Dark stone grey")
  356. Part28.FormFactor = Enum.FormFactor.Symmetric
  357. Part28.formFactor = Enum.FormFactor.Symmetric
  358. SpecialMesh29.Parent = Part28
  359. SpecialMesh29.MeshId = "http://www.roblox.com/asset/?id=1051557"
  360. SpecialMesh29.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  361. SpecialMesh29.MeshType = Enum.MeshType.FileMesh
  362. Part30.Name = "Wire"
  363. Part30.Parent = Model13
  364. Part30.CFrame = CFrame.new(-9.71000004, 0.289999902, -29.9049988, -1.74615419e-10, -3.57628181e-07, -0.999999881, 1.00000048, 2.99333678e-08, -1.47265418e-08, 2.96709697e-08, -1, 4.54747351e-13)
  365. Part30.Orientation = Vector3.new(0, -90, 90)
  366. Part30.Position = Vector3.new(-9.710000038147, 0.28999990224838, -29.904998779297)
  367. Part30.Rotation = Vector3.new(90, -89.970001220703, 90.029998779297)
  368. Part30.Color = Color3.new(0.388235, 0.372549, 0.384314)
  369. Part30.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  370. Part30.BottomSurface = Enum.SurfaceType.Smooth
  371. Part30.BrickColor = BrickColor.new("Dark stone grey")
  372. Part30.CanCollide = false
  373. Part30.FrontSurface = Enum.SurfaceType.Weld
  374. Part30.Reflectance = 0.25
  375. Part30.TopSurface = Enum.SurfaceType.Smooth
  376. Part30.brickColor = BrickColor.new("Dark stone grey")
  377. Part30.FormFactor = Enum.FormFactor.Symmetric
  378. Part30.formFactor = Enum.FormFactor.Symmetric
  379. SpecialMesh31.Parent = Part30
  380. SpecialMesh31.MeshId = "http://www.roblox.com/asset/?id=1051557"
  381. SpecialMesh31.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  382. SpecialMesh31.MeshType = Enum.MeshType.FileMesh
  383. Part32.Name = "Wire"
  384. Part32.Parent = Model13
  385. Part32.CFrame = CFrame.new(-9.71000004, 0.290000111, -29.9949989, -0.42261821, -3.57628181e-07, -0.906307638, 0.906308174, 2.99333713e-08, -0.422618479, 2.68912359e-08, -1, -1.25390898e-08)
  386. Part32.Orientation = Vector3.new(25, -90, 90)
  387. Part32.Position = Vector3.new(-9.710000038147, 0.29000011086464, -29.994998931885)
  388. Part32.Rotation = Vector3.new(90, -65, 180)
  389. Part32.Color = Color3.new(0.388235, 0.372549, 0.384314)
  390. Part32.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  391. Part32.BottomSurface = Enum.SurfaceType.Smooth
  392. Part32.BrickColor = BrickColor.new("Dark stone grey")
  393. Part32.CanCollide = false
  394. Part32.FrontSurface = Enum.SurfaceType.Weld
  395. Part32.Reflectance = 0.25
  396. Part32.TopSurface = Enum.SurfaceType.Smooth
  397. Part32.brickColor = BrickColor.new("Dark stone grey")
  398. Part32.FormFactor = Enum.FormFactor.Symmetric
  399. Part32.formFactor = Enum.FormFactor.Symmetric
  400. SpecialMesh33.Parent = Part32
  401. SpecialMesh33.MeshId = "http://www.roblox.com/asset/?id=1051557"
  402. SpecialMesh33.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  403. SpecialMesh33.MeshType = Enum.MeshType.FileMesh
  404. Part34.Name = "Wire"
  405. Part34.Parent = Model13
  406. Part34.CFrame = CFrame.new(-9.70999908, 0.28999868, -30.0999966, -0.819151878, -3.57628181e-07, -0.573576331, 0.573576629, 2.993335e-08, -0.819152355, 1.7018948e-08, -1, -2.43047715e-08)
  407. Part34.Orientation = Vector3.new(55, -90, 90)
  408. Part34.Position = Vector3.new(-9.7099990844727, 0.28999868035316, -30.099996566772)
  409. Part34.Rotation = Vector3.new(90, -35, 180)
  410. Part34.Color = Color3.new(0.388235, 0.372549, 0.384314)
  411. Part34.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  412. Part34.BottomSurface = Enum.SurfaceType.Smooth
  413. Part34.BrickColor = BrickColor.new("Dark stone grey")
  414. Part34.CanCollide = false
  415. Part34.FrontSurface = Enum.SurfaceType.Weld
  416. Part34.Reflectance = 0.25
  417. Part34.TopSurface = Enum.SurfaceType.Smooth
  418. Part34.brickColor = BrickColor.new("Dark stone grey")
  419. Part34.FormFactor = Enum.FormFactor.Symmetric
  420. Part34.formFactor = Enum.FormFactor.Symmetric
  421. SpecialMesh35.Parent = Part34
  422. SpecialMesh35.MeshId = "http://www.roblox.com/asset/?id=1051557"
  423. SpecialMesh35.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  424. SpecialMesh35.MeshType = Enum.MeshType.FileMesh
  425. Part36.Name = "Wire"
  426. Part36.Parent = Model13
  427. Part36.CFrame = CFrame.new(-9.70999908, 0.28999871, -30.9849968, -0.819151878, -3.57628124e-07, -0.573576331, 0.573576629, 2.99333287e-08, -0.819152355, 1.70189693e-08, -1, -2.43047786e-08)
  428. Part36.Orientation = Vector3.new(55, -90, 90)
  429. Part36.Position = Vector3.new(-9.7099990844727, 0.28999871015549, -30.984996795654)
  430. Part36.Rotation = Vector3.new(90, -35, 180)
  431. Part36.Color = Color3.new(0.388235, 0.372549, 0.384314)
  432. Part36.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  433. Part36.BottomSurface = Enum.SurfaceType.Smooth
  434. Part36.BrickColor = BrickColor.new("Dark stone grey")
  435. Part36.CanCollide = false
  436. Part36.FrontSurface = Enum.SurfaceType.Weld
  437. Part36.Reflectance = 0.25
  438. Part36.TopSurface = Enum.SurfaceType.Smooth
  439. Part36.brickColor = BrickColor.new("Dark stone grey")
  440. Part36.FormFactor = Enum.FormFactor.Symmetric
  441. Part36.formFactor = Enum.FormFactor.Symmetric
  442. SpecialMesh37.Parent = Part36
  443. SpecialMesh37.MeshId = "http://www.roblox.com/asset/?id=1051557"
  444. SpecialMesh37.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  445. SpecialMesh37.MeshType = Enum.MeshType.FileMesh
  446. Part38.Name = "Wire"
  447. Part38.Parent = Model13
  448. Part38.CFrame = CFrame.new(-9.70999908, 0.28999871, -30.7149963, -0.819151878, -3.57628096e-07, -0.573576331, 0.573576629, 2.99333216e-08, -0.819152355, 1.70189693e-08, -1, -2.43047857e-08)
  449. Part38.Orientation = Vector3.new(55, -90, 90)
  450. Part38.Position = Vector3.new(-9.7099990844727, 0.28999871015549, -30.714996337891)
  451. Part38.Rotation = Vector3.new(90, -35, 180)
  452. Part38.Color = Color3.new(0.388235, 0.372549, 0.384314)
  453. Part38.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  454. Part38.BottomSurface = Enum.SurfaceType.Smooth
  455. Part38.BrickColor = BrickColor.new("Dark stone grey")
  456. Part38.CanCollide = false
  457. Part38.FrontSurface = Enum.SurfaceType.Weld
  458. Part38.Reflectance = 0.25
  459. Part38.TopSurface = Enum.SurfaceType.Smooth
  460. Part38.brickColor = BrickColor.new("Dark stone grey")
  461. Part38.FormFactor = Enum.FormFactor.Symmetric
  462. Part38.formFactor = Enum.FormFactor.Symmetric
  463. SpecialMesh39.Parent = Part38
  464. SpecialMesh39.MeshId = "http://www.roblox.com/asset/?id=1051557"
  465. SpecialMesh39.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  466. SpecialMesh39.MeshType = Enum.MeshType.FileMesh
  467. Part40.Name = "Wire"
  468. Part40.Parent = Model13
  469. Part40.CFrame = CFrame.new(-9.71000004, 0.289999932, -30.5199986, -2.98023135e-08, -3.57628096e-07, -0.999999821, 1.00000036, 2.99333252e-08, -1.4901163e-08, 2.96710052e-08, -1, 4.76063633e-13)
  470. Part40.Orientation = Vector3.new(0, -90, 90)
  471. Part40.Position = Vector3.new(-9.710000038147, 0.2899999320507, -30.519998550415)
  472. Part40.Rotation = Vector3.new(90, -89.970001220703, 94.76000213623)
  473. Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
  474. Part40.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  475. Part40.BottomSurface = Enum.SurfaceType.Smooth
  476. Part40.BrickColor = BrickColor.new("Dark stone grey")
  477. Part40.CanCollide = false
  478. Part40.FrontSurface = Enum.SurfaceType.Weld
  479. Part40.Reflectance = 0.25
  480. Part40.TopSurface = Enum.SurfaceType.Smooth
  481. Part40.brickColor = BrickColor.new("Dark stone grey")
  482. Part40.FormFactor = Enum.FormFactor.Symmetric
  483. Part40.formFactor = Enum.FormFactor.Symmetric
  484. SpecialMesh41.Parent = Part40
  485. SpecialMesh41.MeshId = "http://www.roblox.com/asset/?id=1051557"
  486. SpecialMesh41.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  487. SpecialMesh41.MeshType = Enum.MeshType.FileMesh
  488. Part42.Name = "Wire"
  489. Part42.Parent = Model13
  490. Part42.CFrame = CFrame.new(-9.71000004, 0.290000141, -30.6099987, -0.42261821, -3.57628096e-07, -0.906307578, 0.906308115, 2.99333287e-08, -0.422618419, 2.68912785e-08, -1, -1.25390827e-08)
  491. Part42.Orientation = Vector3.new(25, -90, 90)
  492. Part42.Position = Vector3.new(-9.710000038147, 0.29000014066696, -30.609998703003)
  493. Part42.Rotation = Vector3.new(90, -65, 180)
  494. Part42.Color = Color3.new(0.388235, 0.372549, 0.384314)
  495. Part42.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  496. Part42.BottomSurface = Enum.SurfaceType.Smooth
  497. Part42.BrickColor = BrickColor.new("Dark stone grey")
  498. Part42.CanCollide = false
  499. Part42.FrontSurface = Enum.SurfaceType.Weld
  500. Part42.Reflectance = 0.25
  501. Part42.TopSurface = Enum.SurfaceType.Smooth
  502. Part42.brickColor = BrickColor.new("Dark stone grey")
  503. Part42.FormFactor = Enum.FormFactor.Symmetric
  504. Part42.formFactor = Enum.FormFactor.Symmetric
  505. SpecialMesh43.Parent = Part42
  506. SpecialMesh43.MeshId = "http://www.roblox.com/asset/?id=1051557"
  507. SpecialMesh43.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  508. SpecialMesh43.MeshType = Enum.MeshType.FileMesh
  509. Part44.Name = "Wire"
  510. Part44.Parent = Model13
  511. Part44.CFrame = CFrame.new(-9.71000004, 0.290000141, -30.8799992, -0.422618181, -3.57628096e-07, -0.906307518, 0.906308115, 2.99333216e-08, -0.422618419, 2.68912821e-08, -1, -1.25390827e-08)
  512. Part44.Orientation = Vector3.new(25, -90, 90)
  513. Part44.Position = Vector3.new(-9.710000038147, 0.29000014066696, -30.879999160767)
  514. Part44.Rotation = Vector3.new(90, -65, 180)
  515. Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
  516. Part44.Size = Vector3.new(0.35500004887581, 0.11345028877258, 0.35500004887581)
  517. Part44.BottomSurface = Enum.SurfaceType.Smooth
  518. Part44.BrickColor = BrickColor.new("Dark stone grey")
  519. Part44.CanCollide = false
  520. Part44.FrontSurface = Enum.SurfaceType.Weld
  521. Part44.Reflectance = 0.25
  522. Part44.TopSurface = Enum.SurfaceType.Smooth
  523. Part44.brickColor = BrickColor.new("Dark stone grey")
  524. Part44.FormFactor = Enum.FormFactor.Symmetric
  525. Part44.formFactor = Enum.FormFactor.Symmetric
  526. SpecialMesh45.Parent = Part44
  527. SpecialMesh45.MeshId = "http://www.roblox.com/asset/?id=1051557"
  528. SpecialMesh45.Scale = Vector3.new(0.35500004887581, 0.11344904452562, 0.35500004887581)
  529. SpecialMesh45.MeshType = Enum.MeshType.FileMesh
  530. Weld46.Parent = Model13
  531. Weld46.C0 = CFrame.new(2.67028809e-05, 0.0150000602, 1.45503235, -0.42261824, -2.68221214e-07, -0.906307638, 0.906307876, 2.98677882e-08, -0.42261833, 6.47356515e-08, -1, 6.84633648e-08)
  532. Weld46.Part0 = Part1
  533. Weld46.Part1 = Part26
  534. Weld46.part1 = Part26
  535. Weld47.Parent = Model13
  536. Weld47.C0 = CFrame.new(2.76565552e-05, 0.0149986148, 1.62003517, -0.819151998, -2.68221271e-07, -0.573576391, 0.57357657, 2.98677776e-08, -0.819152236, 9.02943853e-08, -1, 2.69231926e-08)
  537. Weld47.Part0 = Part1
  538. Weld47.Part1 = Part34
  539. Weld47.part1 = Part34
  540. Weld48.Parent = Model13
  541. Weld48.C0 = CFrame.new(2.67028809e-05, 0.0150000751, 0.840032578, -0.42261824, -2.68221186e-07, -0.906307638, 0.906307995, 2.98677492e-08, -0.422618359, 6.4735687e-08, -1, 6.84633434e-08)
  542. Weld48.Part0 = Part1
  543. Weld48.Part1 = Part44
  544. Weld48.part1 = Part44
  545. Weld49.Parent = Model13
  546. Weld49.C0 = CFrame.new(2.76565552e-05, 0.0149986297, 1.0050354, -0.819151998, -2.68221186e-07, -0.573576391, 0.57357657, 2.98677492e-08, -0.819152236, 9.02944066e-08, -1, 2.69231784e-08)
  547. Weld49.Part0 = Part1
  548. Weld49.Part1 = Part38
  549. Weld49.part1 = Part38
  550. Weld50.Parent = Model13
  551. Weld50.C0 = CFrame.new(2.67028809e-05, 0.0150000602, 1.11003304, -0.42261827, -2.68221186e-07, -0.906307697, 0.906307995, 2.98677563e-08, -0.422618359, 6.4735687e-08, -1, 6.84633505e-08)
  552. Weld50.Part0 = Part1
  553. Weld50.Part1 = Part42
  554. Weld50.part1 = Part42
  555. Weld51.Parent = Model13
  556. Weld51.C0 = CFrame.new(2.76565552e-05, 0.0149986446, 0.735034943, -0.819151998, -2.68221214e-07, -0.573576391, 0.57357657, 2.98677563e-08, -0.819152236, 9.02944066e-08, -1, 2.69231855e-08)
  557. Weld51.Part0 = Part1
  558. Weld51.Part1 = Part36
  559. Weld51.part1 = Part36
  560. Weld52.Parent = Model13
  561. Weld52.C0 = CFrame.new(2.76565552e-05, 0.0149986297, 1.35003471, -0.819151938, -2.68221214e-07, -0.573576391, 0.57357651, 2.98677669e-08, -0.819152176, 9.02943995e-08, -1, 2.69231926e-08)
  562. Weld52.Part0 = Part1
  563. Weld52.Part1 = Part28
  564. Weld52.part1 = Part28
  565. Weld53.Parent = Model13
  566. Weld53.C0 = CFrame.new(2.67028809e-05, 0.0149998516, 1.7400322, -2.98023188e-08, -2.68221186e-07, -0.999999881, 1.00000024, 2.98677456e-08, -3.12035651e-15, 2.97365883e-08, -1, 8.94073509e-08)
  567. Weld53.Part0 = Part1
  568. Weld53.Part1 = Part14
  569. Weld53.part1 = Part14
  570. Weld54.Parent = Model13
  571. Weld54.C0 = CFrame.new(2.67028809e-05, 0.0150000602, 1.65003204, -0.42261824, -2.68221214e-07, -0.906307638, 0.906307876, 2.98677918e-08, -0.42261833, 6.47356515e-08, -1, 6.84633719e-08)
  572. Weld54.Part0 = Part1
  573. Weld54.Part1 = Part16
  574. Weld54.part1 = Part16
  575. Weld55.Parent = Model13
  576. Weld55.C0 = CFrame.new(2.67028809e-05, 0.0149998516, 1.5450325, -2.98023188e-08, -2.68221214e-07, -0.999999881, 1.00000012, 2.98677847e-08, -3.12036371e-15, 2.97365474e-08, -1, 8.94073509e-08)
  577. Weld55.Part0 = Part1
  578. Weld55.Part1 = Part24
  579. Weld55.part1 = Part24
  580. Weld56.Parent = Model13
  581. Weld56.C0 = CFrame.new(2.67028809e-05, 0.0149991065, 1.45503426, -0.98480767, -2.68221186e-07, -0.173648164, 0.173648193, 2.9867735e-08, -0.984807968, 9.32127691e-08, -1, -1.37594061e-08)
  582. Weld56.Part0 = Part1
  583. Weld56.Part1 = Part20
  584. Weld56.part1 = Part20
  585. Weld57.Parent = Model13
  586. Weld57.C0 = CFrame.new(2.67028809e-05, 0.0149991065, 1.26003456, -0.98480767, -2.68221243e-07, -0.173648104, 0.173648193, 2.98677847e-08, -0.984807968, 9.32127548e-08, -1, -1.37593617e-08)
  587. Weld57.Part0 = Part1
  588. Weld57.Part1 = Part22
  589. Weld57.part1 = Part22
  590. Weld58.Parent = Model13
  591. Weld58.C0 = CFrame.new(2.67028809e-05, 0.0149998516, 1.20003319, -2.98023188e-08, -2.68221186e-07, -0.99999994, 1.00000024, 2.98677527e-08, -3.12035778e-15, 2.97365794e-08, -1, 8.94073509e-08)
  592. Weld58.Part0 = Part1
  593. Weld58.Part1 = Part40
  594. Weld58.part1 = Part40
  595. Weld59.Parent = Model13
  596. Weld59.C0 = CFrame.new(2.67028809e-05, 0.0150000453, 1.72503281, -0.42261827, -2.68221271e-07, -0.906307757, 0.906308055, 2.98677989e-08, -0.422618419, 6.47356444e-08, -1, 6.84633505e-08)
  597. Weld59.Part0 = Part1
  598. Weld59.Part1 = Part32
  599. Weld59.part1 = Part32
  600. Weld60.Parent = Model13
  601. Weld60.C0 = CFrame.new(2.76565552e-05, 0.0149986297, 1.54503441, -0.819151938, -2.68221186e-07, -0.573576391, 0.57357657, 2.98677278e-08, -0.819152236, 9.02944208e-08, -1, 2.69231606e-08)
  602. Weld60.Part0 = Part1
  603. Weld60.Part1 = Part18
  604. Weld60.part1 = Part18
  605. Weld61.Parent = Model13
  606. Weld61.C0 = CFrame.new(2.67028809e-05, 0.0149998367, 1.81503296, -1.74618098e-10, -2.68221271e-07, -1, 1.00000036, 2.98677953e-08, 1.7461986e-10, 2.97365403e-08, -1, 8.94073366e-08)
  607. Weld61.Part0 = Part1
  608. Weld61.Part1 = Part30
  609. Weld61.part1 = Part30
  610. Script62.Parent = Tool0
  611. for i = 1,10 do
  612.     local a = Instance.new("Attachment", Part1)
  613.     a.Name = "hitat"
  614.     if i == 1 then
  615.         a.Position = Vector3.new(-0, 0.19, 1.085)
  616.     elseif i == 2 then
  617.         a.Position = Vector3.new(0, -0.19, 1.085)
  618.     elseif i == 3 then
  619.         a.Position = Vector3.new(-0, 0.19, 2.085)
  620.     elseif i == 4 then
  621.         a.Position = Vector3.new(0, -0.19, 0.585)
  622.     elseif i == 5 then
  623.         a.Position = Vector3.new(-0, 0.19, 1.585)
  624.     elseif i == 6 then
  625.         a.Position = Vector3.new(-0, 0.19, 0.585)
  626.     elseif i == 7 then
  627.         a.Position = Vector3.new(0, -0.19, 1.585)
  628.     elseif i == 8 then
  629.         a.Position = Vector3.new(0, -0.19, 2.085)
  630.     elseif i == 9 then
  631.         a.Position = Vector3.new(-0, -0, -0.84)
  632.         a.Name = "trailat1"
  633.         Trail2.Attachment0 = a
  634.     elseif i == 10 then
  635.         a.Position = Vector3.new(-0, 0, 2.184)
  636.         a.Name = "trailat2"
  637.         Trail2.Attachment1 = a
  638.     end
  639. end
  640. table.insert(cors,sandbox(Script62,function()
  641. --By Rufus14, FPS unlocker really recommended to improve hitbox (serverside anims amazig;.)
  642. tool = script.Parent
  643. handle = tool.Handle
  644. trail = handle.trail
  645. players = game:GetService("Players")
  646. runservice = game:GetService("RunService")
  647. tweenservice = game:GetService("TweenService")
  648. player = nil
  649. character = nil
  650. charhum = nil
  651. validatetick = nil
  652. lastswingtick = tick()
  653. equiptick = nil
  654. swinganimation = 0
  655. state = "unequipped"
  656. hitpeople = {}
  657. remote = tool.RemoteEvent
  658. cfnew = CFrame.new
  659. cfeuler = CFrame.fromEulerAnglesXYZ
  660. headoffset = 0
  661. speedbuff = 3
  662. animslowdownmult = 1
  663. damage = 32
  664. ragdolldeath = true
  665. ragdolldespawntime = 10
  666. swingids = {7025241907, 7025242231, 7025242061}
  667. headshotids = {7025209172, 7025209359, 7025209663}
  668.  
  669. function monar(WHAT, duration)
  670.     game:GetService("Debris"):AddItem(WHAT, duration)
  671. end
  672.  
  673. function pose(POSE, KEYFRAME, speeed, btick)
  674.     if state ~= "unequipped" and btick == validatetick then
  675.         local findhead = findthing("HeadWeld", character.Torso)
  676.         local findrarm = findthing("RightArmWeld", character.Head)
  677.         local findlarm = findthing("LeftArmWeld", character.Head)
  678.         local findrootpart = findthing("HumanoidRootPartWeld", character.HumanoidRootPart)
  679.         local findhandle = findthing("RightGrip", character["Right Arm"])
  680.         local startheadcf = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0,0.35,0)
  681.         if POSE == "equip" then
  682.             if KEYFRAME == 1 then
  683.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhead, {C0 = startheadcf})
  684.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findlarm, {C0 = cfnew(-1.44015026, -1.21483612, -0.510011673, 0.939692616, -0.0593911, -0.336824089, -0.219846278, 0.649519145, -0.727868319, 0.262002617, 0.75802207, 0.59729147)})
  685.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrarm, {C0 = cfnew(1.50723648, -0.872226715, -0.475799561, 0.993774354, -0.0206981599, 0.109471887, 0.105154656, -0.150392503, -0.983018041, 0.0368103981, 0.988409638, -0.147279769)})
  686.             elseif KEYFRAME == 2 then
  687.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = startheadcf})
  688.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(-0.346603394, -0.875337601, -1.26449776, 0.386504501, -0.922008514, -0.0226809084, -0.380557179, -0.137031734, -0.91454798, 0.840113282, 0.362108439, -0.403840333)})
  689.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(1.19728947, -1.18899059, -1.02231216, 0.723017693, 0.65307492, -0.225251526, 0.239422247, -0.542735159, -0.805056036, -0.648014128, 0.52813971, -0.548767924)})
  690.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew()})
  691.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(-0.146380901, -0.737253189, -1.19895506, -2.30073929e-05, 0.984813273, -0.173616707, 0.965931416, 0.0449533761, 0.254863977, 0.258798063, -0.167695761, -0.95126307)})
  692.             end
  693.         elseif POSE == "swing" then
  694.             if KEYFRAME == 1 then
  695.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0.0174388885, 0, -0.0302057266, 0.498782009, 0.034878239, 0.866025448, -0.0697564781, 0.997564077, 0, -0.863915861, -0.0604108907, 0.49999997) * cfnew(0,0.35,0)})
  696.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(1.26383877, -0.320791245, -0.0221424103, -0.453994513, -0.6217888, 0.638175189, -0.373202592, -0.517683685, -0.769885063, 0.809078932, -0.58769244, 0.00297236443)})
  697.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.49999997, 0, -0.866025448, 0, 1, 0, 0.866025448, 0, 0.49999997)})
  698.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(1.47292042, -0.71627903, 0.928699493, 0.864569545, -0.310034782, 0.395471781, -0.18596983, -0.928516686, -0.321359307, 0.466834486, 0.204291821, -0.860424399)})
  699.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(-0.146380901, -0.737253189, -1.19895506, -2.30073929e-05, 0.984813273, -0.173616707, 0.965931416, 0.0449533761, 0.254863977, 0.258798063, -0.167695761, -0.95126307)})
  700.             elseif KEYFRAME == 2 then
  701.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0.0377388, 0, -0.0217895508, 0.98171097, 0.0754790828, 0.174775332, -0.0818996057, 0.99619472, 0.0298090167, -0.171860278, -0.0435778685, 0.984156907) * cfnew(0,0.35,0)})
  702.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findlarm, {C0 = cfnew(0.468593597, -1.03038788, -1.23982811, 0.432251483, -0.812906563, -0.390309304, -0.815274477, -0.16733487, -0.554370344, 0.385338962, 0.557836533, -0.735072732)})
  703.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.965925753, 0, -0.258819252, 0, 1, 0, 0.258819252, 0, 0.965925753)})
  704.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrarm, {C0 = cfnew(1.37798214, -1.33913612, -0.998968124, 0.723661661, 0.0184313767, -0.689908445, -0.593295872, -0.494076759, -0.635521889, -0.352581263, 0.86922276, -0.346609175)})
  705.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhandle, {C0 = cfnew(-0.27100563, -1.7641201, -0.778264999, -0.0508781821, 0.977075875, -0.206721604, 0.787041605, -0.088194713, -0.61056298, -0.61479789, -0.193762809, -0.764512599)})
  706.             elseif KEYFRAME == 3 then
  707.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(-0.0290613174, 0, 0.0341873169, 0.642215371, -0.0581262708, -0.764317155, -0.0151344156, 0.995964825, -0.0884597152, 0.766374826, 0.0683777183, 0.638743997) * cfnew(0,0.35,0)})
  708.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(-1.34177113, -1.71902466, -0.075170517, 0.540476441, 0.622194886, -0.566355288, -0.827879965, 0.513294995, -0.226147667, 0.149999231, 0.591101706, 0.792526603)})
  709.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.707106888, -0.122787632, 0.696364164, 0, 0.984807789, 0.17364797, -0.70710665, -0.122787677, 0.696364343)})
  710.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(-0.689968109, -1.82466888, -1.10832024, 0.0564864352, 0.983989894, 0.169034928, -0.723721862, 0.156985015, -0.67199868, -0.687775791, -0.0843754783, 0.72100246)})
  711.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(0.858270645, -2.00149822, -0.718647003, -0.274746865, 0.729312301, 0.626599252, 0.369775802, 0.68170315, -0.631313443, -0.887577295, 0.0582513511, -0.456976354)})
  712.             end
  713.         elseif POSE == "swing2" then
  714.             if KEYFRAME == 1 then
  715.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0, 0, 0, 0.342020124, 0, -0.939692497, 0, 1, 0, 0.939692497, 0, 0.342020124 ) * cfnew(0,0.35,0)})
  716.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(-1.71396351, -1.6685009, 0.976118088, 0.499530166, 0.744541049, -0.442863405, -0.0158833992, -0.503257155, -0.863990664, -0.866150677, 0.438623607, -0.239566326)})
  717.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.342020035, 0, 0.939692616, 0, 1, 0, -0.939692616, 0, 0.342020035)})
  718.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(-1.62695694, -1.15502453, -0.621263504, -0.388809949, 0.676470757, -0.625470757, 0.786783457, -0.109439395, -0.607449293, -0.479372889, -0.728292584, -0.48968491)})
  719.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(-0.0732631683, -1.26810265, -1.21585846, -0.166786343, 0.985272348, 0.0376830995, 0.967181802, 0.17091462, -0.188006341, -0.191677839, 0.00508895516, -0.98144424)})
  720.             elseif KEYFRAME == 2 then
  721.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0, 0, 0, 0.999999881, 1.69406589e-21, 0, 1.69406589e-21, 0.999999881, 1.42108547e-14, 0, 1.42108547e-14, 0.999999762) * cfnew(0,0.35,0)})
  722.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findlarm, {C0 = cfnew(-0.751349449, -1.3943367, -1.64109993, 0.984764755, -0.157523334, 0.0736504793, -0.0158834103, -0.503257036, -0.863990545, 0.173163831, 0.849657655, -0.498091936) * cfnew(0,-0.5,0)})
  723.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrootpart, {C0 = cfnew()})
  724.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrarm, {C0 = cfnew(0.534347534, -1.19490814, -1.69585228, 0.811359644, 0.568405509, 0.136419684, 0.312516361, -0.224575609, -0.922983706, -0.493992656, 0.791505158, -0.359847665) * cfnew(0,-0.5,0) * cfeuler(-0.3,0,0)})
  725.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhandle, {C0 = cfnew(-0.241220474, -2.86224651, -0.358363152, 0.00764432549, 0.983584642, -0.180281967, 0.161737233, -0.179129779, -0.970439374, -0.986803532, -0.0217397511, -0.160451934)})
  726.             elseif KEYFRAME == 3 then
  727.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(-0.055809021, 0, -0.0665121078, 0.76604414, -0.111618906, 0.63302213, 5.93718141e-09, 0.984807551, 0.173648134, -0.642787576, -0.133022189, 0.754406095) * cfnew(0,0.35,0)})
  728.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findlarm, {C0 = cfnew(1.11655521, -0.562868118, -1.38667488, 0.0639937669, -0.92416805, 0.376586914, -0.493751466, -0.357257128, -0.792828083, 0.86724484, -0.135204315, -0.479171693)})
  729.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.766044319, -0.111618891, -0.633022189, 1.3409597e-07, 0.98480767, -0.173648, 0.642787576, 0.133021981, 0.754406393)})
  730.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findrarm, {C0 = cfnew(1.71633816, -1.00290394, -0.395078659, 0.67222333, -0.505163789, 0.541225433, -0.0338932052, -0.751273572, -0.659119725, 0.73957181, 0.42473188, -0.522145271)})
  731.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findhandle, {C0 = cfnew(1.01893806, -1.66208458, -0.151894569, 0.00764530897, 0.505814016, 0.86260426, 0.161738127, 0.850645602, -0.500235498, -0.986800253, 0.143342197, -0.0753064603)})
  732.             elseif KEYFRAME == 4 then
  733.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(-0.055809021, 0, -0.0665102005, 0.644483089, -0.111618906, 0.756427348, -0.0301536676, 0.984807491, 0.171009988, -0.764023483, -0.133022189, 0.631326079) * cfnew(0,0.35,0)})
  734.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(1.10373497, -1.15006447, -1.29962158, -0.0875738859, -0.677876234, 0.72994113, -0.493751466, -0.606875062, -0.622825444, 0.865181863, -0.414952993, -0.281555951)})
  735.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.644483268, -0.111618891, -0.756427348, -0.030153526, 0.98480767, -0.171009928, 0.764023483, 0.133021981, 0.631326377)})
  736.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(1.89929962, -1.31779194, -0.0299015045, 0.581651509, -0.225913569, 0.781437278, 0.128357366, -0.92313391, -0.362419009, 0.803246856, 0.311104834, -0.507944584)})
  737.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(0.955036163, -1.17753029, -0.831868172, -0.475446224, 0.265319109, 0.83878231, 0.271580398, 0.951135039, -0.146918297, -0.836776137, 0.157945231, -0.524268925)})
  738.             end
  739.         elseif POSE == "swing3" then
  740.             if KEYFRAME == 1 then
  741.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0, 0, -0.0868225098, 1, 0, 0, 0, 0.98480767, 0.173648164, 0, -0.173648164, 0.98480767) * cfnew(0,0.35,0)})
  742.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findlarm, {C0 = cfnew(0.796385765, 0.0757751465, -0.343711853, 0.766044378, -0.604022682, 0.219846278, -0.63302207, -0.768301308, 0.0948461443, 0.111619003, -0.21182394, -0.970912814 )})
  743.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 1, 0, 0, 0, 0.984807789, -0.173648, 0, 0.173648, 0.984807789)})
  744.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findrarm, {C0 = cfnew(1.7368679, -0.087428093, -0.168655396, 0.934456468, 0.312324524, -0.171010062, 0.309603035, -0.949890375, -0.0430586189, -0.17588909, -0.0127088176, -0.984327853)})
  745.                 tween(speeed, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0, findhandle, {C0 = cfnew(-0.0345821381, -0.968569279, -1.29231453, -0.998848438, 0.0450143069, 0.0166018009, 0.0454964787, 0.998516679, 0.0299096555, -0.0152308121, 0.0306305382, -0.999414802)})
  746.             elseif KEYFRAME == 2 then
  747.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0, 0, -0.12940979, 1, 0, 0, 0, 0.965925634, 0.258819222, 0, -0.258819222, 0.965925634) * cfnew(0,0.35,0)})
  748.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(-0.746841431, -0.0773735046, 0.891805649, 0.766044378, -0.63302207, 0.111618876, -0.640341461, -0.766669989, 0.0466844551, 0.0560225956, -0.107236542, -0.992653787)})
  749.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 1, 0, 0, 0, 0.965925813, -0.258819073, 0, 0.258819073, 0.965925813)})
  750.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(0.672301292, -0.081035614, 0.86533165, 0.771280527, 0.613091946, -0.171010062, 0.627496302, -0.777436674, 0.0428952649, -0.106650792, -0.140392482, -0.984334946)})
  751.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(-0.379814982, -0.958043098, -1.12813187, -0.969109595, 0.0450149924, -0.24248451, 0.0362042785, 0.998515546, 0.0406659544, 0.243955597, 0.0306303501, -0.969301403)})
  752.             elseif KEYFRAME == 3 then
  753.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findhead, {C0 = startheadcf})
  754.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findlarm, {C0 = cfnew(-0.562223434, -0.596881866, -1.65935898, 0.775031686, -0.624108315, 0.0990685523, -0.288765669, -0.489229709, -0.822963238, 0.562085569, 0.609215021, -0.559389591)})
  755.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)})
  756.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findrarm, {C0 = cfnew(0.593421936, -0.552446365, -1.70380592, 0.718169987, 0.68638283, -0.114499636, 0.331653178, -0.482269466, -0.810815692, -0.611749828, 0.544329524, -0.57399261)})
  757.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findhandle, {C0 = cfnew(-0.132482529, -0.997898102, -1.0688448, -0.940604866, -0.299210191, -0.160400212, -0.30020088, 0.953692019, -0.018627584, 0.158546746, 0.0306296647, -0.986872315)})
  758.             elseif KEYFRAME == 4 then
  759.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0, 0, 9.53674316e-07, 1, 0, 0, 0, 0.99999994, 1.78813934e-07, 0, -1.78813934e-07, 0.99999994) * cfnew(0,0.35,0)})
  760.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findlarm, {C0 = cfnew(-0.74751091, -1.71400833, -1.80980396, 0.669179022, -0.668126702, -0.325278282, -0.257598877, 0.202019632, -0.944897056, 0.697023571, 0.716096699, -0.0369215012 )})
  761.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 1, 0, 0, 0, 0.939692616, 0.342020124, 0, -0.342020124, 0.939692616)})
  762.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findrarm, {C0 = cfnew(0.804405212, -1.65768433, -1.90096951, 0.603174865, 0.715001345, 0.353486657, 0.300264925, 0.207028121, -0.931117594, -0.738932192, 0.667766571, -0.0898155719)})
  763.                 tween(speeed, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, 0, findhandle, {C0 = cfnew(0.966485977, -2.02819061, 0.0981464386, -0.580123961, 0.380487472, 0.72019887, -0.690416873, 0.239446431, -0.682635307, -0.432182938, -0.893250108, 0.123785973)})
  764.             elseif KEYFRAME == 5 then
  765.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0, 0, 0, 0.98480767, 3.7252903e-09, 0.173648149, -3.46973899e-08, 0.99999994, 2.08616257e-07, -0.173648149, -1.78813934e-07, 0.984807551) * cfnew(0,0.35,0)})
  766.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findlarm, {C0 = cfnew(0.0776042938, -1.66754246, -2.23198795, 0.537975729, -0.842513919, -0.0274220333, -0.257598877, -0.133337677, -0.957007527, 0.802635908, 0.521910846, -0.288763225)})
  767.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findrootpart, {C0 = cfnew(0, 0, 0, 0.98480773, 0, -0.173648179, 0.0593911707, 0.939692616, 0.336824059, 0.163175911, -0.342020124, 0.925416529)})
  768.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findrarm, {C0 = cfnew(1.52778149, -1.50555038, -1.5170393, 0.931409717, -0.0137279872, 0.363712698, 0.363091379, -0.0344138145, -0.931117594, 0.0252991095, 0.999313176, -0.027068764)})
  769.                 tween(speeed, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0, findhandle, {C0 = cfnew(0.712293625, -1.52509308, -0.711421967, -0.580123723, -0.171464115, 0.796275735, -0.690416694, 0.622215748, -0.369015336, -0.432182729, -0.763837337, -0.479344487)})
  770.             end
  771.         end
  772.     end
  773. end
  774.  
  775. function tooltransparency(transparency)
  776.     table.foreach(tool:GetDescendants(), function(_, XD) if XD:IsA("BasePart") then XD.Transparency = transparency end end)
  777. end
  778. function weldlimb(part0, part1, startc0, name)
  779.     local a = Instance.new("Weld", part0)
  780.     a.Part0 = part0
  781.     a.Part1 = part1
  782.     a.C0 = startc0
  783.     a.Name = name
  784. end
  785. function playsound(id, volume, speed, debris, timeposition)
  786.     pcall(function()
  787.         local s = Instance.new("Sound", handle)
  788.         s.SoundId = "rbxassetid://"..tostring(id)
  789.         s.Volume = volume
  790.         s.PlaybackSpeed = speed
  791.         s.TimePosition = timeposition
  792.         s:Play()
  793.         monar(s, debris)
  794.     end)
  795. end
  796. function playswingid()
  797.     local rand = math.random(1,#swingids)
  798.     playsound(swingids[rand], 3, 1+math.random(-10,10)/70, 4, 0)
  799. end
  800. function playheadshotid()
  801.     local rand = math.random(1,#headshotids)
  802.     playsound(headshotids[rand], 1, 1+math.random(-10,10)/70, 4, 0.2)
  803. end
  804. function tween(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime, WHAT, goal)
  805.     local info = TweenInfo.new(speed, easingstyle, easingdirection, loopcount, reverseafterfinish, delaytime)
  806.     local goals = goal
  807.     local anim = tweenservice:Create(WHAT, info, goals)
  808.     anim:Play()
  809. end
  810. function findthing(WHAT, parent)
  811.     local thing = parent:FindFirstChild(WHAT, true)
  812.     if thing then
  813.         return thing
  814.     else return nil end
  815. end
  816. function push(WHAT, force, debris)
  817.     local v = Instance.new("BodyVelocity", WHAT)
  818.     v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  819.     v.Velocity = (WHAT.Position - character.Head.Position).unit*force
  820.     monar(v, debris)
  821. end
  822. function explodehead(ch)
  823.     local ched = ch:FindFirstChild("Head")
  824.     if ched then
  825.         print("bom")
  826.         ched.Transparency = 1
  827.         for i,v in pairs(ch:GetDescendants()) do
  828.             if v.Parent ~= nil then
  829.                 if v.Parent.ClassName == "Accessory" or v.Parent.ClassName == "Hat" then
  830.                     if v:IsA("BasePart") then
  831.                         v:Destroy()
  832.                     end
  833.                 end
  834.             end
  835.             if v.ClassName == "Decal" and v.Parent.Name == "Head" then
  836.                 v:Destroy()
  837.             end
  838.         end
  839.         for i = 1,math.random(25,30) do
  840.             local hedd = Instance.new("Part", workspace)
  841.             hedd.Size = Vector3.new(0.25,0.25,0.25)
  842.             hedd.CFrame = ched.CFrame * cfnew(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  843.             monar(hedd, 7)
  844.             if math.random(1,3) == 1 then
  845.                 hedd.BrickColor = ched.BrickColor
  846.                 hedd.Material = ched.Material
  847.             else
  848.                 hedd.BrickColor = BrickColor.new("Maroon")
  849.                 hedd.Material = "Granite"
  850.             end
  851.         end
  852.         playsound("4459572527", 1, 1+math.random(-10,10)/70, 2, 0)
  853.     end
  854. end
  855. function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, du)
  856.     local connection = Instance.new('BallSocketConstraint', limb)
  857.     local bone = Instance.new("Part", limb)
  858.     connection.LimitsEnabled = true
  859.     connection.Attachment0 = attachementone
  860.     connection.Attachment1 = attachmenttwo
  861.     connection.TwistLimitsEnabled = true
  862.     connection.TwistLowerAngle = twistlower
  863.     connection.TwistUpperAngle = twistupper
  864.     bone:BreakJoints()
  865.     local bonew = Instance.new("Weld", bone)
  866.     bonew.Part0 = limb
  867.     bonew.Part1 = bone
  868.     bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  869.     if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  870.         bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
  871.     else
  872.         bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
  873.     end
  874.     bone.Transparency = 1
  875.     bone.Shape = "Cylinder"
  876.     local noc = Instance.new("NoCollisionConstraint", bone)
  877.     noc.Part0 = attachementone.Parent
  878.     noc.Part1 = attachmenttwo.Parent
  879.     monar(bone, du)
  880.     monar(connection, du)
  881. end
  882. function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper, du)
  883.     local connection = Instance.new('HingeConstraint', limb)
  884.     local bone = Instance.new("Part", limb)
  885.     connection.LimitsEnabled = true
  886.     connection.Attachment0 = attachementone
  887.     connection.Attachment1 = attachmenttwo
  888.     connection.LimitsEnabled = true
  889.     connection.LowerAngle = lower
  890.     connection.UpperAngle = upper
  891.     bone:BreakJoints()
  892.     local bonew = Instance.new("Weld", bone)
  893.     bonew.Part0 = limb
  894.     bonew.Part1 = bone
  895.     bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
  896.     if limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  897.         bone.Size = Vector3.new(limb.Size.y/1.8,limb.Size.z,limb.Size.x)
  898.     elseif limb.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 then
  899.         bone.Size = Vector3.new(limb.Size.y/3,limb.Size.z,limb.Size.x)
  900.     elseif limb.Name == "Head" then
  901.         bone.Size = Vector3.new(limb.Size.y/5,limb.Size.z,limb.Size.x)
  902.     end
  903.     bone.Transparency = 1
  904.     bone.Shape = "Cylinder"
  905.     local noc = Instance.new("NoCollisionConstraint", bone)
  906.     noc.Part0 = attachementone.Parent
  907.     noc.Part1 = attachmenttwo.Parent
  908.     monar(bone, du)
  909.     monar(connection, du)
  910. end
  911. function makeragdolllimbr6(limb, dudetorso, at1pos, at2pos, lowt, upt, duratio)
  912.     local at1 = Instance.new("Attachment", dudetorso)
  913.     local at2 = Instance.new("Attachment", limb)
  914.     at1.Position = at1pos
  915.     at2.Position = at2pos
  916.     makeballconnections(limb, at1, at2, lowt, upt, duratio)
  917.     game.Debris:AddItem(at1, duratio)
  918.     game.Debris:AddItem(at2, duratio)
  919. end
  920. function ragdollify(ch, duration, dea)
  921.     local chum = ch:FindFirstChildOfClass("Humanoid")
  922.     if chum then
  923.         if not chum.PlatformStand then
  924.             chum.PlatformStand = true
  925.             if dea then
  926.                 chum.Health = 0
  927.                 local hpsc = ch:FindFirstChild("Health")
  928.                 if hpsc then
  929.                     if hpsc:IsA("Script") then
  930.                         hpsc.Disabled = true
  931.                     end
  932.                 end
  933.                 if ch:FindFirstChild("HumanoidRootPart") then
  934.                     ch:FindFirstChild("HumanoidRootPart"):Destroy()
  935.                 end
  936.                 push(ch.Head, 10, 0.3)
  937.                 monar(ch, ragdolldespawntime)
  938.             elseif ch:FindFirstChild("HumanoidRootPart") then
  939.                 if ch:FindFirstChild("HumanoidRootPart").CanCollide then
  940.                     ch:FindFirstChild("HumanoidRootPart").CanCollide = false
  941.                     coroutine.wrap(function()
  942.                         task.wait(duration)
  943.                         if ch:FindFirstChild("HumanoidRootPart") then
  944.                             ch:FindFirstChild("HumanoidRootPart").CanCollide = true
  945.                         end
  946.                     end)()
  947.                 end
  948.             end
  949.             local savedglue = {}
  950.             local mainpart
  951.             if chum.RigType == Enum.HumanoidRigType.R6 then
  952.                 local chtor = ch.Torso
  953.                 mainpart = chtor
  954.                 if not dea then
  955.                     for i,v in pairs(chtor:GetChildren()) do
  956.                         if v:IsA("Motor6D") then
  957.                             if v.Part1.Name ~= "Head" and v.Part0.Name ~= "HumanoidRootPart" then
  958.                                 table.insert(savedglue, {v, v.Part0, v.Part1})
  959.                                 v.Part1 = nil
  960.                                 v.Part0 = nil
  961.                             end
  962.                         end
  963.                     end
  964.                 end
  965.                 pcall(function()
  966.                     makeragdolllimbr6(ch["Right Arm"], ch.Torso, Vector3.new((ch.Torso.Size.x/2) + (ch.Torso.Size.x/4), (ch.Torso.Size.y/4), 0), Vector3.new(0,ch["Right Arm"].Size.y/4,0), -180, 180, duration)
  967.                 end)
  968.                 pcall(function()
  969.                     makeragdolllimbr6(ch["Left Arm"], ch.Torso, Vector3.new(-(ch.Torso.Size.x/2) - (ch.Torso.Size.x/4), (ch.Torso.Size.y/4), 0), Vector3.new(0,ch["Left Arm"].Size.y/4,0), -180, 180, duration)
  970.                 end)
  971.                 pcall(function()
  972.                     makeragdolllimbr6(ch["Left Leg"], ch.Torso, Vector3.new(-(ch.Torso.Size.x/4), -(ch.Torso.Size.y/2), 0), Vector3.new(0,ch["Left Leg"].Size.y/2,0), -80, 80, duration)
  973.                 end)
  974.                 pcall(function()
  975.                     makeragdolllimbr6(ch["Right Leg"], ch.Torso, Vector3.new((ch.Torso.Size.x/4), -(ch.Torso.Size.y/2), 0), Vector3.new(0,ch["Right Leg"].Size.y/2,0), -80, 80, duration)
  976.                 end)
  977.                 if dea == true and not ch:FindFirstChild("diedbydecapitation") then
  978.                     if ch.Torso:findFirstChild("NeckAttachment") then
  979.                         local headattachment = Instance.new("Attachment", ch.Head)
  980.                         headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
  981.                         makehingeconnections(ch.Head, headattachment, ch.Torso.NeckAttachment, -50, 50, ragdolldespawntime)
  982.                     else
  983.                         local wed = Instance.new("Weld", ch.Head)
  984.                         wed.Part1 = ch.Head
  985.                         wed.Part0 = ch.Torso
  986.                         wed.C0 = cfnew(0,(ch.Torso.Size.y/2)+(ch.Head.Size.y/2),0)
  987.                     end
  988.                 end
  989.                 if not dea then
  990.                     coroutine.wrap(function()
  991.                         task.wait(duration)
  992.                         for i,v in pairs(savedglue) do
  993.                             v[1].Part0 = v[2]
  994.                             v[1].Part1 = v[3]
  995.                             savedglue[i] = nil
  996.                         end
  997.                         chum.PlatformStand = false
  998.                     end)()
  999.                 end
  1000.             elseif chum.RigType == Enum.HumanoidRigType.R15 then
  1001.                 local chuppertor = ch.UpperTorso
  1002.                 mainpart = chuppertor
  1003.                 if not dea then
  1004.                     for i,v in pairs(ch:GetDescendants()) do
  1005.                         if v:IsA("Motor6D") then
  1006.                             if v.Part1.Name ~= "Head" and v.Part0.Name ~= "HumanoidRootPart" then
  1007.                                 table.insert(savedglue, {v, v.Part0, v.Part1})
  1008.                                 v.Part1 = nil
  1009.                                 v.Part0 = nil
  1010.                             end
  1011.                         end
  1012.                     end
  1013.                 end
  1014.                 if dea == true and not ch:FindFirstChild("diedbydecapitation") then
  1015.                     if ch.UpperTorso:findFirstChild("NeckAttachment") then
  1016.                         local HeadAttachment = Instance.new("Attachment", ch.Head)
  1017.                         HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  1018.                         makehingeconnections(ch.Head, HeadAttachment, ch.UpperTorso.NeckAttachment, -50, 50, ragdolldespawntime)
  1019.                     else
  1020.                         local wed = Instance.new("Weld", ch.Head)
  1021.                         wed.Part1 = ch.Head
  1022.                         wed.Part0 = ch.UpperTorso
  1023.                         wed.C0 = cfnew(0,(ch.UpperTorso.Size.y/2)+(ch.Head.Size.y/2),0)
  1024.                     end
  1025.                 end
  1026.                 pcall(function()
  1027.                     makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
  1028.                     makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
  1029.                     makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
  1030.                     makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
  1031.                     --
  1032.                     makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
  1033.                     makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
  1034.                     makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
  1035.                     --
  1036.                     makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
  1037.                     makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
  1038.                     makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
  1039.                     --
  1040.                     makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
  1041.                     makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
  1042.                     makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
  1043.                 end)
  1044.                 if not dea then
  1045.                     coroutine.wrap(function()
  1046.                         task.wait(duration)
  1047.                         for i,v in pairs(savedglue) do
  1048.                             v[1].Part0 = v[2]
  1049.                             v[1].Part1 = v[3]
  1050.                             savedglue[i] = nil
  1051.                         end
  1052.                         chum.PlatformStand = false
  1053.                     end)()
  1054.                 end
  1055.             end
  1056.             if dea then
  1057.                 for i,v in pairs(ch:GetChildren()) do
  1058.                     if v:IsA("Accessory") then
  1059.                         if v:FindFirstChild("Handle") then
  1060.                             local attachment1 = v.Handle:FindFirstChildOfClass("Attachment")
  1061.                             if attachment1 then
  1062.                                 for q,w in pairs(ch:GetChildren()) do
  1063.                                     if w:IsA("Part") then
  1064.                                         local attachment2 = w:FindFirstChild(attachment1.Name)
  1065.                                         if attachment2 then
  1066.                                             local hinge = Instance.new("HingeConstraint", v.Handle)
  1067.                                             hinge.Attachment0 = attachment1
  1068.                                             hinge.Attachment1 = attachment2
  1069.                                             hinge.LimitsEnabled = true
  1070.                                             hinge.LowerAngle = 0
  1071.                                             hinge.UpperAngle = 0
  1072.                                         end
  1073.                                     end
  1074.                                 end
  1075.                             end
  1076.                         end
  1077.                     end
  1078.                 end
  1079.             end
  1080.         end
  1081.     end
  1082. end
  1083. remote.OnServerEvent:Connect(function(WHO, WHAT, parameter1)
  1084.     if WHO == player and state ~= "unequipped" then
  1085.         if WHAT == "1" then
  1086.             headoffset = parameter1
  1087.             local findhead = findthing("HeadWeld", character.Torso)
  1088.             if findhead and state ~= "swinging" then
  1089.                 tween(0.2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0, findhead, {C0 = cfnew(0,1.15,0) * cfeuler(-headoffset/1.5,0,0) * cfnew(0,0.35,0)})
  1090.             end
  1091.         elseif WHAT == "2" and state == "swinging" then
  1092.             if (handle.Position - parameter1.Position).magnitude < 8 then
  1093.                 local findh = parameter1.Parent:FindFirstChildOfClass("Humanoid")
  1094.                 if findh then
  1095.                     local him = table.find(hitpeople, findh.Parent)
  1096.                     if not him then
  1097.                         playsound("175024455", 2, 1+math.random(-10,10)/70, 2, 0)
  1098.                         if not findh:FindFirstChild("dontchangews") then
  1099.                             coroutine.wrap(function()
  1100.                                 findh.WalkSpeed = findh.WalkSpeed - 3.5
  1101.                                 findh.JumpHeight = findh.JumpHeight - 3.5
  1102.                                 wait(0.5)
  1103.                                 findh.WalkSpeed = findh.WalkSpeed + 3.5
  1104.                                 findh.JumpHeight = findh.JumpHeight + 3.5
  1105.                             end)()
  1106.                         end
  1107.                         if parameter1.Name == "Head" then
  1108.                             if findh.Health < damage then
  1109.                                 explodehead(findh.Parent)
  1110.                             end
  1111.                             playheadshotid()
  1112.                         end
  1113.                         if findh.Health > damage then
  1114.                             findh.Health = findh.Health - damage
  1115.                             if findh.PlatformStand then
  1116.                                 push(parameter1, 5, 0.3)
  1117.                             end
  1118.                             if parameter1.Name == "Head" then
  1119.                                 ragdollify(findh.Parent, 2, false)
  1120.                                 push(parameter1, 15, 0.3)
  1121.                             end
  1122.                         else
  1123.                             findh.Parent:BreakJoints()
  1124.                             if parameter1.Name == "Head" then
  1125.                                 playheadshotid()
  1126.                             end
  1127.                             if ragdolldeath then
  1128.                                 --ragdoill stuff
  1129.                                 findh.Parent.Archivable = true
  1130.                                 table.foreach(findh.Parent:GetDescendants(), function(_,hi)
  1131.                                     if hi:IsA("Sound") then
  1132.                                         hi:Destroy()
  1133.                                     end
  1134.                                 end)
  1135.                                 local clr = findh.Parent:Clone()
  1136.                                 table.foreach(findh.Parent:GetChildren(), function(_,hi)
  1137.                                     if hi:IsA("BasePart") or hi.ClassName == "ForceField" or hi.ClassName == "Accessory" or hi.ClassName == "Hat" then
  1138.                                         hi:Destroy()
  1139.                                     end
  1140.                                 end)
  1141.                                 clr.Parent = workspace
  1142.                                 ragdollify(clr, ragdolldespawntime, true)
  1143.                             end
  1144.                         end
  1145.                     end
  1146.                 end
  1147.             end
  1148.         end
  1149.     end
  1150. end)
  1151. --just send ur backup tick to the function and it should work fineeeee
  1152. tool.Activated:Connect(function()
  1153.     if state == "idle" and not charhum.PlatformStand then
  1154.         state = "swinging"
  1155.         local donot = Instance.new("BoolValue", charhum)
  1156.         donot.Name = "dontchangews"
  1157.         for i,v in pairs(hitpeople) do
  1158.             hitpeople[i] = nil
  1159.         end
  1160.         local backuptick = equiptick
  1161.         if (tick() - lastswingtick) > 2 then
  1162.             swinganimation = 0
  1163.         end
  1164.         if swinganimation == 0 then
  1165.             swinganimation = 1
  1166.             charhum.WalkSpeed = charhum.WalkSpeed + speedbuff
  1167.             pose("swing", 1, 0.25*animslowdownmult, backuptick)
  1168.             task.wait(0.2*animslowdownmult)
  1169.             trail.Enabled = true
  1170.             remote:FireClient(player, "1")
  1171.             playswingid()
  1172.             pose("swing", 2, 0.05*animslowdownmult, backuptick)
  1173.             task.wait(0.05*animslowdownmult)
  1174.             pose("swing", 3, 0.2*animslowdownmult, backuptick)
  1175.             task.wait(0.2*animslowdownmult)
  1176.             remote:FireClient(player, "2")
  1177.             trail.Enabled = false
  1178.             charhum.WalkSpeed = charhum.WalkSpeed - speedbuff
  1179.             pose("equip", 2, 0.5*animslowdownmult, backuptick)
  1180.             task.wait(0.3*animslowdownmult)
  1181.             if backuptick == equiptick then
  1182.                 state = "idle"
  1183.             end
  1184.         elseif swinganimation == 1 then
  1185.             swinganimation = 2
  1186.             charhum.WalkSpeed = charhum.WalkSpeed + speedbuff
  1187.             pose("swing2", 1, 0.25*animslowdownmult, backuptick)
  1188.             task.wait(0.2*animslowdownmult)
  1189.             trail.Enabled = true
  1190.             remote:FireClient(player, "1")
  1191.             playswingid()
  1192.             pose("swing2", 2, 0.15*animslowdownmult, backuptick)
  1193.             task.wait(0.15*animslowdownmult)
  1194.             pose("swing2", 3, 0.1*animslowdownmult, backuptick)
  1195.             task.wait(0.1*animslowdownmult)
  1196.             charhum.WalkSpeed = charhum.WalkSpeed - speedbuff
  1197.             pose("swing2", 4, 0.2*animslowdownmult, backuptick)
  1198.             task.wait(0.2*animslowdownmult)
  1199.             remote:FireClient(player, "2")
  1200.             trail.Enabled = false
  1201.             pose("equip", 2, 0.5*animslowdownmult, backuptick)
  1202.             task.wait(0.3*animslowdownmult)
  1203.             if backuptick == equiptick then
  1204.                 state = "idle"
  1205.             end
  1206.         elseif swinganimation == 2 then
  1207.             swinganimation = 0
  1208.             charhum.WalkSpeed = charhum.WalkSpeed + speedbuff
  1209.             pose("swing3", 1, 0.1*animslowdownmult, backuptick)
  1210.             task.wait(0.1*animslowdownmult)
  1211.             pose("swing3", 2, 0.35*animslowdownmult, backuptick)
  1212.             task.wait(0.3*animslowdownmult)
  1213.             trail.Enabled = true
  1214.             remote:FireClient(player, "1")
  1215.             playswingid()
  1216.             pose("swing3", 3, 0.1*animslowdownmult, backuptick)
  1217.             task.wait(0.1*animslowdownmult)
  1218.             pose("swing3", 4, 0.16*animslowdownmult, backuptick)
  1219.             task.wait(0.08*animslowdownmult)
  1220.             remote:FireClient(player, "2")
  1221.             trail.Enabled = false
  1222.             charhum.WalkSpeed = charhum.WalkSpeed - speedbuff
  1223.             pose("swing3", 5, 0.1*animslowdownmult, backuptick)
  1224.             task.wait(0.1*animslowdownmult)
  1225.             pose("equip", 2, 0.5*animslowdownmult, backuptick)
  1226.             task.wait(0.5*animslowdownmult)
  1227.             if backuptick == equiptick then
  1228.                 state = "idle"
  1229.             end
  1230.         end
  1231.         donot:Destroy()
  1232.         lastswingtick = tick()
  1233.     end
  1234. end)
  1235. tool.Equipped:Connect(function()
  1236.     state = "equipping"
  1237.     validatetick = tick()
  1238.     local backuptick = validatetick
  1239.     equiptick = validatetick
  1240.     player = players:GetPlayerFromCharacter(tool.Parent)
  1241.     character = player.Character
  1242.     charhum = character:FindFirstChildOfClass("Humanoid")
  1243.     weldlimb(character.HumanoidRootPart, character.Torso, cfnew(), "HumanoidRootPartWeld")
  1244.     weldlimb(character.Torso, character.Head, cfnew(0,1.5,0), "HeadWeld")
  1245.     weldlimb(character.Head, character["Right Arm"], cfnew(1.43301296, -0.691987038, 0.466506958, 0.866025388, 0, 0.5, -0.249999985, -0.866025329, 0.433012664, 0.433012694, -0.5, -0.75), "RightArmWeld")
  1246.     weldlimb(character.Head, character["Left Arm"], cfnew(-1.5, -1.5, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1), "LeftArmWeld")
  1247.     local grip = character["Right Arm"]:WaitForChild("RightGrip")
  1248.     grip.C0 = cfnew(0.00500011444, -1, -1.34000015, -1.74622983e-10, 1.00000036, -6.56216748e-11, 0.999999881, -1.74622955e-10, 8.9406953e-08, -8.94069672e-08, 6.56216748e-11, -1)
  1249.     pose("equip", 1, 0.25, backuptick)
  1250.     task.wait(0.25)
  1251.     pose("equip", 2, 0.25, backuptick)
  1252.     task.wait(0.2)
  1253.     if state == "equipping" then
  1254.         state = "idle"
  1255.     end
  1256. end)
  1257. tool.Unequipped:Connect(function()
  1258.     state = "unequipped"
  1259.     local limb1 = findthing("HeadWeld", character)
  1260.     local limb2 = findthing("RightArmWeld", character)
  1261.     local limb3 = findthing("LeftArmWeld", character)
  1262.     local limb4 = findthing("HumanoidRootPartWeld", character)
  1263.     if limb1 then
  1264.         limb1:Destroy()
  1265.     end
  1266.     if limb2 then
  1267.         limb2:Destroy()
  1268.     end
  1269.     if limb3 then
  1270.         limb3:Destroy()
  1271.     end
  1272.     if limb4 then
  1273.         limb4:Destroy()
  1274.     end
  1275. end)
  1276. end))
  1277. RemoteEvent63.Parent = Tool0
  1278. LocalScript64.Parent = Tool0
  1279. table.insert(cors,sandbox(LocalScript64,function()
  1280. end))
  1281. for i,v in pairs(mas:GetChildren()) do
  1282.     v.Parent = owner:FindFirstChildOfClass("Backpack")
  1283.     pcall(function() v:MakeJoints() end)
  1284. end
  1285. mas:Destroy()
  1286. for i,v in pairs(cors) do
  1287.     spawn(function()
  1288.         pcall(v)
  1289.     end)
  1290. end
  1291. NLS([[--By Rufus14, a less op but cooler bat compared to the old one i made back in 2019
  1292. local tool = script.Parent
  1293. local handle = tool.Handle
  1294. local remote = tool.RemoteEvent
  1295. local players = game:GetService("Players")
  1296. local runservice = game:GetService("RunService")
  1297. local player = players.LocalPlayer
  1298. while task.wait() and not player.Character do end
  1299. local character = player.Character
  1300. local mouse = player:GetMouse()
  1301. local hitboxloop
  1302. local state = "unequipped"
  1303. local attachments = {}
  1304. local hitpeople = {}
  1305. local at_lastframe = {}
  1306. local ignoreth = {tool, character}
  1307. local validatetick = tick()
  1308. local registering = false
  1309. local multiplehitting = true
  1310. _G.batDEBUG000 = false
  1311.  
  1312. function searchforhat(WHATchar)
  1313.     for q,w in pairs(WHATchar:GetDescendants()) do
  1314.         if w.Name == "Handle" and w.ClassName == "Part" then
  1315.             table.insert(ignoreth, w)
  1316.         end
  1317.     end
  1318. end
  1319.  
  1320. function applyspawn(WHO)
  1321.     WHO.CharacterAppearanceLoaded:Connect(function(WHAT)
  1322.         searchforhat(WHAT)
  1323.     end)
  1324. end
  1325.  
  1326. for i,v in pairs(players:GetPlayers()) do
  1327.     if v ~= player then
  1328.         applyspawn(v)
  1329.         if v.Character then
  1330.             searchforhat(v.Character)
  1331.         end
  1332.     end
  1333. end
  1334.  
  1335. players.PlayerAdded:Connect(function(WHo)
  1336.     applyspawn(WHo)
  1337. end)
  1338.  
  1339. table.foreach(handle:GetChildren(), function(_, a)
  1340.     if a.ClassName == "Attachment" and a.Name == "hitat" then
  1341.         a.Changed:Connect(function(WHAT)
  1342.             if WHAT == "Position" then
  1343.                 a.Parent = nil
  1344.             end
  1345.         end)
  1346.         table.insert(attachments, a)
  1347.     end
  1348. end)
  1349.  
  1350. remote.OnClientEvent:Connect(function(WHAT)
  1351.     if WHAT == "1" then
  1352.         for i,v in pairs(at_lastframe) do
  1353.             at_lastframe[i] = nil
  1354.         end
  1355.         for i,v in pairs(hitpeople) do
  1356.             hitpeople[i] = nil
  1357.         end
  1358.         registering = true
  1359.     elseif WHAT == "2" then
  1360.         registering = false
  1361.     end
  1362. end)
  1363.  
  1364. tool.Equipped:Connect(function()
  1365.     state = "equipped"
  1366.     validatetick = tick()
  1367.     player = players.LocalPlayer
  1368.     character = player.Character
  1369.     mouse = player:GetMouse()
  1370.     local frametick = tick()
  1371.     local delta
  1372.     hitboxloop = runservice.RenderStepped:Connect(function()
  1373.         if character:FindFirstChild("Right Arm") then
  1374.             character["Right Arm"].LocalTransparencyModifier = 0
  1375.         end
  1376.         if character:FindFirstChild("Left Arm") then
  1377.             character["Left Arm"].LocalTransparencyModifier = 0
  1378.         end
  1379.         if (workspace.CurrentCamera.CFrame.p - character.Head.Position).magnitude < 1.5 then
  1380.             character:FindFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0.4,0)
  1381.         else
  1382.             character:FindFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,0)
  1383.         end
  1384.         if registering then
  1385.             delta = tick() - frametick
  1386.             for i,v in pairs(at_lastframe) do
  1387.                 local ray = Ray.new(v[1].WorldPosition, (v[2] - v[1].WorldPosition).unit*(v[1].WorldPosition - v[2]).magnitude)
  1388.                 local rayhit, raypos = workspace:FindPartOnRayWithIgnoreList(ray, ignoreth)
  1389.                 if rayhit then
  1390.                     local findh = rayhit.Parent:FindFirstChildOfClass("Humanoid")
  1391.                     if findh then
  1392.                         if findh.Health > 0 then
  1393.                             if not table.find(hitpeople, findh.Parent) then
  1394.                                 if not multiplehitting then
  1395.                                     registering = false
  1396.                                 end
  1397.                                 table.insert(hitpeople, findh.Parent)
  1398.                                 remote:FireServer("2", rayhit)
  1399.                             end
  1400.                         end
  1401.                     end
  1402.                 end
  1403.                 if _G.batDEBUG000 then
  1404.                     local p = Instance.new("Part", character)
  1405.                     p.Anchored = true
  1406.                     p.CanCollide = false
  1407.                     p.Material = "Neon"
  1408.                     p.Size = Vector3.new(0.1,0.1,(ray.Origin-raypos).magnitude)
  1409.                     p.CFrame = CFrame.new(ray.Origin, raypos) * CFrame.new(0,0,-(ray.Origin-raypos).magnitude/2)
  1410.                     game.Debris:AddItem(p, 2)
  1411.                 end
  1412.                 at_lastframe[i] = nil
  1413.             end
  1414.             table.foreach(attachments, function(_,aa)
  1415.                 table.insert(at_lastframe, {aa, aa.WorldPosition})
  1416.             end)
  1417.             frametick = tick()
  1418.         end
  1419.     end)
  1420.     local charhead = character.Head
  1421.     local backuptick = validatetick
  1422.     while task.wait(0.1) and validatetick == backuptick and state == "equipped" do
  1423.         for i,v in pairs(ignoreth) do
  1424.             if not v:IsDescendantOf(workspace) then
  1425.                 ignoreth[i] = nil
  1426.             end
  1427.         end
  1428.         remote:FireServer("1", (charhead.Position - mouse.Hit.p).unit.y)
  1429.     end
  1430. end)
  1431. tool.Unequipped:Connect(function()
  1432.     state = "unequipped"
  1433.     character:FindFirstChildOfClass("Humanoid").CameraOffset = Vector3.new(0,0,0)
  1434.     hitboxloop:Disconnect()
  1435. end)]], Tool0)
Add Comment
Please, Sign In to add comment