Advertisement
WaverlyCoal

FE Galacta Knight

Jul 31st, 2018
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.12 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. --//Paste script below this line.
  143. --//====================================================\\--
  144. --|| CREATED BY SHACKLUSTER
  145. --\\====================================================//--
  146.  
  147. wait(0.2)
  148.  
  149. Player = game:GetService("Players").LocalPlayer
  150. PlayerGui = Player.PlayerGui
  151. Cam = workspace.CurrentCamera
  152. Backpack = Player.Backpack
  153. Character = Player.Character
  154. Humanoid = Character.Humanoid
  155. Mouse = Player:GetMouse()
  156. RootPart = Character["HumanoidRootPart"]
  157. Torso = Character["Torso"]
  158. Head = Character["Head"]
  159. RightArm = Character["Right Arm"]
  160. LeftArm = Character["Left Arm"]
  161. RightLeg = Character["Right Leg"]
  162. LeftLeg = Character["Left Leg"]
  163. RootJoint = RootPart["RootJoint"]
  164. Neck = Torso["Neck"]
  165. RightShoulder = Torso["Right Shoulder"]
  166. LeftShoulder = Torso["Left Shoulder"]
  167. RightHip = Torso["Right Hip"]
  168. LeftHip = Torso["Left Hip"]
  169. local sick = Instance.new("Sound",Torso)
  170. sick.SoundId = "rbxassetid://152000442"
  171. sick.Looped = true
  172. sick.Pitch = 1
  173. sick.Volume = 1
  174. sick:Play()
  175.  
  176. IT = Instance.new
  177. CF = CFrame.new
  178. VT = Vector3.new
  179. RAD = math.rad
  180. C3 = Color3.new
  181. UD2 = UDim2.new
  182. BRICKC = BrickColor.new
  183. ANGLES = CFrame.Angles
  184. EULER = CFrame.fromEulerAnglesXYZ
  185. COS = math.cos
  186. ACOS = math.acos
  187. SIN = math.sin
  188. ASIN = math.asin
  189. ABS = math.abs
  190. MRANDOM = math.random
  191. FLOOR = math.floor
  192.  
  193. --//=================================\\
  194. --|| USEFUL VALUES
  195. --\\=================================//
  196.  
  197. Animation_Speed = 3
  198. Humanoid.HipHeight = 1
  199. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  200. local Speed = 75
  201. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  202. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  203. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  204. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  205. local DAMAGEMULTIPLIER = 1
  206. local ANIM = "Idle"
  207. local ATTACK = false
  208. local EQUIPPED = false
  209. local HOLD = false
  210. local COMBO = 1
  211. local Rooted = false
  212. local SINE = 0
  213. local KEYHOLD = false
  214. local CHANGE = 2 / Animation_Speed
  215. local WALKINGANIM = false
  216. local VALUE1 = false
  217. local VALUE2 = false
  218. local ROBLOXIDLEANIMATION = IT("Animation")
  219. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  220. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  221. --ROBLOXIDLEANIMATION.Parent = Humanoid
  222. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  223. WEAPONGUI.Name = "Weapon GUI"
  224. local Weapon = IT("Model")
  225. Weapon.Name = "Adds"
  226. local Effects = IT("Folder", Weapon)
  227. Effects.Name = "Effects"
  228. local ANIMATOR = Humanoid.Animator
  229. local ANIMATE = Character.Animate
  230. local UNANCHOR = true
  231. local FORCEWINGS = false
  232.  
  233. --//=================================\\
  234. --\\=================================//
  235.  
  236.  
  237. --//=================================\\
  238. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  239. --\\=================================//
  240.  
  241. ArtificialHB = Instance.new("BindableEvent", script)
  242. ArtificialHB.Name = "ArtificialHB"
  243.  
  244. script:WaitForChild("ArtificialHB")
  245.  
  246. frame = Frame_Speed
  247. tf = 0
  248. allowframeloss = false
  249. tossremainder = false
  250. lastframe = tick()
  251. script.ArtificialHB:Fire()
  252.  
  253. game:GetService("RunService").Heartbeat:connect(function(s, p)
  254. tf = tf + s
  255. if tf >= frame then
  256. if allowframeloss then
  257. script.ArtificialHB:Fire()
  258. lastframe = tick()
  259. else
  260. for i = 1, math.floor(tf / frame) do
  261. script.ArtificialHB:Fire()
  262. end
  263. lastframe = tick()
  264. end
  265. if tossremainder then
  266. tf = 0
  267. else
  268. tf = tf - frame * math.floor(tf / frame)
  269. end
  270. end
  271. end)
  272.  
  273. --//=================================\\
  274. --\\=================================//
  275.  
  276. --//=================================\\
  277. --|| SOME FUNCTIONS
  278. --\\=================================//
  279.  
  280. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  281. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  282. end
  283.  
  284. function PositiveAngle(NUMBER)
  285. if NUMBER >= 0 then
  286. NUMBER = 0
  287. end
  288. return NUMBER
  289. end
  290.  
  291. function NegativeAngle(NUMBER)
  292. if NUMBER <= 0 then
  293. NUMBER = 0
  294. end
  295. return NUMBER
  296. end
  297.  
  298. function Swait(NUMBER)
  299. if NUMBER == 0 or NUMBER == nil then
  300. ArtificialHB.Event:wait()
  301. else
  302. for i = 1, NUMBER do
  303. ArtificialHB.Event:wait()
  304. end
  305. end
  306. end
  307.  
  308. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  309. local NEWMESH = IT(MESH)
  310. if MESH == "SpecialMesh" then
  311. NEWMESH.MeshType = MESHTYPE
  312. if MESHID ~= "nil" and MESHID ~= "" then
  313. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  314. end
  315. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  316. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  317. end
  318. end
  319. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  320. NEWMESH.Scale = SCALE
  321. NEWMESH.Parent = PARENT
  322. return NEWMESH
  323. end
  324.  
  325. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  326. local NEWPART = IT("Part")
  327. NEWPART.formFactor = FORMFACTOR
  328. NEWPART.Reflectance = REFLECTANCE
  329. NEWPART.Transparency = TRANSPARENCY
  330. NEWPART.CanCollide = false
  331. NEWPART.Locked = true
  332. NEWPART.Anchored = true
  333. if ANCHOR == false then
  334. NEWPART.Anchored = false
  335. end
  336. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  337. NEWPART.Name = NAME
  338. NEWPART.Size = SIZE
  339. NEWPART.Position = Torso.Position
  340. NEWPART.Material = MATERIAL
  341. NEWPART:BreakJoints()
  342. NEWPART.Parent = PARENT
  343. return NEWPART
  344. end
  345.  
  346. function QuaternionFromCFrame(cf)
  347. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  348. local trace = m00 + m11 + m22
  349. if trace > 0 then
  350. local s = math.sqrt(1 + trace)
  351. local recip = 0.5 / s
  352. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  353. else
  354. local i = 0
  355. if m11 > m00 then
  356. i = 1
  357. end
  358. if m22 > (i == 0 and m00 or m11) then
  359. i = 2
  360. end
  361. if i == 0 then
  362. local s = math.sqrt(m00 - m11 - m22 + 1)
  363. local recip = 0.5 / s
  364. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  365. elseif i == 1 then
  366. local s = math.sqrt(m11 - m22 - m00 + 1)
  367. local recip = 0.5 / s
  368. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  369. elseif i == 2 then
  370. local s = math.sqrt(m22 - m00 - m11 + 1)
  371. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  372. end
  373. end
  374. end
  375.  
  376. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  377. local xs, ys, zs = x + x, y + y, z + z
  378. local wx, wy, wz = w * xs, w * ys, w * zs
  379. local xx = x * xs
  380. local xy = x * ys
  381. local xz = x * zs
  382. local yy = y * ys
  383. local yz = y * zs
  384. local zz = z * zs
  385. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  386. end
  387.  
  388. function QuaternionSlerp(a, b, t)
  389. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  390. local startInterp, finishInterp;
  391. if cosTheta >= 0.0001 then
  392. if (1 - cosTheta) > 0.0001 then
  393. local theta = ACOS(cosTheta)
  394. local invSinTheta = 1 / SIN(theta)
  395. startInterp = SIN((1 - t) * theta) * invSinTheta
  396. finishInterp = SIN(t * theta) * invSinTheta
  397. else
  398. startInterp = 1 - t
  399. finishInterp = t
  400. end
  401. else
  402. if (1 + cosTheta) > 0.0001 then
  403. local theta = ACOS(-cosTheta)
  404. local invSinTheta = 1 / SIN(theta)
  405. startInterp = SIN((t - 1) * theta) * invSinTheta
  406. finishInterp = SIN(t * theta) * invSinTheta
  407. else
  408. startInterp = t - 1
  409. finishInterp = t
  410. end
  411. end
  412. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  413. end
  414.  
  415. function Clerp(a, b, t)
  416. local qa = {QuaternionFromCFrame(a)}
  417. local qb = {QuaternionFromCFrame(b)}
  418. local ax, ay, az = a.x, a.y, a.z
  419. local bx, by, bz = b.x, b.y, b.z
  420. local _t = 1 - t
  421. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  422. end
  423.  
  424. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  425. local frame = IT("Frame")
  426. frame.BackgroundTransparency = TRANSPARENCY
  427. frame.BorderSizePixel = BORDERSIZEPIXEL
  428. frame.Position = POSITION
  429. frame.Size = SIZE
  430. frame.BackgroundColor3 = COLOR
  431. frame.BorderColor3 = BORDERCOLOR
  432. frame.Name = NAME
  433. frame.Parent = PARENT
  434. return frame
  435. end
  436.  
  437. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  438. local label = IT("TextLabel")
  439. label.BackgroundTransparency = 1
  440. label.Size = UD2(1, 0, 1, 0)
  441. label.Position = UD2(0, 0, 0, 0)
  442. label.TextColor3 = TEXTCOLOR
  443. label.TextStrokeTransparency = STROKETRANSPARENCY
  444. label.TextTransparency = TRANSPARENCY
  445. label.FontSize = TEXTFONTSIZE
  446. label.Font = TEXTFONT
  447. label.BorderSizePixel = BORDERSIZEPIXEL
  448. label.TextScaled = false
  449. label.Text = TEXT
  450. label.Name = NAME
  451. label.Parent = PARENT
  452. return label
  453. end
  454.  
  455. function NoOutlines(PART)
  456. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  457. end
  458.  
  459. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  460. local NEWWELD = IT(TYPE)
  461. NEWWELD.Part0 = PART0
  462. NEWWELD.Part1 = PART1
  463. NEWWELD.C0 = C0
  464. NEWWELD.C1 = C1
  465. NEWWELD.Parent = PARENT
  466. return NEWWELD
  467. end
  468.  
  469. local S = IT("Sound")
  470. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  471. local NEWSOUND = nil
  472. coroutine.resume(coroutine.create(function()
  473. NEWSOUND = S:Clone()
  474. NEWSOUND.Parent = PARENT
  475. NEWSOUND.Volume = VOLUME
  476. NEWSOUND.Pitch = PITCH
  477. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  478. NEWSOUND:play()
  479. if DOESLOOP == true then
  480. NEWSOUND.Looped = true
  481. else
  482. repeat wait(1) until NEWSOUND.Playing == false
  483. NEWSOUND:remove()
  484. end
  485. end))
  486. return NEWSOUND
  487. end
  488.  
  489. function CFrameFromTopBack(at, top, back)
  490. local right = top:Cross(back)
  491. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  492. end
  493.  
  494. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  495. function WACKYEFFECT(Table)
  496. local TYPE = (Table.EffectType or "Sphere")
  497. local SIZE = (Table.Size or VT(1,1,1))
  498. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  499. local TRANSPARENCY = (Table.Transparency or 0)
  500. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  501. local CFRAME = (Table.CFrame or Torso.CFrame)
  502. local MOVEDIRECTION = (Table.MoveToPos or nil)
  503. local ROTATION1 = (Table.RotationX or 0)
  504. local ROTATION2 = (Table.RotationY or 0)
  505. local ROTATION3 = (Table.RotationZ or 0)
  506. local MATERIAL = (Table.Material or "Neon")
  507. local COLOR = (Table.Color or C3(1,1,1))
  508. local TIME = (Table.Time or 45)
  509. local SOUNDID = (Table.SoundID or nil)
  510. local SOUNDPITCH = (Table.SoundPitch or nil)
  511. local SOUNDVOLUME = (Table.SoundVolume or nil)
  512. coroutine.resume(coroutine.create(function()
  513. local PLAYSSOUND = false
  514. local SOUND = nil
  515. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  516. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  517. PLAYSSOUND = true
  518. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  519. end
  520. EFFECT.Color = COLOR
  521. local MSH = nil
  522. if TYPE == "Sphere" then
  523. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  524. elseif TYPE == "Block" then
  525. MSH = IT("BlockMesh",EFFECT)
  526. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  527. elseif TYPE == "Wave" then
  528. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  529. elseif TYPE == "Ring" then
  530. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  531. elseif TYPE == "Slash" then
  532. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  533. elseif TYPE == "Round Slash" then
  534. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  535. elseif TYPE == "Swirl" then
  536. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  537. elseif TYPE == "Skull" then
  538. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  539. elseif TYPE == "Crystal" then
  540. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  541. end
  542. if MSH ~= nil then
  543. local MOVESPEED = nil
  544. if MOVEDIRECTION ~= nil then
  545. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  546. end
  547. local GROWTH = SIZE - ENDSIZE
  548. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  549. if TYPE == "Block" then
  550. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  551. else
  552. EFFECT.CFrame = CFRAME
  553. end
  554. for LOOP = 1, TIME+1 do
  555. Swait()
  556. MSH.Scale = MSH.Scale - GROWTH/TIME
  557. if TYPE == "Wave" then
  558. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  559. end
  560. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  561. if TYPE == "Block" then
  562. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  563. else
  564. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  565. end
  566. if MOVEDIRECTION ~= nil then
  567. local ORI = EFFECT.Orientation
  568. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  569. EFFECT.Orientation = ORI
  570. end
  571. end
  572. if PLAYSSOUND == false then
  573. EFFECT:remove()
  574. else
  575. SOUND.Stopped:Connect(function()
  576. EFFECT:remove()
  577. end)
  578. end
  579. else
  580. if PLAYSSOUND == false then
  581. EFFECT:remove()
  582. else
  583. repeat Swait() until SOUND.Playing == false
  584. EFFECT:remove()
  585. end
  586. end
  587. end))
  588. end
  589.  
  590. function MakeForm(PART,TYPE)
  591. if TYPE == "Cyl" then
  592. local MSH = IT("CylinderMesh",PART)
  593. elseif TYPE == "Ball" then
  594. local MSH = IT("SpecialMesh",PART)
  595. MSH.MeshType = "Sphere"
  596. elseif TYPE == "Pine" then
  597. CreateMesh("SpecialMesh", PART, "FileMesh", "1033714", "", PART.Size, VT(0,0,0))
  598. end
  599. end
  600.  
  601. Debris = game:GetService("Debris")
  602.  
  603. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  604. local DIRECTION = CF(StartPos,EndPos).lookVector
  605. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  606. end
  607.  
  608. function turnto(position)
  609. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  610. end
  611.  
  612. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  613. function Lightning(Table)
  614. local Color = Table.Color or C3(1,1,1)
  615. local StartPos = Table.Start or Torso.Position
  616. local EndPos = Table.End or Mouse.Hit.p
  617. local SegmentLength = Table.SegmentL or 2
  618. local Thickness = Table.Thickness or 0.1
  619. local Dissapear = Table.DoesFade or false
  620. local Parent = Table.Ignore or Character
  621. local MaxDist = Table.MaxDist or 400
  622. local Branches = Table.Branches or false
  623. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  624. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  625. local LIGHTNINGMODEL = IT("Model",Effects)
  626. LIGHTNINGMODEL.Name = "Lightning"
  627. local LastBolt = nil
  628. for E = 1, DISTANCE do
  629. local ExtraSize = (DISTANCE-E)/15
  630. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  631. PART.Color = Color
  632. MakeForm(PART,"Cyl")
  633. if LastBolt == nil then
  634. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  635. else
  636. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  637. end
  638. LastBolt = PART
  639. if Branches == true then
  640. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  641. if CHOICE == 1 then
  642. local LASTBRANCH = nil
  643. for i = 1, MRANDOM(2,5) do
  644. local ExtraSize2 = ((DISTANCE-E)/25)/i
  645. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  646. PART.Color = Color
  647. MakeForm(PART,"Cyl")
  648. if LASTBRANCH == nil then
  649. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  650. else
  651. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  652. end
  653. LASTBRANCH = PART
  654. end
  655. end
  656. end
  657. end
  658. if Dissapear == true then
  659. coroutine.resume(coroutine.create(function()
  660. for i = 1, 30 do
  661. Swait()
  662. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  663. if c.ClassName == "Part" then
  664. c.Transparency = i/30
  665. end
  666. end
  667. end
  668. LIGHTNINGMODEL:remove()
  669. end))
  670. elseif Dissapear == false then
  671. Debris:AddItem(LIGHTNINGMODEL,0.1)
  672. end
  673. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  674. end
  675.  
  676. local Particle = IT("ParticleEmitter",nil)
  677. Particle.Enabled = false
  678. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.7,0),NumberSequenceKeypoint.new(1,1)})
  679. Particle.LightEmission = 0.5
  680. Particle.Rate = 500
  681. Particle.Rotation = NumberRange.new(-180, 180)
  682. Particle.RotSpeed = NumberRange.new(-180, 180)
  683. Particle.Texture = "http://www.roblox.com/asset/?id=51349099"
  684. Particle.Color = ColorSequence.new(C3(1,1,1))
  685.  
  686. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  687. function ParticleEmitter(Table)
  688. local PRTCL = Particle:Clone()
  689. local Speed = Table.Speed or 5
  690. local Drag = Table.Drag or 0
  691. local Size1 = Table.Size1 or 1
  692. local Size2 = Table.Size2 or 5
  693. local Lifetime1 = Table.Lifetime1 or 1
  694. local Lifetime2 = Table.Lifetime2 or 1.5
  695. local Parent = Table.Parent or Torso
  696. local Emit = Table.Emit or 100
  697. local Offset = Table.Offset or 360
  698. local Enabled = Table.Enabled or false
  699. PRTCL.Parent = Parent
  700. PRTCL.Size = NumberSequence.new(Size1,Size2)
  701. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  702. PRTCL.Speed = NumberRange.new(Speed)
  703. PRTCL.VelocitySpread = Offset
  704. PRTCL.Drag = Drag
  705. if Enabled == false then
  706. PRTCL:Emit(Emit)
  707. Debris:AddItem(PRTCL,Lifetime2)
  708. else
  709. PRTCL.Enabled = true
  710. end
  711. return PRTCL
  712. end
  713.  
  714. --//=================================\\
  715. --|| WEAPON CREATION
  716. --\\=================================//
  717.  
  718. local RWING = CreatePart(3, Weapon, "Neon", 0, 1, "Pearl", "Right Wing", (VT(2, 3, 2)*1.5),false)
  719. RWING.Color = C3(206/255, 163/255, 218/255)
  720. local RWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, RWING, CF(1 , 2, 0.5), CF(-1.5, 0, 0))
  721. local LWING = CreatePart(3, Weapon, "Neon", 0, 1, "Pearl", "Left Wing", (VT(2, 3, 2)*1.5),false)
  722. LWING.Color = C3(206/255, 163/255, 218/255)
  723. local LWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, LWING, CF(-1 , 2, 0.5), CF(1.6, 0, 0))
  724. CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5,1.5,1.5)*0.8, VT(0,0,0))
  725. CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5,1.5,1.5)*0.8, VT(0,0,0))
  726. local Mask = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(1,1,1),false)
  727. CreateMesh("SpecialMesh", Mask, "FileMesh", "395088733", "", VT(0.5,0.5,1), VT(0,0,0))
  728. CreateWeldOrSnapOrMotor("Weld", Head, Head, Mask, CF(0,0,-0.5), CF(0, 0, 0))
  729. local Mask = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "New Yeller", "Mask", VT(1.3,0.1,1.3),false)
  730. MakeForm(Mask,"Cyl")
  731. CreateWeldOrSnapOrMotor("Weld", Head, Head, Mask, CF(0,0.2,0), CF(0, 0, 0))
  732. local Black = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(0.2, 0.7, 0.3),false)
  733. Black.Color = C3(0,0,0)
  734. MakeForm(Black,"Ball")
  735. CreateWeldOrSnapOrMotor("Weld", Head, Head, Black, CF(0,0.05,-0.6), CF(0, 0, 0))
  736. local Black = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(1, 0.2, 0.3),false)
  737. Black.Color = C3(0,0,0)
  738. MakeForm(Black,"Ball")
  739. CreateWeldOrSnapOrMotor("Weld", Head, Head, Black, CF(0,0.1,-0.6), CF(0, 0, 0))
  740. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Magenta", "Mask", VT(0.1,0.1,0.1),false)
  741. MakeForm(Eye,"Ball")
  742. CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0.22,0.1,-0.7), CF(0, 0, 0))
  743. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Magenta", "Mask", VT(0.1,0.1,0.1),false)
  744. MakeForm(Eye,"Ball")
  745. CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(-0.22,0.1,-0.7), CF(0, 0, 0))
  746. local Horns = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "New Yeller", "Horns", VT(1,1,1),false)
  747. CreateWeldOrSnapOrMotor("Weld", Head, Head, Horns, CF(0,0.6,0.1), CF(0, 0, 0))
  748. --704130856
  749. local MSH = CreateMesh("SpecialMesh", Horns, "FileMesh", "704130637", "", VT(0.17, 0.17, 0.17), VT(0,0,0))
  750. MSH.VertexColor = VT(1, 1, 0.5)
  751. local MaskPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(0.4,0.4,0.4),false)
  752. MakeForm(MaskPart,"Ball")
  753. CreateWeldOrSnapOrMotor("Weld", Head, Head, MaskPart, CF(-0.35,0.35,-0.5), CF(0, 0, 0))
  754. local MaskPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Mask", VT(0.4,0.4,0.4),false)
  755. MakeForm(MaskPart,"Ball")
  756. CreateWeldOrSnapOrMotor("Weld", Head, Head, MaskPart, CF(0.35,0.35,-0.5), CF(0, 0, 0))
  757.  
  758. local Handle = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Handle", VT(0.2,1,0.2),false)
  759. MakeForm(Handle,"Cyl")
  760. local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0,-1,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  761. local Bop = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Bop", VT(0.5,0.5,0.5),false)
  762. MakeForm(Bop,"Ball")
  763. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Bop, CF(0,0.7,0), CF(0, 0, 0))
  764. local Part = CreatePart(3, Weapon, "Glass", 0, 0, "Black", "Shield", VT(0.5,0.2,0.5),false)
  765. MakeForm(Part,"Pine")
  766. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  767. local Part = CreatePart(3, Weapon, "Glass", 0, 0, "Dark blue", "Shield", VT(0.6,0.3,0.6),false)
  768. MakeForm(Part,"Pine")
  769. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-0.7,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  770. local Blade = CreatePart(3, Weapon, "Glass", 0, 0, "Magenta", "Blade", VT(0.3,5,0.3),false)
  771. MakeForm(Blade,"Pine")
  772. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Blade, CF(0,-2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  773.  
  774. local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Shield", VT(1.05,0.1,1.05),false)
  775. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(0,-0.3,0), CF(0, 0, 0))
  776. local ShieldBase = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Shield", VT(2,2,1),false)
  777. CreateMesh("SpecialMesh", ShieldBase, "FileMesh", "395088733", "", VT(1,1,1), VT(0,0,0))
  778. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, ShieldBase, CF(-0.5,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  779. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Shield", VT(0,0,0),false)
  780. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95,0.95,1), VT(0,0,0))
  781. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.4,-0.3,0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0))
  782. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0,0,0),false)
  783. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95,0.95,1), VT(0,0,0))
  784. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.515,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  785. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Pearl", "Shield", VT(0,0,0),false)
  786. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.7,0.7,1), VT(0,0,0))
  787. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  788. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0,0,0),false)
  789. CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.5,0.5,1), VT(0,0,0))
  790. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0))
  791. local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Shield", VT(0.8,2,0.2),false)
  792. MakeForm(Shield,"Ball")
  793. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65,-0.3,0), CF(0, 0, 0))
  794. local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Shield", VT(0.8,0.2,2),false)
  795. MakeForm(Shield,"Ball")
  796. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65,-0.3,0), CF(0, 0, 0))
  797. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0.8,2,0.3),false)
  798. MakeForm(Shield,"Ball")
  799. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6,-0.3,0), CF(0, 0, 0))
  800. local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Magenta", "Shield", VT(0.8,0.3,2),false)
  801. MakeForm(Shield,"Ball")
  802. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6,-0.3,0), CF(0, 0, 0))
  803.  
  804. local SKILLTEXTCOLOR = BRICKC"Magenta".Color
  805. local SKILLFONT = "SciFi"
  806. local SKILLTEXTSIZE = 12
  807.  
  808. Humanoid.DisplayDistanceType = "None"
  809. local naeeym2 = IT("BillboardGui",Character)
  810. naeeym2.AlwaysOnTop = true
  811. naeeym2.Size = UDim2.new(5,35,2,15)
  812. naeeym2.StudsOffset = Vector3.new(0,1.3,0)
  813. naeeym2.MaxDistance = 75
  814. naeeym2.Adornee = Character.Head
  815. naeeym2.Name = "Name"
  816. local tecks2 = IT("TextLabel",naeeym2)
  817. tecks2.BackgroundTransparency = 1
  818. tecks2.TextScaled = true
  819. tecks2.BorderSizePixel = 0
  820. tecks2.Text = Player.Name
  821. tecks2.Font = "SciFi"
  822. tecks2.TextSize = 30
  823. tecks2.TextStrokeTransparency = 0
  824. tecks2.TextColor3 = C3(1,1,1)
  825. tecks2.TextStrokeColor3 = SKILLTEXTCOLOR
  826. tecks2.Size = UDim2.new(1,0,0.5,0)
  827. tecks2.Parent = naeeym2
  828.  
  829. for _, c in pairs(Weapon:GetChildren()) do
  830. if c.ClassName == "Part" then
  831. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  832. end
  833. end
  834.  
  835. Weapon.Parent = Character
  836.  
  837. Humanoid.Died:connect(function()
  838. ATTACK = true
  839. end)
  840.  
  841. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Frame")
  842.  
  843. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[ Z - B - C - V - G - X ]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text")
  844.  
  845. --//=================================\\
  846. --|| DAMAGING
  847. --\\=================================//
  848.  
  849. function ApplyDamage(Humanoid,Damage,TorsoPart)
  850. local defence = Instance.new("BoolValue",Humanoid.Parent)
  851. defence.Name = ("HitBy"..Player.Name)
  852. game:GetService("Debris"):AddItem(defence, 0.001)
  853. Damage = Damage * DAMAGEMULTIPLIER
  854. if Humanoid.Health ~= 0 then
  855. local CritChance = MRANDOM(1,100)
  856. if Damage > Humanoid.Health then
  857. Damage = math.ceil(Humanoid.Health)
  858. if Damage == 0 then
  859. Damage = 0.1
  860. end
  861. end
  862. Humanoid.Health = Humanoid.Health - Damage
  863. end
  864. end
  865.  
  866. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,FRAME)
  867. local CHILDREN = workspace:GetDescendants()
  868. for index, CHILD in pairs(CHILDREN) do
  869. if CHILD.ClassName == "Model" and CHILD ~= Character then
  870. if CHILD:FindFirstChild(Player.Name.."Frames") == nil then
  871. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  872. if HUM then
  873. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  874. if TORSO then
  875. if (TORSO.Position - POSITION).Magnitude <= RANGE and HUM.Health > 0 then
  876. local FRAMES = IT("Folder",CHILD)
  877. FRAMES.Name = (Player.Name.."Frames")
  878. local DMG = 0
  879. if MINDMG > 1 then
  880. DMG = MRANDOM(MINDMG,MAXDMG)
  881. else
  882. DMG = MINDMG
  883. end
  884. ApplyDamage(HUM,DMG,TORSO)
  885. CreateSound(12222242, TORSO, 5, 1, false)
  886. coroutine.resume(coroutine.create(function()
  887. for _, c in pairs(CHILD:GetDescendants()) do
  888. if c:IsA("BasePart") then
  889. local bv = Instance.new("BodyVelocity")
  890. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  891. if POSITION.Y < TORSO.Position.Y then
  892. bv.velocity = CF(POSITION,TORSO.Position+VT(0,TORSO.Position.Y-POSITION.Y,0)).lookVector*FLING
  893. else
  894. bv.velocity = CF(POSITION,TORSO.Position+VT(0,5,0)).lookVector*FLING
  895. end
  896. bv.Parent = c
  897. c.Reflectance = c.Transparency
  898. c.Transparency = 1
  899. Debris:AddItem(bv,0.05)
  900. end
  901. end
  902. if HUM.Health > 0 then
  903. if FRAME > 0 then
  904. for i = 1, FRAME do
  905. for _, c in pairs(CHILD:GetDescendants()) do
  906. if c:IsA("BasePart") then
  907. c.Transparency = c.Reflectance
  908. c.Reflectance = 0
  909. end
  910. end
  911. wait()
  912. for _, c in pairs(CHILD:GetDescendants()) do
  913. if c:IsA("BasePart") then
  914. c.Reflectance = c.Transparency
  915. c.Transparency = 1
  916. end
  917. end
  918. wait()
  919. end
  920. else
  921. coroutine.resume(coroutine.create(function()
  922. HUM.CameraOffset = VT(MRANDOM(-35,35)/65,MRANDOM(-35,35)/65,MRANDOM(-35,35)/65)
  923. end))
  924. TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  925. end
  926. for _, c in pairs(CHILD:GetDescendants()) do
  927. if c:IsA("BasePart") then
  928. c.Transparency = c.Reflectance
  929. c.Reflectance = 0
  930. end
  931. end
  932. else
  933. for _, c in pairs(CHILD:GetDescendants()) do
  934. if c:IsA("BasePart") then
  935. c.Transparency = c.Reflectance
  936. c.Reflectance = 0
  937. end
  938. end
  939. end
  940. coroutine.resume(coroutine.create(function()
  941. HUM.CameraOffset = VT(0,0,0)
  942. end))
  943. FRAMES:remove()
  944. end))
  945. end
  946. end
  947. end
  948. end
  949. end
  950. end
  951. end
  952.  
  953. --//=================================\\
  954. --|| ATTACK FUNCTIONS AND STUFF
  955. --\\=================================//
  956.  
  957. function X()
  958. ATTACK = true
  959. Rooted = true
  960. local TOAIM = Mouse.Hit.p
  961. turnto(Mouse.Hit.p)
  962. local DONE = false
  963. Humanoid.HipHeight = 5
  964. for i=0, 0.2, 0.1 / Animation_Speed do
  965. Swait()
  966. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  967. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.75 / Animation_Speed)
  968. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  969. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  970. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  971. end
  972. for i=0, 1.3, 0.1 / Animation_Speed do
  973. Swait()
  974. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0-0.5 * COS(SINE), 0) * ANGLES(RAD(0), RAD(0), RAD(230)), 0.75 / Animation_Speed)
  975. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  976. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  977. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  978. end
  979. CreateSound(1537955136, Blade, 5, 1, false)
  980. local SLICE = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Slash", VT(0,16,0))
  981. MakeForm(SLICE,"Ball")
  982. CreateSound(342793847, SLICE, 5, 3, false)
  983. SLICE.CFrame = CF(RootPart.CFrame*CF(0,0,4).p,TOAIM) * ANGLES(RAD(0), RAD(0), RAD(-45))
  984. --SLICE.Color = C3(100/255, 58/255, 104/255)
  985. ParticleEmitter({Speed = 2, Drag = 3, Size1 = 0.2, Size2 = 1, Lifetime1 = 1, Lifetime2 = 3, Parent = SLICE, Emit = 15, Offset = 360, Enabled = false})
  986. coroutine.resume(coroutine.create(function()
  987. Swait(35)
  988. SLICE.Transparency = 0
  989. for i = 1, 45 do
  990. Swait()
  991. SLICE.Size = SLICE.Size + VT(1+i/45,0,0)/5
  992. end
  993. wait(0.3)
  994. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "SlashBeam", VT(0,0,0))
  995. MakeForm(BEAM,"Cyl")
  996. BEAM.Color = SLICE.Color
  997. local AIMHIT,AIMPOS = CastProperRay(SLICE.Position,TOAIM,750,Character)
  998. local DISTANCE = (SLICE.Position - AIMPOS).Magnitude
  999. BEAM.CFrame = CF(SLICE.Position,AIMPOS)*CF(0,0,-(DISTANCE/2)-7.5)*ANGLES(RAD(90),RAD(0),RAD(0))
  1000. BEAM.Size = VT(0,DISTANCE+15,0)
  1001. BEAM.Mesh.Scale = VT(1.8,1,1.8)
  1002. local BOP = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Bop", VT(0,0,0))
  1003. MakeForm(BOP,"Ball")
  1004. BOP.Color = SLICE.Color
  1005. BOP.CFrame = BEAM.CFrame*CF(0,-BEAM.Size.Y/2,0)
  1006. wait(0.1)
  1007. local SIZE = SLICE.Size.X
  1008. local SOUND = CreateSound(415700134, SLICE, 10, 1, false)
  1009. local PRT = ParticleEmitter({Speed = 0, Drag = 0, Size1 = 0.3, Size2 = 0.7, Lifetime1 = 1, Lifetime2 = 1.5, Parent = BEAM, Emit = 100, Offset = 360, Enabled = true})
  1010. PRT.ZOffset = 12
  1011. for i = 1, 25 do
  1012. Swait()
  1013. for i = 1, math.ceil(BEAM.Size.Y/5) do
  1014. ApplyAoE(BEAM.CFrame*CF(0,BEAM.Size.Y/2-i*5,0).p,BEAM.Size.X/1.5,1,1,5,0)
  1015. end
  1016. BEAM.Size = BEAM.Size + VT(SIZE/25,0,SIZE/25)/1.8
  1017. BOP.Size = BOP.Size + VT(SIZE/25,SIZE/25,SIZE/25)
  1018. Humanoid.CameraOffset = VT(MRANDOM(-35,35)/65,MRANDOM(-35,35)/65,MRANDOM(-35,35)/65)
  1019. end
  1020. repeat
  1021. Swait()
  1022. BOP.CFrame = BEAM.CFrame*CF(0,-BEAM.Size.Y/2,0)
  1023. --Lightning({Color = SLICE.Color, Start = SLICE.Position, End = SLICE.CFrame*CF(0,0,-15)*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, SegmentL = 2, Thickness = 0.3, DoesFade = true, Ignore = workspace, MaxDist = 45, Branches = false})
  1024. SOUND.Parent = SLICE
  1025. for i = 1, math.ceil(BEAM.Size.Y/5) do
  1026. ApplyAoE(BEAM.CFrame*CF(0,BEAM.Size.Y/2-i*5,0).p,BEAM.Size.X/1.5,1,1,5,0)
  1027. end
  1028. Humanoid.CameraOffset = VT(MRANDOM(-35,35)/65,MRANDOM(-35,35)/65,MRANDOM(-35,35)/65)
  1029. until SOUND.Playing == false
  1030. BOP:remove()
  1031. BEAM:remove()
  1032. DONE = true
  1033. Humanoid.CameraOffset = VT(0,0,0)
  1034. for i = 1, 45 do
  1035. Swait()
  1036. SLICE.Size = SLICE.Size - VT(1+i/45,0,0)/5
  1037. end
  1038. SLICE:remove()
  1039. end))
  1040. for i=0, 1, 0.1 / Animation_Speed do
  1041. Swait()
  1042. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(40), RAD(0), RAD(0)), 3 / Animation_Speed)
  1043. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(130)), 3 / Animation_Speed)
  1044. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 3 / Animation_Speed)
  1045. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(-75), RAD(45)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1046. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1047. end
  1048. FORCEWINGS = true
  1049. for i = 1, 200 do
  1050. Swait()
  1051. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed)
  1052. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(180+i)) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(i, -i, i*5), 0.75 / Animation_Speed)
  1053. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1054. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1055. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1056. end
  1057. repeat wait() until DONE == true
  1058. RootJoint.C0 = CF(0,300,0)
  1059. Humanoid.HipHeight = 1
  1060. for i = 1, 50 do
  1061. Swait()
  1062. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(40), RAD(0), RAD(0)), 3 / Animation_Speed)
  1063. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0), 0.25 / Animation_Speed)
  1064. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1065. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(32)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1066. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-32)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1067. end
  1068. ATTACK = false
  1069. Rooted = false
  1070. FORCEWINGS = false
  1071. end
  1072. function Intro()
  1073. ATTACK = true
  1074. Rooted = true
  1075. for i=0, 0.2, 0.1 / Animation_Speed do
  1076. Swait()
  1077. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.85) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed)
  1078. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.85) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed)
  1079. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  1080. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  1081. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1082. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1083. end
  1084. for i=0, 3, 0.1 / Animation_Speed do
  1085. Swait()
  1086. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1087. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1088. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0-0.5 * COS(SINE), 0, 0) * ANGLES(RAD(0), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  1089. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  1090. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1091. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1092. end
  1093. CreateSound(1537955136, Blade, 5, 1, false)
  1094. RWING.Transparency = 0
  1095. LWING.Transparency = 0
  1096. for i = 1, 15 do
  1097. Swait()
  1098. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.55) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed)
  1099. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.55) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed)
  1100. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-50-((i/15)*360))), 0.75 / Animation_Speed)
  1101. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  1102. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1103. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1104. end
  1105. for i = 1, 15 do
  1106. Swait()
  1107. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.55) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed)
  1108. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.55) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed)
  1109. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  1110. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  1111. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1112. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1113. end
  1114. for i=0, 1, 0.1 / Animation_Speed do
  1115. Swait()
  1116. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.75 / Animation_Speed)
  1117. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.75 / Animation_Speed)
  1118. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1119. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1120. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1121. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1122. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1123. end
  1124. ATTACK = false
  1125. Rooted = false
  1126. end
  1127. function Z()
  1128. ATTACK = true
  1129. Rooted = true
  1130. CreateSound(1537955136, Torso, 5, 1, false)
  1131. for i=1, 15 do
  1132. Swait()
  1133. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.5)
  1134. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+i/15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1136. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1137. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1138. end
  1139. for i=0, 0.3, 0.1 / Animation_Speed do
  1140. Swait()
  1141. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.015)
  1142. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1143. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1144. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1145. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1146. end
  1147. FORCEWINGS = true
  1148. for i = 1, 10 do
  1149. for i=0, 0.02, 0.1 / Animation_Speed do
  1150. Swait()
  1151. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(90), RAD(0), RAD(0)), 2 / Animation_Speed)
  1152. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed)
  1153. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-85)), 2 / Animation_Speed)
  1154. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1155. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1156. end
  1157. local RANDOM = MRANDOM(-7,7)/5
  1158. local RANDOM2 = MRANDOM(-7,7)/5
  1159. for i=0, 0.01, 0.1 / Animation_Speed do
  1160. Swait()
  1161. RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2)
  1162. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1163. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 3 / Animation_Speed)
  1164. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 3 / Animation_Speed)
  1165. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.75, 0.5+RANDOM, 0+RANDOM2) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1166. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1167. end
  1168. local WAVES = {}
  1169. coroutine.resume(coroutine.create(function()
  1170. repeat
  1171. Swait()
  1172. for E = 1, #WAVES do
  1173. if WAVES[E] ~= nil then
  1174. ApplyAoE(WAVES[E].Position,3,25,35,35,3)
  1175. if WAVES[E].Transparency > 0.99 then
  1176. WAVES[E]:remove()
  1177. table.remove(WAVES,E)
  1178. else
  1179. WAVES[E].CFrame = WAVES[E].CFrame * CF(0,1.2,0)
  1180. WAVES[E].Transparency = WAVES[E].Transparency + 0.75/25
  1181. end
  1182. end
  1183. end
  1184. until #WAVES == 0
  1185. end))
  1186. local Wave = CreatePart(3, Effects, "Glass", 0, 0.25, "New Yeller", "Wave", VT(1,3,1))
  1187. MakeForm(Wave,"Pine")
  1188. Wave.CFrame = Blade.CFrame
  1189. table.insert(WAVES,Wave)
  1190. CreateSound(1537955679, Wave, 7, 1, true)
  1191. end
  1192. ATTACK = false
  1193. Rooted = false
  1194. FORCEWINGS = false
  1195. end
  1196. function B()
  1197. ATTACK = true
  1198. Rooted = false
  1199. FORCEWINGS = true
  1200. for i=0, 1, 0.1 / Animation_Speed do
  1201. Swait()
  1202. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1203. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0-0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1204. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1205. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1206. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1207. end
  1208. CreateSound(1537955679, Blade, 7, 0.7, false)
  1209. Rooted = true
  1210. for i=0, 0.4, 0.1 / Animation_Speed do
  1211. Swait()
  1212. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1213. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1214. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1215. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1216. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1217. end
  1218. coroutine.resume(coroutine.create(function()
  1219. local FRAME = RootPart.CFrame*CF(0,-5,-0.5)
  1220. for i = 1, 125 do
  1221. Swait()
  1222. FRAME = FRAME * CF(0,0,-1)
  1223. ApplyAoE(FRAME.p,5,45,55,35,15)
  1224. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,18,1), Size2 = VT(1,0,1), Transparency = 0, Transparency2 = 1, CFrame = FRAME, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = RWING.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1225. end
  1226. end))
  1227. for i=0, 0.2, 0.1 / Animation_Speed do
  1228. Swait()
  1229. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1230. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1231. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1232. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1233. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1234. end
  1235. FORCEWINGS = false
  1236. ATTACK = false
  1237. Rooted = false
  1238. end
  1239. function C()
  1240. FORCEWINGS = true
  1241. ATTACK = true
  1242. for i=0, 1, 0.1 / Animation_Speed do
  1243. Swait()
  1244. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1245. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1246. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1247. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1248. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1249. end
  1250. Rooted = true
  1251. local Orb = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Orb", VT(0,0,0))
  1252. MakeForm(Orb,"Ball")
  1253. Orb.CFrame = Blade.CFrame*CF(0,2.25,0)
  1254. for i = 1, 35 do
  1255. Swait()
  1256. Orb.CFrame = Blade.CFrame*CF(0,2.25,0)
  1257. Orb.Size = Orb.Size + VT(0.05,0.05,0.05)
  1258. end
  1259. local MAIN = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Beam", VT(0,0,0))
  1260. MakeForm(MAIN,"Cyl")
  1261. for i = 1, 200 do
  1262. Swait()
  1263. local AIMHIT,AIMPOS = CastProperRay(Orb.Position,Mouse.Hit.p,750,Character)
  1264. local DISTANCE = (Orb.Position - AIMPOS).Magnitude
  1265. MAIN.CFrame = CF(Orb.Position,AIMPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(90),RAD(0),RAD(0))
  1266. MAIN.Size = VT(0.7,DISTANCE,0.7)
  1267. ApplyAoE(AIMPOS,3,35,65,35,20)
  1268. end
  1269. MAIN:remove()
  1270. ATTACK = false
  1271. Rooted = false
  1272. FORCEWINGS = false
  1273. for i = 1, 35 do
  1274. Swait()
  1275. Orb.Size = Orb.Size - VT(0.05,0.05,0.05)
  1276. end
  1277. Orb:remove()
  1278. end
  1279. function V()
  1280. FORCEWINGS = true
  1281. ATTACK = true
  1282. Rooted = true
  1283. local AREAS = {}
  1284. for i = 1, 15 do
  1285. local AREA = CF(RootPart.Position)* ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(6,35)).p
  1286. local HITFLOOR,HITPOS = CastProperRay(AREA+VT(0,35,0), AREA-VT(0,35,0), 65, Character)
  1287. if HITFLOOR then
  1288. table.insert(AREAS,HITPOS)
  1289. end
  1290. end
  1291. for E = 1, 35 do
  1292. Swait()
  1293. for i = 1, #AREAS do
  1294. WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,1,5), Size2 = VT(5,1,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(AREAS[i]) * ANGLES(RAD(0), RAD(E), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = RWING.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1295. end
  1296. --LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.85) * ANGLES(RAD(0), RAD(65), RAD(0)), 0.75 / Animation_Speed)
  1297. --RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.85) * ANGLES(RAD(0), RAD(-65), RAD(0)), 0.75 / Animation_Speed)
  1298. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0-0.5 * COS(SINE), 0) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.75 / Animation_Speed)
  1299. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed)
  1300. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1301. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1302. end
  1303. for E = 1, 12 do
  1304. Swait()
  1305. for i = 1, #AREAS do
  1306. WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,1,5), Size2 = VT(5,1,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(AREAS[i]) * ANGLES(RAD(0), RAD(E+35), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = RWING.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1307. end
  1308. --LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.75 / Animation_Speed)
  1309. --RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.75 / Animation_Speed)
  1310. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1311. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1312. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1313. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1314. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1315. end
  1316. for i = 1, #AREAS do
  1317. ApplyAoE(AREAS[i],15,45,55,35,20)
  1318. Lightning({Color = BRICKC"New Yeller".Color, Start = AREAS[i], End = AREAS[i]+VT(0,100,0), SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = workspace, MaxDist = 30, Branches = false})
  1319. Lightning({Color = RWING.Color, Start = AREAS[i], End = AREAS[i]+VT(0,100,0), SegmentL = 2, Thickness = 0.3, DoesFade = true, Ignore = workspace, MaxDist = 35, Branches = false})
  1320. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(10,0,10), Size2 = VT(9,5,9), Transparency = 0, Transparency2 = 1, CFrame = CF(AREAS[i]), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = RWING.Color, SoundID = 1537955136, SoundPitch = MRANDOM(6,8)/10, SoundVolume = 2})
  1321. end
  1322. for i=0, 0.5, 0.1 / Animation_Speed do
  1323. Swait()
  1324. --LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.75 / Animation_Speed)
  1325. --RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.75 / Animation_Speed)
  1326. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1327. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1328. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1329. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1330. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1331. end
  1332. FORCEWINGS = false
  1333. ATTACK = false
  1334. Rooted = false
  1335. end
  1336. function G()
  1337. ATTACK = true
  1338. Rooted = true
  1339. FORCEWINGS = true
  1340. CreateSound(1537955136, Torso, 5, 1, false)
  1341. for i=1, 15 do
  1342. Swait()
  1343. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.8)
  1344. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+i/15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1345. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1346. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1347. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1348. end
  1349. for i=0, 0.3, 0.1 / Animation_Speed do
  1350. Swait()
  1351. RootPart.CFrame = RootPart.CFrame * CF(0,0,0.015)
  1352. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed)
  1353. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed)
  1354. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1355. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1356. end
  1357. for i=0, 1, 0.1 / Animation_Speed do
  1358. Swait()
  1359. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1360. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0-0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1361. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1362. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1363. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1364. end
  1365. CreateSound(1537955679, Blade, 7, 0.7, false)
  1366. for i=0, 0.4, 0.1 / Animation_Speed do
  1367. Swait()
  1368. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1369. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1370. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1371. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1372. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1373. end
  1374. local TORNADOBASE = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Tornado", VT(5,45/2,5))
  1375. MakeForm(TORNADOBASE,"Ball")
  1376. TORNADOBASE.Mesh.Scale = VT(1,8,1)
  1377. local SWIRL = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Tornado", VT(0,0,0))
  1378. CreateMesh("SpecialMesh", SWIRL, "FileMesh", "1051557", "", VT(6,45*3,6), VT(0,0,0))
  1379. local SWIRL2 = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Tornado", VT(0,0,0))
  1380. CreateMesh("SpecialMesh", SWIRL2, "FileMesh", "1051557", "", VT(6,45*3,6), VT(0,0,0))
  1381. CreateSound(415700134, TORNADOBASE, 3, 0.5, true)
  1382. coroutine.resume(coroutine.create(function()
  1383. local FRAME = RootPart.CFrame*CF(0,-5,-0.5)
  1384. for E = 1, 185 do
  1385. Swait()
  1386. FRAME = FRAME * CF(0,0,-0.8)
  1387. TORNADOBASE.CFrame = FRAME*CF(0,TORNADOBASE.Size.Y/2,0)
  1388. SWIRL.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(E*5), RAD(0))
  1389. SWIRL2.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(-E*15), RAD(0))
  1390. for i = 1, math.ceil(TORNADOBASE.Size.Y/6) do
  1391. ApplyAoE(TORNADOBASE.CFrame*CF(0,TORNADOBASE.Size.Y/2,0)*CF(0,-i*6,0).p,8,2,2,-35,0)
  1392. end
  1393. WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(10,8,10), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(FRAME.p) * ANGLES(RAD(0), RAD(E*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = TORNADOBASE.Color, SoundID = nil, SoundPitch = MRANDOM(6,8)/10, SoundVolume = 2})
  1394. end
  1395. for i = 1, 15 do
  1396. Swait()
  1397. TORNADOBASE.Transparency = i/15
  1398. SWIRL.Transparency = i/15
  1399. SWIRL2.Transparency = i/15
  1400. SWIRL.CFrame = SWIRL.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0))
  1401. SWIRL2.CFrame = SWIRL2.CFrame * ANGLES(RAD(0), RAD(-i*15), RAD(0))
  1402. end
  1403. TORNADOBASE:remove()
  1404. SWIRL:remove()
  1405. SWIRL2:remove()
  1406. end))
  1407. for i=0, 0.2, 0.1 / Animation_Speed do
  1408. Swait()
  1409. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed)
  1410. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1411. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1412. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1413. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1414. end
  1415. FORCEWINGS = false
  1416. ATTACK = false
  1417. Rooted = false
  1418. end
  1419.  
  1420. --//=================================\\
  1421. --|| ASSIGN THINGS TO KEYS
  1422. --\\=================================//
  1423.  
  1424. function MouseDown(Mouse)
  1425. if ATTACK == false then
  1426. end
  1427. end
  1428.  
  1429. function MouseUp(Mouse)
  1430. HOLD = false
  1431. end
  1432.  
  1433. function KeyDown(Key)
  1434. KEYHOLD = true
  1435. if Key == "z" and ATTACK == false then
  1436. Z()
  1437. end
  1438.  
  1439. if Key == "b" and ATTACK == false then
  1440. B()
  1441. end
  1442.  
  1443. if Key == "c" and ATTACK == false then
  1444. C()
  1445. end
  1446.  
  1447. if Key == "v" and ATTACK == false then
  1448. V()
  1449. end
  1450.  
  1451. if Key == "g" and ATTACK == false then
  1452. G()
  1453. end
  1454.  
  1455. if Key == "x" and ATTACK == false then
  1456. X()
  1457. end
  1458. end
  1459.  
  1460. function KeyUp(Key)
  1461. KEYHOLD = false
  1462. end
  1463.  
  1464. Mouse.Button1Down:connect(function(NEWKEY)
  1465. MouseDown(NEWKEY)
  1466. end)
  1467. Mouse.Button1Up:connect(function(NEWKEY)
  1468. MouseUp(NEWKEY)
  1469. end)
  1470. Mouse.KeyDown:connect(function(NEWKEY)
  1471. KeyDown(NEWKEY)
  1472. end)
  1473. Mouse.KeyUp:connect(function(NEWKEY)
  1474. KeyUp(NEWKEY)
  1475. end)
  1476.  
  1477. --//=================================\\
  1478. --\\=================================//
  1479.  
  1480.  
  1481. function unanchor()
  1482. if UNANCHOR == true then
  1483. g = Character:GetChildren()
  1484. for i = 1, #g do
  1485. if g[i].ClassName == "Part" then
  1486. g[i].Anchored = false
  1487. end
  1488. end
  1489. end
  1490. end
  1491.  
  1492.  
  1493. --//=================================\\
  1494. --|| WRAP THE WHOLE SCRIPT UP
  1495. --\\=================================//
  1496.  
  1497. Humanoid.Changed:connect(function(Jump)
  1498. if Jump == "Jump" and (Disable_Jump == true) then
  1499. Humanoid.Jump = false
  1500. end
  1501. end)
  1502.  
  1503. while true do
  1504. Swait()
  1505. script.Parent = WEAPONGUI
  1506. ANIMATE.Parent = nil
  1507. if Humanoid then
  1508. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1509. IDLEANIMATION:Play()
  1510. end
  1511. SINE = SINE + CHANGE*2
  1512. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1513. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1514. if ATTACK == false then
  1515. Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1516. if TORSOVELOCITY < 1 then
  1517. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.75 / Animation_Speed)
  1518. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(35)), 0.75 / Animation_Speed)
  1519. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(5 - 5 * COS(SINE / 12)), RAD(-35), RAD(12 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1520. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1521. elseif TORSOVELOCITY > 1 then
  1522. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1523. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.75 / Animation_Speed)
  1524. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  1525. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(-35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
  1526. end
  1527. end
  1528. if FORCEWINGS == true or ATTACK == false then
  1529. LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.7 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(12 * COS(SINE / 12)), RAD(45), RAD(0)), 0.75 / Animation_Speed)
  1530. RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.7 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(12 * COS(SINE / 12)), RAD(-45), RAD(0)), 0.75 / Animation_Speed)
  1531. end
  1532. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.7, -0.4) * ANGLES(RAD(-25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1533. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.7, -0.4) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1534. unanchor()
  1535. Humanoid.MaxHealth = "inf"
  1536. Humanoid.Health = "inf"
  1537. if Rooted == false then
  1538. Disable_Jump = false
  1539. Humanoid.WalkSpeed = Speed
  1540. elseif Rooted == true then
  1541. Disable_Jump = true
  1542. Humanoid.WalkSpeed = 0
  1543. end
  1544. sick.SoundId = "rbxassetid://152000442"
  1545. sick.Looped = true
  1546. sick.Pitch = 1
  1547. sick.Volume = 1
  1548. sick.Parent = Torso
  1549. sick:Resume()
  1550. if VALUE1 == false then
  1551. VALUE1 = true
  1552. coroutine.resume(coroutine.create(function()
  1553. Intro()
  1554. end))
  1555. end
  1556. for _, c in pairs(Character:GetChildren()) do
  1557. if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1558. c:remove()
  1559. end
  1560. end
  1561. Humanoid.Name = "Galacta "..Player.Name
  1562. end
  1563.  
  1564. --//=================================\\
  1565. --\\=================================//
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571. --//====================================================\\--
  1572. --|| END OF SCRIPT
  1573. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement