Advertisement
StarzoZero

Roblox The Angel Script (maybe not fe)

Jan 1st, 2019
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.98 KB | None | 0 0
  1. -- This script has been converted to FE by StarzoZero
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by StarzoZero")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. -- Created by Nebula_Zorua --
  88. -- The Angel --
  89. -- A higher being.. Here to smite you evil-doers! --
  90. -- Discord: Nebula the Zorua#6969
  91. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  92. wait(1/60)
  93.  
  94. --// Initializing \\--
  95. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  96. local Plrs = S.Players
  97. local Plr = owner
  98. local Char = Plr.Character
  99. local Hum = Char:FindFirstChildOfClass'Humanoid'
  100. local RArm = Char["Right Arm"]
  101. local LArm = Char["Left Arm"]
  102. local RLeg = Char["Right Leg"]
  103. local LLeg = Char["Left Leg"]
  104. local Root = Char:FindFirstChild'HumanoidRootPart'
  105. local Torso = Char.Torso
  106. local Head = Char.Head
  107. local NeutralAnims = true
  108. local Attack = false
  109. local BloodPuddles = {}
  110. local Effects = {}
  111. local Debounces = {Debounces={}}
  112. local Hit = {}
  113. local Sine = 0
  114. local Change = 1
  115. local PulseTime = 0
  116. local DustTime = 0
  117.  
  118. local Rooted = false
  119. --// Debounce System \\--
  120.  
  121. function Debounces:New(name,cooldown)
  122. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  123. setmetatable(aaaaa,{__index = Debounces})
  124. Debounces.Debounces[name] = aaaaa
  125. return aaaaa
  126. end
  127.  
  128. function Debounces:Use(overrideUsable)
  129. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  130. if(self.Usable or overrideUsable)then
  131. self.Usable = false
  132. self.CoolingDown = true
  133. local LastUse = time()
  134. self.LastUse = LastUse
  135. delay(self.Cooldown or 2,function()
  136. if(self.LastUse == LastUse)then
  137. self.CoolingDown = false
  138. self.Usable = true
  139. end
  140. end)
  141. end
  142. end
  143.  
  144. function Debounces:Get(name)
  145. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  146. for i,v in next, Debounces.Debounces do
  147. if(i == name)then
  148. return v;
  149. end
  150. end
  151. end
  152.  
  153. function Debounces:GetProgressPercentage()
  154. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  155. if(self.CoolingDown and not self.Usable)then
  156. return math.max(
  157. math.floor(
  158. (
  159. (time()-self.LastUse)/self.Cooldown or 2
  160. )*100
  161. )
  162. )
  163. else
  164. return 100
  165. end
  166. end
  167.  
  168. --// Shortcut Variables \\--
  169. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  170. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  171. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  172. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG = function(min,max,div) return math.random(min,max)/(div or 1) end,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  173. local R3 = {N=Region3.new}
  174. local De = S.Debris
  175. local WS = workspace
  176. local Lght = S.Lighting
  177. local RepS = S.ReplicatedStorage
  178. local IN = Instance.new
  179. --// Instance Creation Functions \\--
  180.  
  181. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  182. local Sound = IN("Sound")
  183. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  184. Sound.Pitch = pitch or 1
  185. Sound.Volume = volume or 1
  186. Sound.Looped = looped or false
  187. if(autoPlay)then
  188. coroutine.wrap(function()
  189. repeat wait() until Sound.IsLoaded
  190. Sound.Playing = autoPlay or false
  191. end)()
  192. end
  193. if(not looped and effect)then
  194. Sound.Stopped:connect(function()
  195. Sound.Volume = 0
  196. Sound:destroy()
  197. end)
  198. elseif(effect)then
  199. warn("Sound can't be looped and a sound effect!")
  200. end
  201. Sound.Parent =parent or Torso
  202. return Sound
  203. end
  204. function Part(parent,color,material,size,cframe,anchored,cancollide)
  205. local part = IN("Part")
  206. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  207. part.Material = material or Enum.Material.SmoothPlastic
  208. part.TopSurface,part.BottomSurface=10,10
  209. part.Size = size or V3.N(1,1,1)
  210. part.CFrame = cframe or CF.N(0,0,0)
  211. part.Anchored = anchored or true
  212. part.CanCollide = cancollide or false
  213. part.Parent = parent or Char
  214. return part
  215. end
  216. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  217. local class = "SpecialMesh"
  218. if(meshtype == Enum.MeshType.Brick)then class = 'BlockMesh' end
  219.  
  220. local part = IN(class)
  221. if(class == "SpecialMesh")then
  222. part.MeshId = meshid or ""
  223. part.TextureId = textid or ""
  224. part.MeshType = meshtype or Enum.MeshType.Sphere
  225. end
  226. part.Scale = scale or V3.N(1,1,1)
  227. part.Offset = offset or V3.N(0,0,0)
  228.  
  229. part.Parent = parent
  230. return part
  231. end
  232.  
  233. NewInstance = function(instance,parent,properties)
  234. local inst = Instance.new(instance,parent)
  235. if(properties)then
  236. for i,v in next, properties do
  237. pcall(function() inst[i] = v end)
  238. end
  239. end
  240. return inst;
  241. end
  242.  
  243.  
  244.  
  245. --// Extended ROBLOX tables \\--
  246. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  247. --// Customization \\--
  248.  
  249. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  250. local Remove_Hats = true
  251. local Remove_Clothing = true
  252. local PlayerSize = 1
  253. local DamageColor = BrickColor.new'New Yeller'
  254. local MusicID = 835120625
  255.  
  256. --// Weapon and GUI creation, and Character Customization \\--
  257.  
  258. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  259. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  260. Instance.ClearChildrenOfClass(Char,"Decal",true)
  261. local Effects = IN("Folder",Char)
  262. Effects.Name = "Effects"
  263.  
  264. local Halo = IN("Model",Char)
  265. Halo.Name = "Halo"
  266.  
  267. local Wings = IN("Model",Char)
  268. Wings.Name = "Wings"
  269.  
  270. Hum.DisplayDistanceType = 'None'
  271.  
  272. local naeeym2 = IN("BillboardGui",Char)
  273. naeeym2.AlwaysOnTop = true
  274. naeeym2.Size = UDim2.new(5,35,2,15)
  275. naeeym2.StudsOffset = V3.N(0,2.5,0)
  276. naeeym2.Adornee = Char.Head
  277. naeeym2.Name = "Name"
  278. naeeym2.PlayerToHideFrom = Plr
  279. local tecks2 = IN("TextLabel",naeeym2)
  280. tecks2.BackgroundTransparency = 1
  281. tecks2.TextScaled = true
  282. tecks2.BorderSizePixel = 0
  283. tecks2.Text = "The Angel"
  284. tecks2.Font = Enum.Font.Bodoni
  285. tecks2.TextSize = 30
  286. tecks2.TextStrokeTransparency = 0
  287. tecks2.TextColor3 = C3.N(0,0,0)
  288. tecks2.TextStrokeColor3 = C3.N(1,1,0)
  289. tecks2.Size = UDim2.new(1,0,0.5,0)
  290. tecks2.Parent = naeeym2
  291.  
  292. pcall(function()
  293. Char.LeftWing:destroy()
  294. Char.ReaperShadowHead:destroy()
  295. end)
  296.  
  297. for _,v in next, Char:children() do
  298. if(v:IsA'BasePart' and v.Transparency < 1 and v ~= Head)then
  299. NewInstance("SelectionBox",v,{Adornee=v,LineThickness=.01,Color3=C3.N(1,1,0)})
  300. if(v ~= Head)then IN("BlockMesh",v) end
  301. end
  302. end
  303.  
  304. local HaloHandle = NewInstance("Part",Halo,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,})
  305. local WingHandle = NewInstance("Part",Wings,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,})
  306.  
  307. for i = 1, 360,5 do
  308. local part = NewInstance("Part",Halo,{BrickColor=BrickColor.new"New Yeller",Material=Enum.Material.Neon,Size=V3.N(0.69,0.1,0.3),Anchored=false,CanCollide=false,Locked=true,Transparency=.6})
  309. local weld = NewInstance("Weld",part,{Part0=HaloHandle,Part1=part,C0=CF.A(0,M.R(i),0)*CF.N(0,0,-.6)})
  310. end
  311.  
  312. if(PlayerSize ~= 1)then
  313. for _,v in next, Char:GetDescendats() do
  314. if(v:IsA'BasePart')then
  315. v.Size = v.Size * PlayerSize
  316. end
  317. end
  318. end
  319.  
  320. local Music = Sound(Char,MusicID,1,3,true,false,true)
  321. Music.Name = 'Music'
  322.  
  323. -- Wing Creation
  324. local FeatherWelds = {{},{}}
  325. local inc = 1
  326. for aa = 1, 4 do
  327. local lastFeather;
  328. FeatherWelds[1][aa] = {}
  329. for i = 1, 4+inc do
  330. local feather = NewInstance("Part",Wings,{CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0),TopSurface=10,BottomSurface=10,Size=V3.N(2,.5,.75),CanCollide=false,Color=C3.N(1,1,1)})
  331. NewInstance("SpecialMesh",feather,{MeshType=Enum.MeshType.Sphere})
  332. if(lastFeather)then
  333. table.insert(FeatherWelds[1][aa],NewInstance("Weld",feather,{Part0=lastFeather,Part1=feather,C0=CF.N(.5,.25,0)*CF.A(0,0,M.R(-5))}))
  334. else
  335. table.insert(FeatherWelds[1][aa],NewInstance("Weld",feather,{Part0=feather,Part1=WingHandle,C0=CF.N(-2,aa/4,0)*CF.A(0,0,M.R(-5))}))
  336. end
  337. lastFeather = feather
  338. end
  339. inc = inc + 1
  340. end
  341.  
  342. local inc = 1
  343. for aa = 1, 4 do
  344. local lastFeather;
  345. FeatherWelds[2][aa] = {}
  346. for i = 1, 4+inc do
  347. local feather = NewInstance("Part",Wings,{CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0),TopSurface=10,BottomSurface=10,Size=V3.N(2,.5,.75),CanCollide=false,Color=C3.N(1,1,1)})
  348. NewInstance("SpecialMesh",feather,{MeshType=Enum.MeshType.Sphere})
  349. if(lastFeather)then
  350. table.insert(FeatherWelds[2][aa],NewInstance("Weld",feather,{Part0=lastFeather,Part1=feather,C0=CF.N(-.5,.25,0)*CF.A(0,0,M.R(5))}))
  351. else
  352. table.insert(FeatherWelds[2][aa],NewInstance("Weld",feather,{Part0=feather,Part1=WingHandle,C0=CF.N(2,aa/4,0)*CF.A(0,0,M.R(5))}))
  353. end
  354. lastFeather = feather
  355. end
  356. inc = inc + 1
  357. end
  358.  
  359. --// Stop animations \\--
  360. for _,v in next, Hum:GetPlayingAnimationTracks() do
  361. v:Stop();
  362. end
  363.  
  364. pcall(game.Destroy,Char:FindFirstChild'Animate')
  365. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  366.  
  367. --// Joints \\--
  368.  
  369. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  370. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  371. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  372. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  373. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  374. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  375. local HW = NewInstance('Motor',Char,{Part0=Head,Part1=HaloHandle,C0=CF.N(0,2,0)})
  376. local WW = NewInstance('Motor',Char,{Part0=Torso,Part1=WingHandle,C0=CF.N(0,1.5,1.5)})
  377.  
  378. local LSC0 = LS.C0
  379. local RSC0 = RS.C0
  380. local NKC0 = NK.C0
  381. local LHC0 = LH.C0
  382. local RHC0 = RH.C0
  383. local RJC0 = RJ.C0
  384.  
  385. --// Artificial HB \\--
  386.  
  387. local ArtificialHB = IN("BindableEvent", script)
  388. ArtificialHB.Name = "Heartbeat"
  389.  
  390. script:WaitForChild("Heartbeat")
  391.  
  392. local tf = 0
  393. local allowframeloss = false
  394. local tossremainder = false
  395. local lastframe = tick()
  396. local frame = 1/Frame_Speed
  397. ArtificialHB:Fire()
  398.  
  399. game:GetService("RunService").Heartbeat:connect(function(s, p)
  400. tf = tf + s
  401. if tf >= frame then
  402. if allowframeloss then
  403. script.Heartbeat:Fire()
  404. lastframe = tick()
  405. else
  406. for i = 1, math.floor(tf / frame) do
  407. ArtificialHB:Fire()
  408. end
  409. lastframe = tick()
  410. end
  411. if tossremainder then
  412. tf = 0
  413. else
  414. tf = tf - frame * math.floor(tf / frame)
  415. end
  416. end
  417. end)
  418.  
  419. function swait(num)
  420. if num == 0 or num == nil then
  421. ArtificialHB.Event:wait()
  422. else
  423. for i = 0, num do
  424. ArtificialHB.Event:wait()
  425. end
  426. end
  427. end
  428.  
  429.  
  430. --// Effect Function(s) \\--
  431.  
  432.  
  433. function Chat(text)
  434. --if(game.PlaceId ~= 843468296)then
  435. coroutine.wrap(function()
  436. if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end
  437. local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head})
  438. local Txt = NewInstance("TextLabel",BBG,{Text = "",BackgroundTransparency=1,TextColor3=C3.N(1,1,0),BorderSizePixel=0,Font=Enum.Font.Garamond,TextSize=30,TextStrokeTransparency=1,Size=UDim2.new(1,0,.5,0)})
  439. local SND = Sound(Head,418252437,M.RNG(9,11)/10,3,false,false,true)
  440. for i = 1, #text do
  441. delay(i/25, function()
  442. SND.Pitch = M.RNG(9,11)/10
  443. SND.Volume = 3
  444. SND.Parent = Effects
  445. SND:Play()
  446. Txt.Text = text:sub(1,i)
  447. end)
  448. end
  449. delay((#text/25)+2, function()
  450. Txt.Text = ""
  451. for i = 1, #text do
  452. Txt.Text = Txt.Text.. string.char(M.RNG(0,126))
  453. end
  454. end)
  455. delay((#text/25)+3, function()
  456. BBG:destroy()
  457. SND:destroy()
  458. end)
  459. end)()
  460. --else
  461. -- Chat2(text)
  462. --end
  463. end
  464.  
  465. function Chat2(text)
  466. coroutine.wrap(function()
  467. if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end
  468. local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head})
  469. local offset = 0;
  470. local xsize = 0;
  471. for i = 1, #text do
  472. offset = offset - 16
  473. xsize = xsize + 32
  474. delay(i/25, function()
  475. local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,offset,0,0),BackgroundTransparency=1,TextColor3=C3.N(1,1,0),BorderSizePixel=0,Font=Enum.Font.Garamond,TextSize=40,TextStrokeTransparency=1,Size=UDim2.new(1,0,.5,0)})
  476. offset = offset + 32
  477. while Txt and Txt.Parent do
  478. Txt.Rotation = M.RNG(-15,15)
  479. swait()
  480. end
  481. end)
  482. end
  483. BBG.Size = UDim2.new(0,xsize,0,40)
  484. delay((#text/25)+3, function()
  485. for _,v in next, BBG:children() do
  486. pcall(function() v.Text = string.char(M.RNG(0,126)) end)
  487. end
  488. end)
  489. delay((#text/25)+4, function()
  490. BBG:destroy()
  491. end)
  492. end)()
  493. end
  494.  
  495.  
  496. function Transparency(trans)
  497. for _,v in next, Char:children() do
  498. if(v:IsA'BasePart' and v ~= Root and v ~= HaloHandle and v ~= WingHandle)then
  499. v.Transparency = trans
  500. local sbox = v:findFirstChild'SelectionBox'
  501. if(sbox)then sbox.Transparency=trans end
  502. elseif(v:IsA'Accessory' and v:FindFirstChild'Handle')then
  503. v.Handle.Transparency=trans
  504. end
  505. end
  506. for _,v in next, Wings:children() do
  507. if(v:IsA'BasePart' and v ~= WingHandle)then
  508. v.Transparency = trans
  509. local sbox = v:findFirstChild'SelectionBox'
  510. if(sbox)then sbox.Transparency=trans end
  511. end
  512. end
  513. for _,v in next, Halo:children() do
  514. if(v:IsA'BasePart' and v ~= HaloHandle)then
  515. v.Transparency = trans
  516. local sbox = v:findFirstChild'SelectionBox'
  517. if(sbox)then sbox.Transparency=trans end
  518. end
  519. end
  520. end
  521.  
  522. local FXTable = {}
  523.  
  524. function Bezier(startpos, pos2, pos3, endpos, t)
  525. local A = startpos:lerp(pos2, t)
  526. local B = pos2:lerp(pos3, t)
  527. local C = pos3:lerp(endpos, t)
  528. local lerp1 = A:lerp(B, t)
  529. local lerp2 = B:lerp(C, t)
  530. local cubic = lerp1:lerp(lerp2, t)
  531. return cubic
  532. end
  533.  
  534. function Tween(obj,props,time,easing,direction,repeats,backwards)
  535. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  536. local tween = S.TweenService:Create(obj, info, props)
  537.  
  538. tween:Play()
  539. end
  540.  
  541. coroutine.resume(coroutine.create(function()
  542. while true do
  543. for i = 1, #FXTable do
  544. local data = FXTable[i]
  545. if(data)then
  546. local Frame = data.Frame
  547. local FX = data.Effect or 'ResizeAndFade'
  548. local Parent = data.Parent or Effects
  549. local Color = data.Color or C3.N(0,0,0)
  550. local Size = data.Size or V3.N(1,1,1)
  551. local MoveDir = data.MoveDirection or nil
  552. local MeshData = data.Mesh or nil
  553. local SndData = data.Sound or nil
  554. local Frames = data.Frames or 45
  555. local CFra = data.CFrame or Torso.CFrame
  556. local Settings = data.FXSettings or {}
  557. local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound
  558. local grow = data.Grow
  559.  
  560. local MoveSpeed = nil;
  561. if(MoveDir)then
  562. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  563. end
  564. if(FX ~= 'Arc')then
  565. Frame = Frame + 1
  566. if(FX == "Fade")then
  567. Prt.Transparency = (Frame/Frames)
  568. elseif(FX == "Resize")then
  569. if(not Settings.EndSize)then
  570. Settings.EndSize = V3.N(0,0,0)
  571. end
  572. if(Settings.EndIsIncrement)then
  573. if(Msh)then
  574. Msh.Scale = Msh.Scale + Settings.EndSize
  575. else
  576. Prt.Size = Prt.Size + Settings.EndSize
  577. end
  578. else
  579. if(Msh)then
  580. Msh.Scale = Msh.Scale - grow/Frames
  581. else
  582. Prt.Size = Prt.Size - grow/Frames
  583. end
  584. end
  585. elseif(FX == "ResizeAndFade")then
  586. if(not Settings.EndSize)then
  587. Settings.EndSize = V3.N(0,0,0)
  588. end
  589. if(Settings.EndIsIncrement)then
  590. if(Msh)then
  591. Msh.Scale = Msh.Scale + Settings.EndSize
  592. else
  593. Prt.Size = Prt.Size + Settings.EndSize
  594. end
  595. else
  596. if(Msh)then
  597. Msh.Scale = Msh.Scale - grow/Frames
  598. else
  599. Prt.Size = Prt.Size - grow/Frames
  600. end
  601. end
  602. Prt.Transparency = (Frame/Frames)
  603. end
  604. if(Settings.RandomizeCFrame)then
  605. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  606. end
  607. if(MoveDir and MoveSpeed)then
  608. local Orientation = Prt.Orientation
  609. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  610. Prt.Orientation = Orientation
  611. end
  612. if(Prt.Transparency >= 1 or Frame >= Frames)then
  613. Prt:destroy()
  614. table.remove(FXTable,i)
  615. else
  616. data.Frame = Frame
  617. end
  618. else
  619. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  620. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  621. if(start and endP)then
  622. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  623. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  624. Frame = Frame + Settings.Speed or 0.01
  625. if(Settings.Home)then
  626. endP = Settings.Home.CFrame
  627. end
  628. Prt.CFrame = Bezier(start, quarter, threequarter, endP, i)
  629. if(Prt.Transparency >= 1 or Frame >= Frames)then
  630. if(Settings.RemoveOnGoal)then
  631. Prt:destroy()
  632. end
  633. end
  634. else
  635.  
  636. end
  637. end
  638. end
  639. end
  640. swait()
  641. end
  642. end))
  643.  
  644. function Effect(data)
  645. local FX = data.Effect or 'ResizeAndFade'
  646. local Parent = data.Parent or Effects
  647. local Color = data.Color or C3.N(0,0,0)
  648. local Size = data.Size or V3.N(1,1,1)
  649. local MoveDir = data.MoveDirection or nil
  650. local MeshData = data.Mesh or nil
  651. local SndData = data.Sound or nil
  652. local Frames = data.Frames or 45
  653. local Manual = data.Manual or nil
  654. local Material = data.Material or nil
  655. local CFra = data.CFrame or Torso.CFrame
  656. local Settings = data.FXSettings or {}
  657. local Shape = data.Shape or Enum.PartType.Block
  658. local Snd,Prt,Msh;
  659. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  660. Prt = Manual
  661. else
  662. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  663. Prt.Shape = Shape
  664. end
  665. if(typeof(MeshData) == 'table')then
  666. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  667. elseif(typeof(MeshData) == 'Instance')then
  668. Msh = MeshData:Clone()
  669. Msh.Parent = Prt
  670. elseif(Shape == Enum.PartType.Block)then
  671. Msh = Mesh(Prt,Enum.MeshType.Brick)
  672. end
  673. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  674. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  675. end
  676. if(Snd)then
  677. repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  678. data.Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  679. end
  680. data.Part = Prt
  681. data.Mesh = Msh
  682. data.Sound = Snd
  683. data.Frame = 0
  684. data.Size = (Msh and Msh.Scale or Size)
  685. Size = (Msh and Msh.Scale or Size)
  686. data.Grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  687. table.insert(FXTable,data)
  688. return Prt,Msh,Snd
  689. end
  690.  
  691. function Zap(data)
  692. local sCF,eCF = data.StartCFrame,data.EndCFrame
  693. assert(sCF,"You need a start CFrame!")
  694. assert(eCF,"You need an end CFrame!")
  695. local parts = data.PartCount or 15
  696. local zapRot = data.ZapRotation or {-5,5}
  697. local startThick = data.StartSize or 3;
  698. local endThick = data.EndSize or startThick/2;
  699. local color = data.Color or BrickColor.new'Electric blue'
  700. local delay = data.Delay or 35
  701. local delayInc = data.DelayInc or 0
  702. local lastLightning;
  703. local MagZ = (sCF.p - eCF.p).magnitude
  704. local thick = startThick
  705. local inc = (startThick/parts)-(endThick/parts)
  706.  
  707. for i = 1, parts do
  708. local pos = sCF.p
  709. if(lastLightning)then
  710. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  711. end
  712. delay = delay + delayInc
  713. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  714. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  715. if(parts == i)then
  716. local MagZ = (pos-eCF.p).magnitude
  717. zapPart.Size = V3.N(endThick,endThick,MagZ)
  718. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  719. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  720. else
  721. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  722. end
  723.  
  724. lastLightning = zapPart
  725. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  726.  
  727. thick=thick-inc
  728.  
  729. end
  730. end
  731.  
  732.  
  733. function SoulSteal(whom)
  734. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  735. if(torso and torso:IsA'BasePart')then
  736. local Model = Instance.new("Model",Effects)
  737. Model.Name = whom.Name.."'s Soul"
  738. whom:BreakJoints()
  739. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  740. Soul.Name = 'Head'
  741. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  742. Effect{
  743. Effect="Arc",
  744. Manual = Soul,
  745. FXSettings={
  746. Start=torso.CFrame,
  747. Home = Torso,
  748. RemoveOnGoal = true,
  749. }
  750. }
  751. local lastPoint = Soul.CFrame.p
  752.  
  753. for i = 0, 1, 0.01 do
  754. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  755. local mag = (lastPoint - Soul.Position).magnitude
  756. Effect{
  757. Effect = "Fade",
  758. CFrame = point * CF.N(0, mag/2, 0),
  759. Size = V3.N(.5,mag+.5,.5),
  760. Color = Soul.BrickColor
  761. }
  762. lastPoint = Soul.CFrame.p
  763. swait()
  764. end
  765. for i = 1, 5 do
  766. Effect{
  767. Effect="Fade",
  768. Color = BrickColor.new'Really red',
  769. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  770. }
  771. end
  772. end
  773. end
  774.  
  775. --// Other Functions \\ --
  776.  
  777. function getRegion(point,range,ignore)
  778. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  779. end
  780.  
  781. function CastRay(startPos,endPos,range,ignoreList)
  782. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  783. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  784. return part,pos,norm,(pos and (startPos-pos).magnitude)
  785. end
  786.  
  787.  
  788. function WingFlutter(Alpha)
  789. Alpha = Alpha or .1
  790. for x = 1, 4 do
  791. if(FeatherWelds[1][x][1])then
  792. FeatherWelds[1][x][1].C0 = FeatherWelds[1][x][1].C0:lerp(CF.N(-2-.5*M.C(Sine/24),x/4,0-.2*-M.S(Sine/24)),Alpha)
  793. end
  794. for i = 2, #FeatherWelds[1][x] do
  795. FeatherWelds[1][x][i].C0 = FeatherWelds[1][x][i].C0:lerp(CF.N(.5,.25,0)*CF.A(0,0,M.R(-5+2*M.C(Sine/12))),Alpha)
  796. end
  797. end
  798. for x = 1, 4 do
  799. if(FeatherWelds[2][x][1])then
  800. FeatherWelds[2][x][1].C0 = FeatherWelds[2][x][1].C0:lerp(CF.N(2+.5*M.C(Sine/24),x/4,0-.4*M.S(Sine/24)),Alpha)
  801. end
  802. for i = 2, #FeatherWelds[2][x] do
  803. FeatherWelds[2][x][i].C0 = FeatherWelds[2][x][i].C0:lerp(CF.N(-.5,.25,0)*CF.A(0,0,M.R(5-2*M.C(Sine/12))),Alpha)
  804. end
  805. end
  806. end
  807.  
  808. function clerp(startCF,endCF,alpha)
  809. return startCF:lerp(endCF, alpha)
  810. end
  811.  
  812. function GetTorso(char)
  813. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  814. end
  815.  
  816. function ShowDamage(Pos, Text, Time, Color)
  817. local Rate = (1 / 30)
  818. local Pos = (Pos or Vector3.new(0, 0, 0))
  819. local Text = (Text or "")
  820. local Time = (Time or 2)
  821. local Color = (Color or Color3.new(1, 0, 1))
  822. local EffectPart = NewInstance("Part",Effects,{
  823. Material=Enum.Material.SmoothPlastic,
  824. Reflectance = 0,
  825. Transparency = 1,
  826. BrickColor = BrickColor.new(Color),
  827. Name = "Effect",
  828. Size = Vector3.new(0,0,0),
  829. Anchored = true
  830. })
  831. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  832. Size = UDim2.new(1.25, 0, 1.25, 0),
  833. Adornee = EffectPart,
  834. })
  835. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  836. BackgroundTransparency = 1,
  837. Size = UDim2.new(1, 0, 1, 0),
  838. Text = Text,
  839. Font = "Arial",
  840. TextColor3 = Color,
  841. TextStrokeColor3 = Color3.new(0,0,0),
  842. TextStrokeTransparency=0,
  843. TextScaled = true,
  844. })
  845. game.Debris:AddItem(EffectPart, (Time))
  846. EffectPart.Parent = game:GetService("Workspace")
  847. delay(0, function()
  848. local Frames = (Time / Rate)
  849. for Frame = 1, Frames do
  850. wait(Rate)
  851. local Percent = (Frame / Frames)
  852. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  853. TextLabel.TextTransparency = Percent
  854. TextLabel.TextStrokeTransparency = Percent
  855. end
  856. if EffectPart and EffectPart.Parent then
  857. EffectPart:Destroy()
  858. end
  859. end)
  860. end
  861.  
  862.  
  863. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  864. if(who)then
  865. local hum = who:FindFirstChildOfClass'Humanoid'
  866. local Damage = M.RNG(minDam,maxDam)
  867. local canHit = true
  868. if(hum)then
  869. for _, p in pairs(Hit) do
  870. if p[1] == hum then
  871. if(time() - p[2] < 0.1) then
  872. canHit = false
  873. else
  874. Hit[_] = nil
  875. end
  876. end
  877. end
  878. if(canHit)then
  879. table.insert(Hit,{hum,time()})
  880. if(hum.Health >= math.huge)then
  881. who:BreakJoints()
  882. if(who:FindFirstChild'Head' and hum.Health > 0)then
  883. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 1.5, C3.N(1,0,0))
  884. end
  885. else
  886. local player = S.Players:GetPlayerFromCharacter(who)
  887. if(Type == "Fire")then
  888. --idk..
  889. else
  890. local c = Instance.new("ObjectValue",hum)
  891. c.Name = "creator"
  892. c.Value = Plr
  893. game:service'Debris':AddItem(c,0.35)
  894. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  895. if(who:FindFirstChild'Head' and hum.Health > 0)then
  896. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  897. end
  898. hum.Health = hum.Health - Damage*(critMult or 2)
  899. else
  900. if(who:FindFirstChild'Head' and hum.Health > 0)then
  901. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), Damage, 1.5, DamageColor.Color)
  902. end
  903. hum.Health = hum.Health - Damage
  904. end
  905. if(Type == 'Knockback' and GetTorso(who))then
  906. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  907. local body = NewInstance('BodyVelocity',GetTorso(who),{
  908. P = 500,
  909. maxForce = V3.N(math.huge,0,math.huge),
  910. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  911. })
  912. game:service'Debris':AddItem(body,.5)
  913. elseif(Type == "Electric")then
  914. if(M.RNG(1,100) >= critChance)then
  915. if(who:FindFirstChild'Head' and hum.Health > 0)then
  916. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 1.5, BrickColor.new"New Yeller".Color)
  917. end
  918. local asd = hum.WalkSpeed/2
  919. hum.WalkSpeed = asd
  920. local paralyzed = true
  921. coroutine.wrap(function()
  922. while paralyzed do
  923. swait(25)
  924. if(M.RNG(1,25) == 1)then
  925. if(who:FindFirstChild'Head' and hum.Health > 0)then
  926. ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 1.5, BrickColor.new"New Yeller".Color)
  927. end
  928. hum.PlatformStand = true
  929. end
  930. end
  931. end)()
  932. delay(4, function()
  933. paralyzed = false
  934. hum.WalkSpeed = hum.WalkSpeed + asd
  935. end)
  936. end
  937.  
  938. elseif(Type == 'Knockdown' and GetTorso(who))then
  939. local rek = GetTorso(who)
  940. hum.PlatformStand = true
  941. delay(1,function()
  942. hum.PlatformStand = false
  943. end)
  944. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  945. local bodvol = NewInstance("BodyVelocity",rek,{
  946. velocity = angle * Knock,
  947. P = 5000,
  948. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  949. })
  950. local rl = NewInstance("BodyAngularVelocity",rek,{
  951. P = 3000,
  952. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  953. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  954. })
  955. game:GetService("Debris"):AddItem(bodvol, .5)
  956. game:GetService("Debris"):AddItem(rl, .5)
  957. end
  958. end
  959. end
  960. end
  961. end
  962. end
  963. end
  964.  
  965. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  966. for _,v in next, getRegion(where,range,{Char}) do
  967. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  968. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  969. end
  970. end
  971. end
  972. function AOEHeal(where,range,amount)
  973. local healed = {}
  974. for _,v in next, getRegion(where,range,{Char}) do
  975. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  976. if(hum and not healed[hum])then
  977. hum.Health = hum.Health + amount
  978. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  979. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  980. end
  981. end
  982. end
  983. end
  984.  
  985.  
  986. --// Attack Functions \\--
  987.  
  988. function Smite()
  989. Zap{
  990. StartCFrame=CF.N(Mouse.Hit.p)*CF.N(0,500,0),
  991. EndCFrame=CF.N(Mouse.Hit.p),
  992. ZapRotation = {-5,5},
  993. StartSize = 5,
  994. EndSize = 1,
  995. Delay=5,
  996. DelayInc=1,
  997. }
  998. AOEDamage(Mouse.Hit.p,3,15,35,false,"Electric",75,1)
  999. end
  1000.  
  1001. function LightningStorm()
  1002. Attack = true
  1003. Rooted = true
  1004. NeutralAnims = false
  1005. Hum.AutoRotate = false
  1006. repeat swait()
  1007. Root.CFrame = Root.CFrame:lerp(CF.N(Root.CFrame.p,V3.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z)),.1)
  1008. local Alpha = .3
  1009. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0109784482, 0.00629424211+.25*M.C(Sine/12), 0.00456619123, 0, 0.00628576428, 0.999979854, 0, 0.99998033, -0.00628576661, -0.999999702, -7.27595761e-12, 0)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1010. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1011. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1012. LS.C0 = clerp(LS.C0,CFrame.new(-1.51089513, 0.618211091+.1*M.C(Sine/12), -0.00361234695, 0.982347131, 0.18641524, 0.0156120034, -0.186530694, 0.982429147, 0.00628500059, -0.0141660646, -0.0090861693, 0.999858379)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1013. RS.C0 = clerp(RS.C0,CFrame.new(1.17289495, 0.616719723+.1*M.C(Sine/12), 0.011598235, -0.52721566, -0.849588335, 0.0156120034, 0.849726856, -0.527186096, 0.00628500059, 0.0028907666, 0.0165794864, 0.999858379)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1014. NK.C0 = clerp(NK.C0,CFrame.new(0.00954779983, 1.49905622, 0.00156322215, -1.82539225e-07, 0.0574940294, -0.998345554, 0.00628540665, 0.998326242, 0.0574929155, 0.999979854, -0.00627500098, -0.000361557119),Alpha)
  1015. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1016. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1017. WingFlutter()
  1018. until not S.UserInputService:IsKeyDown(Enum.KeyCode.C)
  1019. local where = Mouse.Hit.p
  1020. for i = 0, 6, .1 do
  1021. swait()
  1022. local Alpha = .3
  1023. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0109784482, 0.00629424211+.25*M.C(Sine/12), 0.00456619123, 0, 0.00628576428, 0.999979854, 0, 0.99998033, -0.00628576661, -0.999999702, -7.27595761e-12, 0)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1024. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1025. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1026. LS.C0 = clerp(LS.C0,CFrame.new(-1.51089513, 0.618211091+.1*M.C(Sine/12), -0.00361234695, 0.982347131, 0.18641524, 0.0156120034, -0.186530694, 0.982429147, 0.00628500059, -0.0141660646, -0.0090861693, 0.999858379)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1027. RS.C0 = clerp(RS.C0,CFrame.new(1.17289495, 0.616719723+.1*M.C(Sine/12), 0.011598235, -0.52721566, -0.849588335, 0.0156120034, 0.849726856, -0.527186096, 0.00628500059, 0.0028907666, 0.0165794864, 0.999858379)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1028. NK.C0 = clerp(NK.C0,CFrame.new(0.00954779983, 1.49905622, 0.00156322215, -1.82539225e-07, 0.0574940294, -0.998345554, 0.00628540665, 0.998326242, 0.0574929155, 0.999979854, -0.00627500098, -0.000361557119),Alpha)
  1029. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1030. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1031. WingFlutter()
  1032. end
  1033. for i = 0, 1.4, .1 do
  1034. swait()
  1035. local Alpha = .3
  1036. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0109784482, 0.00629424211+.25*M.C(Sine/12), 0.00456619123, 0, 0.00628576428, 0.999979854, 0, 0.99998033, -0.00628576661, -0.999999702, -7.27595761e-12, 0)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1037. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1038. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1039. LS.C0 = clerp(LS.C0,CFrame.new(-1.51089513, 0.618211091+.1*M.C(Sine/12), -0.00361234695, 0.982347131, 0.18641524, 0.0156120034, -0.186530694, 0.982429147, 0.00628500059, -0.0141660646, -0.0090861693, 0.999858379)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1040. RS.C0 = clerp(RS.C0,CFrame.new(1.39888549, 0.921575725+.1*M.C(Sine/12), 0.00929622632, -0.917422354, -0.397608638, 0.0156120034, 0.397739291, -0.917477012, 0.00628500059, 0.0118246814, 0.0119755063, 0.999858379)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1041. NK.C0 = clerp(NK.C0,CFrame.new(0.00954779983, 1.49905622, 0.00156322215, -1.82539225e-07, 0.0574940294, -0.998345554, 0.00628540665, 0.998326242, 0.0574929155, 0.999979854, -0.00627500098, -0.000361557119),Alpha)
  1042. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1043. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1044. WingFlutter()
  1045. end
  1046. for i = 0, .8, .1 do
  1047. swait()
  1048. local Alpha = .3
  1049. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0109784482, 0.00629424211+.25*M.C(Sine/12), 0.00456619123, 0, 0.00628576428, 0.999979854, 0, 0.99998033, -0.00628576661, -0.999999702, -7.27595761e-12, 0)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1050. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1051. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1052. LS.C0 = clerp(LS.C0,CFrame.new(-1.51089513, 0.618211091+.1*M.C(Sine/12), -0.00361234695, 0.982347131, 0.18641524, 0.0156120034, -0.186530694, 0.982429147, 0.00628500059, -0.0141660646, -0.0090861693, 0.999858379)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1053. RS.C0 = clerp(RS.C0,CFrame.new(1.39452517, 0.577189744, 0.0083861379, 0.913589835, -0.406337589, 0.0156120034, 0.406289399, 0.913722992, 0.00628500059, -0.0168188754, 0.000601077918, 0.999858379)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1054. NK.C0 = clerp(NK.C0,CFrame.new(0.00954779983, 1.49905622, 0.00156322215, -1.82539225e-07, 0.0574940294, -0.998345554, 0.00628540665, 0.998326242, 0.0574929155, 0.999979854, -0.00627500098, -0.000361557119),Alpha)
  1055. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1056. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1057. WingFlutter()
  1058. end
  1059.  
  1060. for i = 0, 6, .1 do
  1061. pcall(function() Sound(Torso,481719045,1,1,false,true,true) end)
  1062. local pos = CF.N(where)*CF.N(M.RNG(-1000,1000,100),0,M.RNG(-1000,1000,100))
  1063. local part,rayPos,norm,dist = CastRay(pos*CF.N(0,500,0).p,pos.p,1500)
  1064. Zap{
  1065. StartCFrame=pos*CF.N(0,500,0),
  1066. EndCFrame=CF.N(rayPos),
  1067. ZapRotation = {-5,5},
  1068. StartSize = 1,
  1069. EndSize = .5,
  1070. Delay=10,
  1071. DelayInc=2,
  1072. }
  1073. AOEDamage(rayPos,5,45,65,0,'Electric',25,2)
  1074. swait()
  1075. local Alpha = .3
  1076. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0109784482, 0.00629424211+.25*M.C(Sine/12), 0.00456619123, 0, 0.00628576428, 0.999979854, 0, 0.99998033, -0.00628576661, -0.999999702, -7.27595761e-12, 0)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1077. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1078. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1079. LS.C0 = clerp(LS.C0,CFrame.new(-1.51089513, 0.618211091+.1*M.C(Sine/12), -0.00361234695, 0.982347131, 0.18641524, 0.0156120034, -0.186530694, 0.982429147, 0.00628500059, -0.0141660646, -0.0090861693, 0.999858379)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1080. RS.C0 = clerp(RS.C0,CFrame.new(1.39452517, 0.577189744, 0.0083861379, 0.913589835, -0.406337589, 0.0156120034, 0.406289399, 0.913722992, 0.00628500059, -0.0168188754, 0.000601077918, 0.999858379)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1081. NK.C0 = clerp(NK.C0,CFrame.new(0.00954779983, 1.49905622, 0.00156322215, -1.82539225e-07, 0.0574940294, -0.998345554, 0.00628540665, 0.998326242, 0.0574929155, 0.999979854, -0.00627500098, -0.000361557119),Alpha)
  1082. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1083. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1084. WingFlutter()
  1085. end
  1086. Hum.AutoRotate = true
  1087. Attack = false
  1088. NeutralAnims = true
  1089. Rooted = false
  1090. end
  1091.  
  1092.  
  1093. function HolyBomb()
  1094. Attack = true
  1095. Chat2("It's time to cleanse this world!")
  1096. swait(60)
  1097. Rooted = true
  1098. NeutralAnims = false
  1099. for i = 0, 6, 0.1 do
  1100. swait()
  1101. local Alpha = .05
  1102. Zap{
  1103. StartCFrame=CF.N(Root.CFrame.p)*CF.N(0,250,0),
  1104. EndCFrame=CF.N(Root.CFrame.p),
  1105. ZapRotation = {-15,15},
  1106. Color=C3.N(1,1,0),
  1107. StartSize = 1,
  1108. EndSize = 1,
  1109. Delay=5,
  1110. DelayInc=1,
  1111. }
  1112. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20455468e-13, 0.00629198179, 1.40559132e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha)
  1113. LH.C0 = clerp(LH.C0,CFrame.new(-0.507250547, -0.110386491, -0.672860861, 0.999877751, -0.00782374945, 0.013510122, -9.81397825e-05, 0.862201095, 0.506566346, -0.0156116877, -0.506505728, 0.862094939),Alpha)
  1114. RH.C0 = clerp(RH.C0,CFrame.new(0.487759113, -0.105839849, -0.680253506, 0.999877751, -0.00782374945, 0.013510122, -9.81397825e-05, 0.862201095, 0.506566346, -0.0156116877, -0.506505728, 0.862094939),Alpha)
  1115. LS.C0 = clerp(LS.C0,CFrame.new(-1.04961777, 0.162827805, -0.367515624, 0.65209949, -0.758071303, 0.00966797117, 0.478066534, 0.401272744, -0.781301916, 0.588403046, 0.514108539, 0.624078274),Alpha)
  1116. RS.C0 = clerp(RS.C0,CFrame.new(1.01012444, 0.107069746, -0.463154793, 0.633318067, 0.773830771, 0.00966686849, -0.478192717, 0.401122361, -0.781301916, -0.608473003, 0.490190029, 0.624078274),Alpha)
  1117. NK.C0 = clerp(NK.C0,CFrame.new(6.11957148e-06, 1.44927096, -0.405988753, 0.999999583, 7.24568963e-07, -6.8731606e-07, 6.33735908e-09, 0.684226215, 0.729269981, 1.00024045e-06, -0.729269683, 0.684225917),Alpha)
  1118. WingFlutter()
  1119. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),.3)
  1120. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),.3)
  1121. end
  1122. for i = 0, .8, 0.1 do
  1123. swait()
  1124. local Alpha = .3
  1125. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00439098151, 0.0666924566, 0.281248361, 0.999959052, 0.00860917568, -0.00265517179, -0.0086270012, 0.830053985, -0.557616353, -0.00259668194, 0.557616353, 0.830094337),Alpha)
  1126. LH.C0 = clerp(LH.C0,CFrame.new(-0.497570813, -0.936474979, -0.0477344394, 0.999878109, -0.00782567263, 0.0135120051, -9.73803981e-05, 0.862202823, 0.506563246, -0.0156142879, -0.506502926, 0.862096965),Alpha)
  1127. RH.C0 = clerp(RH.C0,CFrame.new(0.497439325, -0.931922615, -0.0551193655, 0.999878109, -0.00782567263, 0.0135120051, -9.73803981e-05, 0.862202823, 0.506563246, -0.0156142879, -0.506502926, 0.862096965),Alpha)
  1128. LS.C0 = clerp(LS.C0,CFrame.new(-1.30848432, 0.518583834, 0.0627421439, 0.758070946, 0.652100444, 0.0096699167, -0.401271075, 0.478066146, -0.781302929, -0.514110804, 0.588402867, 0.624077141),Alpha)
  1129. RS.C0 = clerp(RS.C0,CFrame.new(1.42235136, 0.462758094, -0.0433900952, 0.77383244, -0.633316636, 0.00966930948, 0.401121885, 0.478191316, -0.781302929, 0.49018833, 0.608476162, 0.624077141),Alpha)
  1130. NK.C0 = clerp(NK.C0,CFrame.new(0.00874680094, 1.45278561, 0.153901845, 0.999851108, 0.0168225225, 0.00386164617, -0.014445669, 0.938051641, -0.346193999, -0.00944628194, 0.346086651, 0.938155115),Alpha)
  1131. end
  1132. delay(1, function()
  1133. NeutralAnims = true
  1134. Rooted = false
  1135. end)
  1136. local start = NewInstance("Part",Effects,{Anchored=true,CanCollide=false,Transparency=1,CFrame=Root.CFrame})
  1137. Sound(Char,579687077,.5,2,false,true,true)
  1138. Sound(Char,239000203,.75,2,false,true,true)
  1139. for i = 1, 140 do
  1140. AOEDamage(start.CFrame.p,95,1000,1000,0,'Normal',100,5)
  1141. Effect{
  1142. Effect='ResizeAndFade',
  1143. Mesh={MeshType=Enum.MeshType.Sphere},
  1144. Color=C3.N(1,1,0),
  1145. Material=Enum.Material.Neon,
  1146. CFrame=CF.N(start.CFrame.p)*CF.N(M.RNG(-75,75),M.RNG(-75,75),M.RNG(-75,75)),
  1147. Frames=60,
  1148. FXSettings={
  1149. EndIsIncrement=true,
  1150. EndSize=V3.N(.6,.6,.6)
  1151. }
  1152. }
  1153. swait(1)
  1154. end
  1155. Attack = false
  1156. end
  1157.  
  1158. function Lazor()
  1159. Rooted = true
  1160. Attack = true
  1161. Hum.AutoRotate=false
  1162. NeutralAnims = false
  1163. Chat2("Begone, sinner.")
  1164. --Effect{Effect='Resize',Mesh={MeshType=Enum.MeshType.FileMesh},Size=V3.N(1,1,1),CFrame=,Frames=60,FXSettings={EndSize=V3.N(4,4,4)}}
  1165. local snd = Sound(Torso,705787045,1,1,true,false,false)
  1166. for i = 0, 6, .1 do
  1167. Effect{
  1168. Effect='Fade',
  1169. Color=BrickColor.new'New Yeller',
  1170. Size=V3.N((i/2),(i/2),(i/2)),
  1171. Material=Enum.Material.Neon,
  1172. Mesh={MeshType=Enum.MeshType.Sphere},
  1173. Frames=15,
  1174. CFrame=RArm.CFrame*CF.N(0,-1.5,0),
  1175. Sound=false
  1176. }
  1177. swait()
  1178. Root.CFrame =Root.CFrame:lerp(CF.N(Root.CFrame.p,V3.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z)),.1)
  1179. local Alpha = .1
  1180. Change = .5
  1181. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20625471e-13, 0+.25*M.C(Sine/12), -6.20266655e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1182. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1183. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1184. LS.C0 = clerp(LS.C0,CFrame.new(-1.09520316, 0.319447398+.1*M.C(Sine/12), 0.380316556, 0.862274766, -0.50140965, 0.071203351, 0.413908899, 0.77874434, 0.471420079, -0.291823745, -0.377021939, 0.879029453)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1185. RS.C0 = clerp(RS.C0,CFrame.new(1.46309233, 0.634022355+.1*M.C(Sine/12), 0.0835287869, -0.816918671, -0.539614618, 0.203615591, -0.392316222, 0.261119068, -0.881989181, 0.422766358, -0.800395131, -0.425012559),Alpha)
  1186. NK.C0 = clerp(NK.C0,CFrame.new(-7.09252117e-06, 1.4989512, -0.0144005567, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha)
  1187. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1188. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1189. WingFlutter()
  1190. end
  1191. snd:Play()
  1192. for i = 0, 24, .1 do
  1193. swait()
  1194. Effect{
  1195. Effect='Fade',
  1196. Color=BrickColor.new'New Yeller',
  1197. Size=V3.N(3,3,3),
  1198. Material=Enum.Material.Neon,
  1199. Mesh={MeshType=Enum.MeshType.Sphere},
  1200. Frames=15,
  1201. CFrame=RArm.CFrame*CF.N(0,-1.5,0),
  1202. }
  1203. if(Mouse.Target)then
  1204. Zap{
  1205. StartCFrame=RArm.CFrame*CF.N(0,-1.5,0),
  1206. EndCFrame=Mouse.Hit,
  1207. ZapRotation = {-5,5},
  1208. PartCount=10,
  1209. StartSize = .5,
  1210. EndSize = .5,
  1211. Color = C3.N(1,1,0),
  1212. DelayInc=0,
  1213. Delay =5,
  1214. }
  1215. end
  1216. AOEDamage(Mouse.Hit.p,3,10,15,false,"Electric",25,2)
  1217. Root.CFrame = Root.CFrame:lerp(CF.N(Root.CFrame.p,V3.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z)),.1)
  1218. local Alpha = .1
  1219. Change = .5
  1220. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20625471e-13, 0+.25*M.C(Sine/12), -6.20266655e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1221. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1222. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1223. LS.C0 = clerp(LS.C0,CFrame.new(-1.09520316, 0.319447398+.1*M.C(Sine/12), 0.380316556, 0.862274766, -0.50140965, 0.071203351, 0.413908899, 0.77874434, 0.471420079, -0.291823745, -0.377021939, 0.879029453)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1224. RS.C0 = clerp(RS.C0,CFrame.new(1.42641699, 0.76597631+.1*M.C(Sine/12), -0.207831383, 0.954205394, 0.219142094, 0.203637421, 0.275958538, -0.38200587, -0.881996989, -0.115491927, 0.897801638, -0.424986154),Alpha)
  1225. NK.C0 = clerp(NK.C0,CFrame.new(-7.09252117e-06, 1.4989512, -0.0144005567, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha)
  1226. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1227. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1228. WingFlutter()
  1229. end
  1230. coroutine.wrap(function()
  1231. for i = 1, 0,-.05 do
  1232. snd.Volume = i
  1233. swait()
  1234. end
  1235. snd:destroy()
  1236. end)()
  1237. Rooted = false
  1238. Attack = false
  1239. Hum.AutoRotate=true
  1240. NeutralAnims = true
  1241. end
  1242.  
  1243. function Teleport()
  1244. Rooted = true
  1245. Attack = true
  1246. Hum.AutoRotate=false
  1247. NeutralAnims = false
  1248. repeat swait()
  1249. Root.CFrame =Root.CFrame:lerp(CF.N(Root.CFrame.p,V3.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z)),.1)
  1250. local Alpha = .1
  1251. Change = .5
  1252. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20625471e-13, 0+.25*M.C(Sine/12), -6.20266655e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1253. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1254. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1255. LS.C0 = clerp(LS.C0,CFrame.new(-1.30013025, 0.503248096+.1*M.C(Sine/12), -0.596688211, 0.828000546, -0.560713708, -6.38549547e-10, 0.003524723, 0.00520492578, -0.999980271, 0.560702682, 0.827984214, 0.00628613681),Alpha)
  1256. RS.C0 = clerp(RS.C0,CFrame.new(1.27528536, 0.496638358+.1*M.C(Sine/12), -0.579756379, 0.810091436, 0.586290658, -1.40121659e-09, -0.00368550443, 0.00509234518, -0.999980271, -0.586279035, 0.810075462, 0.00628613681),Alpha)
  1257. NK.C0 = clerp(NK.C0,CFrame.new(-7.09252117e-06, 1.4989512, -0.0144005567, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha)
  1258. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1259. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1260. WingFlutter()
  1261. until not S.UserInputService:IsKeyDown(Enum.KeyCode.Q)
  1262. local p = Mouse.Hit.p
  1263.  
  1264. --
  1265. local circle = NewInstance("Part",Effects,{CFrame=Root.CFrame*CF.N(0,0,-2),Size=V3.N(.05,.05,.05),Transparency=1,Anchored=true,CanCollide=false})
  1266. local decalF = NewInstance("Decal",circle,{Name='Front',Texture="rbxassetid://524002938",Color3=C3.N(1,1,0),Face=Enum.NormalId.Front,Transparency = 1})
  1267. local decalB = NewInstance("Decal",circle,{Name='Back',Texture="rbxassetid://524002938",Color3=C3.N(1,1,0),Face=Enum.NormalId.Back,Transparency=1})
  1268. local asd = CF.N(p,Root.Position)
  1269. local circle2=circle:Clone()
  1270. circle2.Parent = Effects
  1271. circle2.CFrame = asd*CF.N(0,4,0)
  1272. Root.Anchored = true
  1273. for i = 0, 3, .1 do
  1274. swait()
  1275. local Alpha = .1
  1276. Change = .5
  1277. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20625471e-13, 0+.25*M.C(Sine/12), -6.20266655e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1278. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1279. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1280. LS.C0 = clerp(LS.C0,CFrame.new(-1.21875513, 0.506383479+.1*M.C(Sine/12), -0.0979118943, 0.810091376, 0.586290598, 2.45534384e-08, -0.00368548767, 0.0050923666, -0.999980271, -0.586278975, 0.810075402, 0.00628614426),Alpha)
  1281. RS.C0 = clerp(RS.C0,CFrame.new(1.20952582, 0.499788254+.1*M.C(Sine/12), -0.0786797404, 0.828000546, -0.560713649, -2.55837147e-08, 0.0035247067, 0.00520494673, -0.999980271, 0.560702622, 0.827984214, 0.00628614519),Alpha)
  1282. NK.C0 = clerp(NK.C0,CFrame.new(-7.09252117e-06, 1.4989512, -0.0144005567, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha)
  1283. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1284. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1285. WingFlutter()
  1286. circle.Size = circle.Size + V3.N(.2,.2,0)
  1287. circle2.Size = circle2.Size + V3.N(.2,.2,0)
  1288. circle.Front.Transparency=1-(i/3)
  1289. circle.Back.Transparency=1-(i/3)
  1290. circle2.Front.Transparency=1-(i/3)
  1291. circle2.Back.Transparency=1-(i/3)
  1292.  
  1293. circle.CFrame=circle.CFrame*CF.A(0,0,M.R(5))
  1294. circle2.CFrame=circle2.CFrame*CF.A(0,0,M.R(5))
  1295. end
  1296. Root.Anchored = true
  1297. for i = 1, 3,.1 do
  1298. Root.Anchored = true
  1299. swait()
  1300. local Alpha = .1
  1301. Change = .5
  1302. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20625471e-13, 0+.25*M.C(Sine/12), -6.20266655e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1303. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1304. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1305. LS.C0 = clerp(LS.C0,CFrame.new(-1.09520316, 0.319447398+.1*M.C(Sine/12), 0.380316556, 0.862274766, -0.50140965, 0.071203351, 0.413908899, 0.77874434, 0.471420079, -0.291823745, -0.377021939, 0.879029453)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1306. RS.C0 = clerp(RS.C0,CFrame.new(1.38953996, 0.579314649+.1*M.C(Sine/12), 0.00156672322, 0.963396549, -0.267624378, 0.0156119959, 0.267557263, 0.9635216, 0.0062854127, -0.0167246256, -0.0018782462, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1307. NK.C0 = clerp(NK.C0,CFrame.new(-7.09252117e-06, 1.4989512, -0.0144005567, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha)
  1308. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1309. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1310. WingFlutter()
  1311. end
  1312. for i = 0, 2, .1 do
  1313. swait()
  1314. local Alpha = .1
  1315. Change = .5
  1316. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00288401172, -0.186870754+.25*M.C(Sine/12), -0.184415281, 0.999970019, -0.00748212682, -0.00185852405, 0.00747100171, 0.880958676, 0.473134309, -0.00190276653, -0.473133981, 0.880988002)*CF.A(-M.R(10+5*M.S(Sine/12)),0,0),Alpha)
  1317. LH.C0 = clerp(LH.C0,CFrame.new(-0.455414772, -0.964986682, 0.0489092469, 0.999094486, 0.0300228745, 0.0301540364, -0.0396850631, 0.913133621, 0.405724436, -0.0153536471, -0.406553656, 0.913497925)*CF.A(0,M.R(2+7*M.C(Sine/12)),-M.R(2+7*M.C(Sine/12))),Alpha)
  1318. RH.C0 = clerp(RH.C0,CFrame.new(0.544458926, -0.964868069, 0.0333667099, 0.999092519, 0.0301021822, 0.0301397741, -0.0397526845, 0.913105845, 0.405780286, -0.015305927, -0.406610161, 0.913473606)*CF.A(0,-M.R(2+7*M.C(Sine/12)),M.R(2+7*M.C(Sine/12))),Alpha)
  1319. LS.C0 = clerp(LS.C0,CFrame.new(-1.36389351, 0.578486085+.1*M.C(Sine/12), 0.180077106, -0.966345549, 0.257006437, -0.0111429691, 0.189922124, 0.683552086, -0.704759717, -0.173510939, -0.683157504, -0.709358692)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1320. RS.C0 = clerp(RS.C0,CFrame.new(1.36815977, 0.578247666+.1*M.C(Sine/12), 0.13745755, 0.960469842, -0.278161407, 0.0111425305, 0.189813495, 0.683640122, 0.704703569, -0.203638792, -0.674731433, 0.709414363)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1321. NK.C0 = clerp(NK.C0,CFrame.new(0.00204973482, 1.42796898, 0.117728591, 0.999878228, 0.00747100171, 0.0137089603, -9.46668442e-05, 0.880958676, -0.473193318, -0.0156122521, 0.473134309, 0.880851984),Alpha)
  1322. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1323. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1324. WingFlutter()
  1325. Root.CFrame = Root.CFrame * CF.N(0,0,-.1)
  1326. Transparency(i/2)
  1327. end
  1328. Zap{
  1329. StartCFrame=Root.CFrame,
  1330. EndCFrame=asd*CF.N(0,4,0),
  1331. ZapRotation = {-5,5},
  1332. PartCount=10,
  1333. StartSize = 4,
  1334. EndSize = .5,
  1335. Color = C3.N(1,1,0),
  1336. DelayInc=5,
  1337. Delay = 15,
  1338. }
  1339. Root.CFrame = asd*CF.N(0,4,0)
  1340. Root.Anchored = true
  1341.  
  1342. for i = 0, 2, .1 do
  1343. Root.Anchored = true
  1344. swait()
  1345. local Alpha = .1
  1346. Change = .5
  1347. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00288401172, -0.186870754+.25*M.C(Sine/12), -0.184415281, 0.999970019, -0.00748212682, -0.00185852405, 0.00747100171, 0.880958676, 0.473134309, -0.00190276653, -0.473133981, 0.880988002)*CF.A(-M.R(10+5*M.S(Sine/12)),0,0),Alpha)
  1348. LH.C0 = clerp(LH.C0,CFrame.new(-0.455414772, -0.964986682, 0.0489092469, 0.999094486, 0.0300228745, 0.0301540364, -0.0396850631, 0.913133621, 0.405724436, -0.0153536471, -0.406553656, 0.913497925)*CF.A(0,M.R(2+7*M.C(Sine/12)),-M.R(2+7*M.C(Sine/12))),Alpha)
  1349. RH.C0 = clerp(RH.C0,CFrame.new(0.544458926, -0.964868069, 0.0333667099, 0.999092519, 0.0301021822, 0.0301397741, -0.0397526845, 0.913105845, 0.405780286, -0.015305927, -0.406610161, 0.913473606)*CF.A(0,-M.R(2+7*M.C(Sine/12)),M.R(2+7*M.C(Sine/12))),Alpha)
  1350. LS.C0 = clerp(LS.C0,CFrame.new(-1.36389351, 0.578486085+.1*M.C(Sine/12), 0.180077106, -0.966345549, 0.257006437, -0.0111429691, 0.189922124, 0.683552086, -0.704759717, -0.173510939, -0.683157504, -0.709358692)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1351. RS.C0 = clerp(RS.C0,CFrame.new(1.36815977, 0.578247666+.1*M.C(Sine/12), 0.13745755, 0.960469842, -0.278161407, 0.0111425305, 0.189813495, 0.683640122, 0.704703569, -0.203638792, -0.674731433, 0.709414363)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1352. NK.C0 = clerp(NK.C0,CFrame.new(0.00204973482, 1.42796898, 0.117728591, 0.999878228, 0.00747100171, 0.0137089603, -9.46668442e-05, 0.880958676, -0.473193318, -0.0156122521, 0.473134309, 0.880851984),Alpha)
  1353. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1354. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1355. WingFlutter()
  1356. Root.CFrame = Root.CFrame * CF.N(0,0,-.1)
  1357. Transparency(1-(i/2))
  1358. end
  1359.  
  1360.  
  1361. Transparency(0)
  1362. coroutine.wrap(function()
  1363. for i = 0, 3, .1 do
  1364. swait()
  1365. local Alpha = .1
  1366. Change = .5
  1367. circle.Size = circle.Size - V3.N(.2,.2,0)
  1368. circle2.Size = circle2.Size - V3.N(.2,.2,0)
  1369. circle.Front.Transparency=(i/3)
  1370. circle.Back.Transparency=(i/3)
  1371. circle2.Front.Transparency=(i/3)
  1372. circle2.Back.Transparency=(i/3)
  1373.  
  1374. circle.CFrame=circle.CFrame*CF.A(0,0,-M.R(5))
  1375. circle2.CFrame=circle2.CFrame*CF.A(0,0,-M.R(5))
  1376. end
  1377. end)()
  1378. Hum.AutoRotate = true
  1379. Root.Anchored = false
  1380. Rooted = false
  1381. Attack = false
  1382. NeutralAnims = true
  1383. end
  1384.  
  1385. Mouse.KeyDown:connect(function(k)
  1386. if(Attack)then return end
  1387. if(k == 'q')then Teleport() end
  1388. if(k == 'z')then Lazor() end
  1389. if(k == 'x')then Smite() end
  1390. if(k == 'v')then HolyBomb() end
  1391. if(k == 'c')then LightningStorm() end
  1392. end)
  1393.  
  1394.  
  1395. --// Wrap it all up \\--
  1396. while true do
  1397. swait()
  1398. Sine = Sine + Change
  1399.  
  1400. if(not Music or not Music.Parent)then
  1401. local a = Music.TimePosition
  1402. Music = Sound(Char,MusicID,1,3,true,false,true)
  1403. Music.Name = 'Music'
  1404. Music.TimePosition = a
  1405. end
  1406. Music.Playing = true
  1407. Torso.Color = C3.N(0,0,0)
  1408. RArm.Color = C3.N(0,0,0)
  1409. LArm.Color = C3.N(0,0,0)
  1410. RLeg.Color = C3.N(0,0,0)
  1411. LLeg.Color = C3.N(0,0,0)
  1412. Head.Color = C3.N(0,0,0)
  1413. Music.Volume = 5
  1414. Music.Pitch = 1
  1415. Music.Playing = true
  1416. Hum.HipHeight = 2
  1417. Sine = Sine + Change
  1418. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 100), Char)
  1419. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1420. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or Walking and "Walk" or "Idle")
  1421. if(time()-PulseTime > .05)then
  1422. PulseTime = time()
  1423. if(hitfloor)then
  1424. local angles = CF.A(M.RRNG(-15,15),M.RRNG(-45,45),M.RRNG(-45,45))
  1425. Effect{
  1426. Effect='ResizeAndFade',
  1427. Color=hitfloor.Color,
  1428. Material=hitfloor.Material,
  1429. Frames=60,
  1430. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId="rbxassetid://662586858",Scale=V3.N(.01,.01,.01)},
  1431. CFrame=CF.N(posfloor)*angles,
  1432. MoveDirection=CF.N(posfloor)*angles*CF.N(0,6,0).p,
  1433. FXSettings = {
  1434. EndSize=V3.N(.0005,.0005,.0005),
  1435. EndIsIncrement=true
  1436. }
  1437. }
  1438. end
  1439. local pos = CF.N(Torso.CFrame.p)*CF.N(0,-2,0)*CF.A(0,M.RRNG(-180,180),0)*CF.N(0,0,M.RNG(-15,-5))
  1440. local hitfloor2,posfloor2 = workspace:FindPartOnRay(Ray.new(pos.p,((CFrame.new(pos.p,pos.p - Vector3.new(0,1,0))).lookVector).unit * 100), Char)
  1441.  
  1442. if(hitfloor2)then
  1443. pos = CF.N(posfloor2)
  1444. Effect{
  1445. Effect='ResizeAndFade',
  1446. Color=BrickColor.new'New Yeller',
  1447. Size=V3.N(2,2,2),
  1448. Material=Enum.Material.Neon,
  1449. Mesh={MeshType=Enum.MeshType.Sphere},
  1450. Frames=45,
  1451. CFrame=pos,
  1452. FXSettings = {
  1453. EndSize = V3.N(-.01,.25,-.01),
  1454. EndIsIncrement = true
  1455. }
  1456. }
  1457. else
  1458. Effect{
  1459. Effect='ResizeAndFade',
  1460. Color=BrickColor.new'New Yeller',
  1461. Size=V3.N(2,2,2),
  1462. Material=Enum.Material.Neon,
  1463. Mesh={MeshType=Enum.MeshType.Sphere},
  1464. Frames=45,
  1465. CFrame=pos,
  1466. FXSettings = {
  1467. EndSize = V3.N(-.01,.25,-.01),
  1468. EndIsIncrement = true
  1469. }
  1470. }
  1471. end
  1472. end
  1473. Hum.Name = math.random()*100000
  1474. Hum.MaxHealth = 1e100
  1475. Hum.Health = 1e100
  1476. if(M.RNG(1,50) == 1)then
  1477. local pos = CF.N(Torso.CFrame.p)*CF.N(0,-2,0)*CF.A(0,M.RRNG(-180,180),0)*CF.N(0,0,M.RNG(-30,-15))
  1478. local hitfloor2,posfloor2 = workspace:FindPartOnRay(Ray.new(pos.p,((CFrame.new(pos.p,pos.p - Vector3.new(0,1,0))).lookVector).unit * 100), Char)
  1479.  
  1480. if(hitfloor2)then
  1481. pos = CF.N(posfloor2)
  1482. end
  1483. Zap{
  1484. StartCFrame=Torso.CFrame,
  1485. EndCFrame=pos,
  1486. ZapRotation = {-2,2},
  1487. PartCount=5,
  1488. StartSize = .5,
  1489. EndSize = 0,
  1490. Color = C3.N(1,1,0),
  1491. DelayInc=5,
  1492. Delay = 15,
  1493. Sound=false
  1494. }
  1495. end
  1496. if(Rooted == false)then
  1497. Hum.WalkSpeed = 32
  1498. Hum.JumpPower = 75
  1499. else
  1500. Hum.WalkSpeed = 0
  1501. Hum.JumpPower = 0
  1502. end
  1503. if(not Effects or not Effects.Parent)then
  1504. Effects = IN("Model",Char)
  1505. Effects.Name = "Effects"
  1506. end
  1507. if(NeutralAnims)then
  1508. if(State == 'Idle')then
  1509. local Alpha = .1
  1510. Change = .5
  1511. RJ.C0 = clerp(RJ.C0,CFrame.new(3.20625471e-13, 0+.25*M.C(Sine/12), -6.20266655e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(-M.R(3+5*M.S(Sine/12)),0,0),Alpha)
  1512. LH.C0 = clerp(LH.C0,CFrame.new(-0.443078369, -0.366475701, -0.69529891, 0.999093771, 0.0300307292, 0.0301540978, -0.039692279, 0.913133621, 0.405723602, -0.0153505448, -0.406552792, 0.913497925)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1513. RH.C0 = clerp(RH.C0,CFrame.new(0.563508928, -0.975499094, 0.0143494867, 0.992422402, -0.121874072, 0.0156119959, 0.121789157, 0.992536128, 0.0062854127, -0.0162614994, -0.00433641672, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),-M.R(0+5*M.C(Sine/12))),Alpha)
  1514. LS.C0 = clerp(LS.C0,CFrame.new(-1.09520316, 0.319447398+.1*M.C(Sine/12), 0.380316556, 0.862274766, -0.50140965, 0.071203351, 0.413908899, 0.77874434, 0.471420079, -0.291823745, -0.377021939, 0.879029453)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1515. RS.C0 = clerp(RS.C0,CFrame.new(1.38953996, 0.579314649+.1*M.C(Sine/12), 0.00156672322, 0.963396549, -0.267624378, 0.0156119959, 0.267557263, 0.9635216, 0.0062854127, -0.0167246256, -0.0018782462, 0.999858022)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1516. NK.C0 = clerp(NK.C0,CFrame.new(-7.09252117e-06, 1.4989512, -0.0144005567, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha)
  1517. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1518. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1519. WingFlutter()
  1520.  
  1521. elseif(State == 'Walk')then
  1522. local Alpha = .1
  1523. Change = .5
  1524. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00288401172, -0.186870754+.25*M.C(Sine/12), -0.184415281, 0.999970019, -0.00748212682, -0.00185852405, 0.00747100171, 0.880958676, 0.473134309, -0.00190276653, -0.473133981, 0.880988002)*CF.A(-M.R(10+5*M.S(Sine/12)),0,0),Alpha)
  1525. LH.C0 = clerp(LH.C0,CFrame.new(-0.455414772, -0.964986682, 0.0489092469, 0.999094486, 0.0300228745, 0.0301540364, -0.0396850631, 0.913133621, 0.405724436, -0.0153536471, -0.406553656, 0.913497925)*CF.A(0,M.R(2+7*M.C(Sine/12)),-M.R(2+7*M.C(Sine/12))),Alpha)
  1526. RH.C0 = clerp(RH.C0,CFrame.new(0.544458926, -0.964868069, 0.0333667099, 0.999092519, 0.0301021822, 0.0301397741, -0.0397526845, 0.913105845, 0.405780286, -0.015305927, -0.406610161, 0.913473606)*CF.A(0,-M.R(2+7*M.C(Sine/12)),M.R(2+7*M.C(Sine/12))),Alpha)
  1527. LS.C0 = clerp(LS.C0,CFrame.new(-1.36389351, 0.578486085+.1*M.C(Sine/12), 0.180077106, -0.966345549, 0.257006437, -0.0111429691, 0.189922124, 0.683552086, -0.704759717, -0.173510939, -0.683157504, -0.709358692)*CF.A(0,M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1528. RS.C0 = clerp(RS.C0,CFrame.new(1.36815977, 0.578247666+.1*M.C(Sine/12), 0.13745755, 0.960469842, -0.278161407, 0.0111425305, 0.189813495, 0.683640122, 0.704703569, -0.203638792, -0.674731433, 0.709414363)*CF.A(0,-M.R(0+5*M.C(Sine/12)),M.R(0+5*M.C(Sine/12))),Alpha)
  1529. NK.C0 = clerp(NK.C0,CFrame.new(0.00204973482, 1.42796898, 0.117728591, 0.999878228, 0.00747100171, 0.0137089603, -9.46668442e-05, 0.880958676, -0.473193318, -0.0156122521, 0.473134309, 0.880851984),Alpha)
  1530. HW.C0 = HW.C0:lerp(CF.N(0,2,0)*CF.A(M.R(0+15*M.C(Sine/36)),0,M.R(0+15*M.S(Sine/36)))*CF.N(-M.R(0+15*M.S(Sine/36)),0,M.R(0+15*M.C(Sine/36))),Alpha)
  1531. WW.C0 = WW.C0:lerp(CF.N(0,1.5+.3*M.C(Sine/12),1.5),Alpha)
  1532. WingFlutter()
  1533. elseif(State == 'Paralyzed')then
  1534. -- paralyzed
  1535. elseif(State == 'Sit')then
  1536. -- sit
  1537. end
  1538. end
  1539. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement