Advertisement
tripono

#4

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