Advertisement
Godofadmin1337

Galacta FE

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