FilthyFrank

Helios sword

Mar 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.53 KB | None | 0 0
  1. function clerp(c1,c2,al)
  2. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  3. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  4. for i,v in pairs(com1) do
  5. com1[i] = v+(com2[i]-v)*al
  6. end
  7. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  8. end
  9.  
  10.  
  11. plr = game:service'Players'.LocalPlayer
  12. char = plr.Character
  13. mouse = plr:GetMouse()
  14. humanoid = char:findFirstChild("Humanoid")
  15. torso = char:findFirstChild("Torso")
  16. head = char.Head
  17. ra = char:findFirstChild("Right Arm")
  18. la = char:findFirstChild("Left Arm")
  19. rl = char:findFirstChild("Right Leg")
  20. ll = char:findFirstChild("Left Leg")
  21. rs = torso:findFirstChild("Right Shoulder")
  22. ls = torso:findFirstChild("Left Shoulder")
  23. rh = torso:findFirstChild("Right Hip")
  24. lh = torso:findFirstChild("Left Hip")
  25. neck = torso:findFirstChild("Neck")
  26. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  27. rootpart = char:findFirstChild("HumanoidRootPart")
  28. camera = workspace.CurrentCamera
  29. anim = char:findFirstChild("Animate")
  30. if anim then
  31. anim:Destroy()
  32. end
  33. nameofModel = "HoloSword"
  34.  
  35.  
  36. if char:findFirstChild(nameofModel) then char:findFirstChild(nameofModel):Destroy() end
  37.  
  38.  
  39. model = Instance.new("Model", char)
  40. model.Name = nameofModel
  41.  
  42. local rm = Instance.new("Motor", torso)
  43. rm.C0 = CFrame.new(1.5, 0.5, 0)
  44. rm.C1 = CFrame.new(0, 0.5, 0)
  45. rm.Part0 = torso
  46. rm.Part1 = ra
  47.  
  48. local lm = Instance.new("Motor", torso)
  49. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  50. lm.C1 = CFrame.new(0, 0.5, 0)
  51. lm.Part0 = torso
  52. lm.Part1 = la
  53.  
  54. local rlegm = Instance.new("Motor", torso)
  55. rlegm.C0 = CFrame.new(0.5, -1, 0)
  56. rlegm.C1 = CFrame.new(0, 1, 0)
  57. rlegm.Part0 = torso
  58. rlegm.Part1 = rl
  59. local llegm = Instance.new("Motor", torso)
  60. llegm.C0 = CFrame.new(-0.5, -1, 0)
  61. llegm.C1 = CFrame.new(0, 1, 0)
  62. llegm.Part0 = torso
  63. llegm.Part1 = ll
  64.  
  65.  
  66. humanoid.WalkSpeed = 10
  67.  
  68.  
  69. -- 2 - Blade
  70. obj2 = Instance.new("Part")
  71. obj2.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.690000057, 19.1000042)) * CFrame.Angles(-0, 0, -0)
  72. obj2.FormFactor = Enum.FormFactor.Custom
  73. obj2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  74. obj2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  75. obj2.Reflectance = 0.5
  76. obj2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  77. obj2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  78. obj2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  79. obj2.Material = Enum.Material.SmoothPlastic
  80. obj2.Size = Vector3.new(0.200000003, 1, 4.79999971)
  81. obj2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  82. obj2.BrickColor = BrickColor.new("Institutional white")
  83. obj2.Friction = 0.30000001192093
  84. obj2.Shape = Enum.PartType.Block
  85. obj2.Name = "Blade"
  86. obj2.Parent = model
  87.  
  88. -- 3 - Mesh
  89. obj3 = Instance.new("BlockMesh")
  90. obj3.Scale = Vector3.new(0.200000003, 0.699999988, 1)
  91. obj3.Parent = obj2
  92.  
  93. -- 4 - BladeDec
  94. obj4 = Instance.new("Part")
  95. obj4.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.489999712, 19.1000004)) * CFrame.Angles(-0, 0, -0)
  96. obj4.FormFactor = Enum.FormFactor.Custom
  97. obj4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  98. obj4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  99. obj4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  100. obj4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  101. obj4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  102. obj4.Material = Enum.Material.SmoothPlastic
  103. obj4.Size = Vector3.new(0.600000024, 0.200000003, 4.79999924)
  104. obj4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  105. obj4.BrickColor = BrickColor.new("Really black")
  106. obj4.Friction = 0.30000001192093
  107. obj4.Shape = Enum.PartType.Block
  108. obj4.Name = "BladeDec"
  109. obj4.Parent = model
  110.  
  111. -- 5 - Mesh
  112. obj5 = Instance.new("BlockMesh")
  113. obj5.Scale = Vector3.new(0.200000003, 0.699999988, 1)
  114. obj5.Parent = obj4
  115.  
  116. -- 6 - BladeDec
  117. obj6 = Instance.new("Part")
  118. obj6.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.489999712, 21.6000099)) * CFrame.Angles(3.141592502594, 0, -0)
  119. obj6.FormFactor = Enum.FormFactor.Custom
  120. obj6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  121. obj6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  122. obj6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  123. obj6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  124. obj6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  125. obj6.Material = Enum.Material.SmoothPlastic
  126. obj6.Size = Vector3.new(0.600000024, 0.200000033, 0.200000003)
  127. obj6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  128. obj6.BrickColor = BrickColor.new("Really black")
  129. obj6.Friction = 0.30000001192093
  130. obj6.Shape = Enum.PartType.Block
  131. obj6.Name = "BladeDec"
  132. obj6.Parent = model
  133.  
  134. -- 7 - Mesh
  135. obj7 = Instance.new("SpecialMesh")
  136. obj7.MeshType = Enum.MeshType.Wedge
  137. obj7.Scale = Vector3.new(0.200000003, 0.699999988, 1)
  138. obj7.Parent = obj6
  139.  
  140. -- 8 - BladeDec
  141. obj8 = Instance.new("Part")
  142. obj8.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.690000057, 22.0000057)) * CFrame.Angles(3.141592502594, 0, -0)
  143. obj8.FormFactor = Enum.FormFactor.Custom
  144. obj8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  145. obj8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  146. obj8.Reflectance = 0.5
  147. obj8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  148. obj8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  149. obj8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  150. obj8.Material = Enum.Material.SmoothPlastic
  151. obj8.Size = Vector3.new(0.200000003, 1, 1)
  152. obj8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  153. obj8.BrickColor = BrickColor.new("Institutional white")
  154. obj8.Friction = 0.30000001192093
  155. obj8.Shape = Enum.PartType.Block
  156. obj8.Name = "BladeDec"
  157. obj8.Parent = model
  158.  
  159. -- 9 - Mesh
  160. obj9 = Instance.new("SpecialMesh")
  161. obj9.MeshType = Enum.MeshType.Wedge
  162. obj9.Scale = Vector3.new(0.200000003, 0.699999988, 1)
  163. obj9.Parent = obj8
  164.  
  165. -- 10 - HandleDecoration
  166. obj10 = Instance.new("Part")
  167. obj10.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.689999878, 16)) * CFrame.Angles(-0, 0, -0)
  168. obj10.FormFactor = Enum.FormFactor.Custom
  169. obj10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  170. obj10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  171. obj10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  172. obj10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  173. obj10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  174. obj10.Material = Enum.Material.SmoothPlastic
  175. obj10.Size = Vector3.new(0.200000003, 0.200000003, 1)
  176. obj10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  177. obj10.BrickColor = BrickColor.new("Bright blue")
  178. obj10.Friction = 0.30000001192093
  179. obj10.Shape = Enum.PartType.Block
  180. obj10.Name = "HandleDecoration"
  181. obj10.Parent = model
  182.  
  183. -- 11 - Mesh
  184. obj11 = Instance.new("BlockMesh")
  185. obj11.Scale = Vector3.new(1.10000002, 1.10000002, 0.800000012)
  186. obj11.Parent = obj10
  187.  
  188. -- 12 - BladeDec
  189. obj12 = Instance.new("Part")
  190. obj12.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.889999926, 19.4000015)) * CFrame.Angles(-0, 0, -0)
  191. obj12.FormFactor = Enum.FormFactor.Custom
  192. obj12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  193. obj12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  194. obj12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  195. obj12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  196. obj12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  197. obj12.Material = Enum.Material.SmoothPlastic
  198. obj12.Size = Vector3.new(0.600000024, 0.200000003, 5.39999866)
  199. obj12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  200. obj12.BrickColor = BrickColor.new("Really black")
  201. obj12.Friction = 0.30000001192093
  202. obj12.Shape = Enum.PartType.Block
  203. obj12.Name = "BladeDec"
  204. obj12.Parent = model
  205.  
  206. -- 13 - Mesh
  207. obj13 = Instance.new("BlockMesh")
  208. obj13.Scale = Vector3.new(0.200000003, 0.699999988, 1)
  209. obj13.Parent = obj12
  210.  
  211. -- 14 - HandleDecoration
  212. obj14 = Instance.new("Part")
  213. obj14.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.690000057, 16.6000004)) * CFrame.Angles(-0, 0, -0)
  214. obj14.FormFactor = Enum.FormFactor.Custom
  215. obj14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  216. obj14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  217. obj14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  218. obj14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  219. obj14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  220. obj14.Material = Enum.Material.SmoothPlastic
  221. obj14.Size = Vector3.new(0.200000003, 1.4000001, 0.200000003)
  222. obj14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  223. obj14.BrickColor = BrickColor.new("Really black")
  224. obj14.Friction = 0.30000001192093
  225. obj14.Shape = Enum.PartType.Block
  226. obj14.Name = "HandleDecoration"
  227. obj14.Parent = model
  228.  
  229. -- 15 - Mesh
  230. obj15 = Instance.new("BlockMesh")
  231. obj15.Scale = Vector3.new(1, 0.800000012, 1)
  232. obj15.Parent = obj14
  233.  
  234. -- 16 - BladeDec
  235. obj16 = Instance.new("Part")
  236. obj16.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.889999926, 22.2000122)) * CFrame.Angles(3.141592502594, 0, -0)
  237. obj16.FormFactor = Enum.FormFactor.Custom
  238. obj16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  239. obj16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  240. obj16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  241. obj16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  242. obj16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  243. obj16.Material = Enum.Material.SmoothPlastic
  244. obj16.Size = Vector3.new(0.600000024, 0.200000033, 0.200000003)
  245. obj16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  246. obj16.BrickColor = BrickColor.new("Really black")
  247. obj16.Friction = 0.30000001192093
  248. obj16.Shape = Enum.PartType.Block
  249. obj16.Name = "BladeDec"
  250. obj16.Parent = model
  251.  
  252. -- 17 - Mesh
  253. obj17 = Instance.new("SpecialMesh")
  254. obj17.MeshType = Enum.MeshType.Wedge
  255. obj17.Scale = Vector3.new(0.200000003, 0.699999988, 1)
  256. obj17.Parent = obj16
  257.  
  258. -- 18 - Handle
  259. obj18 = Instance.new("Part")
  260. obj18.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.690000117, 16)) * CFrame.Angles(-0, 0, -0)
  261. obj18.FormFactor = Enum.FormFactor.Custom
  262. obj18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  263. obj18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  264. obj18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  265. obj18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  266. obj18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  267. obj18.Material = Enum.Material.SmoothPlastic
  268. obj18.Size = Vector3.new(0.200000003, 0.200000003, 1)
  269. obj18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  270. obj18.BrickColor = BrickColor.new("Really black")
  271. obj18.Friction = 0.30000001192093
  272. obj18.Shape = Enum.PartType.Block
  273. obj18.Name = "Handle"
  274. obj18.Parent = model
  275.  
  276. -- 19 - HandleDecoration
  277. obj19 = Instance.new("Part")
  278. obj19.CFrame = CFrame.new(Vector3.new(-4.79999304, 0.689999819, 15.3999977)) * CFrame.Angles(-0, 0, -0)
  279. obj19.FormFactor = Enum.FormFactor.Custom
  280. obj19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  281. obj19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  282. obj19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  283. obj19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  284. obj19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  285. obj19.Material = Enum.Material.SmoothPlastic
  286. obj19.Size = Vector3.new(0.600000024, 0.600000024, 0.200000003)
  287. obj19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  288. obj19.BrickColor = BrickColor.new("Really black")
  289. obj19.Friction = 0.30000001192093
  290. obj19.Shape = Enum.PartType.Block
  291. obj19.Name = "HandleDecoration"
  292. obj19.Parent = model
  293.  
  294. -- 20 - Mesh
  295. obj20 = Instance.new("BlockMesh")
  296. obj20.Parent = obj19
  297.  
  298. local parts,last = {}
  299. local function scan(parent)
  300. for _,v in pairs(parent:GetChildren()) do
  301. if (v:IsA("BasePart")) then
  302. if (last) then
  303. local w = Instance.new("Weld")
  304. w.Name = ("%s_Weld"):format(v.Name)
  305. w.Part0,w.Part1 = last,v
  306. w.C0 = last.CFrame:inverse()
  307. w.C1 = v.CFrame:inverse()
  308. w.Parent = last
  309. end
  310. last = v
  311. table.insert(parts,v)
  312. end
  313. scan(v)
  314. end
  315. end
  316. scan(model)
  317. for _,v in pairs(parts) do
  318. v.Anchored = false
  319. v.Locked = true
  320. end
  321. for _,v in pairs(parts) do
  322. v.CanCollide = false
  323. end
  324.  
  325. local handle = Instance.new("Part", model)
  326. handle.FormFactor = "Custom"
  327. handle.BrickColor = BrickColor.new("Bright orange")
  328. handle.Transparency = .5
  329. handle.TopSurface = 0
  330. handle.BottomSurface = 0
  331. handle.Size = Vector3.new(0, 0, 0)
  332.  
  333. local weldtohandle = Instance.new("Weld", char)
  334. weldtohandle.Part0 = handle
  335. weldtohandle.Part1 = obj18
  336.  
  337. local wld = Instance.new("Weld", handle)
  338. wld.Part0 = handle
  339. wld.Part1 = ra
  340. wld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0, math.pi, 0)
  341.  
  342. rj.C0 = CFrame.new()
  343. rj.C1 = CFrame.new()
  344.  
  345. neck.C0 = CFrame.new(0, 1, 0)
  346. neck.C1 = CFrame.new(0, -0.5, 0)
  347.  
  348. local speed = 0.3
  349. local angle = 0
  350. local anglespeed = 1
  351. local STOPtrail = true
  352. rsc0 = rm.C0
  353. lsc0 = lm.C0
  354. llc0 = llegm.C0
  355. rlc0 = rlegm.C0
  356. rootc0 = rj.C0
  357. neckc0 = neck.C0
  358. swordc0 = wld.C0
  359. action = "None"
  360.  
  361. mouse.KeyDown:connect(function(k)
  362. if k == "e" then
  363. action = 'PowerSlash'
  364. end
  365. if string.byte(k) == 48 then
  366. if action == "Slash1" or action == "Slash2" then return end
  367. humanoid.WalkSpeed = 17
  368. end
  369. end)
  370. mouse.KeyUp:connect(function(k)
  371. if string.byte(k) == 48 then
  372. if action == "Slash1" or action == "Slash2" then return end
  373. humanoid.WalkSpeed = 10
  374. end
  375. end)
  376.  
  377. slash1 = true
  378. slash2 = false
  379.  
  380. punchsound = Instance.new("Sound", head)
  381. punchsound.SoundId = "rbxassetid://138285836"
  382. punchsound.Volume = 1
  383. slashsound = Instance.new("Sound", head)
  384. slashsound.SoundId = "rbxasset://sounds/swordslash.mp3"
  385. slashsound.Volume = 1
  386. icebreak = Instance.new("Sound")
  387. icebreak.SoundId = "rbxassetid://138122923"
  388. icebreak.Volume = .75
  389. chargesound = Instance.new("Sound", head)
  390. chargesound.Volume = 1
  391. chargesound.SoundId = "rbxassetid://2101137"
  392. freezes = Instance.new("Sound")
  393. freezes.SoundId = "rbxassetid://2801263"
  394. freezes.Volume = 1
  395. mouse.Button1Down:connect(function()
  396. if slash1 and action == "None" then
  397. slashsound:play()
  398. action = "Slash1"
  399. slash1 = false
  400. slash2 = true
  401. return
  402. elseif slash2 and action == "None" then
  403. slashsound:play()
  404. action = "Slash2"
  405. slash1 = true
  406. slash2 = false
  407. return
  408. end
  409.  
  410.  
  411. end)
  412.  
  413. humanoid.Jumping:connect(function()
  414. action = "Jumping"
  415. end)
  416.  
  417. local controllerService = game:GetService("ControllerService")
  418. local controller = controllerService:GetChildren()[1]
  419.  
  420. do
  421. local trail = {}
  422. local obj = obj16
  423. for i = 1, 8 do
  424. local p = Instance.new("Part")
  425. p.BrickColor = obj.BrickColor
  426. p.formFactor = "Custom"
  427. p.Size = Vector3.new(1,1,1)
  428. p.Locked = true
  429. p.Anchored = true
  430. p.CanCollide = false
  431. local mesh = Instance.new("CylinderMesh", p)
  432. mesh.Name = "Mesh"
  433. table.insert(trail,{p,0})
  434. end
  435. local lastpos = obj.Position
  436. local updatethis = 0
  437. local dontdothis = false
  438. game:service'RunService'.Stepped:connect(function()
  439. if STOPtrail == false then
  440. do
  441. local effect = Instance.new("Part", char)
  442. effect.CanCollide = false
  443. effect.FormFactor = 'Custom'
  444. effect.Size = Vector3.new(.2,.2,.2)
  445. effect.Transparency = .1
  446. effect.Anchored = true
  447. effect.CFrame = obj2.CFrame * CFrame.new(math.random(-1,1)/2, -math.random(-2,4), math.random(-1,1)/2) * CFrame.Angles(math.random(1,4), math.random(1,4), math.random(1,4))
  448. effect.BrickColor = obj16.BrickColor
  449. local effectmesh = Instance.new("BlockMesh", effect)
  450. effectmesh.Scale = Vector3.new(.5, .5, .5)
  451. coroutine.wrap(function()
  452. while wait() and effect and effect.Transparency <= 1 do
  453. effectmesh.Scale = effectmesh.Scale + Vector3.new(.25, .25, .25)
  454. effect.Transparency = effect.Transparency + .1
  455. end
  456. effect:Destroy()
  457. end)()
  458. end
  459. updatethis = ((updatethis) % 8) + 1
  460. local dstnc = (obj.Position - lastpos).magnitude
  461. trail[updatethis][1].Mesh.Scale = Vector3.new(.2,dstnc,.2)
  462. trail[updatethis][1].Parent = obj.Parent
  463. trail[updatethis][1].CFrame = CFrame.new((obj.Position + lastpos)/2,obj.Position) * CFrame.Angles(math.pi/2, 0, 0)
  464. trail[updatethis][2] = 0
  465. for i,v in pairs(trail) do
  466. v[2] = v[2] + .15
  467. v[1].Transparency = v[2]
  468. end
  469. lastpos = obj.Position
  470. else
  471. for i,v in pairs(trail) do
  472. v[2] = v[2] + 1
  473. v[1].Transparency = v[2]
  474. end
  475. end
  476. lastpos = obj.Position
  477. end)
  478. end
  479.  
  480.  
  481. while wait() do
  482. angle = (angle % 100) + anglespeed/10
  483. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  484. local rscf = rsc0
  485. local lscf = lsc0
  486. local rlcf = rlc0
  487. local llcf = llc0
  488. local rjcf = CFrame.new()
  489. local ncf = neckc0
  490. local hndlcf = swordc0
  491. local ray = Ray.new(rootpart.Position, Vector3.new(0, -5.1, 0))
  492. local hitz, enz = workspace:FindPartOnRay(ray, char)
  493. if not hitz and torso.Velocity.y <= -0.5 then
  494. if action == "None" then
  495. speed = 0.3
  496. anglespeed = 1/2
  497. rjcf = rootc0 * CFrame.Angles(math.pi/18, 0, 0)
  498. rscf = rsc0 * CFrame.Angles(-math.pi/.8, 0, 0)
  499. lscf = lsc0 * CFrame.Angles(-math.pi/.8, 0, 0)
  500. rlcf = rlc0 * CFrame.new(0, .4, -.3) * CFrame.Angles(-math.pi/20, 0, math.rad(5))
  501. llcf = llc0 * CFrame.new(0, .4, -.3) * CFrame.Angles(-math.pi/20, 0, -math.rad(5))
  502. end
  503. elseif action == "Jumping" then
  504. for waiting = 0, 10 do
  505. rjcf = rootc0 * CFrame.Angles(-math.pi/18, 0, 0)
  506. rscf = rsc0 * CFrame.Angles(-math.pi/10, 0, 0)
  507. lscf = lsc0 * CFrame.Angles(-math.pi/10, 0, 0)
  508. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
  509. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  510. hndlcf = swordc0
  511. rm.C0 = clerp(rm.C0,rscf,speed)
  512. lm.C0 = clerp(lm.C0,lscf,speed)
  513. rj.C0 = clerp(rj.C0,rjcf,speed)
  514. neck.C0 = clerp(neck.C0,ncf,speed)
  515. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  516. llegm.C0 = clerp(llegm.C0,llcf,speed)
  517. wld.C0 = clerp(wld.C0,hndlcf,speed)
  518. wait()
  519. end
  520. action = "None"
  521. elseif action == "PowerSlash" then
  522. speed = .3
  523. anglespeed = 0
  524. for slash1 = 0, 40 do
  525. angle = (angle % 100) + anglespeed/10
  526. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  527. ncf = neckc0 * CFrame.Angles(math.pi*.25, 0, 0)
  528. rjcf = rootc0
  529. rscf = rsc0 * CFrame.Angles(math.pi/1.25, 0, 0)
  530. lscf = lsc0
  531. rlcf = rlc0 * CFrame.Angles(0, 0, math.rad(5.5))
  532. llcf = llc0 * CFrame.Angles(0, 0, -math.rad(5.5))
  533. hndlcf = swordc0 * CFrame.Angles(math.pi*.25, 0, 0)
  534. if slash1 >= 10 then
  535. local effect = Instance.new("Part", char)
  536. effect.CanCollide = false
  537. effect.FormFactor = 'Custom'
  538. effect.Size = Vector3.new(.25,.25,.25)
  539. effect.Transparency = .1
  540. effect.Anchored = true
  541. effect.CFrame = obj2.CFrame * CFrame.new(math.random(-1,1), math.random(-1,5), math.random(-1,1)) * CFrame.Angles(math.random(1,4), math.random(1,4), math.random(1,4))
  542. effect.BrickColor = BrickColor.new"Bright blue"
  543. local effectmesh = Instance.new("BlockMesh", effect)
  544. coroutine.wrap(function()
  545. if not chargesound.IsPlaying then chargesound:play() end
  546. while wait() and effect and effect.Transparency <= 1 do
  547. effectmesh.Scale = effectmesh.Scale + Vector3.new(.55, .55, .55)
  548. effect.Transparency = effect.Transparency + .1
  549. end
  550. effect:Destroy()
  551. end)()
  552. end
  553. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  554. anglespeed = 5
  555. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, 0, math.rad(5))
  556. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, 0, -math.rad(5))
  557. end
  558. rm.C0 = clerp(rm.C0,rscf,speed)
  559. lm.C0 = clerp(lm.C0,lscf,speed)
  560. rj.C0 = clerp(rj.C0,rjcf,speed)
  561. neck.C0 = clerp(neck.C0,ncf,speed)
  562. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  563. llegm.C0 = clerp(llegm.C0,llcf,speed)
  564. wld.C0 = clerp(wld.C0,hndlcf,speed)
  565. wait()
  566. end
  567. for slash2 = 0, 20 do
  568. angle = (angle % 100) + anglespeed/10
  569. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  570. ncf = neckc0
  571. rjcf = rootc0
  572. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, math.pi/2.5)
  573. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, -math.pi/2.5)
  574. rlcf = rlc0 * CFrame.Angles(0, 0, math.rad(5.5))
  575. llcf = llc0 * CFrame.Angles(0, 0, -math.rad(5.5))
  576. hndlcf = swordc0 * CFrame.Angles(-math.pi/2, 0, 0)
  577. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  578. anglespeed = 5
  579. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, 0, math.rad(5.5))
  580. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, 0, -math.rad(5.5))
  581. end
  582. rm.C0 = clerp(rm.C0,rscf,speed)
  583. lm.C0 = clerp(lm.C0,lscf,speed)
  584. rj.C0 = clerp(rj.C0,rjcf,speed)
  585. neck.C0 = clerp(neck.C0,ncf,speed)
  586. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  587. llegm.C0 = clerp(llegm.C0,llcf,speed)
  588. wld.C0 = clerp(wld.C0,hndlcf,speed)
  589. wait()
  590. end
  591. for slash3 = 0, 10 do
  592. angle = (angle % 100) + anglespeed/10
  593. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  594. ncf = neckc0
  595. rjcf = rootc0
  596. rscf = rsc0 * CFrame.Angles(math.pi/2, 0, -math.pi/2.5)
  597. lscf = lsc0 * CFrame.Angles(math.pi/2, 0, math.pi/2.5)
  598. rlcf = rlc0 * CFrame.Angles(0, 0, math.rad(5.5))
  599. llcf = llc0 * CFrame.Angles(0, 0, -math.rad(5.5))
  600. hndlcf = swordc0 * CFrame.Angles(-math.pi/2, 0, 0)
  601. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  602. anglespeed = 5
  603. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, 0, math.rad(5.5))
  604. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, 0, -math.rad(5.5))
  605. end
  606. rm.C0 = clerp(rm.C0,rscf,speed)
  607. lm.C0 = clerp(lm.C0,lscf,speed)
  608. rj.C0 = clerp(rj.C0,rjcf,speed)
  609. neck.C0 = clerp(neck.C0,ncf,speed)
  610. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  611. llegm.C0 = clerp(llegm.C0,llcf,speed)
  612. wld.C0 = clerp(wld.C0,hndlcf,speed)
  613. wait()
  614. end
  615. coroutine.wrap(function()
  616. chargesound:stop()
  617. local circle = Instance.new("Part", char)
  618. circle.Anchored = true
  619. circle.FormFactor = 'Custom'
  620. circle.BrickColor = BrickColor.new'Bright blue'
  621. circle.Size = Vector3.new(3, .2, 3)
  622. circle.Transparency = .45
  623. circle.CFrame = torso.CFrame * CFrame.new(0, -3, 0)
  624. game:service'Debris':AddItem(circle, 3)
  625. Instance.new("CylinderMesh", circle)
  626. for i = 1, 5 do
  627. circle.Mesh.Scale = circle.Mesh.Scale + Vector3.new(1+i, 0, 1+i)
  628. wait()
  629. end
  630. for angle = 1, 360, 5 do
  631. local p = Instance.new('Part', circle)
  632. p.Size = Vector3.new(4, 8, 4)
  633. p.BrickColor = BrickColor.new("Bright blue")
  634. p.Anchored = true
  635. p.CFrame = circle.CFrame
  636. * CFrame.new(0, -5, 0)
  637. * CFrame.Angles(0, math.rad(angle), 0)
  638. * CFrame.new(0, 0, 30)
  639. * CFrame.Angles(math.random(-1,1)/2, 0, math.random(-1,1)/2)
  640. Instance.new("SpecialMesh", p).MeshId = "rbxassetid://1033714"
  641. p.Mesh.Scale = Vector3.new(7,40,7)
  642. end
  643. for i,v in pairs(workspace:children()) do
  644. coroutine.wrap(function()
  645. if v and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - circle.Position).magnitude <= 29 then
  646. v:findFirstChild("Torso").Anchored = true
  647. local freezesound = freezes:clone()
  648. freezesound.Parent = v:findFirstChild'Torso'
  649. freezesound:play()
  650. for i = 1, 5 do
  651. coroutine.wrap(function()
  652. local freeze = Instance.new("Part", workspace)
  653. freeze.Anchored = true
  654. freeze.Size = Vector3.new(4.5,4.1,4.9)
  655. freeze.CFrame = v:findFirstChild'Torso'.CFrame * CFrame.new(math.random(-2, 2), -math.random() - 2.5, math.random(-2, 2)) * CFrame.Angles(math.random(-2, 2),math.random(-2, 2),math.random(-2, 2))
  656. freeze.CanCollide = false
  657. freeze.TopSurface = 0
  658. freeze.BottomSurface = 0
  659. freeze.Transparency = .5
  660. freeze.BrickColor = BrickColor.new'Bright blue'
  661. wait(3)
  662. freeze.Anchored = false
  663. freeze:breakJoints()
  664. freeze:breakJoints()
  665. freeze:breakJoints()
  666. freeze:breakJoints()
  667. game:service'Debris':AddItem(freeze, 5)
  668. end)()
  669. end
  670. v:findFirstChild("Humanoid"):TakeDamage(30.9)
  671. wait(3)
  672. local icebreaksound = icebreak:clone()
  673. icebreaksound.Parent = v:findFirstChild'Torso'
  674. icebreaksound:play()
  675. v:findFirstChild("Torso").Anchored = false
  676. end
  677. end)()
  678. end
  679. end)()
  680. action = 'None'
  681. elseif action == "Slash1" then
  682. STOPtrail = false
  683. speed = 0.3
  684. anglespeed = 0
  685. for slash1 = 0, 12 do
  686. angle = (angle % 100) + anglespeed/10
  687. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  688. ncf = neckc0 * CFrame.Angles(0, -math.rad(45), 0)
  689. rjcf = rootc0 * CFrame.new(0, 0, -.6) * CFrame.Angles(0, math.rad(45), 0)
  690. rscf = rsc0 * CFrame.new(-.35, 0, -.5) * CFrame.Angles(math.rad(165), 0, -math.rad(65))
  691. lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.rad(165), 0, math.rad(25))
  692. rlcf = rlc0 * CFrame.Angles(math.rad(12.5), -math.rad(45), math.rad(10.5))
  693. llcf = llc0 * CFrame.Angles(-math.rad(12.5), -math.rad(45), -math.rad(10.5))
  694. hndlcf = swordc0 * CFrame.Angles(math.pi/2, math.pi, -math.rad(105))
  695. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  696. anglespeed = 5
  697. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, -math.rad(45), math.rad(10.5))
  698. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, -math.rad(45), -math.rad(10.5))
  699. end
  700. rm.C0 = clerp(rm.C0,rscf,speed)
  701. lm.C0 = clerp(lm.C0,lscf,speed)
  702. rj.C0 = clerp(rj.C0,rjcf,speed)
  703. neck.C0 = clerp(neck.C0,ncf,speed)
  704. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  705. llegm.C0 = clerp(llegm.C0,llcf,speed)
  706. wld.C0 = clerp(wld.C0,hndlcf,speed)
  707. wait()
  708. end
  709. coroutine.wrap(function()
  710. for slash2 = 0, 19 do
  711. angle = (angle % 100) + anglespeed/10
  712. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  713. ncf = neckc0 * CFrame.Angles(-math.pi/15, -math.rad(45), 0)
  714. rjcf = rootc0 * CFrame.new(0, 0, -.6) * CFrame.Angles(0, math.rad(45), 0)
  715. rscf = rsc0 * CFrame.new(-.35, 0, -.5) * CFrame.Angles(math.rad(45), 0, -math.rad(65))
  716. lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.rad(45), 0, math.rad(25))
  717. rlcf = rlc0 * CFrame.Angles(math.rad(12.5), -math.rad(45), math.rad(10.5))
  718. llcf = llc0 * CFrame.Angles(-math.rad(12.5), -math.rad(45), -math.rad(10.5))
  719. hndlcf = swordc0 * CFrame.Angles(math.pi/2, math.pi, -math.rad(105))
  720. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  721. anglespeed = 5
  722. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, -math.rad(45), math.rad(10.5))
  723. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, -math.rad(45), -math.rad(10.5))
  724. end
  725. rm.C0 = clerp(rm.C0,rscf,speed)
  726. lm.C0 = clerp(lm.C0,lscf,speed)
  727. rj.C0 = clerp(rj.C0,rjcf,speed)
  728. neck.C0 = clerp(neck.C0,ncf,speed)
  729. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  730. llegm.C0 = clerp(llegm.C0,llcf,speed)
  731. wld.C0 = clerp(wld.C0,hndlcf,speed)
  732. wait()
  733. end
  734. STOPtrail = true
  735. end)()
  736. wait(.05)
  737. for i,v in pairs(workspace:children()) do
  738. if v and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - obj2.Position).magnitude <= 5 then
  739. coroutine.wrap(function()
  740. v:findFirstChild("Humanoid"):TakeDamage(20.25)
  741. punchsound:play()
  742. v:findFirstChild'Humanoid'.PlatformStand = true
  743. local gyro = Instance.new("BodyGyro", v:findFirstChild'Torso')
  744. gyro.maxTorque = Vector3.new(1/0,1/0,1/0)
  745. gyro.cframe = torso.CFrame * CFrame.Angles(math.pi/2, 0, 0)
  746. game:service'Debris':AddItem(gyro, .1)
  747. wait(.75)
  748. v:findFirstChild'Humanoid'.PlatformStand = false
  749. end)()
  750. end
  751. end
  752. wait(.15)
  753. for i,v in pairs(workspace:children()) do
  754. if v and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - obj2.Position).magnitude <= 5 then
  755. v:findFirstChild("Humanoid"):TakeDamage(20.25)
  756. if not punchsound.IsPlaying then
  757. coroutine.wrap(function()
  758. punchsound:play()
  759. v:findFirstChild'Humanoid'.PlatformStand = true
  760. local gyro = Instance.new("BodyGyro", v:findFirstChild'Torso')
  761. gyro.maxTorque = Vector3.new(1/0,1/0,1/0)
  762. gyro.cframe = torso.CFrame * CFrame.Angles(math.pi/2, 0, 0)
  763. game:service'Debris':AddItem(gyro, .1)
  764. wait(.75)
  765. v:findFirstChild'Humanoid'.PlatformStand = false
  766. end)()
  767. end
  768. end
  769. end
  770. wait(.2)
  771. punchsound:stop()
  772. humanoid.WalkSpeed = 10
  773. controller.Parent = controllerService
  774. action="None"
  775. elseif action == "Slash2" then
  776. STOPtrail = false
  777. humanoid.WalkSpeed = 10
  778. speed = 0.3
  779. anglespeed = 0
  780. for slash1 = 0, 12 do
  781. angle = (angle % 100) + anglespeed/10
  782. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  783. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  784. rjcf = rootc0 * CFrame.Angles(0, -math.rad(15), 0)
  785. rscf = rsc0 * CFrame.Angles(math.pi/2.2, 0, math.pi/2.5)
  786. lscf = lsc0 * CFrame.Angles(math.pi/14, 0, math.pi/24)
  787. rlcf = rlc0 * CFrame.Angles(-math.rad(2.5), 0, math.rad(5))
  788. llcf = llc0 * CFrame.Angles(math.rad(4.5), 0, -math.rad(5))
  789. hndlcf = swordc0 * CFrame.Angles(-math.pi/8, -math.pi/2, 0)
  790. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  791. anglespeed = 5
  792. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, 0, math.rad(.5))
  793. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, 0, -math.rad(.5))
  794. end
  795. rm.C0 = clerp(rm.C0,rscf,speed)
  796. lm.C0 = clerp(lm.C0,lscf,speed)
  797. rj.C0 = clerp(rj.C0,rjcf,speed)
  798. neck.C0 = clerp(neck.C0,ncf,speed)
  799. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  800. llegm.C0 = clerp(llegm.C0,llcf,speed)
  801. wld.C0 = clerp(wld.C0,hndlcf,speed)
  802. wait()
  803. end
  804. coroutine.wrap(function()
  805. for slash2 = 0, 19 do
  806. angle = (angle % 100) + anglespeed/10
  807. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  808. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  809. rjcf = rootc0 * CFrame.new(0, 0, -.3) * CFrame.Angles(0, math.rad(15), 0)
  810. rscf = rsc0 * CFrame.Angles(math.pi/2.2, 0, -math.pi/4)
  811. lscf = lsc0 * CFrame.Angles(-math.rad(30), 0, -math.pi/19)
  812. rlcf = rlc0 * CFrame.Angles(math.rad(10.5), 0, math.rad(5))
  813. llcf = llc0 * CFrame.Angles(-math.rad(.5), 0, -math.rad(5))
  814. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 2 then
  815. anglespeed = 5
  816. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.55, 0, math.rad(.5))
  817. llcf = llc0 * CFrame.Angles(math.sin(angle)*.55, 0, -math.rad(.5))
  818. end
  819. hndlcf = swordc0 * CFrame.Angles(-math.pi/2, math.pi/2, math.pi/16)
  820. rm.C0 = clerp(rm.C0,rscf,speed)
  821. lm.C0 = clerp(lm.C0,lscf,speed)
  822. rj.C0 = clerp(rj.C0,rjcf,speed)
  823. neck.C0 = clerp(neck.C0,ncf,speed)
  824. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  825. llegm.C0 = clerp(llegm.C0,llcf,speed)
  826. wld.C0 = clerp(wld.C0,hndlcf,speed)
  827. wait()
  828. end
  829. STOPtrail = true
  830. end)()
  831. wait(.05)
  832. for i,v in pairs(workspace:children()) do
  833. if v and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - obj2.Position).magnitude <= 5 then
  834. coroutine.wrap(function()
  835. v:findFirstChild("Humanoid"):TakeDamage(10.25)
  836. punchsound:play()
  837. v:findFirstChild'Humanoid'.PlatformStand = true
  838. local gyro = Instance.new("BodyGyro", v:findFirstChild'Torso')
  839. gyro.maxTorque = Vector3.new(1/0,1/0,1/0)
  840. gyro.cframe = torso.CFrame * CFrame.Angles(math.pi/2, 0, 0)
  841. game:service'Debris':AddItem(gyro, .05)
  842. wait(.75)
  843. v:findFirstChild'Humanoid'.PlatformStand = false
  844. end)()
  845. end
  846. end
  847. wait(.15)
  848. for i,v in pairs(workspace:children()) do
  849. if v and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - obj2.Position).magnitude <= 5 then
  850. v:findFirstChild("Humanoid"):TakeDamage(30.25)
  851. coroutine.wrap(function()
  852. if not punchsound.IsPlaying then
  853. punchsound:play()
  854. v:findFirstChild'Humanoid'.PlatformStand = true
  855. local gyro = Instance.new("BodyGyro", v:findFirstChild'Torso')
  856. gyro.maxTorque = Vector3.new(1/0,1/0,1/0)
  857. gyro.cframe = torso.CFrame * CFrame.Angles(math.pi/2, 0, 0)
  858. game:service'Debris':AddItem(gyro, .05)
  859. wait(.75)
  860. v:findFirstChild'Humanoid'.PlatformStand = false
  861. end
  862. end)()
  863. end
  864. end
  865. wait(.4)
  866. punchsound:stop()
  867. action="None"
  868. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  869. if action == "None" then
  870. speed = 0.3
  871. anglespeed = 1/2.5
  872. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.075, 0, 0)
  873. rjcf = rootc0
  874. rscf = rsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, -math.rad(15), math.rad(5))
  875. lscf = lsc0 * CFrame.Angles(-math.pi/24+math.sin(-angle)*0.05, 0, -math.rad(5))
  876. rlcf = rlc0 * CFrame.Angles(-math.rad(2.5), 0, math.rad(2.5))
  877. llcf = llc0 * CFrame.Angles(math.rad(4.5), 0, -math.rad(2.5))
  878. hndlcf = swordc0 * CFrame.Angles(math.pi/14, 0, 0)
  879. end
  880. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 16 then
  881. if action == "None" then
  882. speed = 0.3
  883. anglespeed = 3
  884. ncf = neckc0 * CFrame.Angles(0, 0, 0)
  885. rjcf = rootc0
  886. rscf = rsc0 * CFrame.Angles(-math.pi/24+math.sin(angle)*.05, -math.rad(15), math.rad(5))
  887. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*.65, 0, -math.rad(5))
  888. rlcf = rlc0 * CFrame.new(0, .075 + -math.cos(-angle)*.075, -.05+math.sin(angle)*0.1) * CFrame.Angles(math.sin(-angle)*.45, 0, math.rad(.5))
  889. llcf = llc0 * CFrame.new(0, .075 - -math.cos(angle)*.075, -.05-math.sin(angle)*0.1) * CFrame.Angles(math.sin(angle)*.45, 0, -math.rad(.5))
  890. hndlcf = swordc0 * CFrame.Angles(math.pi/14, 0, 0)
  891. end
  892. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 16 then
  893. if action == "None" then
  894. speed = 0.3
  895. anglespeed = 4
  896. ncf = neckc0 * CFrame.Angles(0, -math.sin(angle)*.1, 0)
  897. rscf = rsc0 * CFrame.Angles(-math.pi/3.5,0,0)
  898. lscf = lsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/24+math.sin(-angle)*1.1, 0, math.abs(mvmnt)*0.02)
  899. rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.abs(math.sin(angle))*0.055 + -math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045)
  900. rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  901. llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  902. hndlcf = swordc0 * CFrame.Angles(-math.pi/2, 0, 0)
  903. end
  904. end
  905. rm.C0 = clerp(rm.C0,rscf,speed)
  906. lm.C0 = clerp(lm.C0,lscf,speed)
  907. rj.C0 = clerp(rj.C0,rjcf,speed)
  908. neck.C0 = clerp(neck.C0,ncf,speed)
  909. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  910. llegm.C0 = clerp(llegm.C0,llcf,speed)
  911. wld.C0 = clerp(wld.C0,hndlcf,speed)
  912. end
Add Comment
Please, Sign In to add comment