Advertisement
EdgyHedgehog

???

Nov 14th, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.34 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. --required first c/require(652676518)
  84.  
  85. local Player = owner
  86. repeat wait() until Player.Character ~= nil
  87.  
  88. -- todo:
  89.  
  90. local plrs = owner
  91. local plr = owner
  92. local char = plr.Character
  93. local bp = plr.Backpack
  94. local hum = char.Humanoid
  95. local T = char.Torso
  96. local Character = char
  97. local Humanoid = hum
  98. local torso = char.Torso
  99. local Char = Player.Character
  100. local char = Char
  101. local Backpack = Player.Backpack
  102. local PlayerGui = Player.PlayerGui
  103. local Camera = workspace.CurrentCamera
  104. local Humanoid = Char:WaitForChild("Humanoid")
  105. local Torso = Char:WaitForChild("Torso")
  106. local Head = Char:WaitForChild("Head")
  107. local ra = Char:WaitForChild("Right Arm")
  108. local la = Char:WaitForChild("Left Arm")
  109. local rl = Char:WaitForChild("Right Leg")
  110. local ll = Char:WaitForChild("Left Leg")
  111. local rs = Torso:WaitForChild("Right Shoulder")
  112. local ls = Torso:WaitForChild("Left Shoulder")
  113. local rh = Torso:WaitForChild("Right Hip")
  114. local lh = Torso:WaitForChild("Left Hip")
  115. local neck = Torso:WaitForChild("Neck")
  116. local rootpart = Char:WaitForChild("HumanoidRootPart")
  117. local rj = rootpart:WaitForChild("RootJoint")
  118. local anim = Char:WaitForChild("Animate")
  119. local RunService = game:GetService("RunService")
  120. local UIA = game:GetService("UserInputService")
  121. local CF = CFrame.new
  122. local CA = CFrame.Angles
  123. local FEA = CFrame.fromEulerAnglesXYZ
  124. local FAA = CFrame.fromAxisAngle
  125. local V3 = Vector3.new
  126. local CN = Color3.new
  127. local Ice = Instance.new
  128. local BC = BrickColor.new
  129. local UD2 = UDim2.new
  130. local C3 = Color3.new
  131. local MR = math.rad
  132. local MP = math.pi
  133. local MD = math.deg
  134. local MH = math.huge
  135. local MS = math.sin
  136. local MC = math.cos
  137. local MT = math.tan
  138. local MAS = math.asin
  139. local MAC = math.acos
  140. local MAT = math.atan
  141. local components = CF().components
  142. local State = "Calm"
  143. local Slash = false
  144. local Sheathed = false
  145. local combocounter = 0
  146.  
  147. humanoid = char:findFirstChild("Humanoid")
  148. hum = humanoid
  149. torso = char:findFirstChild("Torso")
  150. head = char.Head
  151. ra = char:findFirstChild("Right Arm")
  152. ra.CanCollide = true
  153. la = char:findFirstChild("Left Arm")
  154. la.CanCollide = true
  155. rl = char:findFirstChild("Right Leg")
  156. rl.CanCollide = true
  157. ll = char:findFirstChild("Left Leg")
  158. ll.CanCollide = true
  159. rs = torso:findFirstChild("Right Shoulder")
  160. ls = torso:findFirstChild("Left Shoulder")
  161. rh = torso:findFirstChild("Right Hip")
  162. lh = torso:findFirstChild("Left Hip")
  163. neck = torso:findFirstChild("Neck")
  164. rootpart = char:findFirstChild("HumanoidRootPart")
  165. rj = rootpart:findFirstChild("RootJoint")
  166. anim = char:findFirstChild("Animate")
  167. camera = workspace.CurrentCamera
  168. plr.CameraMaxZoomDistance = math.huge
  169. pcall(function()anim:Destroy()end)
  170. pcall(function()char["Health"].Disabled = true end)
  171. pcall(function()humanoid.Animator:Destroy()end)
  172. local rjo = rootpart.RootJoint:Clone()
  173. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  174. local wld = Instance.new("Weld", wp1)
  175. wld.Part0 = wp0
  176. wld.Part1 = wp1
  177. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  178. return wld
  179. end
  180. for k,v in pairs(char:children'') do
  181. if v:isA('BasePart') then
  182. v.BrickColor = BrickColor.new('Really black')
  183. end
  184. end
  185. pcall(function()
  186. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  187. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  188. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  189. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  190. char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
  191. char["Body Colors"].RightLegColor = BrickColor.new("Really black")
  192. end)
  193. local mult = 1
  194.  
  195. la.Size = la.Size * mult
  196. ra.Size = ra.Size * mult
  197. ll.Size = ll.Size * mult
  198. rl.Size = rl.Size * mult
  199. torso.Size = torso.Size * mult
  200. head.Size = head.Size * mult
  201. rootpart.Size = rootpart.Size * mult
  202.  
  203. local lm = newWeld(torso, la, -1.7*mult, 0.5*mult, 0)
  204. lm.C1 = CFrame.new(0, 0.5*mult, 0)
  205. local rm = newWeld(torso, ra, 1.7*mult, 0.5*mult, 0)
  206. rm.C1 = CFrame.new(0, 0.5*mult, 0)
  207. local neck = newWeld(torso, head, 0, mult, 0)
  208. local llegm = newWeld(torso, ll, -0.5*mult, -1*mult, 0)
  209. llegm.C1 = CFrame.new(0, mult, 0)
  210. local rlegm = newWeld(torso, rl, 0.5*mult, -1*mult, 0)
  211. rlegm.C1 = CFrame.new(0, mult, 0)
  212. local rj = rjo:Clone()
  213. rj.Part0 = rootpart
  214. rj.Part1 = torso
  215. rj.Parent = rootpart
  216. neck.C1 = CFrame.new(0, -(mult/2), 0)
  217. neckc0 = neck.C0
  218. rsc0 = rm.C0
  219. lsc0 = lm.C0
  220. llc0 = llegm.C0
  221. rlc0 = rlegm.C0
  222. rootc0 = rj.C0
  223. rootc1 = rj.C1
  224. wait()
  225.  
  226.  
  227. function Create(Instanc,prop)
  228. local p=Instance.new(Instanc)
  229. for i,v in pairs(prop) do
  230. p[i]=v
  231. end
  232. return p
  233. end
  234.  
  235. function rwait(num)
  236. if num==0 or num==nil then
  237. game:service'RunService'.Stepped:wait(0)
  238. else
  239. for i=0,num do
  240. game:service'RunService'.Stepped:wait(0)
  241. end
  242. end
  243. return true
  244. end
  245.  
  246.  
  247. local pony = Instance.new('PointLight', Torso)
  248. pony.Name = 'LePontyPontz'
  249. pony.Brightness = 1
  250. pony.Color = Color3.new(0,255/255, 0)
  251.  
  252. coroutine.wrap(function()
  253. game:service'RunService'.Stepped:connect(function()
  254. pony.Range = 5+math.abs(math.sin(tick()/2))*6
  255. end)
  256. end)()
  257.  
  258. local function setupPart(part)
  259. part.Anchored = true
  260. part.FormFactor = 'Custom'
  261. part.CanCollide = false
  262. part.BrickColor = BrickColor.new("Sea green")
  263. part.Material = "Neon"
  264. part.TopSurface = 'SmoothNoOutlines'
  265. part.BottomSurface = 'SmoothNoOutlines'
  266. part.FrontSurface = 'SmoothNoOutlines'
  267. part.BackSurface = 'SmoothNoOutlines'
  268. part.LeftSurface = 'SmoothNoOutlines'
  269. part.RightSurface = 'SmoothNoOutlines'
  270. end
  271.  
  272. function CFrameFromTopBack(at, top, back)
  273. local right = top:Cross(back)
  274. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  275. end
  276.  
  277. function CreateTriangle(parent, a, b, c)
  278. local this = {}
  279. local mPart1 = Instance.new('WedgePart')
  280. setupPart(mPart1)
  281. local mPart2 = Instance.new('WedgePart')
  282. setupPart(mPart2)
  283. function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]]
  284. local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  285. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  286. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  287. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  288. if edg1 < edg2 then
  289. if edg1 < edg3 then
  290. -- nothing to change
  291. else
  292. a, b, c = c, a, b
  293. ab, bc, ca = ca, ab, bc
  294. abm = cam
  295. end
  296. else
  297. if edg2 < edg3 then
  298. a, b, c = b, c, a
  299. ab, bc, ca = bc, ca, ab
  300. abm = bcm
  301. else
  302. a, b, c = c, a, b
  303. ab, bc, ca = ca, ab, bc
  304. abm = cam
  305. end
  306. end
  307.  
  308. local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude
  309. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  310.  
  311. mPart1.Parent = parent
  312. mPart1.Size = Vector3.new(1,1,1)
  313. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  314. local Mesh = Instance.new("SpecialMesh",mPart1)
  315. Mesh.MeshType = "Wedge"
  316. Mesh.Scale = Vector3.new(0.005, width, len1)
  317.  
  318. mPart2.Parent = parent
  319. mPart2.Size = Vector3.new(1,1,1)
  320. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  321. local Mesh = Instance.new("SpecialMesh",mPart2)
  322. Mesh.MeshType = "Wedge"
  323. Mesh.Scale = Vector3.new(0.005, width, len2)
  324. end
  325.  
  326. function this:SetProperty(prop, value)
  327. mPart1[prop] = value
  328. mPart2[prop] = value
  329. end
  330.  
  331. function this:GetProperty(prop)
  332. return mPart1[prop]
  333. end
  334.  
  335. this:Set(a, b, c)
  336. function this:Destroy()
  337. mPart1:Destroy()
  338. mPart2:Destroy()
  339. end
  340. return this
  341. end
  342.  
  343. local ttt
  344. local lastdps = tick()
  345. local ohp = hum.Health
  346. local berserk = false
  347. hum.Changed:connect(function(val)
  348. if val == 'Health_XML' then
  349. if hum.Health < ohp then
  350. lastdps = tick()
  351. end
  352. ohp = hum.Health
  353. if not berserk and hum.Health<(hum.MaxHealth*.15) then
  354. ttt = true
  355. hum.WalkSpeed = 0
  356. hum.MaxHealth = 1/0
  357. otheranims = true
  358.  
  359. local rs = game:service'RunService'.Stepped
  360.  
  361. GW = function()
  362. local wave = Instance.new("Part", Torso)
  363. wave.BrickColor = BrickColor.new("Really black")
  364. wave.Anchored = true
  365. wave.CanCollide = false
  366. wave.Locked = true
  367. wave.Size = Vector3.new(1, 1, 1)
  368. wave.TopSurface = "Smooth"
  369. wave.BottomSurface = "Smooth"
  370. wave.Material="Neon"
  371. wave.Transparency = 0.35
  372. wave.CFrame = Torso.CFrame
  373. wm = Instance.new("SpecialMesh", wave)
  374. wm.MeshType = "Sphere"
  375. wm.Scale = Vector3.new(1,1,1)
  376. coroutine.wrap(function()
  377. for i = 0, 15, 1 do
  378. wave.Size = wave.Size + Vector3.new(1, 1, 1)
  379. wave.CFrame = Torso.CFrame
  380. wave.Transparency = i/14
  381. wait()
  382. end
  383. wait()
  384. wave:Destroy()
  385. end)()
  386. end
  387.  
  388. Spawn(function()
  389. while ttt do
  390. GW()
  391. wait(math.random(1,4))
  392. end
  393. end)
  394.  
  395. local prtz = {la,Head,Torso}
  396. local pes = {}
  397.  
  398. for i,v in pairs(prtz) do
  399. coroutine.wrap(function()
  400. local dsa = Instance.new('ParticleEmitter', v)
  401. local color1 = Color3.new(0.5,1,0.5)
  402. local color2 = Color3.new(0,85/255,0)
  403. local sequence = ColorSequence.new(color1,color2)
  404. dsa.Color = sequence
  405. dsa.LightEmission = .8
  406. dsa.Texture = "http://www.roblox.com/asset/?id=242102147"
  407. dsa.LockedToPart = true
  408. dsa.EmissionDirection = 'Top'
  409. dsa.Lifetime = NumberRange.new(1)
  410. dsa.VelocitySpread = 10
  411. dsa.Size = NumberSequence.new(1)
  412. table.insert(pes, dsa)
  413. end)()
  414. end
  415.  
  416.  
  417. Mode = 'Kneeling'
  418. berserk = true
  419. wait(2)
  420. hum.MaxHealth = 10000
  421. for i = 500, (10000*.75),15 do
  422. hum.Health = i
  423. game:service'RunService'.Stepped:wait()
  424. end
  425. ttt = false
  426. for q,e in pairs(pes) do game.Destroy(e) end
  427. hum.WalkSpeed = 8
  428. otheranims = false
  429. end
  430. elseif val =='PlatformStand' then
  431. hum.PlatformStand = false
  432. elseif val == "Sit" then
  433. hum.Sit = false
  434. elseif val == "WalkSpeed" then
  435. end
  436. end)
  437. regening = false
  438. lastdps = tick()
  439. function regenHealth()
  440. if regening then return end
  441. if (tick()-lastdps < 25) then return end
  442. regening = true
  443. local s = wait(1)
  444. local health = hum.Health
  445. if health > 0 and health < hum.MaxHealth then
  446. local newHealthDelta = hum.MaxHealth * .03
  447. health = health + newHealthDelta
  448. hum.Health = math.min(health,hum.MaxHealth)
  449. end
  450.  
  451. regening = false
  452. end
  453.  
  454. local LastTrail = nil
  455. local Trails = {}
  456.  
  457.  
  458.  
  459. --SlashDamage = Damage(TrailPart)
  460.  
  461. asd = function(parent,string)
  462. repeat wait() until parent:FindFirstChild(string)
  463. wait()
  464. return parent:FindFirstChild(string)
  465. end
  466.  
  467. local beamy = asd(game.ReplicatedStorage, 'Beamy'):Clone()
  468.  
  469. local Model = asd(game.ReplicatedStorage,'mdl'):Clone()
  470. Model.Parent = Char
  471.  
  472. local shm,swm,shem = Model:WaitForChild'Sheath',Model:WaitForChild'Sword',Model:WaitForChild'Shield'
  473.  
  474. local LAH,RAH,TH = shem:WaitForChild'LeftArmHandle',swm:WaitForChild'RightArmHandle',shm:WaitForChild'TorsoHandle'
  475.  
  476. LAH.Transparency,RAH.Transparency,TH.Transparency = 1,1,1
  477.  
  478. local law = Create("Weld",{Parent=la,Part0=la,Part1=LAH,C0=CFrame.new(0,0,0)})
  479. local raw = Create("Weld",{Parent=ra,Part0=ra,Part1=RAH,C0=CFrame.new(0,0,0)})
  480. local rawc0 = raw.C0
  481. local lawc0 = law.C0
  482. LAH.Anchored,RAH.Anchored,TH.Anchored = false,false,false
  483. local torw = Create("Weld",{Parent=Torso,Part0=Torso,Part1=TH,C0=CFrame.new(0,0,0)})
  484.  
  485. TrailPart = Create("Part",{Parent=Char,Anchored=false,CanCollide=false,Size=V3(0,5,0),Transparency=1})
  486. TrailPartMesh = Create("Snap",{Parent=TrailPart,Part0=RAH,Part1=TrailPart,C0=CFrame.new(0,-1,-4.2)*CFrame.Angles(MR(90),0,0)})
  487.  
  488. local get=game.ReplicatedStorage:FindFirstChild'GoldSuit':Clone()
  489. get.Parent = Char
  490. local torso=get:WaitForChild("Torso") local head=get:WaitForChild("Head") local rightarm=get:WaitForChild("RightArm")
  491. local leftarm=get:WaitForChild("LeftArm") local rightleg=get:WaitForChild("RightLeg") local leftleg=get:WaitForChild("LeftLeg")
  492. Create("Weld",{Parent=torso.Handle,Part0=Torso,Part1=torso.Handle,C0=CFrame.new(0,0,0)})
  493. Create("Weld",{Parent=head.Handle,Part0=Head,Part1=head.Handle,C0=CFrame.new(0,0,0)})
  494. Create("Weld",{Parent=rightarm.Handle,Part0=ra,Part1=rightarm.Handle,C0=CFrame.new(0,0,0)})
  495. Create("Weld",{Parent=leftarm.Handle,Part0=la,Part1=leftarm.Handle,C0=CFrame.new(0,0,0)})
  496. Create("Weld",{Parent=leftleg.Handle,Part0=ll,Part1=leftleg.Handle,C0=CFrame.new(0,0,0)})
  497. Create("Weld",{Parent=rightleg.Handle,Part0=rl,Part1=rightleg.Handle,C0=CFrame.new(0,0,0)})
  498. function recurse(c)
  499. for i,v in pairs(c:children()) do
  500. if v:IsA'BasePart' then
  501. v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
  502. end
  503. recurse(v)
  504. end
  505. end
  506. recurse(get)
  507. recurse(Model)
  508. ra.Transparency=1
  509. la.Transparency=1
  510. ll.Transparency=1
  511. rl.Transparency=1
  512.  
  513. HitDB = {}
  514.  
  515. function Damage(part)
  516. smthn = part.Touched:connect(function(hit)
  517. Human = hit.Parent:findFirstChild("Humanoid")
  518. if Human ~= nil and hit.Parent.Name ~= Player.Name and Slash == true and HitDB[hit.Parent.Humanoid] == nil then
  519. coroutine.wrap(function() --threads so we don't have to wait after each hit for every person hit!
  520. HitDB[hit.Parent.Humanoid] = true
  521. Human.Health = Human.Health-25
  522. local vu = Instance.new("BodyVelocity",hit.Parent.Torso)
  523. vu.P = 500
  524. vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000)
  525. vu.velocity = Head.CFrame.lookVector*10
  526. game:GetService("Debris"):AddItem(vu,0.267)
  527. wait(0.25)
  528. HitDB[hit.Parent.Humanoid] = nil
  529. end)()
  530. end
  531. end)
  532. return smthn
  533. end
  534.  
  535. hum.WalkSpeed = 8
  536. hum.MaxHealth = 10000
  537. hum.Health = 10000
  538.  
  539. function lerp(weld,beglerp,endlerp,speed)
  540. if weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' then
  541. weld.C0 = beglerp:lerp(endlerp,speed)
  542. else
  543. weld.CFrame = beglerp:lerp(endlerp,speed)
  544. end
  545. return (weld.ClassName =='Weld' or weld.ClassName == 'Motor6D' and weld.C0 or weld.CFrame)
  546. end
  547.  
  548. Ragdoll = function(Format, Character, Force)
  549. if Force ~= true then
  550. if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then return false end
  551. if Character:FindFirstChild("Ragdoll") == nil and Format == false then return false end
  552. end
  553. local Head = nil
  554. local Torso = nil
  555. local Humanoid = nil
  556. local Dead = false
  557. for _, Children in pairs(Character:GetChildren()) do
  558. if Children.ClassName == "ForceField" then Children:Remove() end
  559. if Children.Name == "" then Children:Remove() end
  560. if Children.Name == "Head" then Head = Children end
  561. if Children.Name == "Torso" then Torso = Children end
  562. if Children.ClassName == "Humanoid" then Humanoid = Children end
  563. if Children:IsA("Accoutrement") then
  564. if Children:FindFirstChild("Handle") ~= nil then
  565. if math.random(1, 3) == 1 then
  566. coroutine.wrap(function()
  567. Children.Parent = Workspace
  568. wait()
  569. Children.Parent = Character
  570. Children.Handle.CanCollide = true
  571. end)()
  572. else
  573. Children.Parent = Workspace
  574. Children.Handle.CanCollide = true
  575. end
  576. else
  577. Children:Remove()
  578. end
  579. end
  580. end
  581. if Humanoid ~= nil then
  582. if Humanoid.Health <= 0 then
  583. Dead = true
  584. end
  585. end
  586. if Torso ~= nil then
  587. for _, Children2 in pairs(Torso:GetChildren()) do
  588. if Children2:IsA("JointInstance") then
  589. Children2:Remove()
  590. end
  591. end
  592. end
  593. if Head ~= nil and (function()
  594. if Dead == true and math.random(1, 2) == 1 then
  595. return true
  596. else
  597. return false
  598. end
  599. end)() == false then
  600. local Neck = Instance.new("Motor6D")
  601. Neck.Name = "Neck"
  602. Neck.Part0 = Torso
  603. Neck.Part1 = Head
  604. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  605. Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
  606. Neck.MaxVelocity = 0.1
  607. Neck.Parent = Torso
  608. end
  609. if Format == true then
  610. local Ragdoll = Instance.new("IntValue")
  611. Ragdoll.Name = "Ragdoll"
  612. Ragdoll.Parent = Character
  613. if Torso ~= nil then
  614. Torso.Velocity = Torso.Velocity / 1.25
  615. Torso.RotVelocity = (Torso.RotVelocity / 1.25) + Head.CFrame.lookVector*80
  616. if Dead == true then
  617. if Humanoid ~= nil then
  618. local Humanoid2 = Humanoid:Clone()
  619. wait()
  620. Humanoid:Remove()
  621. Humanoid2.Parent = Character
  622. Humanoid = Humanoid2
  623. end
  624. end
  625. local Limb = Character:FindFirstChild("Right Arm")
  626. if Limb ~= nil then
  627. Limb.Velocity = Torso.Velocity
  628. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  629. local Joint = Instance.new("Glue")
  630. Joint.Name = "RightShoulder"
  631. Joint.Part0 = Torso
  632. Joint.Part1 = Limb
  633. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  634. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  635. Joint.Parent = Torso
  636. local Weight = Instance.new("Part")
  637. Weight.Name = ""
  638. Weight.TopSurface = 0
  639. Weight.BottomSurface = 0
  640. Weight.Shape = "Block"
  641. Weight.FormFactor = "Custom"
  642. Weight.Size = Vector3.new(1, 1, 1)
  643. Weight.Transparency = 1
  644. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  645. Weight.Parent = Character
  646. local Weld = Instance.new("Weld")
  647. Weld.Part0 = Limb
  648. Weld.Part1 = Weight
  649. Weld.C0 = CFrame.new(0, -0.5, 0)
  650. Weld.Parent = Limb
  651. end
  652. local Limb = Character:FindFirstChild("Left Arm")
  653. if Limb then
  654. Limb.Velocity = Torso.Velocity
  655. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  656. local Joint = Instance.new("Glue")
  657. Joint.Name = "LeftShoulder"
  658. Joint.Part0 = Torso
  659. Joint.Part1 = Limb
  660. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  661. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  662. Joint.Parent = Torso
  663. local Weight = Instance.new("Part")
  664. Weight.Name = ""
  665. Weight.TopSurface = 0
  666. Weight.BottomSurface = 0
  667. Weight.Shape = "Block"
  668. Weight.FormFactor = "Custom"
  669. Weight.Size = Vector3.new(1, 1, 1)
  670. Weight.Transparency = 1
  671. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  672. Weight.Parent = Character
  673. local Weld = Instance.new("Weld")
  674. Weld.Part0 = Limb
  675. Weld.Part1 = Weight
  676. Weld.C0 = CFrame.new(0, -0.5, 0)
  677. Weld.Parent = Limb
  678. end
  679. local Limb = Character:FindFirstChild("Right Leg")
  680. if Limb then
  681. Limb.Velocity = Torso.Velocity
  682. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  683. local Joint = Instance.new("Glue")
  684. Joint.Name = "RightHip"
  685. Joint.Part0 = Torso
  686. Joint.Part1 = Limb
  687. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  688. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  689. Joint.Parent = Torso
  690. local Weight = Instance.new("Part")
  691. Weight.Name = ""
  692. Weight.TopSurface = 0
  693. Weight.BottomSurface = 0
  694. Weight.Shape = "Block"
  695. Weight.FormFactor = "Custom"
  696. Weight.Size = Vector3.new(1, 1, 1)
  697. Weight.Transparency = 1
  698. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  699. Weight.Parent = Character
  700. local Weld = Instance.new("Weld")
  701. Weld.Part0 = Limb
  702. Weld.Part1 = Weight
  703. Weld.C0 = CFrame.new(0, -0.5, 0)
  704. Weld.Parent = Limb
  705. end
  706. local Limb = Character:FindFirstChild("Left Leg")
  707. if Limb then
  708. Limb.Velocity = Torso.Velocity
  709. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  710. local Joint = Instance.new("Glue")
  711. Joint.Name = "LeftHip"
  712. Joint.Part0 = Torso
  713. Joint.Part1 = Limb
  714. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  715. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  716. Joint.Parent = Torso
  717. local Weight = Instance.new("Part")
  718. Weight.Name = ""
  719. Weight.TopSurface = 0
  720. Weight.BottomSurface = 0
  721. Weight.Shape = "Block"
  722. Weight.FormFactor = "Custom"
  723. Weight.Size = Vector3.new(1, 1, 1)
  724. Weight.Transparency = 1
  725. Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  726. Weight.Parent = Character
  727. local Weld = Instance.new("Weld")
  728. Weld.Part0 = Limb
  729. Weld.Part1 = Weight
  730. Weld.C0 = CFrame.new(0, -0.5, 0)
  731. Weld.Parent = Limb
  732. end
  733. local Weight = Instance.new("Part")
  734. Weight.Name = ""
  735. Weight.TopSurface = 0
  736. Weight.BottomSurface = 0
  737. Weight.Shape = "Block"
  738. Weight.FormFactor = "Custom"
  739. Weight.Size = Vector3.new(1.75, 1.5, 1.1)
  740. Weight.Transparency = 1
  741. Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  742. Weight.Parent = Character
  743. local Weld = Instance.new("Weld")
  744. Weld.Part0 = Torso
  745. Weld.Part1 = Weight
  746. Weld.C0 = CFrame.new(0, 0.5, 0)
  747. Weld.Parent = Torso
  748. end
  749. elseif Format == false then
  750. if Character:FindFirstChild("Ragdoll") ~= nil then Character.Ragdoll:Remove() end
  751. if Torso ~= nil then
  752. local Limb = Character:FindFirstChild("Right Arm")
  753. if Limb ~= nil then
  754. local Joint = Instance.new("Motor6D")
  755. Joint.Name = "Right Shoulder"
  756. Joint.Part0 = Torso
  757. Joint.Part1 = Limb
  758. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  759. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  760. Joint.MaxVelocity = 0.15
  761. Joint.Parent = Torso
  762. end
  763. local Limb = Character:FindFirstChild("Left Arm")
  764. if Limb ~= nil then
  765. local Joint = Instance.new("Motor6D")
  766. Joint.Name = "Left Shoulder"
  767. Joint.Part0 = Torso
  768. Joint.Part1 = Limb
  769. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  770. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  771. Joint.MaxVelocity = 0.15
  772. Joint.Parent = Torso
  773. end
  774. local Limb = Character:FindFirstChild("Right Leg")
  775. if Limb ~= nil then
  776. local Joint = Instance.new("Motor6D")
  777. Joint.Name = "Right Hip"
  778. Joint.Part0 = Torso
  779. Joint.Part1 = Limb
  780. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  781. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  782. Joint.MaxVelocity = 0.1
  783. Joint.Parent = Torso
  784. end
  785. local Limb = Character:FindFirstChild("Left Leg")
  786. if Limb ~= nil then
  787. local Joint = Instance.new("Motor6D")
  788. Joint.Name = "Left Hip"
  789. Joint.Part0 = Torso
  790. Joint.Part1 = Limb
  791. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  792. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  793. Joint.MaxVelocity = 0.1
  794. Joint.Parent = Torso
  795. end
  796. local Animate = Character:FindFirstChild("Animate")
  797. if Animate ~= nil then
  798. local Animate2 = Animate:Clone()
  799. Animate:Remove()
  800. Animate2.Parent = Character
  801. end
  802. end
  803. else
  804. return false
  805. end
  806. return true, Format
  807. end
  808. local Grabbed = false
  809. Ctrl = false
  810. local lastclick = tick()
  811. mouse.Button1Down:connect(function()
  812. if tick()-lastclick > .4 then combocounter = 0 end
  813. if otheranims then return end
  814. if Grabbed then return end
  815. if Sheathed then
  816. otheranims = true
  817. Mode = 'Sheath'
  818. wait(.7)
  819.  
  820. raw.Part0 = ra
  821. law.Part0 = la
  822. raw.C0 = rawc0
  823. law.C0 = lawc0
  824. Sheathed = false
  825.  
  826. otheranims = false
  827.  
  828. return
  829.  
  830. end
  831.  
  832.  
  833.  
  834. Slash = true
  835. local p0 = rootpart.CFrame*CF(0,0,-7)
  836. local p1 = rootpart.CFrame*CF(0,0,-15)
  837. if combocounter == 0 and not otheranims then
  838. otheranims = true
  839. Mode = 'Knee'
  840. local asdf = Damage(ll)
  841. rootpart.CFrame = rootpart.CFrame:lerp(p0,.1)
  842. wait(.3)
  843. asdf:disconnect()
  844. otheranims = false
  845. combocounter = 1
  846. elseif combocounter == 1 and not otheranims then
  847. otheranims = true
  848. Mode = 'Slash11'
  849. wait(.3)
  850. Mode = 'Slash12'
  851. rootpart.CFrame = rootpart.CFrame:lerp(p0,.1)
  852. wait(.3)
  853. Mode = 'Slash21'
  854. rootpart.CFrame = rootpart.CFrame:lerp(p0,.1)
  855. wait(.5)
  856. otheranims = false
  857. combocounter = 2
  858. elseif combocounter == 2 and not otheranims then
  859. otheranims = true
  860. Mode = 'Slash31'
  861. wait(.3)
  862. Mode = 'Slash32'
  863. rootpart.CFrame = rootpart.CFrame:lerp(p0,.1)
  864. wait(.5)
  865. otheranims = false
  866. combocounter =3
  867. elseif combocounter == 3 and not otheranims then
  868. otheranims = true
  869. sDps = Damage(LAH)
  870. Mode = 'Bash11'
  871. wait(.3)
  872. rootpart.CFrame = rootpart.CFrame:lerp(p1,.6)
  873. wait(1)
  874. sDps:disconnect()
  875. otheranims = false
  876. combocounter = 0
  877. end
  878.  
  879. Slash = false
  880. lastclick = tick()
  881. end)
  882.  
  883.  
  884. function MediumParticleEmit(Object,Color)
  885. coroutine.wrap(function()
  886. while Wait(3.1)do
  887. if not Object then break end
  888. local p = Instance.new("Part",Object.Parent)
  889. p.Name = "Trail"
  890. p.TopSurface = 0
  891. p.BottomSurface = 0
  892. p.Anchored = true
  893. p.Material = 'Neon'
  894. p.CanCollide = false
  895. p.FormFactor = "Custom"
  896. p.Size = Vector3.new(0.01,0.01,0.01)
  897. p.BrickColor = type(Color)== 'userdata' and Color or BrickColor.new(Color)
  898. p.CFrame = Object.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1)-3,math.random(-1,1))
  899. local m = Instance.new("BlockMesh",p)
  900. m.Scale = Vector3.new(2,2,2)
  901. coroutine.wrap(function()
  902. for i = 1,15 do
  903. p.Transparency = i/15
  904. m.Scale = m.Scale + Vector3.new(0.1,0.1,0.1)
  905. p.CFrame = CFrame.new(p.Position + Vector3.new(math.random(-5,5)/20,0.4,math.random(-5,5)/20))* CFrame.fromEulerAnglesXYZ(math.random(-10,10)/i,math.random(-10,10)/i,0.5)
  906. Wait()
  907. end
  908. p:Destroy()
  909. end)()
  910. end
  911. end)()
  912. end
  913.  
  914. function IsNear(Position,Distance,SinglePlayer,db)
  915. if SinglePlayer then
  916. return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance
  917. end
  918. local List = {}
  919. for i,v in pairs(workspace:GetChildren())do
  920. if v:IsA("Model")then
  921. if v:findFirstChild("Torso")then
  922. --if (v ~= char and not db) then
  923. if(v.Torso.CFrame.p -Position).magnitude < Distance then
  924. table.insert(List,v)
  925. end
  926. --end
  927. end
  928. end
  929. end
  930. return List
  931. end
  932.  
  933. local beaming = false
  934. local Shielding = false
  935. mouse.KeyDown:connect(function(k)
  936.  
  937. if otheranims then return end
  938. if beaming then return end
  939. if Shielding then return end
  940.  
  941. if k == 'q' then
  942.  
  943. if Grabbed then return end
  944.  
  945. otheranims = true
  946.  
  947. if not Sheathed then
  948.  
  949. Mode = 'Sheath'
  950. wait(.7)
  951.  
  952. raw.Part0 = Torso
  953. law.Part0 = Torso
  954. raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0)
  955. law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0)
  956. Sheathed = true
  957.  
  958. else
  959.  
  960. Mode = 'Sheath'
  961. wait(.7)
  962.  
  963. raw.Part0 = char:findFirstChild('Right Arm')
  964. law.Part0 = char:findFirstChild'Left Arm'
  965. raw.C0 = rawc0
  966. law.C0 = lawc0
  967. Sheathed = false
  968.  
  969. end
  970.  
  971. otheranims = false
  972.  
  973. elseif k == 'g' then
  974.  
  975. if Sheathed then
  976. otheranims = true
  977. Mode = 'Sheath'
  978. wait(.7)
  979.  
  980. raw.Part0 = ra
  981. law.Part0 = la
  982. raw.C0 = rawc0
  983. law.C0 = lawc0
  984. Sheathed = false
  985.  
  986. otheranims = false
  987.  
  988. return
  989.  
  990. end
  991.  
  992. otheranims = true
  993.  
  994. Mode = 'Shielding'
  995.  
  996. Shielding = true
  997.  
  998.  
  999. local storedHp = hum.Health
  1000.  
  1001. coroutine.wrap(function()
  1002. local shieldTime = tick()
  1003. while Shielding do
  1004. if tick()-shieldTime > 60 then otheranims = false Shielding = false break end
  1005. hum.Health = storedHp
  1006.  
  1007. game:service'RunService'.Stepped:wait()
  1008. end
  1009. end)()
  1010.  
  1011. elseif k:byte() == 50 then
  1012.  
  1013. Ctrl = true
  1014.  
  1015. elseif k:byte() == 48 then
  1016.  
  1017. coroutine.wrap(function()
  1018. for i = 70,60,-1 do
  1019. camera.FieldOfView = i
  1020. wait()
  1021. end
  1022. end)()
  1023.  
  1024. hum.WalkSpeed = 18
  1025.  
  1026. elseif k=='r' then
  1027.  
  1028. otheranims = true
  1029.  
  1030. Mode = 'Stomp1'
  1031.  
  1032. wait(.5)
  1033.  
  1034. Mode = 'Stomp2'
  1035.  
  1036. local Charging = true
  1037.  
  1038. pt=Instance.new('Part',Torso)
  1039. pt.Anchored=true
  1040. pt.CanCollide=false
  1041. pt.Locked = true
  1042. pt.Material = "Neon"
  1043. pt.FormFactor='Custom'
  1044. pt.Size=Vector3.new(1,1,1)
  1045. pt.CFrame=rootpart.CFrame*CFrame.new(0,-1,0)
  1046. pt.Transparency=.6
  1047. pt.BrickColor = BrickColor.new("Bright green")
  1048. msh=Instance.new('SpecialMesh',pt)
  1049. msh.MeshId='http://www.roblox.com/asset/?id=20329976'
  1050. msh.Scale=Vector3.new(10,2,10)
  1051. pt2=pt:clone()
  1052. pt2.Parent = Torso
  1053. pt2.CFrame=rootpart.CFrame*CFrame.new(0,-1,0)
  1054. pt2.BrickColor = BrickColor.new("Really black")
  1055. msh2=msh:clone()
  1056. msh2.Parent=pt2
  1057. msh2.Scale=Vector3.new(10,2,10)
  1058. custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
  1059. bl = Instance.new("Part", char)
  1060. bl.Locked = true
  1061. bl.Name = "Shell"
  1062. bl.BrickColor = BrickColor.new("Really black")
  1063. bl.Anchored = true
  1064. bl.Material = "Neon"
  1065. bl.CanCollide = false
  1066. bl.Transparency = 0
  1067. bl.Reflectance = 0
  1068. bl.BottomSurface = 0
  1069. bl.TopSurface = 0
  1070. bl.Shape = 0
  1071. blm = Instance.new("SpecialMesh",bl)
  1072. blm.MeshType = "Sphere"
  1073. blm.Scale = Vector3.new(1,1,1)
  1074.  
  1075. coroutine.resume(coroutine.create(function()
  1076. for i=1, math.huge, 4 do
  1077. if Charging == true then
  1078. game:service'RunService'.Stepped:wait()
  1079. bl.CFrame = rootpart.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
  1080. blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5)
  1081. bl.Transparency = bl.Transparency + 0.05
  1082. pt.CFrame = rootpart.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0)
  1083. pt2.CFrame = rootpart.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0)
  1084. msh.Scale = msh.Scale + Vector3.new(0.7,0,0.7)
  1085. msh2.Scale = msh2.Scale + Vector3.new(0.7,0,0.7)
  1086. pt.Transparency = pt.Transparency + 0.015
  1087. pt2.Transparency = pt2.Transparency + 0.015
  1088. elseif Charging == false then break
  1089. end
  1090. end
  1091. end))
  1092. local Damaged = {}
  1093. coroutine.wrap(function()
  1094. for i,v in pairs(IsNear(Torso.Position, 25, nil, true)) do
  1095. if v~=Char then
  1096. if Damaged[v:FindFirstChild('Humanoid')] and tick()-Damaged[v:FindFirstChild('Humanoid')] < .25 then return end
  1097. v:FindFirstChild('Humanoid').Health = v:findFirstChild('Humanoid').Health - 25
  1098. v:findFirstChild'Humanoid'.PlatformStand = true
  1099. local vu = Instance.new("BodyVelocity",v:findFirstChild'Torso')
  1100. vu.P = 500
  1101. vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000)
  1102. vu.velocity = Head.CFrame.lookVector*80
  1103. game:GetService("Debris"):AddItem(vu,0.267)
  1104. Damaged[v:FindFirstChild('Humanoid')] = tick()
  1105. end
  1106. end
  1107. end)()
  1108.  
  1109. Spawn(function()
  1110. while game:service'RunService'.Stepped:wait() do
  1111. if p and p.Transparency >= 1 then pcall(function() p:Destroy() end) break end
  1112. if not p then break end
  1113. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0)
  1114. p.Transparency = p.Transparency+0.01
  1115. end
  1116. end)
  1117.  
  1118. wait(1)
  1119.  
  1120. pt:Destroy()
  1121. pt2:Destroy()
  1122. bl:Destroy()
  1123.  
  1124. Charging = false
  1125. otheranims = false
  1126.  
  1127. elseif k=='e' then
  1128.  
  1129. local function weld5(part0, part1, c0, c1)
  1130. weeld=Instance.new("Weld", part0)
  1131. weeld.Part0=part0
  1132. weeld.Part1=part1
  1133. weeld.C0=c0
  1134. weeld.C1=c1
  1135. return weeld
  1136. end
  1137.  
  1138. if not Sheathed then
  1139.  
  1140. otheranims = true
  1141.  
  1142. Mode = 'Sheath'
  1143. wait(.7)
  1144.  
  1145. raw.Part0 = Torso
  1146. law.Part0 = Torso
  1147. raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0)
  1148. law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0)
  1149. Sheathed = true
  1150.  
  1151. otheranims = false
  1152.  
  1153. return
  1154.  
  1155. end
  1156.  
  1157. if not Grabbed then
  1158.  
  1159. otheranims = true
  1160.  
  1161. Mode = 'Grabbing'
  1162.  
  1163. con1=ra.Touched:connect(function(hit)
  1164. if hit:IsDescendantOf(Char) then return end
  1165. ht = hit.Parent
  1166. hum1=ht:FindFirstChild('Humanoid')
  1167. if hum1 ~= nil then
  1168. hum1.Changed:connect(function(a)
  1169. if not hum1 then return end
  1170. if a=='PlatformStand' then
  1171. hum1.PlatformStand = true
  1172. elseif a=='Jump' then
  1173. hum1.Jump = false
  1174. elseif a == 'WalkSpeed' then
  1175. hum1.WalkSpeed = 0
  1176. elseif a == 'JumpPower' then
  1177. hum1.JumpPower = 0
  1178. end
  1179. end)
  1180. hum1.PlatformStand = true
  1181. hum1.Jump = false
  1182. hum1.WalkSpeed = 0
  1183. hum1.JumpPower = 0
  1184. gp = ht
  1185. local asde=weld5(ra,ht:FindFirstChild("Torso"),CFrame.new(0,-1.3,0),CFrame.new(0,0,0))
  1186. asde.Parent = ra
  1187. asde.Name = "asde"
  1188. asde.C0=asde.C0*CFrame.Angles(math.rad(-90),math.rad(0),0)
  1189. Grabbed = true
  1190. end
  1191. end)
  1192.  
  1193. wait(.5)
  1194.  
  1195. con1:disconnect()
  1196.  
  1197. otheranims = false
  1198.  
  1199. else
  1200.  
  1201. otheranims = true
  1202. pcall(function()
  1203. repeat ht:findFirstChild'Humanoid'.Health = ht:findFirstChild'Humanoid'.Health-(ht:findFirstChild'Humanoid'.MaxHealth*0.01)
  1204. game:service'RunService'.Stepped:wait()
  1205. hum:TakeDamage(-5)
  1206. until ht:findFirstChild'Humanoid'.Health <= (ht:findFirstChild'Humanoid'.MaxHealth*.015)
  1207. end)
  1208.  
  1209. Mode = 'Slash11'
  1210.  
  1211. wait(.4)
  1212.  
  1213. Mode = 'Throw1'
  1214.  
  1215. pcall(function() ra:findFirstChild'asde':Destroy() end)
  1216.  
  1217.  
  1218. local vu = Instance.new("BodyVelocity",ht.Torso)
  1219. vu.P = 500
  1220. vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000)
  1221. vu.velocity = Head.CFrame.lookVector*100
  1222. game:GetService("Debris"):AddItem(vu,0.267)
  1223.  
  1224. wait(.5)
  1225.  
  1226. Ragdoll(true, ht)
  1227. ht:findFirstChild'Humanoid'.PlatformStand =true
  1228.  
  1229. coroutine.wrap(function()
  1230. wait(5)
  1231. ht:breakJoints''
  1232. end)()
  1233.  
  1234. Grabbed = false
  1235.  
  1236. otheranims = false
  1237.  
  1238. end
  1239.  
  1240. elseif k=='f' then
  1241.  
  1242. otheranims = true
  1243.  
  1244. if Grabbed then return end
  1245.  
  1246. if not Sheathed then
  1247.  
  1248.  
  1249. Mode = 'Sheath'
  1250. wait(.7)
  1251.  
  1252. raw.Part0 = Torso
  1253. law.Part0 = Torso
  1254. raw.C0 = rawc0 * CFrame.new(1.8,3.3,.65) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0)
  1255. law.C0 = lawc0 * CFrame.new(-.3,.5,.25) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(math.rad(-45),0,0)
  1256. Sheathed = true
  1257.  
  1258. otheranims = false
  1259.  
  1260. return
  1261.  
  1262. end
  1263.  
  1264. Mode = 'Beam'
  1265.  
  1266. hum.WalkSpeed = 0
  1267. local m0del = Instance.new('Model',char)
  1268. local wave = Instance.new('Part',m0del)
  1269. wave.CFrame = char.Head.CFrame * CFrame.new(0, 0, -10)
  1270. wave.TopSurface = 'Smooth'
  1271. wave.BottomSurface = 'Smooth'
  1272. wave.BrickColor = BrickColor.new('Bright green')
  1273. wave.Anchored = true
  1274. wave.FormFactor = 'Custom'
  1275. wave.Shape = 'Ball'
  1276. wave.CanCollide = false
  1277. wave.Transparency = 1
  1278. wave.Material = 'Neon'
  1279. wave.Size = Vector3.new(.4, .4, .4)
  1280. local needaloop = true
  1281. beaming = true
  1282. local coro = coroutine.resume(coroutine.create(function()
  1283. while needaloop do
  1284. game:service'RunService'.Stepped:wait()
  1285. local c = char
  1286. local radius = 25
  1287. local pos = wave.CFrame * CFrame.new(0,0,20)
  1288. local clrz = {'Really black','Bright green'};
  1289. for i = 1,1 do
  1290. local clr = clrz[math.random(1,#clrz)]
  1291. pos = wave.CFrame * CFrame.new(0,0,2)
  1292. local p = Instance.new('Part',c)
  1293. local mafa = math.random(-360,360)
  1294. p.CanCollide = false
  1295. p.Size = Vector3.new(1.3,1.3,1.3)
  1296. local m = Instance.new('SpecialMesh',p)
  1297. m.MeshType = 'Sphere'
  1298. spawn(function()
  1299. for i = 0,50 do
  1300. local int,int2 = .05,.05
  1301. m.Scale = m.Scale - Vector3.new(int,int,int)
  1302. p.Transparency = p.Transparency + int2
  1303. game:service'RunService'.Stepped:wait()
  1304. end
  1305. pcall(function()
  1306. p:Destroy()
  1307. end)
  1308. end)
  1309. p.BrickColor = BrickColor.new(clr)
  1310. p.Material = 'Neon'
  1311. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1312. local bp = Instance.new('BodyPosition',p)
  1313. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1314. bp.D = 100
  1315. bp.P = 300
  1316. bp.Position = pos.p
  1317. game.Debris:AddItem(p,10)
  1318. end
  1319. end
  1320. end))
  1321. local nbeamy = beamy:Clone()
  1322. nbeamy.Parent = char
  1323. --beamy.FireFrom.Anchored = true
  1324. coroutine.wrap(function()
  1325. local Ringz = {}
  1326.  
  1327. for i,v in pairs(nbeamy:children'') do
  1328. if v.Name:lower():find'ring' then
  1329. table.insert(Ringz, v)
  1330. end
  1331. end
  1332.  
  1333. local Rot = 0
  1334.  
  1335. while nbeamy do
  1336.  
  1337. Rot = Rot + .035
  1338.  
  1339. if Rot >= 360 then Rot = 0 end
  1340.  
  1341. for q,e in pairs(Ringz) do
  1342. pcall(function()
  1343. if e.Name~='Ring7' then
  1344. e["qCFrameWeldThingy"].C0 = e["qCFrameWeldThingy"].C0 * CFrame.Angles(0,0,math.rad((e.Name ~= 'Ring4' and Rot or -Rot)))
  1345. end
  1346. end)
  1347. end
  1348.  
  1349. game:service'RunService'.Stepped:wait()
  1350.  
  1351. end
  1352.  
  1353. end)()
  1354. local bp = Instance.new('BodyPosition',nbeamy.FireFrom)
  1355. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1356. bp.D = 100
  1357. bp.P = 1000
  1358. bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p
  1359. for awe = 1, 250 do
  1360. wave.CFrame = char.Head.CFrame * CFrame.new(10, 20, -5)
  1361. nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(wave.CFrame.p, mouse.Hit.p) * CFrame.Angles(math.rad(180), 0, 0),1)
  1362. bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p
  1363. wave.Size = Vector3.new(wave.Size.X+.1, wave.Size.Y+.1, wave.Size.Z+.1)
  1364. game:service'RunService'.Stepped:wait()
  1365. end
  1366. needaloop = false
  1367. local beam = Instance.new('Part',m0del)
  1368. beam.TopSurface = 'Smooth'
  1369. beam.BottomSurface = 'Smooth'
  1370. beam.Material = 'Neon'
  1371. beam.Transparency = .6
  1372. beam.Anchored = true
  1373. beam.BrickColor = BrickColor.new('Bright green')
  1374. beam.CanCollide = false
  1375. local mesh = Instance.new('CylinderMesh',beam)
  1376. local realbeam = beam:Clone()
  1377. realbeam.Parent = m0del
  1378. realbeam.Color = Color3.new(0,200/255,0)
  1379. realbeam.Transparency = .1
  1380. realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1381. beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1382. beam.Size = Vector3.new(23, 10/2, 23)
  1383. realbeam.Size = Vector3.new(24, 10/2, 24)
  1384. local p = wave:Clone()
  1385. p.Parent = m0del
  1386. p.Anchored = true
  1387. p.Transparency = 1
  1388. p.Size = Vector3.new(10, 10, 10)
  1389. local Damaged = {}
  1390. for HAAA = 1, 500 do
  1391. local starthere = (char.Head.CFrame * CFrame.new(10, 20, -5))
  1392. local idek = Ray.new(starthere.p,(mouse.Hit.p-starthere.p).unit*1000)
  1393. local thx = {char, m0del}
  1394. table.insert(thx, p)
  1395. local Bonk, ovhere = workspace:FindPartOnRayWithIgnoreList(idek, thx)
  1396. local meg
  1397. p.Transparency = 1
  1398. if Bonk and Bonk.Parent:findFirstChild'Humanoid' then
  1399. local dionamuh = Bonk.Parent:findFirstChild'Humanoid'
  1400. if Damaged[dionamuh] and tick()-Damaged[dionamuh]>.05 then
  1401. Damaged[dionamuh] = tick()
  1402. pcall(function() dionamuh.Health = dionamuh.Health-2 end)
  1403. elseif not Damaged[dionamuh] then
  1404. Damaged[dionamuh] = tick()
  1405. end
  1406. end
  1407. meg = (starthere.p - ovhere).magnitude
  1408. coroutine.wrap(function()
  1409. local asd = Instance.new('Part', char)
  1410. asd.CFrame = CFrame.new(ovhere)*CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1411. asd.Size = Vector3.new(5,5,5)
  1412. asd.Reflectance = .40
  1413. asd.Transparency = .05
  1414. asd.TopSurface,asd.BottomSurface = 0,0
  1415. asd.CanCollide = false
  1416. asd.Color = Color3.new(0,150/255,0)
  1417. asd.Anchored = true
  1418. asd.Locked = true--[[
  1419. asd.Touched:connect(function(a)
  1420. if a and a.Parent:findFirstChild'Humanoid' then
  1421. local dionamuh = a.Parent:findFirstChild'Humanoid'
  1422. if Damaged[dionamuh] and tick()-Damaged[dionamuh]>.05 then
  1423. Damaged[dionamuh] = tick()
  1424. pcall(function() dionamuh.Health = dionamuh.Health-2 end)
  1425. elseif not Damaged[dionamuh] then
  1426. Damaged[dionamuh] = tick()
  1427. end
  1428. end
  1429. end)]]
  1430. wait()
  1431. for i = .05,1,.05 do
  1432. asd.Transparency = i
  1433. asd.Size = asd.Size + Vector3.new(.2, .2, .2)
  1434. game:service'RunService'.Stepped:wait()
  1435. end
  1436. asd:Destroy()
  1437. end)()
  1438. game:service'RunService'.Stepped:wait()
  1439. realbeam.Size = Vector3.new(7/2, meg, 7/2)
  1440. beam.Size = Vector3.new(5/2, meg, 5/2)
  1441. realbeam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,-meg/2) * CFrame.Angles(math.rad(90), 0, 0)
  1442. beam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,-meg/2) * CFrame.Angles(math.rad(90), 0, 0)
  1443. pcall(function()nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(starthere.p, ovhere) * CFrame.new(0,0,2) * CFrame.Angles(math.rad(180), 0, 0),1) end)
  1444. bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p
  1445. wave.CFrame = starthere
  1446. end
  1447. nbeamy.FireFrom.Anchored = true
  1448. p:Destroy()
  1449. for i = 0,1,.05 do
  1450. realbeam.Transparency = i
  1451. wave.Transparency = i
  1452. beam.Transparency = i
  1453. game:service'RunService'.Stepped:wait()
  1454. end
  1455. nbeamy:Destroy()
  1456. beaming = false
  1457. m0del:Destroy()
  1458. hum.WalkSpeed = 8
  1459.  
  1460. otheranims = false
  1461.  
  1462. elseif k=='c' then
  1463.  
  1464. if Sheathed then
  1465. otheranims = true
  1466. Mode = 'Sheath'
  1467. wait(.7)
  1468.  
  1469. raw.Part0 = ra
  1470. law.Part0 = la
  1471. raw.C0 = rawc0
  1472. law.C0 = lawc0
  1473. Sheathed = false
  1474.  
  1475. otheranims = false
  1476.  
  1477. return
  1478.  
  1479. end
  1480.  
  1481.  
  1482. otheranims = true
  1483.  
  1484. hum.WalkSpeed = 0
  1485.  
  1486. Mode = 'Stabbing1'
  1487.  
  1488. wait(.7)
  1489.  
  1490. Mode = 'Stabbing2'
  1491.  
  1492. local Parts = {}
  1493.  
  1494. local Damaged = {}
  1495.  
  1496. for i = 1, 360, 20 do
  1497.  
  1498. local s = Instance.new('Part', char)
  1499. table.insert(Parts, s)
  1500. s.Name = 'Spikey'
  1501. s.CFrame = Torso.CFrame * CFrame.new(0, -10, 0)
  1502. s.Size = Vector3.new(1,1,1)
  1503. s.CanCollide = false
  1504. s.Anchored = true
  1505. s.BrickColor = BrickColor.new("Bright green")
  1506. s.Locked = true
  1507. s.Name = 's'
  1508. s.Material = 'Neon'
  1509. s.Size = Vector3.new(1, 1, 1)
  1510. s.BottomSurface = Enum.SurfaceType.Smooth
  1511. s.TopSurface = Enum.SurfaceType.Smooth
  1512. local PurpleMesh = Instance.new("SpecialMesh", s)
  1513. PurpleMesh.MeshType = Enum.MeshType.FileMesh
  1514. PurpleMesh.Name = "Mesh"
  1515. PurpleMesh.Scale = Vector3.new(.5,.5,.5)
  1516. PurpleMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1517. PurpleMesh.VertexColor = Vector3.new(1, 0, 1)
  1518.  
  1519. local qwe = -10
  1520.  
  1521. coroutine.wrap(function()
  1522. while s do
  1523. if qwe>=-1 then qwe=0 else qwe=qwe+.4 end
  1524. s.CFrame = s.CFrame:lerp(CFrame.new(Torso.CFrame.p)*CFrame.new(0, qwe, 0)
  1525. * (CFrame.Angles(0,0,0))
  1526. *CFrame.Angles(0,math.rad(i),0)
  1527. *CFrame.new(0,0,-20), .3)
  1528. game:service'RunService'.Stepped:wait()
  1529. end
  1530. end)()
  1531.  
  1532. coroutine.wrap(function()
  1533. repeat wait() until qwe>=-1
  1534. for i = .5, 2, .025 do
  1535. PurpleMesh.Scale = Vector3.new(i, i*2 ,i)
  1536. game:service'RunService'.Stepped:wait()
  1537. end
  1538. local it=Instance.new
  1539. local vt=Vector3.new
  1540. local cf=CFrame.new
  1541. local euler=CFrame.fromEulerAnglesXYZ
  1542. local angles=CFrame.Angles
  1543. local function NoOutline(Part)
  1544. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1545. end
  1546. local function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1547. local fp=Instance.new("Part")
  1548. fp.formFactor=formfactor
  1549. fp.Parent=parent
  1550. fp.Reflectance=reflectance
  1551. fp.Transparency=transparency
  1552. fp.CanCollide=false
  1553. fp.Locked=true
  1554. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1555. fp.Name=name
  1556. fp.Size=size
  1557. fp.Position=Torso.Position
  1558. --NoOutline(fp)
  1559. fp.Material=material
  1560. fp:BreakJoints()
  1561. return fp
  1562. end
  1563. local function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1564. local mesh=it(Mesh)
  1565. mesh.Parent=part
  1566. if Mesh=="SpecialMesh" then
  1567. mesh.MeshType=meshtype
  1568. mesh.MeshId=meshid
  1569. end
  1570. mesh.Offset=offset
  1571. mesh.Scale=scale
  1572. return mesh
  1573. end
  1574.  
  1575. local function weld(parent,part0,part1,c0,c1)
  1576. local weld=it("Weld")
  1577. weld.Parent=parent
  1578. weld.Part0=part0
  1579. weld.Part1=part1
  1580. weld.C0=c0
  1581. weld.C1=c1
  1582. return weld
  1583. end
  1584. local function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1585. local prt=part("Custom",char,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1586. prt.Anchored=true
  1587. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1588. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1589. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1590. CF=Part.CFrame
  1591. Numbb=0
  1592. randnumb=math.random()-math.random()
  1593. for i=0,1,0.05 do
  1594. wait()
  1595. CF=CF*cf(0,1,0)
  1596. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1597. Part.CFrame=CF*euler(Numbb,0,0)
  1598. Part.Transparency=i
  1599. Numbb=Numbb+randnumb
  1600. end
  1601. Part.Parent = nil
  1602. end),prt)
  1603. end
  1604. for i = 1,3 do
  1605. BreakEffect(BrickColor.new("Bright green"),s.CFrame,0.5,math.random(5,10),0.5)
  1606. end
  1607. coroutine.wrap(function()
  1608. for i,v in pairs(IsNear(Torso.Position, 35, nil, true)) do
  1609. if v~=Char then
  1610. if Damaged[v:FindFirstChild('Humanoid')] and tick()-Damaged[v:FindFirstChild('Humanoid')] < .5 then return end
  1611. v:FindFirstChild('Humanoid').Health = v:findFirstChild('Humanoid').Health - 25
  1612. v:findFirstChild'Humanoid'.PlatformStand = true
  1613. local vu = Instance.new("BodyVelocity",v:findFirstChild'Torso')
  1614. vu.P = 500
  1615. vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000)
  1616. vu.velocity = Head.CFrame.lookVector*60
  1617. game:GetService("Debris"):AddItem(vu,0.267)
  1618. Damaged[v:FindFirstChild('Humanoid')] = tick()
  1619. end
  1620. end
  1621. end)()
  1622. s:Destroy()
  1623. end)()
  1624.  
  1625. game:service'RunService'.Stepped:wait()
  1626. end
  1627.  
  1628. wait(3)
  1629.  
  1630. hum.WalkSpeed = 8
  1631.  
  1632. otheranims = false
  1633.  
  1634. end
  1635. end)
  1636.  
  1637. mouse.KeyUp:connect(function(k)
  1638. if k:byte() == 48 then
  1639. coroutine.wrap(function()
  1640. for i = 60,70,1 do
  1641. camera.FieldOfView = i
  1642. wait()
  1643. end
  1644. end)()
  1645. hum.WalkSpeed = 8
  1646. elseif k:byte() == 50 then
  1647. Ctrl = false
  1648. elseif k == 'g' then
  1649. Shielding = false
  1650. otheranims = false
  1651. end
  1652. end)
  1653.  
  1654. game.Lighting.TimeOfDay = "06:10:00"
  1655. pcall(game.Destroy, game:service'Lighting':findFirstChild'SunRayz')
  1656.  
  1657. local sr = Instance.new('SunRaysEffect',game.Lighting)
  1658. sr.Intensity = .1
  1659. sr.Name = 'SunRayz'
  1660.  
  1661. hum.JumpPower = 10 --10
  1662. Jumping = false
  1663. lastCtrl = tick()
  1664. Character.Humanoid.Jumping:connect(function()
  1665. if Jumping then return end
  1666. local eCtrl = Ctrl
  1667. if eCtrl then if tick()-lastCtrl < 0.2 then eCtrl = false end lastCtrl = tick() end
  1668. Mode = 'Jumping'
  1669. Jumping = true
  1670. local vu = Instance.new("BodyVelocity",Torso)
  1671. vu.P = 500
  1672. vu.maxForce = Vector3.new(10000000000,5000000000000000000000,100000000000)
  1673. vu.velocity = Vector3.new((Head.CFrame.lookVector.X*(eCtrl and 60 or 10)),(eCtrl and 10 or 20),(Head.CFrame.lookVector.Z*(eCtrl and 60 or 10)))
  1674. game:GetService("Debris"):AddItem(vu,0.267)
  1675. wait(0.7) --0.6
  1676. Jumping = false
  1677. end)
  1678.  
  1679. spawn(function()
  1680. while true do
  1681. local Size = Vector3.new(TrailPart.Size.X,TrailPart.Size.Y,TrailPart.Size.Z)
  1682. if Slash == true then
  1683. local P1 = (TrailPart.CFrame*CFrame.new(Size/2)).p
  1684. local P2 = (TrailPart.CFrame*CFrame.new(Size/-2)).p
  1685. if LastTrail then
  1686. local p1 = CreateTriangle(Char,LastTrail[2],LastTrail[1],P2)
  1687. local p2 = CreateTriangle(Char,LastTrail[1],P1,P2)
  1688. Trails[#Trails+1] = p1
  1689. Trails[#Trails+1] = p2
  1690. end
  1691. LastTrail = {P1,P2}
  1692. else
  1693. LastTrail = nil
  1694. end
  1695. for i,v in pairs(Trails) do
  1696. v:SetProperty("Transparency",v:GetProperty("Transparency")+0.1)
  1697. if v:GetProperty("Transparency") >= 1 then
  1698. v:Destroy()
  1699. Trails[i] = nil
  1700. end
  1701. end
  1702. rwait(.5)
  1703. end
  1704. end)
  1705.  
  1706.  
  1707.  
  1708. SlashDamage = Damage(TrailPart)
  1709.  
  1710. local count = 0
  1711.  
  1712. local t = tick()
  1713. local Smooth = 1
  1714. ---------------------------
  1715. local sine = 0
  1716. local change = 1
  1717. coroutine.wrap(function()
  1718. game:service('RunService').Heartbeat:connect(function()
  1719. local torso = char:FindFirstChild('Torso')
  1720. local mg = Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude
  1721. if not otheranims then
  1722. if (mg < 3) and not Jumping then
  1723. Mode = "Idling"
  1724. elseif (mg > 3 and mg < 10) and not Jumping then
  1725. Mode = "Walking"
  1726. elseif (mg > 10) and not Jumping then
  1727. Mode = "Running"
  1728. elseif Jumping and (Vector3.new(0, torso.Velocity.y, 0).magnitude > 2) and (mg > 1) then
  1729. Mode = "Jumping"
  1730. end
  1731. end
  1732. count = (count % 100) + (0.2)*(hum.WalkSpeed)/(5*1.3)--countspeed --1
  1733. angle = math.pi * math.sin(math.pi*2/100*count)
  1734. t = t+0.2*Smooth
  1735. sine = sine + change
  1736. --if (Mode=='Idling') and (tick()-lastdps < 30 and tick()-lastclick < 30) and not otheranims then Mode='CombatIdling' end
  1737.  
  1738. if Mode == 'Jumping' then
  1739. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,.6,-.6) * CFrame.Angles(0,-math.rad(10),0), .4)
  1740. lerp(llegm, llegm.C0, llc0 * CFrame.new(0,.4,-.3), .4)
  1741. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), 0, 0), .4)
  1742. lerp(lm, lm.C0, lsc0 * CFrame.Angles(-math.rad(20), 0, -math.rad(30)), .4)
  1743. lerp(rm, rm.C0, rsc0 * CFrame.Angles(-math.rad(20), 0, math.rad(30)), .4)
  1744. lerp(rj, rj.C0, rootc0 * CFrame.Angles(math.rad(20), 0, 0), .4)
  1745. elseif Mode == 'Idling' then --stand
  1746. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,math.sin(t/20)/7,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3)
  1747. lerp(llegm, llegm.C0, llc0 * CFrame.new(0,math.sin(t/20)/7,0) * CFrame.Angles(0, 0, -math.rad(8)),.3)
  1748. if not Sheathed then
  1749. lerp(neck, neck.C0, neckc0 * CFrame.new(0,-math.cos(t/20)/7,0) * CFrame.Angles(-1*math.cos(t/20)/7, -math.rad(15), 0),.2)
  1750. lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.sin(t/20)/7, -math.rad(5), -math.rad(20)),.2)
  1751. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/20)/7, math.rad(5), math.rad(20)),.2)
  1752. lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/20)/7) * CFrame.Angles(0,0,math.rad(15)),.3)
  1753. lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1)
  1754. else
  1755. lerp(neck, neck.C0, neckc0 * CFrame.new(0,-math.sin(t/20)/15,0) * CFrame.Angles(-2*math.cos(t/15)/20, -math.rad(5), 0),.2)
  1756. lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(math.sin(t/20)/20, -math.rad(5), -math.rad(10)),.2)
  1757. lerp(rm, rm.C0, rsc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.sin(t/20)/15, math.rad(5), math.rad(Grabbed and 20 or 0) + math.rad(10)),.2)
  1758. lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/20)/15) * CFrame.Angles(0,0,math.rad(5)),.3)
  1759. end
  1760. elseif Mode == 'Walking' then-- walk
  1761. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  1762. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  1763. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),0.2)
  1764. lerp(lm, lm.C0, lsc0 * CFrame.new(0, .03*math.cos(sine/9), -math.sin(sine/20)/6) * CFrame.Angles(-math.rad(20*math.cos(sine/17)), math.rad(0), -math.rad(12)), 0.2)
  1765. lerp(rm, rm.C0, rsc0 * CFrame.new(0, .03*math.cos(sine/9), math.sin(sine/20)/6) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.rad(20*math.cos(sine/17)), math.rad(0), math.rad(Grabbed and 20 or 0) + math.rad(12)), 0.2)
  1766. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), 0.2)
  1767. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) end
  1768. elseif Mode == 'Running' then-- walk
  1769. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/10)/2, -.05 + -math.sin(sine/10)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/10)/2, 0, 0), .4)
  1770. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/10)/2, -.05 + math.sin(sine/10)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/10)/2, 0, 0), .4)
  1771. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(6+6*math.cos(sine/10)/2), math.rad(0), math.rad(0)),0.2)
  1772. lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(-10-20*math.cos(sine/10)/5), -math.rad(-40+10*math.cos(sine/10)/5), -math.rad(50-10*math.cos(sine/10)/5)), 0.2)
  1773. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(-10-20*math.cos(sine/10)/5), math.rad(-40+10*math.cos(sine/10)/5), math.rad(50-10*math.cos(sine/10)/5)), 0.2)
  1774. lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1+0.2*math.cos(sine/10)/2, 0) * CFrame.Angles(math.rad(14+10*math.cos(sine/10)/2), -math.cos(t/6)/30+math.sin(rootpart.RotVelocity.y/2)/6, math.rad(0)), 0.2)
  1775. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1) end
  1776. elseif Mode == 'Sheath' then
  1777. if (mg > 3 and mg < 18) then
  1778. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  1779. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  1780. else
  1781. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3)
  1782. lerp(llegm, llegm.C0, llc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(0, 0, -math.rad(8)),.3)
  1783. end
  1784. lerp(neck, neck.C0, neckc0 * CFrame.new(0,math.sin(t/15)/15,0) * CFrame.Angles(-1*math.cos(t/25)/10, -math.rad(15), 0),.2)
  1785. lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(10), math.rad(120), -math.rad(60)),.2)
  1786. lerp(rm, rm.C0, rsc0 * CFrame.new(0, .6, -.2) * CFrame.Angles(math.rad(175), math.rad(0), math.rad(20)),.2)
  1787. lerp(rj, rj.C0, rootc0 * CFrame.new(0,0,-math.sin(t/15)/15) * CFrame.Angles(0,0,math.rad(15)),.3)
  1788. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-.5, -1.6, -.85) * CFrame.Angles(math.rad(92),math.rad(26),math.rad(90)), 1 ) end
  1789. elseif Mode == 'Slash11' then
  1790.  
  1791. if (mg > 3) then
  1792. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6)
  1793. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6)
  1794. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6)
  1795. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6)
  1796. else
  1797. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6)
  1798. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6)
  1799. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6)
  1800. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6)
  1801. end
  1802.  
  1803. lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6)
  1804. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), .6)
  1805. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1) end
  1806. elseif Mode == 'Slash12' then
  1807. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(60), math.rad(10)), .6)
  1808. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), .6)
  1809. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(30), -math.rad(70), math.rad(30)),.6)
  1810. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6)
  1811. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(50), math.rad(40)), .6)
  1812. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(90)), .6)
  1813. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1) end
  1814. elseif Mode == 'Slash31' then
  1815.  
  1816. if (mg > 3) then
  1817. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6)
  1818. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6)
  1819. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6)
  1820. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6)
  1821. else
  1822. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .5, -.3) * CFrame.Angles(math.rad(10), 0, 0), .4)
  1823. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(5), -math.rad(5)), .4)
  1824. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(15), math.rad(15), math.rad(0)),.6)
  1825. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, -math.rad(15)), .6)
  1826. end
  1827.  
  1828. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(10), -math.rad(20)), .6)
  1829. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), .6)
  1830. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1) end
  1831. elseif Mode == 'Slash32' then
  1832. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6)
  1833. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), .6)
  1834. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)),.6)
  1835. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6)
  1836. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(50), math.rad(50), math.rad(50)), .6)
  1837. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), .6)
  1838. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, 0) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(90)), 1) end
  1839. elseif Mode == 'Slash21' then
  1840. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6)
  1841. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), .6)
  1842. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(10), -math.rad(20), math.rad(10)),.6)
  1843. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20), -math.rad(20)), .6)
  1844. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(10), math.rad(60)), .6)
  1845. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), .6)
  1846. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1) end
  1847. elseif Mode == 'Bash11' then
  1848. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6)
  1849. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6)
  1850. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6)
  1851. lerp(lm, lm.C0, lsc0 * CFrame.new(0, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6)
  1852. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2)
  1853. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6)
  1854. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end
  1855. elseif Mode == 'Kneeling' then
  1856. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, -.5, -.3) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(0)), .6)
  1857. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 1, -.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1858. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(30), math.rad(0),-math.rad(0)), .6)
  1859. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0,0) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(20)), .6)
  1860. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)),.2)
  1861. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -1) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), .6)
  1862. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0,-2.5,0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end
  1863. elseif Mode == 'Stomp1' then
  1864. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .85, -.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .6)
  1865. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6)
  1866. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1867. lerp(lm, lm.C0, lsc0 * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(30)), .6)
  1868. lerp(rm, rm.C0, rsc0 * CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(140), math.rad(0), -math.rad(30)), .6)
  1869. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6)
  1870. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end
  1871. elseif Mode == 'Stomp2' then
  1872. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .6)
  1873. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1874. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6)
  1875. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), .6)
  1876. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), .6)
  1877. lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6)
  1878. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end
  1879. elseif Mode == 'Knee' then
  1880. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(25), math.rad(0), math.rad(0)), .6)
  1881. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .75, -1.2) * CFrame. Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1882. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6)
  1883. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), .6)
  1884. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), .6)
  1885. lerp(rj, rj.C0, rootc0 * CFrame.new(0, -.3, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), .6)
  1886. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end
  1887. elseif Mode == 'Grabbing' then
  1888. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3)
  1889. lerp(llegm, llegm.C0, llc0 * CFrame.new(0,0,0) * CFrame.Angles(0, 0, -math.rad(8)),.3)
  1890. lerp(neck, neck.C0, neckc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), 0),.2)
  1891. lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)),.2)
  1892. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)),.2)
  1893. elseif Mode == 'Throw1' then
  1894. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, -.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), .6)
  1895. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), .6)
  1896. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)),.6)
  1897. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), .6)
  1898. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(80), math.rad(50), math.rad(50)), .6)
  1899. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), .6)
  1900. elseif Mode == 'Beam' then
  1901. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), math.rad(8)),.3)
  1902. lerp(llegm, llegm.C0, llc0 * CFrame.new(0,0,0) * CFrame.Angles(0, 0, -math.rad(8)),.3)
  1903. lerp(neck, neck.C0, neckc0 * CFrame.new(0,0,0) * CFrame.Angles(0, -math.rad(0), 0),.2)
  1904. lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)),.2)
  1905. lerp(rm, rm.C0, rsc0 * CFrame.new(0,1,0) * CFrame.Angles(math.rad(170), math.rad(5), math.rad(20)),.2)
  1906. elseif Mode == 'Shielding' then
  1907. if (mg > 3) then
  1908. lerp(lm, lm.C0, lsc0 * CFrame.new(.7, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(85)), .6)
  1909. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2)
  1910. lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3+2*math.cos(sine/7)), math.rad(0-3*math.cos(sine/14)), math.rad(0)),.6)
  1911. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1*math.cos(sine/7), 0) * CFrame.Angles(math.rad(2+2*math.cos(sine/7)), 0, math.rad(0+3*math.cos(sine/14))), .6)
  1912. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .6)
  1913. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3*-math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .6)
  1914. else
  1915. lerp(lm, lm.C0, lsc0 * CFrame.new(.1, -.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), .6)
  1916. lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t/15)/15, math.rad(5), math.rad(20)),.2)
  1917. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), .6)
  1918. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, .2, -.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .6)
  1919. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30),-math.rad(0)), .6)
  1920. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), .6)
  1921. end
  1922. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end
  1923. elseif Mode == 'Stabbing1' then
  1924. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .85, -.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .6)
  1925. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6)
  1926. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1927. lerp(lm, lm.C0, lsc0 * CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), .6)
  1928. lerp(rm, rm.C0, rsc0 * CFrame.new(-.5, .5, 0) * CFrame.Angles(math.rad(130), math.rad(0), -math.rad(40)), .6)
  1929. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), .6)
  1930. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end
  1931. elseif Mode == 'Stabbing2' then
  1932. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, .4, -.6) * CFrame.Angles(-math.rad(10), math.rad(0), math.rad(0)), .6)
  1933. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -.5, -.3) * CFrame.Angles(-math.rad(60), math.rad(0), math.rad(0)), .6)
  1934. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(0),-math.rad(0)), .6)
  1935. lerp(lm, lm.C0, lsc0 * CFrame.new(.5, .5, -.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(40)), .6)
  1936. lerp(rm, rm.C0, rsc0 * CFrame.new(-.5, .5, -.8) * CFrame.Angles(math.rad(90), math.rad(0), -math.rad(40)), .6)
  1937. lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, -.7) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), .6)
  1938. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1) end
  1939. end
  1940. end)
  1941. end)()
  1942.  
  1943. coroutine.wrap(function()
  1944. for i = 1,3 do
  1945. MediumParticleEmit(Head, 'Bright green')
  1946. wait(.05)
  1947. MediumParticleEmit(Head,'Really black')
  1948. wait(.03)
  1949. end
  1950. end)()
  1951.  
  1952. --[[
  1953. lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1954. lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1955. lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1956. lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1957. lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1958. lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .6)
  1959. if not Sheathed then lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1) end
  1960. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement