naser2345

Razor Unit

Aug 8th, 2016
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.67 KB | None | 0 0
  1. Ply = game.Players.LocalPlayer
  2. Char = Ply.Character
  3. Tor = Char.Torso
  4. He = Char.Head
  5. Ne = Tor.Neck
  6. Hu = Char.Humanoid
  7. LA = Char["Left Arm"]
  8. LL = Char["Left Leg"]
  9. RA = Char["Right Arm"]
  10. RL = Char["Right Leg"]
  11. LS = Tor["Left Shoulder"]
  12. RS = Tor["Right Shoulder"]
  13. LH = Tor["Left Hip"]
  14. RH = Tor["Right Hip"]
  15. Combo = 1
  16. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  17. RP = Char.HumanoidRootPart
  18. RJ = RP.RootJoint
  19. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  20. LHCF = CFrame.Angles(0, math.rad(-90), 0)
  21. RHCF = CFrame.Angles(0, math.rad(90), 0)
  22. attack = false
  23. equipped = false
  24. local Anim = "Idle"
  25. cam = workspace.CurrentCamera
  26. local RbxUtility = LoadLibrary("RbxUtility")
  27. local Create = RbxUtility.Create
  28. local m = Create("Model"){
  29. Parent = Char,
  30. Name = "WeaponModel",
  31. }
  32.  
  33. RS.Parent = nil
  34. LS.Parent = nil
  35.  
  36. RW = Create("Weld"){
  37. Name = "Right Shoulder",
  38. Part0 = Tor ,
  39. C0 = CFrame.new(1.5, 0.5, 0),
  40. C1 = CFrame.new(0, 0.5, 0),
  41. Part1 = RA ,
  42. Parent = Tor ,
  43. }
  44.  
  45. LW = Create("Weld"){
  46. Name = "Left Shoulder",
  47. Part0 = Tor ,
  48. C0 = CFrame.new(-1.5, 0.5, 0),
  49. C1 = CFrame.new(0, 0.5, 0) ,
  50. Part1 = LA ,
  51. Parent = Tor ,
  52. }
  53.  
  54. mouse = Ply:GetMouse()
  55.  
  56. function RemoveOutlines(part)
  57. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  58. end
  59.  
  60. function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz)
  61. local Part = Create("Part"){
  62. formFactor = FF,
  63. Parent = Par,
  64. Reflectance = Ref,
  65. Transparency = Tra,
  66. CanCollide = false,
  67. Locked = true,
  68. BrickColor = BrickColor.new(tostring(BC)),
  69. Name = Nam,
  70. Size = Siz,
  71. Position = Tor.Position,
  72. Material = Mat,
  73. }
  74. RemoveOutlines(Part)
  75. return Part
  76. end
  77.  
  78. function CreateMesh(Ms, Par, MType, MId, OS, Sca)
  79. local Msh = Create(Ms){
  80. Parent = Par,
  81. Offset = OS,
  82. Scale = Sca,
  83. }
  84. if Ms == "SpecialMesh" then
  85. Msh.MeshType = MType
  86. Msh.MeshId = MId
  87. end
  88. end
  89.  
  90. function CreateWeld(Par, PartA, PartB, CA, CB)
  91. local Weld = Create("Weld"){
  92. Parent = Par,
  93. Part0 = PartA,
  94. Part1 = PartB,
  95. C0 = CA,
  96. C1 = CB,
  97. }
  98. return Weld
  99. end
  100.  
  101. function CreateSound(id, par, vol, pit)
  102. coroutine.resume(coroutine.create(function()
  103. local sou = Create("Sound"){
  104. Parent = par or workspace,
  105. Volume = vol,
  106. Pitch = pit or 1,
  107. SoundId = id,
  108. }
  109. wait()
  110. sou:play()
  111. end))
  112. end
  113.  
  114. function clerp(a, b, t)
  115.  
  116. local function QuaternionFromCFrame(cf)
  117. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  118. local trace = m00 + m11 + m22
  119. if trace > 0 then
  120. local s = math.sqrt(1 + trace)
  121. local recip = 0.5 / s
  122. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  123. else
  124. local i = 0
  125. if m11 > m00 then
  126. i = 1
  127. end
  128. if m22 > (i == 0 and m00 or m11) then
  129. i = 2
  130. end
  131. if i == 0 then
  132. local s = math.sqrt(m00 - m11 - m22 + 1)
  133. local recip = 0.5 / s
  134. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  135. elseif i == 1 then
  136. local s = math.sqrt(m11 - m22 - m00 + 1)
  137. local recip = 0.5 / s
  138. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  139. elseif i == 2 then
  140. local s = math.sqrt(m22 - m00 - m11 + 1)
  141. local recip = 0.5 / s
  142. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  143. end
  144. end
  145. end
  146.  
  147. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  148. local xs, ys, zs = x + x, y + y, z + z
  149. local wx, wy, wz = w * xs, w * ys, w * zs
  150. local xx = x * xs
  151. local xy = x * ys
  152. local xz = x * zs
  153. local yy = y * ys
  154. local yz = y * zs
  155. local zz = z * zs
  156. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  157. end
  158.  
  159. local function QuaternionSlerp(a, b, t)
  160. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  161. local startInterp, finishInterp;
  162. if cosTheta >= 0.0001 then
  163. if (1 - cosTheta) > 0.0001 then
  164. local theta = math.acos(cosTheta)
  165. local invSinTheta = 1 / math.sin(theta)
  166. startInterp = math.sin((1 - t) * theta) * invSinTheta
  167. finishInterp = math.sin(t * theta) * invSinTheta
  168. else
  169. startInterp = 1 - t
  170. finishInterp = t
  171. end
  172. else
  173. if (1 + cosTheta) > 0.0001 then
  174. local theta = math.acos(-cosTheta)
  175. local invSinTheta = 1 / math.sin(theta)
  176. startInterp = math.sin((t - 1) * theta) * invSinTheta
  177. finishInterp = math.sin(t * theta) * invSinTheta
  178. else
  179. startInterp = t - 1
  180. finishInterp = t
  181. end
  182. end
  183. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  184. end
  185.  
  186. local qa = {
  187. QuaternionFromCFrame(a)
  188. }
  189. local qb = {
  190. QuaternionFromCFrame(b)
  191. }
  192. local ax, ay, az = a.x, a.y, a.z
  193. local bx, by, bz = b.x, b.y, b.z
  194.  
  195. local _t = 1 - t
  196. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  197. end
  198.  
  199. function rayCast(Pos, Dir, Max, Ignore)
  200. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  201. end
  202.  
  203. function Damage(Hit, Damage, CoolDown, Color1, Color2)
  204. for i, v in pairs(Hit:GetChildren()) do
  205. if v:IsA("Humanoid") and Hit.Name ~= Char.Name then
  206. local find = v:FindFirstChild("Hitz")
  207. if not find then
  208. if v.Parent:findFirstChild("He") then
  209. local BillG = Instance.new("BillboardGui", v.Parent.He)
  210. BillG.Size = UDim2.new(1, 0, 1, 0)
  211. BillG.Adornee = v.Parent.He
  212. BillG.StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3))
  213. local TL = Create("TextLabel"){
  214. Parent = BillG,
  215. Size = UDim2.new(1, 0, 1, 0),
  216. BackgroundTransparency = 1,
  217. Text = tostring(Damage).."-",
  218. TextColor3 = Color1.BrickColor.Color,
  219. TextStrokeColor3 = Color2.BrickColor.Color,
  220. TextStrokeTransparency = 0,
  221. TextXAlignment = Enum.TextXAlignment.Center,
  222. TextYAlignment = Enum.TextYAlignment.Center,
  223. FontSize = Enum.FontSize.Size18,
  224. Font = "ArialBold"
  225. }
  226. coroutine.resume(coroutine.create(function()
  227. wait(1)
  228. for i = 0, 1, .1 do
  229. wait(.1)
  230. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  231. end
  232. BillG:Destroy()
  233. end))
  234. end
  235. v.Health = v.Health - Damage
  236. local bool = Instance.new("BoolValue", v)
  237. bool.Name = 'Hitz'
  238. game:GetService("Debris"):AddItem(bool, CoolDown)
  239. end
  240. end
  241. end
  242. end
  243.  
  244. Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Fossil","Handle",Vector3.new(0.200000003, 1.5999999, 0.400000006))
  245. Handleweld=CreateWeld(m,RA,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000144958496, -0.000473022461, -0.902323723, -0.99999088, -7.06478168e-005, 1.32429577e-007, -1.32337391e-007, -1.23539292e-006, -0.999991298, 7.11832181e-005, -0.999998987, 1.19070683e-006))
  246. FakeHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Fossil","FakeHandle",Vector3.new(0.200000003, 0.399999976, 0.400000006))
  247. FakeHandleweld=CreateWeld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, 0, -4.76837158e-007, 0.999981761, -1.49498192e-011, -1.60442858e-006, 4.88853402e-012, 0.999982595, 1.34059405e-007, 5.34804883e-007, -4.46862032e-008, 0.999998212))
  248. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  249. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-005, -1.29968262, -0.0999927521, 0.999981761, -4.21102413e-006, -0.000178337199, 4.21249342e-006, 0.999982595, 8.45484647e-006, 0.000177264592, -8.3660907e-006, 0.999998212))
  250. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  251. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  252. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -1.20024109, 0.0999908447, 0.999981761, -3.9908814e-006, -0.00018298396, -3.993885e-006, -0.999982595, -1.6677257e-005, -0.000181911251, 1.65883521e-005, -0.999998212))
  253. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  254. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  255. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-005, -1.29968262, -0.100018501, -0.999981761, 4.32283468e-006, 0.00017718962, 4.32428533e-006, 0.999982595, 8.40528628e-006, -0.000176117028, 8.3165487e-006, -0.999998212))
  256. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  257. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.19999998807907,"Toothpaste","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  258. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-005, 0.100128174, -3.0040741e-005, -0.999981761, -3.06569291e-006, 0.000182044634, -3.06690617e-006, 0.999982595, -6.56936527e-006, -0.000180971983, -6.65919424e-006, -0.999998212))
  259. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  260. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.200000003, 0.400000006))
  261. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -0.100143433, -2.28881836e-005, -0.999981761, 8.39634822e-007, 0.000183251264, -8.39851964e-007, -0.999982595, -1.34311608e-006, 0.000182178643, -1.2538751e-006, 0.999998212))
  262. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  263. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.19999998807907,"Toothpaste","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
  264. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.34057617e-005, -0.39994812, -0.000118732452, 0.999981761, 3.41485384e-006, -2.31657104e-005, 3.41463692e-006, -0.999982595, -1.02540453e-005, -2.20957536e-005, 1.01644318e-005, -0.999998212))
  265. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  266. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
  267. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-005, 0.399993896, -6.67572021e-006, 0.999981761, -1.19159111e-007, -1.12509952e-005, 1.19157249e-007, 0.999982595, 9.39085567e-007, 1.01812002e-005, -8.49698608e-007, 0.999998212))
  268. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  269. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
  270. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.86645508e-005, 0.799972534, 4.76837158e-006, 0.999981761, -1.78735206e-007, -1.23205427e-005, 1.78738247e-007, 0.999982595, 1.29673231e-006, 1.12507296e-005, -1.20734046e-006, 0.999998212))
  271. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003))
  272. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.34057617e-005, -1.20025635, 0.10000658, -0.999981761, 3.90575906e-006, 0.000185596058, -3.90847254e-006, -0.999982595, -1.48671952e-005, 0.000184523349, -1.47783121e-005, 0.999998212))
  273. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  274. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.19999998807907,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.400000006))
  275. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-005, -0.899749756, -1.00135803e-005, 0.999981761, -4.52529139e-006, -0.000163834338, 4.52641507e-006, 0.999982595, 7.07933259e-006, 0.000162761979, -6.99058864e-006, 0.999998212))
  276. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  277. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.19999998807907,"Toothpaste","Part",Vector3.new(0.200000003, 0.600000024, 0.400000006))
  278. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.10351563e-005, 0.29977417, -3.57627869e-005, -0.999981761, 4.56700582e-006, 2.76307201e-005, -4.56679709e-006, -0.999982595, 7.23480662e-006, 2.65607014e-005, 7.32394074e-006, 0.999998212))
  279. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  280. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.400000006))
  281. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.57763672e-005, -0.299850464, -1.8119812e-005, -0.999981761, 6.3186701e-007, 2.16101889e-005, 6.31867863e-007, 0.999982595, 6.72535407e-007, -2.05402212e-005, 5.8316482e-007, -0.999998212))
  282. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  283. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.400000006))
  284. Partweld=CreateWeld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-005, 0.899765015, -1.62124634e-005, 0.999981761, -9.32578303e-007, -0.000175737689, -9.32731155e-007, -0.999982595, -1.02931472e-006, -0.000174665154, 9.40088398e-007, -0.999998212))
  285. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  286. BladeHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.19999998807907,"Toothpaste","BladeHandle",Vector3.new(0.200000003, 0.400000006, 0.400000006))
  287. BladeHandleweld=CreateWeld(m,FakeHandle,BladeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, 1.99960327, 3.95774841e-005, -0.999981761, -1.32326576e-007, 0.000178653223, 1.3257916e-007, -0.999982715, 1.35444691e-006, 0.000177580674, 1.39915676e-006, 0.999998212))
  288. CreateMesh("SpecialMesh",BladeHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  289. Hitbox=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Fossil","Hitbox",Vector3.new(0.200000003, 3.4000001, 1.20000005))
  290. Hitboxweld=CreateWeld(m,BladeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -2.29992676, -0.000141143799, -0.999981761, 1.54720542e-011, 1.56042952e-005, -1.84014193e-011, -0.999982834, 5.96584471e-008, 1.66794853e-005, 5.96595839e-008, 0.999998212))
  291. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 3.20000005, 0.600000024))
  292. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, -2.39953613, 0.299910545, -0.999981761, 1.11494702e-011, 4.91918036e-006, -1.47164086e-011, -0.999982834, 5.96425735e-008, 5.99455234e-006, 5.96437033e-008, 0.999998212))
  293. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  294. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  295. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.100128174, 0.700077772, 0.999981761, 3.34093864e-012, -9.17352736e-008, -5.13478149e-013, -0.999982834, 5.95590421e-008, -1.16718002e-006, -5.95602003e-008, -0.999998212))
  296. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  297. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 3.20000005, 0.600000024))
  298. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-005, -2.39958191, 0.300290346, 0.999981761, -2.12692253e-010, -1.34985239e-005, -2.15749973e-010, -0.999982834, 5.94570011e-008, -1.45737504e-005, -5.94581344e-008, -0.999998212))
  299. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  300. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.200000018))
  301. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.15527344e-005, -0.400344849, 0.500155926, 0.999981761, -2.19540247e-010, -1.26651285e-005, -2.22647581e-010, -0.999982834, 5.94515797e-008, -1.37403622e-005, -5.94527094e-008, -0.999998212))
  302. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  303. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  304. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.15527344e-005, -0.499847412, -0.300111532, 0.999981761, -6.99822465e-007, 3.21262632e-006, 6.99820532e-007, 0.999982834, 2.40010445e-006, -2.13713793e-006, -2.40006443e-006, 0.999998212))
  305. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  306. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  307. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000137329102, 0.20010376, -0.299919605, 0.999981761, -4.54817467e-007, -5.03034971e-006, -4.54819144e-007, -0.999982834, 2.78908715e-007, -6.10571442e-006, -2.78904196e-007, -0.999998212))
  308. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  309. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  310. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.599838257, 0.600077152, -0.999981761, 2.73906039e-007, -4.02069418e-006, 2.7390189e-007, 0.999982834, 2.64749633e-006, 2.9451985e-006, 2.64745267e-006, -0.999998212))
  311. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  312. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.200000018))
  313. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -0.400344849, 0.499759197, -0.999981761, 1.20092963e-011, 6.70757436e-006, -1.54696325e-011, -0.999982834, 5.96330949e-008, 7.78290996e-006, 5.96342247e-008, 0.999998212))
  314. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  315. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.600000143, 0.200000033))
  316. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-005, -0.500274658, 0.699822426, -0.999981761, 2.13075807e-011, 1.29148029e-005, -2.44003914e-011, -0.999982834, 5.94436145e-008, 1.39900367e-005, 5.94447549e-008, 0.999998212))
  317. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  318. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.400000006))
  319. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000152587891, 0.29977417, -0.20009017, 0.999981761, -6.43139708e-012, -3.69289774e-006, 1.0355744e-011, 0.999982834, -2.66098255e-011, 4.76827699e-006, 2.8663294e-011, 0.999998212))
  320. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  321. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  322. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000183105469, 0.200149536, -0.300102234, -0.999981761, 1.49097339e-008, 4.5542256e-006, -1.49133381e-008, -0.999982834, 5.42441221e-008, 5.62959031e-006, 5.42452696e-008, 0.999998212))
  323. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  324. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.800000072, 0.400000006))
  325. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.39233398e-005, -0.999664307, 0.200092554, 0.999981761, -3.95544708e-012, 4.41308657e-007, -7.84210197e-012, -0.999982834, 5.96419412e-008, -6.34157914e-007, -5.96430709e-008, -0.999998212))
  326. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  327. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  328. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000152587891, 0.100143433, 0.500086546, 0.999981761, -5.8873878e-012, -3.42418934e-006, -9.54353263e-012, -0.999982834, 5.96374576e-008, -4.49957588e-006, -5.96385945e-008, -0.999998212))
  329. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.600000024))
  330. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-005, -0.599533081, 0.700154305, -0.999981761, -1.4772513e-008, 1.21978883e-005, -1.49355408e-008, 0.999982834, -1.2579485e-005, -1.32731293e-005, -1.25792931e-005, -0.999998212))
  331. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  332. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.600000143, 0.200000003))
  333. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-005, 0.0995178223, 0.700134993, 0.999981761, -2.18819241e-010, 9.61532351e-007, -2.22737162e-010, -0.999982834, 6.0835994e-008, -1.13912392e-007, -6.08371167e-008, -0.999998212))
  334. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  335. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000137, 0.600000024))
  336. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.70022583, 0.300123453, 0.999981761, -2.20294477e-010, 6.77464413e-008, -2.24158456e-010, -0.999982834, 5.98086771e-008, -1.00770558e-006, -5.98098069e-008, -0.999998212))
  337. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  338. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.600000143, 0.200000003))
  339. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, 0.0997314453, 0.900169849, 0.999981761, -2.16103496e-010, 1.49953121e-006, -2.20052046e-010, -0.999982834, 6.14535409e-008, 4.24064638e-007, -6.14546636e-008, -0.999998212))
  340. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  341. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.600000143, 0.200000033))
  342. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -0.500228882, 0.700129032, 0.999981761, -2.17749069e-010, -4.84001066e-006, -2.21319518e-010, -0.999982834, 5.9810489e-008, -5.91537537e-006, -5.98116188e-008, -0.999998212))
  343. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  344. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000083, 0.200000003))
  345. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.91821289e-005, 0.100112915, 0.699890614, -0.999981761, 7.18990145e-012, -1.53825385e-006, -1.11410742e-011, -0.999982834, 5.976095e-008, -4.62780008e-007, 5.97621082e-008, 0.999998212))
  346. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  347. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.400000006))
  348. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, 0.299789429, -0.199937344, -0.999981761, 2.7011865e-012, 1.49950938e-006, 6.31858454e-012, 0.999982834, -1.19261927e-007, -2.5749323e-006, -1.19262154e-007, -0.999998212))
  349. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  350. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.800000072, 0.400000006))
  351. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000137329102, -0.999954224, 0.199864864, -0.999981761, 8.21773205e-012, 5.84091322e-006, -1.1729645e-011, -0.999982834, 5.96492384e-008, 6.91626337e-006, 5.96503753e-008, 0.999998212))
  352. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  353. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.600000024, 0.200000003))
  354. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-005, 0.100036621, 0.499933243, -0.999981761, 1.20618862e-011, 3.85295425e-006, -1.56922253e-011, -0.999982834, 5.96835577e-008, 4.92833351e-006, 5.96846945e-008, 0.999998212))
  355. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  356. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.399963379, 0.499933243, -0.999981761, 8.33516589e-012, 2.36118649e-006, -1.20545518e-011, -0.999982834, 5.96779444e-008, 3.43659485e-006, 5.96790812e-008, 0.999998212))
  357. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  358. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.400000155, 0.600000024))
  359. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000183105469, -0.599578857, 0.699863434, 0.999981761, -1.50043302e-008, -5.07864752e-006, 1.50849182e-008, 0.999982834, 1.24600392e-005, 6.15401223e-006, -1.24598455e-005, 0.999998212))
  360. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  361. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.600000143, 0.200000003))
  362. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000122070313, 0.0995788574, 0.699845791, -0.999981761, 1.22518801e-011, 6.45028194e-007, -1.60736077e-011, -0.999982834, 5.86622804e-008, 1.72046566e-006, 5.86634457e-008, 0.999998212))
  363. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  364. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000137, 0.600000024))
  365. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-005, -0.700195313, 0.299836636, -0.999981761, 1.4545129e-011, 3.57317185e-006, -1.8192392e-011, -0.999982834, 5.96309135e-008, 4.64856566e-006, 5.96320504e-008, 0.999998212))
  366. CreateMesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  367. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  368. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000137329102, -0.499862671, -0.299929142, -0.999981761, -6.99751979e-007, -2.97113729e-006, -6.99742486e-007, 0.999982834, -2.51947517e-006, 1.89564162e-006, -2.51943766e-006, -0.999998212))
  369. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  370. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036))
  371. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.599853516, 0.599877834, 0.999981761, 2.73833876e-007, 3.43463034e-006, -2.73823105e-007, 0.999982834, -2.76679339e-006, -2.35912739e-006, 2.766752e-006, 0.999998212))
  372. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  373. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Mid gray","Part",Vector3.new(0.200000003, 0.600000143, 0.200000003))
  374. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000198364258, 0.0998077393, 0.899896622, -0.999981761, 1.10282478e-011, -1.01601472e-007, -1.48965076e-011, -0.999982834, 5.82748356e-008, 9.73850547e-007, 5.82760045e-008, 0.999998212))
  375. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 1, 1))
  376. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Fossil","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003))
  377. Partweld=CreateWeld(m,BladeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000183105469, -0.399810791, 0.500085354, 0.999981761, -1.92078298e-012, -1.94731547e-006, -5.66501013e-012, -0.999982834, 5.96335141e-008, -3.02273838e-006, -5.9634651e-008, -0.999998212))
  378. CreateMesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  379.  
  380. function FirstAttack()
  381. attack = true
  382. for i = 0,1,0.1 do
  383. wait()
  384. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-.5), math.rad(0), math.rad(-60)), .3)
  385. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(.5), math.rad(0), math.rad(60)), .3)
  386. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(90)), .3)
  387. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(-90)), .3)
  388. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(60), math.rad(-.5)), .3)
  389. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, .2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(60), math.rad(-.5)), .3)
  390. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  391. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, -.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  392. end
  393. CreateSound("http://roblox.com/asset/?id=199145095",Hitbox,1,1)
  394. for i = 0,1,0.1 do
  395. wait()
  396. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-.5), math.rad(0), math.rad(60)), .4)
  397. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(.5), math.rad(0), math.rad(-60)), .4)
  398. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(90)), .4)
  399. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(-50)), .4)
  400. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-60), math.rad(-.5)), .4)
  401. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-60), math.rad(-.5)), .4)
  402. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(0)), .4)
  403. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  404. end
  405. attack = false
  406. end
  407.  
  408. function SecondAttack()
  409. attack = true
  410. for i = 0,1,0.1 do
  411. wait()
  412. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-.5), math.rad(0), math.rad(70)), .3)
  413. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(.5), math.rad(0), math.rad(-70)), .3)
  414. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(100), math.rad(130)), .3)
  415. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(-30)), .3)
  416. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-60), math.rad(-.5)), .3)
  417. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-60), math.rad(-.5)), .3)
  418. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), .3)
  419. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, -.1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  420. end
  421. CreateSound("http://roblox.com/asset/?id=199145146",Hitbox,1,1)
  422. for i = 0,1,0.1 do
  423. wait()
  424. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(-.5), math.rad(0), math.rad(-70)), .4)
  425. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(70)), .4)
  426. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(50)), .4)
  427. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .4)
  428. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(60), math.rad(-.5)), .4)
  429. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, .2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(60), math.rad(-.5)), .4)
  430. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(-20)), .3)
  431. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  432. end
  433. attack = false
  434. end
  435.  
  436. function ThirdAttack()
  437. attack = true
  438. for i = 1,2 do
  439. CreateSound("http://roblox.com/asset/?id=199145327",Hitbox,.7,1)
  440. for i = 0,1,0.2 do
  441. wait()
  442. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-.5), math.rad(0), math.rad(-70)), .3)
  443. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(70)), .3)
  444. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(30)), .3)
  445. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  446. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -.3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(60), math.rad(-.5)), .3)
  447. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, .2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(60), math.rad(-.5)), .3)
  448. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(6*i, math.rad(0), math.rad(0)), .8)
  449. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  450. end
  451. end
  452. for i = 1,4 do
  453. CreateSound("http://roblox.com/asset/?id=199145327",Hitbox,.7,1)
  454. for i = 0,1,0.2 do
  455. wait()
  456. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-.5), math.rad(0), math.rad(70)), .3)
  457. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-70)), .3)
  458. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(50)), .3)
  459. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  460. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, .3) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-60), math.rad(-.5)), .3)
  461. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-60), math.rad(-.5)), .3)
  462. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), 6*i, math.rad(90)), .8)
  463. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  464. end
  465. end
  466. attack = false
  467. end
  468.  
  469. mouse.Button1Down:connect(function()
  470. if attack == false and Combo == 1 then
  471. Combo = 2
  472. FirstAttack()
  473. elseif attack == false and Combo == 2 then
  474. Combo = 3
  475. SecondAttack()
  476. elseif attack == false and Combo == 3 then
  477. Combo = 1
  478. ThirdAttack()
  479. end
  480. end)
  481.  
  482. mouse.KeyDown:connect(function(k)
  483. k = k:lower()
  484.  
  485. end)
  486.  
  487.  
  488. local sine = 0
  489. local change = 1
  490. local val = 0
  491. local donum = 0
  492.  
  493. while true do
  494. wait()
  495. sine = sine + change
  496. local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude
  497. local velderp = RP.Velocity.y
  498. hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  499. if equipped == true or equipped == false then
  500. if donum >= .5 then
  501. handidle = true
  502. elseif donum <= 0 then
  503. handidle = false
  504. end
  505. if handidle == false then
  506. donum = donum + 0.003
  507. else
  508. donum = donum - 0.003
  509. end
  510. if RP.Velocity.y > 1 and hitfloor == nil then
  511. Anim = "Jump"
  512. if attack == false then
  513. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  514. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3)
  515. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(10)), .3)
  516. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), .3)
  517. RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.3) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(-20)), .3)
  518. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), .3)
  519. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  520. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, -.1+donum/1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  521. end
  522. elseif RP.Velocity.y < -1 and hitfloor == nil then
  523. Anim = "Fall"
  524. if attack == false then
  525. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  526. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  527. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(20)), .3)
  528. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-30)), .3)
  529. RH.C0 = clerp(RH.C0, CFrame.new(1, -.8, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  530. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), .3)
  531. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  532. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, -.1+donum/1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  533. end
  534. elseif torvel < 1 and hitfloor ~= nil then
  535. Anim = "Idle"
  536. if attack == false then
  537. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-.5)+donum/3.5, math.rad(0), math.rad(-40)), .3)
  538. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(.5)-donum/3.5, math.rad(0), math.rad(40)), .3)
  539. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-1)-donum/2, math.rad(1)-donum/2, math.rad(2)+donum/2), .3)
  540. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(5)+donum/2, math.rad(0), math.rad(-2)-donum/2), .3)
  541. RH.C0 = clerp(RH.C0, CFrame.new(1, -1-donum/6, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(20), math.rad(-.5)+donum/3.5), .3)
  542. LH.C0 = clerp(LH.C0, CFrame.new(-.9, -1, .2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(40), math.rad(-.5)-donum/3.5), .3)
  543. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10)-donum/2, math.rad(0), math.rad(-10)), .3)
  544. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, -.1+donum/3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  545. end
  546. elseif torvel > 2 and hitfloor ~= nil then
  547. Anim = "Walk"
  548. if attack == false then
  549. RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  550. Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  551. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20)-donum/2, math.rad(0), math.rad(10)+donum/2), .3)
  552. LW.C0 = clerp(LW.C0, CFrame.new(-.6, 0.6, -.9) * CFrame.Angles(math.rad(120)+donum/2, math.rad(10), math.rad(80)), .3)
  553. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  554. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  555. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-5)-donum/1, math.rad(0), math.rad(0)), .3)
  556. BladeHandleweld.C0 = clerp(BladeHandleweld.C0, CFrame.new(0, -.1+donum/1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  557. end
  558. end
  559. end
  560. end
Add Comment
Please, Sign In to add comment