Advertisement
HowAreYu

CONVERT 5

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