Advertisement
lafur

Untitled

Nov 9th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.98 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --[[Soul Phoenix by Injectioneer]]--
  6. wait(1 / 60)
  7. Effects = { }
  8. local Player = game:GetService'Players'.localPlayer
  9. local Character = Player.Character
  10. local Humanoid = Character.Humanoid
  11. local Mouse = Player:GetMouse()
  12. local LeftArm = Character["Left Arm"]
  13. local RightArm = Character["Right Arm"]
  14. local LeftLeg = Character["Left Leg"]
  15. local RightLeg = Character["Right Leg"]
  16. local Head = Character.Head
  17. local Torso = Character.Torso
  18. local Camera = game.Workspace.CurrentCamera
  19. local RootPart = Character.HumanoidRootPart
  20. local RootJoint = RootPart.RootJoint
  21. local attack = false
  22. local Anim = 'Idle'
  23. local attacktype = 1
  24. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  25. local velocity = RootPart.Velocity.y
  26. local sine = 0
  27. local change = 1
  28. local Create = LoadLibrary("RbxUtility").Create
  29. local efc = 0
  30. local gothit = false
  31. Humanoid.MaxHealth = 100 + (1e19 * math.huge)
  32. Humanoid.Health = Humanoid.MaxHealth
  33.  
  34. Humanoid.DisplayDistanceType = 'None'
  35.  
  36. local naeeym2 = Instance.new("BillboardGui",Head)
  37. naeeym2.AlwaysOnTop = true
  38. naeeym2.Size = UDim2.new(5,35,2,15)
  39. naeeym2.StudsOffset = Vector3.new(0,15,0)
  40. naeeym2.Adornee = Head
  41. naeeym2.Name = "Name"
  42. local tecks2 = Instance.new("TextLabel",naeeym2)
  43. tecks2.BackgroundTransparency = 1
  44. tecks2.TextScaled = true
  45. tecks2.BorderSizePixel = 2
  46. tecks2.Text = "THE COMPLETE BEING"
  47. tecks2.Font = Enum.Font.Fantasy
  48. tecks2.TextSize = 14
  49. tecks2.TextStrokeTransparency = 0
  50. tecks2.TextColor3 = Color3.new(.5,.5,.5)
  51. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  52. tecks2.Size = UDim2.new(1,0,0.5,0)
  53. tecks2.Parent = naeeym2
  54.  
  55. local m = Create("Model"){
  56. Parent = Character,
  57. Name = "WeaponModel",
  58. }
  59.  
  60. local Phoenix_Theme = Create'Sound'{
  61. SoundId = 'rbxassetid://462506896',
  62. Parent = Character,
  63. Volume = 3,
  64. Pitch = 1,
  65. Looped = true
  66. }
  67. Phoenix_Theme:Play()
  68.  
  69. Humanoid.Animator.Parent = nil
  70. Character.Animate.Parent = nil
  71.  
  72. New = function(Object, Parent, Name, Data)
  73. local Object = Instance.new(Object)
  74. for Index, Value in pairs(Data or {}) do
  75. Object[Index] = Value
  76. end
  77. Object.Parent = Parent
  78. Object.Name = Name
  79. return Object
  80. end
  81.  
  82. function CameraShake(Intensity)
  83. coroutine.resume(coroutine.create(function()
  84. local Focus = (Camera.CoordinateFrame.p - Camera.Focus.p).magnitude
  85. Focus = 100 / Intensity + Focus / 150
  86. for i = math.random(150, 250) / 100, 0, -0.05 do
  87. Camera.CFrame = CFrame.new.new(math.random(-30, 30) / 20 * (i * Focus), math.random(-30, 30) / 20 * (i * Focus), math.random(-30, 30) / 20 * (i * Focus))
  88. swait()
  89. end
  90. Camera.CFrame = CFrame.new(0, 0, 0)
  91. end))
  92. end
  93.  
  94. local newMotor = function(part0, part1, c0, c1)
  95. local w = Create('Motor'){
  96. Parent = part0,
  97. Part0 = part0,
  98. Part1 = part1,
  99. C0 = c0,
  100. C1 = c1,
  101. }
  102. return w
  103. end
  104.  
  105. function clerp(a, b, t)
  106. return a:lerp(b, t)
  107. end
  108.  
  109. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  110. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  111.  
  112. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  113. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  114. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  115. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  116. RootJoint.C1 = CFrame.new(0, 0, 0)
  117. RootJoint.C0 = CFrame.new(0, 0, 0)
  118. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  119. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  120.  
  121. local rarmc1 = RW.C1
  122. local larmc1 = LW.C1
  123. local rlegc1 = RH.C1
  124. local llegc1 = LH.C1
  125.  
  126. local resetc1 = false
  127.  
  128. function PlayAnimationFromTable(table, speed, bool)
  129. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  130. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  131. RW.C0 = clerp(RW.C0, table[3], speed)
  132. LW.C0 = clerp(LW.C0, table[4], speed)
  133. RH.C0 = clerp(RH.C0, table[5], speed)
  134. LH.C0 = clerp(LH.C0, table[6], speed)
  135. if bool == true then
  136. if resetc1 == false then
  137. resetc1 = true
  138. RootJoint.C1 = RootJoint.C1
  139. Torso.Neck.C1 = Torso.Neck.C1
  140. RW.C1 = rarmc1
  141. LW.C1 = larmc1
  142. RH.C1 = rlegc1
  143. LH.C1 = llegc1
  144. end
  145. end
  146. end
  147.  
  148. ArtificialHB = Create("BindableEvent", script){
  149. Parent = script,
  150. Name = "Heartbeat",
  151. }
  152.  
  153. script:WaitForChild("Heartbeat")
  154.  
  155. frame = 1 / 30
  156. tf = 0
  157. allowframeloss = false
  158. tossremainder = false
  159. lastframe = tick()
  160. script.Heartbeat:Fire()
  161.  
  162. game:GetService("RunService").Heartbeat:connect(function(s, p)
  163. tf = tf + s
  164. if tf >= frame then
  165. if allowframeloss then
  166. script.Heartbeat:Fire()
  167. lastframe = tick()
  168. else
  169. for i = 1, math.floor(tf / frame) do
  170. script.Heartbeat:Fire()
  171. end
  172. lastframe = tick()
  173. end
  174. if tossremainder then
  175. tf = 0
  176. else
  177. tf = tf - frame * math.floor(tf / frame)
  178. end
  179. end
  180. end)
  181.  
  182. function swait(num)
  183. if num == 0 or num == nil then
  184. ArtificialHB.Event:wait()
  185. else
  186. for i = 0, num do
  187. ArtificialHB.Event:wait()
  188. end
  189. end
  190. end
  191.  
  192. function RemoveOutlines(part)
  193. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  194. end
  195.  
  196. CFuncs = {
  197. ["Part"] = {
  198. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  199. local Part = Create("Part"){
  200. Parent = Parent,
  201. Reflectance = Reflectance,
  202. Transparency = Transparency,
  203. CanCollide = false,
  204. Locked = true,
  205. BrickColor = BrickColor.new(tostring(BColor)),
  206. Name = Name,
  207. Size = Size,
  208. Material = Enum.Material.Neon,
  209. }
  210. RemoveOutlines(Part)
  211. return Part
  212. end;
  213. };
  214.  
  215. ["Mesh"] = {
  216. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  217. local Msh = Create(Mesh){
  218. Parent = Part,
  219. Offset = OffSet,
  220. Scale = Scale,
  221. }
  222. if Mesh == "SpecialMesh" then
  223. Msh.MeshType = MeshType
  224. Msh.MeshId = MeshId
  225. end
  226. return Msh
  227. end;
  228. };
  229.  
  230. ["Mesh"] = {
  231. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  232. local Msh = Create(Mesh){
  233. Parent = Part,
  234. Offset = OffSet,
  235. Scale = Scale,
  236. }
  237. if Mesh == "SpecialMesh" then
  238. Msh.MeshType = MeshType
  239. Msh.MeshId = MeshId
  240. end
  241. return Msh
  242. end;
  243. };
  244.  
  245. ["Weld"] = {
  246. Create = function(Parent, Part0, Part1, C0, C1)
  247. local Weld = Create("Weld"){
  248. Parent = Parent,
  249. Part0 = Part0,
  250. Part1 = Part1,
  251. C0 = C0,
  252. C1 = C1,
  253. }
  254. return Weld
  255. end;
  256. };
  257.  
  258. ["Sound"] = {
  259. Create = function(id, par, vol, pit)
  260. coroutine.resume(coroutine.create(function()
  261. local S = Create("Sound"){
  262. Volume = vol,
  263. Pitch = pit or 1,
  264. SoundId = id,
  265. Parent = par or workspace,
  266. }
  267. wait()
  268. S:play()
  269. game:GetService("Debris"):AddItem(S, 25)
  270. end))
  271. end;
  272. };
  273.  
  274. ["ParticleEmitter"] = {
  275. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  276. local fp = Create("ParticleEmitter"){
  277. Parent = Parent,
  278. Color = ColorSequence.new(Color1, Color2),
  279. LightEmission = LightEmission,
  280. Size = Size,
  281. Texture = Texture,
  282. Transparency = Transparency,
  283. ZOffset = ZOffset,
  284. Acceleration = Accel,
  285. Drag = Drag,
  286. LockedToPart = LockedToPart,
  287. VelocityInheritance = VelocityInheritance,
  288. EmissionDirection = EmissionDirection,
  289. Enabled = Enabled,
  290. Lifetime = LifeTime,
  291. Rate = Rate,
  292. Rotation = Rotation,
  293. RotSpeed = RotSpeed,
  294. Speed = Speed,
  295. VelocitySpread = VelocitySpread,
  296. }
  297. return fp
  298. end;
  299. };
  300.  
  301. CreateTemplate = {
  302.  
  303. };
  304. }
  305.  
  306. function rayCast(Position, Direction, Range, Ignore)
  307. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  308. end
  309.  
  310. FindNearestTorso = function(pos)
  311. local list = (game.Workspace:children())
  312. local torso = nil
  313. local dist = 1000
  314. local temp, human, temp2 = nil, nil, nil
  315. for x = 1, #list do
  316. temp2 = list[x]
  317. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  318. temp = temp2:findFirstChild("Torso")
  319. human = temp2:findFirstChild("Humanoid")
  320. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  321. local dohit = true
  322. if dohit == true then
  323. torso = temp
  324. dist = (temp.Position - pos).magnitude
  325. end
  326. end
  327. end
  328. end
  329. return torso, dist
  330. end
  331.  
  332. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  333. if hit.Parent == nil then
  334. return
  335. end
  336. local h = hit.Parent:FindFirstChild("Humanoid")
  337. for _, v in pairs(hit.Parent:children()) do
  338. if v:IsA("Humanoid") then
  339. h = v
  340. end
  341. end
  342. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  343. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  344. if hit.Parent.DebounceHit.Value == true then
  345. return
  346. end
  347. end
  348. local c = Create("ObjectValue"){
  349. Name = "creator",
  350. Value = game:service("Players").LocalPlayer,
  351. Parent = h,
  352. }
  353. game:GetService("Debris"):AddItem(c, .5)
  354. if HitSound ~= nil and HitPitch ~= nil then
  355. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  356. end
  357. local Damage = math.random(minim, maxim)
  358. local blocked = false
  359. local block = hit.Parent:findFirstChild("Block")
  360. if block ~= nil then
  361. if block.className == "IntValue" then
  362. if block.Value > 0 then
  363. blocked = true
  364. block.Value = block.Value - 1
  365. print(block.Value)
  366. end
  367. end
  368. end
  369. if blocked == false then
  370. h.Health = h.Health - Damage
  371. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
  372. else
  373. h.Health = h.Health - (Damage / 2)
  374. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
  375. end
  376. if Type == "Knockdown" then
  377. local hum = hit.Parent.Humanoid
  378. hum.PlatformStand = true
  379. coroutine.resume(coroutine.create(function(HHumanoid)
  380. swait(1)
  381. HHumanoid.PlatformStand = false
  382. end), hum)
  383. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  384. local bodvol = Create("BodyVelocity"){
  385. velocity = angle * knockback,
  386. P = 5000,
  387. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  388. Parent = hit,
  389. }
  390. local rl = Create("BodyAngularVelocity"){
  391. P = 3000,
  392. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  393. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  394. Parent = hit,
  395. }
  396. game:GetService("Debris"):AddItem(bodvol, .5)
  397. game:GetService("Debris"):AddItem(rl, .5)
  398. elseif Type == "Normal" then
  399. local vp = Create("BodyVelocity"){
  400. P = 500,
  401. maxForce = Vector3.new(math.huge, 0, math.huge),
  402. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  403. }
  404. if knockback > 0 then
  405. vp.Parent = hit.Parent.Torso
  406. end
  407. game:GetService("Debris"):AddItem(vp, .5)
  408. elseif Type == "Up" then
  409. local bodyVelocity = Create("BodyVelocity"){
  410. velocity = Vector3.new(0, 20, 0),
  411. P = 5000,
  412. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  413. Parent = hit,
  414. }
  415. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  416. elseif Type == "DarkUp" then
  417. coroutine.resume(coroutine.create(function()
  418. for i = 0, 1, 0.1 do
  419. swait()
  420. Effects.Block.Create(BrickColor.new("Institutional white"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  421. end
  422. end))
  423. local bodyVelocity = Create("BodyVelocity"){
  424. velocity = Vector3.new(0, 20, 0),
  425. P = 5000,
  426. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  427. Parent = hit,
  428. }
  429. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  430. elseif Type == "Snare" then
  431. local bp = Create("BodyPosition"){
  432. P = 2000,
  433. D = 100,
  434. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  435. position = hit.Parent.Torso.Position,
  436. Parent = hit.Parent.Torso,
  437. }
  438. game:GetService("Debris"):AddItem(bp, 1)
  439. elseif Type == "Freeze" then
  440. local BodPos = Create("BodyPosition"){
  441. P = 50000,
  442. D = 1000,
  443. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  444. position = hit.Parent.Torso.Position,
  445. Parent = hit.Parent.Torso,
  446. }
  447. local BodGy = Create("BodyGyro") {
  448. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  449. P = 20e+003,
  450. Parent = hit.Parent.Torso,
  451. cframe = hit.Parent.Torso.CFrame,
  452. }
  453. hit.Parent.Torso.Anchored = true
  454. coroutine.resume(coroutine.create(function(Part)
  455. swait(1.5)
  456. Part.Anchored = false
  457. end), hit.Parent.Torso)
  458. game:GetService("Debris"):AddItem(BodPos, 3)
  459. game:GetService("Debris"):AddItem(BodGy, 3)
  460. elseif Type == "Body Snatch" then
  461. if not gothit then
  462. gothit = true
  463. local BodPos = Create("BodyPosition"){
  464. P = 50000,
  465. D = 1000,
  466. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  467. position = hit.Parent.Torso.Position,
  468. Parent = hit.Parent.Torso,
  469. }
  470. local BodGy = Create("BodyGyro") {
  471. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  472. P = 20e+003,
  473. Parent = hit.Parent.Torso,
  474. cframe = hit.Parent.Torso.CFrame,
  475. }
  476. hit.Parent.Torso.Anchored = true
  477. coroutine.resume(coroutine.create(function(Part)
  478. swait(1.5)
  479. Part.Anchored = false
  480. end), hit.Parent.Torso)
  481. game:GetService("Debris"):AddItem(BodPos, 3)
  482. game:GetService("Debris"):AddItem(BodGy, 3)
  483. end
  484. end
  485. local debounce = Create("BoolValue"){
  486. Name = "DebounceHit",
  487. Parent = hit.Parent,
  488. Value = true,
  489. }
  490. game:GetService("Debris"):AddItem(debounce, Delay)
  491. c = Create("ObjectValue"){
  492. Name = "creator",
  493. Value = Player,
  494. Parent = h,
  495. }
  496. game:GetService("Debris"):AddItem(c, .5)
  497. end
  498. end
  499.  
  500. function ShowDamage(Pos, Text, Time, Color)
  501. local Rate = (1 / 30)
  502. local Pos = (Pos or Vector3.new(0, 0, 0))
  503. local Text = (Text or "")
  504. local Time = (Time or 2)
  505. local Color = (Color or Color3.new(1, 0, 1))
  506. local EffectPart = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  507. EffectPart.Anchored = true
  508. local BillboardGui = Create("BillboardGui"){
  509. Size = UDim2.new(3, 0, 3, 0),
  510. Adornee = EffectPart,
  511. Parent = EffectPart,
  512. }
  513. local TextLabel = Create("TextLabel"){
  514. BackgroundTransparency = 1,
  515. Size = UDim2.new(1, 0, 1, 0),
  516. Text = Text,
  517. Font = "SciFi",
  518. TextColor3 = Color,
  519. TextScaled = true,
  520. Parent = BillboardGui,
  521. }
  522. game.Debris:AddItem(EffectPart, (Time))
  523. EffectPart.Parent = game:GetService("Workspace")
  524. delay(0, function()
  525. local Frames = (Time / Rate)
  526. for Frame = 1, Frames do
  527. wait(Rate)
  528. local Percent = (Frame / Frames)
  529. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  530. TextLabel.TextTransparency = Percent
  531. end
  532. if EffectPart and EffectPart.Parent then
  533. EffectPart:Destroy()
  534. end
  535. end)
  536. end
  537.  
  538. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  539. for _, c in pairs(workspace:children()) do
  540. local hum = c:findFirstChild("Humanoid")
  541. if hum ~= nil then
  542. local head = c:findFirstChild("Torso")
  543. if head ~= nil then
  544. local targ = head.Position - Part.Position
  545. local mag = targ.magnitude
  546. if mag <= Magnitude and c.Name ~= Player.Name then
  547. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  548. end
  549. end
  550. end
  551. end
  552. end
  553.  
  554. SoulPhoenix = New("Model",Character,"SoulPhoenix",{})
  555. PhoenixBody = New("Part",SoulPhoenix,"PhoenixBody",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Fabric,Transparency = 0,Transparency = 0,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(98.0299988, 22.317461, 5.73185444, 1.00000024, 1.49011612e-08, 5.96046448e-08, 1.580114e-08, 0.999999881, 8.94069672e-08, 4.44169572e-08, 2.98023224e-08, 0.999999881),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  556. Mesh = New("SpecialMesh",PhoenixBody,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://92135477",MeshType = Enum.MeshType.FileMesh,})
  557. BodyMotor = New("Motor",PhoenixBody,"moy",{Part0 = RootPart, Part1 = PhoenixBody,})
  558. PhoenixLeftWing = New("Part",SoulPhoenix,"PhoenixLeftWing",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Fabric,Transparency = 0,Transparency = 0,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(81.6499939, 38.6274529, 6.26185465, 1.00000024, 1.49011612e-08, 5.96046448e-08, 1.580114e-08, 0.999999881, 8.94069672e-08, 4.44169572e-08, 2.98023224e-08, 0.999999881),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  559. Mesh = New("SpecialMesh",PhoenixLeftWing,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://92135524",MeshType = Enum.MeshType.FileMesh,})
  560. LeftWingMotor = New("Motor",PhoenixLeftWing,"mot",{Part0 = RootPart,Part1 = PhoenixLeftWing,})
  561. PhoenixEye = New("Part",SoulPhoenix,"PhoenixEye",{BrickColor = BrickColor.new("CGA brown"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 1.14999998, 1.14999998),CFrame = CFrame.new(96.6304474, 45.9224358, 4.19199324, 0.969483733, -0.245157003, -2.40908685e-06, 0.0743650645, 0.294088989, -0.952880502, 0.233606115, 0.923801661, 0.303345352),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  562. Mesh = New("SpecialMesh",PhoenixEye,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  563. mot = New("Motor",PhoenixEye,"mot",{Part0 = PhoenixEye,Part1 = PhoenixBody,C0 = CFrame.new(0, 0, 0, 0.969483495, 0.0743650347, 0.2336061, -0.245157003, 0.29408893, 0.92380178, -2.41296789e-06, -0.952880621, 0.303345412),C1 = CFrame.new(-1.39955139, 23.6049767, -1.53986216, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  564. PhoenixEye = New("Part",SoulPhoenix,"PhoenixEye",{BrickColor = BrickColor.new("CGA brown"),Material = Enum.Material.Neon,Size = Vector3.new(1.14999998, 1.14999998, 1.14999998),CFrame = CFrame.new(99.5204468, 45.9224319, 4.19199657, 0.969488144, 0.245138183, 0, -0.0743670762, 0.294111639, -0.952873468, -0.233585671, 0.923799515, 0.303367972),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  565. Mesh = New("SpecialMesh",PhoenixEye,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  566. mot = New("Motor",PhoenixEye,"mot",{Part0 = PhoenixEye,Part1 = PhoenixBody,C0 = CFrame.new(0, 0, 0, 0.969488144, -0.0743670762, -0.233585671, 0.245138183, 0.294111639, 0.923799515, 0, -0.952873468, 0.303367972),C1 = CFrame.new(1.490448, 23.6049728, -1.53985977, 1.00000024, 1.93927008e-08, 5.77987862e-08, 1.93927008e-08, 0.999999881, 5.96046448e-08, 5.77987862e-08, 5.96046448e-08, 0.99999994),})
  567. PhoenixRightWing = New("Part",SoulPhoenix,"PhoenixRightWing",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Fabric,Transparency = 0,Transparency = 0,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(114.380035, 38.6274414, 6.26186275, 1.00000048, 3.070231e-08, 1.04021609e-07, 3.070231e-08, 0.999999762, 1.19209275e-07, 1.04021609e-07, 1.19209275e-07, 0.999999762),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  568. Mesh = New("SpecialMesh",PhoenixRightWing,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://92135508",MeshType = Enum.MeshType.FileMesh,})
  569. RightWingMotor = New("Motor",PhoenixRightWing,"mot",{Part0 = RootPart,Part1 = PhoenixRightWing,})
  570.  
  571. SoulTheos = New("Model",nil,"SoulTheos",{})
  572. GiantTorso = New("Part",SoulTheos,"GiantTorso",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 0.5,Transparency = 0.5,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(18.7638474, -61.9110374, 34.5869102, -0.999799013, -7.73547413e-08, 0.0200730152, 8.94062779e-08, 0.99999994, 5.95548499e-08, -0.0200730115, -4.54574689e-08, -0.999799669),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  573. Mesh = New("SpecialMesh",GiantTorso,"Mesh",{Scale = Vector3.new(160, 160, 80),MeshType = Enum.MeshType.Brick,})
  574. TorsoMotor = New("Motor",GiantTorso,"mot",{Part0 = RootPart,Part1 = GiantTorso,})
  575. GiantLeftArm = New("Part",SoulTheos,"GiantLeftArm",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 0.5,Transparency = 0.5,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(57.4654083, -58.6980286, 35.3639145, -0.939503789, -0.3419514, 0.0200722292, -0.342020005, 0.939692616, -1.96863266e-06, -0.0188610125, -0.00686705299, -0.999799788),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  576. Mesh = New("SpecialMesh",GiantLeftArm,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  577. LeftArmMotor = New("Motor",GiantLeftArm,"mot",{Part0 = RootPart,Part1 = GiantLeftArm,})
  578. GiantRightArm = New("Part",SoulTheos,"GiantRightArm",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 0.5,Transparency = 0.5,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(-19.9377098, -58.6980209, 33.8098907, -0.939503908, 0.3419514, 0.0200727414, 0.342020124, 0.939692438, -2.35339098e-06, -0.0188630428, 0.0068629696, -0.999799788),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  579. Mesh = New("SpecialMesh",GiantRightArm,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  580. RightArmMotor = New("Motor",GiantRightArm,"mot",{Part0 = RootPart,Part1 = GiantRightArm,})
  581. GiantLeftLeg = New("Part",SoulTheos,"GiantLeftLeg",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 0.5,Transparency = 0.5,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(30.1172562, -107.333794, 34.8149414, -0.999799252, -1.07163167e-07, 0.0200730208, 1.08046585e-07, 0.999999821, 5.9777598e-08, -0.0200730152, -4.54196076e-08, -0.999799907),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  582. Mesh = New("SpecialMesh",GiantLeftLeg,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  583. LeftLegMotor = New("Motor",GiantLeftLeg,"mot",{Part0 = RootPart,Part1 = GiantLeftLeg,})
  584. GiantRightLeg = New("Part",SoulTheos,"GiantRightLeg",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 0.5,Transparency = 0.5,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(7.41043186, -107.333786, 34.3590622, -0.999799252, -1.07163167e-07, 0.020073019, 1.08046585e-07, 0.999999821, 5.97776051e-08, -0.0200730152, -4.54196076e-08, -0.999800026),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  585. Mesh = New("SpecialMesh",GiantRightLeg,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  586. RightLegMotor = New("Motor",GiantRightLeg,"mot",{Part0 = RootPart,Part1 = GiantRightLeg,})
  587. GiantHead = New("Part",SoulTheos,"GiantHead",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Transparency = 0.5,Transparency = 0.5,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(18.872324, -28.2713623, 29.1834316, -0.999799252, 0.00348557555, 0.019768076, 1.08046585e-07, 0.984807312, -0.173649967, -0.0200730152, -0.173615396, -0.984610558),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  588. Mesh = New("SpecialMesh",GiantHead,"Mesh",{Scale = Vector3.new(80, 80, 80),MeshType = Enum.MeshType.Brick,})
  589. HeadMotor = New("Motor",GiantHead,"mot",{Part0 = RootPart,Part1 = GiantHead,})
  590. GiantCrystal = New("Part",SoulTheos,"GiantCrystal",{BrickColor = BrickColor.new("Eggplant"),Material = Enum.Material.Neon,Velocity = Vector3.new(0, -1.78783084e-05, 0),Size = Vector3.new(0.283892363, 0.283892363, 0.283892363),CFrame = CFrame.new(18.7638416, -61.9110107, 34.5869102, -0.999799252, -1.06558666e-07, 0.0200730152, 1.0786254e-07, 0.99999994, 7.40884971e-08, -0.0200730134, -7.58521566e-08, -0.999800146),CanCollide = false,Locked = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.482353, 0, 0.482353),})
  591. Mesh = New("SpecialMesh",GiantCrystal,"Mesh",{Scale = Vector3.new(10, 25, 10),MeshId = "rbxassetid://9756362",MeshType = Enum.MeshType.FileMesh,})
  592. mot = New("Motor",GiantCrystal,"mot",{Part0 = GiantTorso,Part1 = GiantCrystal,})
  593.  
  594. TorsoMotor.C0 = clerp(TorsoMotor.C0, CFrame.new(-7.71597195, -66.5210419, 49.4334412, 0.999800205, 1.64012917e-07, -0.0200730488, 1.78532588e-07, 0.99999994, 1.78446513e-07, 0.0200730469, 1.49604062e-07, 0.999801874) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 1)
  595. HeadMotor.C0 = clerp(HeadMotor.C0, CFrame.new(-7.82444096, -32.8813782, 54.8370323, 0.999800444, -0.00348549592, -0.0197681244, 1.97172923e-07, 0.984807372, -0.173649848, 0.0200730506, 0.173615888, 0.984612703) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 1)
  596. RightArmMotor.C0 = clerp(RightArmMotor.C0, CFrame.new(30.9857731, -63.3080025, 50.2104797, 0.9395051, -0.341951728, -0.020072775, 0.342020214, 0.939692438, -2.23449933e-06, 0.0188631117, -0.00686288392, 0.999801993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 1)
  597. LeftArmMotor.C0 = clerp(LeftArmMotor.C0, CFrame.new(-46.4177017, -63.3080521, 48.6564445, 0.939504862, 0.341951907, -0.0200722627, -0.342019916, 0.939692616, -1.84974078e-06, 0.0188610107, 0.00686716288, 0.999801993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 1)
  598. RightLegMotor.C0 = clerp(RightLegMotor.C0, CFrame.new(3.63747144, -111.943748, 49.6613121, 0.999800444, 1.93821379e-07, -0.0200730525, 1.97172909e-07, 0.999999821, 1.7866931e-07, 0.0200730506, 1.49566191e-07, 0.999802232) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 1)
  599. LeftLegMotor.C0 = clerp(LeftLegMotor.C0, CFrame.new(-19.0694675, -111.943779, 49.2054138, 0.999800444, 1.93821379e-07, -0.0200730544, 1.97172909e-07, 0.999999821, 1.78669296e-07, 0.0200730506, 1.49566191e-07, 0.999802113) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 1)
  600.  
  601. EffectModel = Create("Model"){
  602. Parent = Character,
  603. Name = "Effects",
  604. }
  605.  
  606. Effects = {
  607. Block = {
  608. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  609. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  610. prt.Anchored = true
  611. prt.CFrame = cframe
  612. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  613. game:GetService("Debris"):AddItem(prt, 100)
  614. if Type == 1 or Type == nil then
  615. prt.CFrame = prt.CFrame * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  616. table.insert(Effects, {
  617. prt,
  618. "Block1",
  619. delay,
  620. x3,
  621. y3,
  622. z3,
  623. msh
  624. })
  625. elseif Type == 2 then
  626. table.insert(Effects, {
  627. prt,
  628. "Block2",
  629. delay,
  630. x3,
  631. y3,
  632. z3,
  633. msh
  634. })
  635. end
  636. end;
  637. };
  638.  
  639. Cylinder = {
  640. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  641. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  642. prt.Anchored = true
  643. prt.CFrame = cframe
  644. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  645. game:GetService("Debris"):AddItem(prt, 100)
  646. table.insert(Effects, {
  647. prt,
  648. "Cylinder",
  649. delay,
  650. x3,
  651. y3,
  652. z3,
  653. msh
  654. })
  655. end;
  656. };
  657. Head = {
  658. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  659. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  660. prt.Anchored = true
  661. prt.CFrame = cframe
  662. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  663. game:GetService("Debris"):AddItem(prt, 100)
  664. table.insert(Effects, {
  665. prt,
  666. "Cylinder",
  667. delay,
  668. x3,
  669. y3,
  670. z3,
  671. msh
  672. })
  673. end;
  674. };
  675.  
  676. Sphere = {
  677. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  678. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  679. prt.Anchored = true
  680. prt.CFrame = cframe
  681. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  682. game:GetService("Debris"):AddItem(prt, 100)
  683. table.insert(Effects, {
  684. prt,
  685. "Cylinder",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh
  691. })
  692. end;
  693. };
  694.  
  695. Elect = {
  696. Create = function(cff, x, y, z)
  697. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  698. prt.Anchored = true
  699. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  700. prt.CFrame = CFrame.new(prt.Position)
  701. game:GetService("Debris"):AddItem(prt, 2)
  702. local xval = math.random() / 2
  703. local yval = math.random() / 2
  704. local zval = math.random() / 2
  705. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  706. table.insert(Effects, {
  707. prt,
  708. "Elec",
  709. 0.1,
  710. x,
  711. y,
  712. z,
  713. xval,
  714. yval,
  715. zval
  716. })
  717. end;
  718.  
  719. };
  720.  
  721. Ring = {
  722. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  723. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  724. prt.Anchored = true
  725. prt.CFrame = cframe
  726. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  727. game:GetService("Debris"):AddItem(prt, 100)
  728. table.insert(Effects, {
  729. prt,
  730. "Cylinder",
  731. delay,
  732. x3,
  733. y3,
  734. z3,
  735. msh
  736. })
  737. end;
  738. };
  739.  
  740.  
  741. Wave = {
  742. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  743. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  744. prt.Anchored = true
  745. prt.CFrame = cframe
  746. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  747. game:GetService("Debris"):AddItem(prt, 100)
  748. table.insert(Effects, {
  749. prt,
  750. "Cylinder",
  751. delay,
  752. x3,
  753. y3,
  754. z3,
  755. msh
  756. })
  757. end;
  758. };
  759.  
  760. Break = {
  761. Create = function(brickcolor, cframe, x1, y1, z1)
  762. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  763. prt.Anchored = true
  764. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  765. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  766. local num = math.random(1, 5) / 100
  767. game:GetService("Debris"):AddItem(prt, 100)
  768. table.insert(Effects, {
  769. prt,
  770. "Shatter",
  771. num,
  772. prt.CFrame,
  773. math.random() - math.random(),
  774. 0,
  775. math.random(50, 100) / 100
  776. })
  777. end;
  778. };
  779.  
  780. Fire = {
  781. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  782. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  783. prt.Anchored = true
  784. prt.CFrame = cframe
  785. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  786. game:GetService("Debris"):AddItem(prt, 100)
  787. table.insert(Effects, {
  788. prt,
  789. "Fire",
  790. delay,
  791. 1,
  792. 1,
  793. 1,
  794. msh
  795. })
  796. end;
  797. };
  798.  
  799. FireWave = {
  800. Create = function(brickcolor, cframe, x1, y1, z1)
  801. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  802. prt.Anchored = true
  803. prt.CFrame = cframe
  804. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  805. local d = Create("Decal"){
  806. Parent = prt,
  807. Texture = "rbxassetid://26356434",
  808. Face = "Top",
  809. }
  810. local d = Create("Decal"){
  811. Parent = prt,
  812. Texture = "rbxassetid://26356434",
  813. Face = "Bottom",
  814. }
  815. game:GetService("Debris"):AddItem(prt, 100)
  816. table.insert(Effects, {
  817. prt,
  818. "FireWave",
  819. 1,
  820. 30,
  821. math.random(400, 600) / 100,
  822. msh
  823. })
  824. end;
  825. };
  826.  
  827. Lightning = {
  828. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  829. local magz = (p0 - p1).magnitude
  830. local curpos = p0
  831. local trz = {
  832. -ofs,
  833. ofs
  834. }
  835. for i = 1, tym do
  836. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  837. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  838. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  839. li.Material = "Neon"
  840. if tym == i then
  841. local magz2 = (curpos - p1).magnitude
  842. li.Size = Vector3.new(th, th, magz2)
  843. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  844. table.insert(Effects, {
  845. li,
  846. "Disappear",
  847. last
  848. })
  849. else
  850. do
  851. do
  852. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  853. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  854. game.Debris:AddItem(li, 10)
  855. table.insert(Effects, {
  856. li,
  857. "Disappear",
  858. last
  859. })
  860. end
  861. end
  862. end
  863. end
  864. end
  865. };
  866.  
  867. EffectTemplate = {
  868.  
  869. };
  870. }
  871.  
  872. function attackone()
  873. attack = true
  874. for i = 0, 1, 0.1 do
  875. swait()
  876. PlayAnimationFromTable({
  877. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  878. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  879. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  880. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  881. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  882. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  883. }, .3, false)
  884. end
  885. attack = false
  886. end
  887.  
  888. local Skills = {
  889. SkillKeys = {
  890. Z = function()
  891. attack = true
  892. CFuncs.Sound.Create('rbxassetid://278641993', Torso, 10, 0.8)
  893. CFuncs.Sound.Create('rbxassetid://432629066', Torso, 10, 1.4)
  894. Effects.Sphere.Create(BrickColor.new'Institutional white', Torso.CFrame, 5000, 5000, 5000, -500, -500, -500, 0.1)
  895. for i = 0, 1, 0.015 do
  896. swait()
  897. Effects.Block.Create(BrickColor.new'Institutional white', LeftArm.CFrame, 5, 10, 5, 0, 0, 0, 0.065, 2)
  898. Effects.Block.Create(BrickColor.new'Institutional white', PhoenixLeftWing.CFrame * CFrame.new(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80)), 15, 15, 15, -1.5, -1.5, -1.5, 0.1)
  899. PlayAnimationFromTable({
  900. CFrame.new(-0.450007856, 34.4500389, 2.64996958, 0.706887066, 0.0697530583, -0.703878701, -0.134303018, 0.990258873, -0.0367442332, 0.694459081, 0.120507054, 0.709369302) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  901. CFrame.new(0.0460849106, 1.49556756, -0.0312721878, 0.690121353, -0.105061971, 0.716026962, -0.0974965021, 0.966888905, 0.235839799, -0.717096269, -0.232568204, 0.657027483) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  902. CFrame.new(1.76800859, 0.41491133, 0.637459815, 0.717890084, -0.542569339, -0.43617934, 0.676375687, 0.691907883, 0.252545953, 0.164772302, -0.47632134, 0.863694549) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  903. CFrame.new(-1.29877186, 1.61722529, 0.432865411, -0.992088079, -0.123097658, 0.0246656239, 0.114064798, -0.965879977, -0.232519478, 0.0524466038, -0.227866367, 0.972279131) * CFrame.new(math.rad(math.random(-6, 6)), math.rad(math.random(-6, 6)), math.rad(math.random(-6, 6))) * CFrame.Angles(0, 0, 0),
  904. CFrame.new(1.03976572, -1.77876055, 0.242838889, 0.794499278, -0.512597859, -0.325598568, 0.563426197, 0.822251141, 0.0803367645, 0.226543367, -0.247278288, 0.942089081) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  905. CFrame.new(-0.429238796, -1.56618023, -0.0890657306, 0.70963943, -0.332465768, 0.621191263, 0.102562837, 0.921020091, 0.375769943, -0.697060227, -0.202950001, 0.687690794) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  906. }, i, false)
  907. BodyMotor.C0 = clerp(BodyMotor.C0, CFrame.new(-1.15036225, 22.0855694, -1.10095191, 0.643693328, 0.0103043765, -0.765214205, -0.167619243, 0.977528214, -0.127836734, 0.746701598, 0.210552275, 0.630955577) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  908. LeftWingMotor.C0 = clerp(LeftWingMotor.C0, CFrame.new(-4.70158291, 48.946888, -6.42339802, 0.303303033, -0.0722500831, -0.950151145, -0.690884054, 0.670053124, -0.271492213, 0.656267047, 0.738788784, 0.153312698) * CFrame.new(math.rad(math.random(-25, 25)), math.rad(math.random(-25, 25)), math.rad(math.random(-25, 25))) * CFrame.Angles(0, 0, 0), i)
  909. RightWingMotor.C0 = clerp(RightWingMotor.C0, CFrame.new(0.796527863, 30.4707031, 18.5962505, -0.0828529671, 0.744275391, -0.662713885, 0.0611559786, 0.667544246, 0.742054403, 0.994683623, 0.0209524892, -0.1008249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  910. end
  911. CFuncs.Sound.Create('rbxassetid://231917758', Torso, 10, 0.6)
  912. for i = 0, 1, 0.3 do
  913. swait()
  914. Effects.Block.Create(BrickColor.new'Institutional white', LeftArm.CFrame, 5, 10, 5, 0, 0, 0, 0.065, 2)
  915. Effects.Block.Create(BrickColor.new'Institutional white', PhoenixLeftWing.CFrame * CFrame.new(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80)), 15, 15, 15, -1.5, -1.5, -1.5, 0.1)
  916. PlayAnimationFromTable({
  917. CFrame.new(-1.4500227, 16.0700436, 1.48995411, 0.500781119, 0.268583059, -0.822849631, 0.724632204, 0.389859051, 0.568258941, 0.473420113, -0.880836606, 0.000610119198) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  918. CFrame.new(0.15797621, 1.50410318, 0.114551261, 0.486720592, -0.192857534, 0.852002978, 0.106479771, 0.981150568, 0.161262766, -0.867044032, 0.0122311777, 0.498081565) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  919. CFrame.new(1.67660713, 0.708690286, 0.789752901, -0.0159761012, -0.824896514, -0.565058172, 0.974268675, -0.139913261, 0.176705688, -0.224822953, -0.547695339, 0.805906057) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  920. CFrame.new(-1.10396993, 1.2912178, 0.0291810334, -0.821999371, 0.0640687644, -0.565873325, 0.109669715, -0.957243681, -0.267688602, -0.558829129, -0.282098979, 0.779827237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  921. CFrame.new(0.597159743, -1.94990098, -0.479608893, 0.783460021, -0.158425093, -0.600909412, -0.011714071, 0.963022649, -0.269166023, 0.62133193, 0.217919916, 0.75263387) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  922. CFrame.new(-1.55931222, -1.15647113, -0.755336821, 0.52128011, 0.851746798, -0.0528649986, -0.647634089, 0.354498774, -0.674463451, -0.555731416, 0.385821551, 0.7364133) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  923. }, i, false)
  924. BodyMotor.C0 = clerp(BodyMotor.C0, CFrame.new(-0.875052452, 10.1464262, 11.394949, 0.912297964, 0.0103287548, -0.409397304, 0.365901619, 0.42841807, 0.826180458, 0.183926702, -0.903521478, 0.387065411) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  925. LeftWingMotor.C0 = clerp(LeftWingMotor.C0, CFrame.new(-2.51656485, 5.22779274, -10.8634615, 0.296985149, 0.0515701436, -0.953488529, 0.799673378, 0.532272458, 0.277864367, 0.521845222, -0.845000923, 0.116837732) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  926. RightWingMotor.C0 = clerp(RightWingMotor.C0, CFrame.new(2.85010839, 28.4606934, 13.6595898, -0.0339340121, 0.981315255, -0.189391062, 0.723264217, 0.154893085, 0.672976315, 0.68973726, -0.114142977, -0.715006351) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  927. end
  928. local hit, pos = rayCast(PhoenixLeftWing.Position, CFrame.new(PhoenixLeftWing.Position, PhoenixLeftWing.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  929. if hit then
  930. Effects.Block.Create(BrickColor.new'Institutional white', CFrame.new(pos), 50, 50, 50, 20, 20, 20, 0.04)
  931. Effects.Wave.Create(BrickColor.new'Institutional white', CFrame.new(pos) * CFrame.Angles(0, math.random(-180, 180), 0), 5, 2, 5, 3, 1, 3, 0.04)
  932. end
  933. local ref = CFuncs.Part.Create(EffectModel, 'Neon', 0, 1, 'White', 'Reference', Vector3.new(0.2, 0.2, 0.2))
  934. ref.Anchored = true ref.CFrame = RootPart.CFrame * CFrame.new(2, 1, -25)
  935. coroutine.resume(coroutine.create(function()
  936. local hit, pos = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  937. local refposchange = coroutine.wrap(function()
  938. while true do
  939. swait()
  940. hit, pos = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  941. end
  942. end)
  943. refposchange()
  944. local charges = 0
  945. repeat
  946. swait(12)
  947. Camera.FieldOfView = Camera.FieldOfView + 1
  948. charges = charges + 1
  949. if charges > 13 then
  950. charges = 13
  951. end
  952. ref.CFrame = ref.CFrame * CFrame.new(0, 0, -25)
  953. CFuncs.Sound.Create('rbxassetid://565800952', ref, 10, 0.9)
  954. CFuncs.Sound.Create('rbxassetid://304529688', ref, 9.5, 0.8)
  955. CFuncs.Sound.Create('rbxassetid://414516914', ref, 9.5, 0.4)
  956. CFuncs.Sound.Create('rbxassetid://466493476', ref, 9.75, 0.7)
  957. if hit then
  958. Effects.Sphere.Create(BrickColor.new'Institutional white', CFrame.new(pos), 50, 50, 50, 20, 20, 20, 0.026)
  959. Effects.Sphere.Create(BrickColor.new'Institutional white', CFrame.new(pos), 51, 35, 51, 23, 10, 23, 0.026)
  960. Effects.Ring.Create(BrickColor.new'Institutional white', CFrame.new(pos) * CFrame.Angles(1.57, 0, 0), 8, 8, 0.5, 4.5, 4.5, 1.5, 0.026)
  961. Effects.Block.Create(BrickColor.new'Institutional white', CFrame.new(pos), 55, 55, 55, 25, 25, 25, 0.032)
  962. for i = 1, 2 do
  963. Effects.Ring.Create(BrickColor.new'Institutional white', CFrame.new(pos) * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180)), 8, 8, 0.5, 12, 12, 0, 0.05)
  964. end
  965. for i = 1, 10 do
  966. Effects.Break.Create(BrickColor.new'Institutional white', CFrame.new(pos), 5, 15, 5)
  967. end
  968. MagnitudeDamage(ref, 35, 10, 35, 3, 'Body Snatch', 0, 0)
  969. end
  970. until gothit == true or charges >= 13
  971. if gothit then
  972. CFuncs.Sound.Create('rbxassetid://435742675', ref, 10, 0.9)
  973. CFuncs.Sound.Create('rbxassetid://414516914', ref, 9.5, 0.32)
  974. for i = 1, 130 do
  975. swait()
  976. MagnitudeDamage(ref, 65, 1, 1, 0, 'Normal', 0, 0)
  977. Effects.Sphere.Create(BrickColor.new'Institutional white', CFrame.new(pos), 50, 50, 50, 55, 55, 55, 0.1)
  978. Effects.Sphere.Create(BrickColor.new'Institutional white', CFrame.new(pos), 65, 70, 65, 55, 97, 55, 0.04)
  979. Effects.Wave.Create(BrickColor.new'Institutional white', CFrame.new(pos) * CFrame.Angles(0, math.random(-180, 180), 0), 210, 5, 210, -13, 65, -13, 0.1)
  980. Effects.Ring.Create(BrickColor.new'Institutional white', ref.CFrame * CFrame.Angles(1.57, 0, 0), 1, 1, 0.1, 35, 35, 0, 0.08)
  981. end
  982. elseif not gothit and charges >= 13 then
  983. CFuncs.Sound.Create('rbxassetid://439342426', ref, 10, 1)
  984. for i = 1, 10 do
  985. swait(7.8)
  986. Effects.Block.Create(BrickColor.new'Institutional white', CFrame.new(pos), 1600, 1600, 1600, -160, -160, -160, 0.1)
  987. end
  988. end
  989. if gothit ~= false then
  990. gothit = false
  991. end
  992. swait(10)
  993. ref:Destroy()
  994. coroutine.resume(coroutine.create(function()
  995. repeat
  996. swait()
  997. Camera.FieldOfView = Camera.FieldOfView - 1
  998. until Camera.FieldOfView <= 70
  999. end))
  1000. end))
  1001. for i = 0, 1, 0.02 do
  1002. swait()
  1003. PlayAnimationFromTable({
  1004. CFrame.new(-1.4500227, 16.0700436, 1.48995411, 0.500781119, 0.268583059, -0.822849631, 0.724632204, 0.389859051, 0.568258941, 0.473420113, -0.880836606, 0.000610119198) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1005. CFrame.new(0.15797621, 1.50410318, 0.114551261, 0.486720592, -0.192857534, 0.852002978, 0.106479771, 0.981150568, 0.161262766, -0.867044032, 0.0122311777, 0.498081565) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1006. CFrame.new(1.67660713, 0.708690286, 0.789752901, -0.0159761012, -0.824896514, -0.565058172, 0.974268675, -0.139913261, 0.176705688, -0.224822953, -0.547695339, 0.805906057) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1007. CFrame.new(-1.10396993, 1.2912178, 0.0291810334, -0.821999371, 0.0640687644, -0.565873325, 0.109669715, -0.957243681, -0.267688602, -0.558829129, -0.282098979, 0.779827237) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1008. CFrame.new(0.597159743, -1.94990098, -0.479608893, 0.783460021, -0.158425093, -0.600909412, -0.011714071, 0.963022649, -0.269166023, 0.62133193, 0.217919916, 0.75263387) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1009. CFrame.new(-1.55931222, -1.15647113, -0.755336821, 0.52128011, 0.851746798, -0.0528649986, -0.647634089, 0.354498774, -0.674463451, -0.555731416, 0.385821551, 0.7364133) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1010. }, i, false)
  1011. BodyMotor.C0 = clerp(BodyMotor.C0, CFrame.new(-0.875052452, 10.1464262, 11.394949, 0.912297964, 0.0103287548, -0.409397304, 0.365901619, 0.42841807, 0.826180458, 0.183926702, -0.903521478, 0.387065411) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  1012. LeftWingMotor.C0 = clerp(LeftWingMotor.C0, CFrame.new(-2.51656485, 5.22779274, -10.8634615, 0.296985149, 0.0515701436, -0.953488529, 0.799673378, 0.532272458, 0.277864367, 0.521845222, -0.845000923, 0.116837732) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  1013. RightWingMotor.C0 = clerp(RightWingMotor.C0, CFrame.new(2.85010839, 28.4606934, 13.6595898, -0.0339340121, 0.981315255, -0.189391062, 0.723264217, 0.154893085, 0.672976315, 0.68973726, -0.114142977, -0.715006351) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  1014. end
  1015. attack = false
  1016. end,
  1017.  
  1018. X = function()
  1019. attack = true
  1020.  
  1021. attack = false
  1022. end,
  1023.  
  1024. C = function()
  1025. attack = true
  1026.  
  1027. attack = false
  1028. end,
  1029.  
  1030. V = function()
  1031. attack = true
  1032. for i = 0, 1, 0.01 do
  1033. swait()
  1034. PlayAnimationFromTable({
  1035. CFrame.new(-0.450012207, 36.5343437, 4.64009285, 1, 0, -0, 0, 0.911060274, -0.412273139, 0, 0.412273139, 0.911060274) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1036. CFrame.new(-0.031036377, 1.40616012, 0.163078129, 1, 0, -0, 0, 0.873728931, -0.486413121, -0, 0.486413121, 0.873728931) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1037. CFrame.new(1.4099741, 0.440860987, 0.589604557, 0.835476875, -0.543924391, 0.078260228, 0.436975986, 0.74394387, 0.505568504, -0.333212227, -0.388192892, 0.859229803) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1038. CFrame.new(-1.4900068, 0.354382098, 0.583152413, 0.608336866, 0.698272943, 0.377281368, -0.773055971, 0.62896198, 0.082408905, -0.179751724, -0.341791987, 0.922424912) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1039. CFrame.new(0.620010316, -1.99047685, 0.228450388, 0.982812107, -0.101304151, -0.154330328, 0.145762682, 0.938838065, 0.311987519, 0.113285549, -0.329120696, 0.937467933) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1040. CFrame.new(-0.479997247, -1.12127328, -0.427212268, 0.996603906, -0.0375141054, 0.0733033791, 0.0133853965, 0.952161908, 0.305300653, -0.0812497586, -0.303282619, 0.949430466) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1041. }, i, false)
  1042. BodyMotor.C0 = clerp(BodyMotor.C0, CFrame.new(-0.350361347, 25.6733379, 1.26589012, 1.00000036, -5.7606735e-06, -1.76140657e-06, 5.13346185e-06, 0.967948616, -0.251147747, 3.21859943e-06, 0.251147896, 0.967948735) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  1043. LeftWingMotor.C0 = clerp(LeftWingMotor.C0, CFrame.new(-11.866394, 33.6268005, 19.443737, 0.539522171, 0.0601179376, 0.839822412, 0.622922242, 0.642567754, -0.44617781, -0.566466153, 0.763866901, 0.309230715) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  1044. RightWingMotor.C0 = clerp(RightWingMotor.C0, CFrame.new(9.18617439, 32.9270172, 21.2700253, 0.339651078, -0.0808581635, -0.937069535, -0.67121619, 0.677080274, -0.301713824, 0.65886718, 0.731453598, 0.175697744) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), i)
  1045. end
  1046. SoulTheos.Parent = Character
  1047. CFuncs.Sound.Create('rbxassetid://528589382', Character, 5, 1)
  1048. local groundref = CFuncs.Part.Create(EffectModel, 'Neon', 0, 1, 'White', 'Reference', Vector3.new(0.2, 0.2, 0.2))
  1049. groundref.Anchored = true
  1050. for i = 0, 25, 0.1 do
  1051. swait()
  1052. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1053. groundref.CFrame = CFrame.new(pos) * CFrame.new(math.random(-130, 130), 0, math.random(-130, 130))
  1054. if hit then
  1055. Effects.Block.Create(BrickColor.new'Institutional white', groundref.CFrame, 80, 80, 80, -8, -8, -8, 0.1)
  1056. for i = 1, 2 do
  1057. Effects.Break.Create(BrickColor.new'Institutional white', groundref.CFrame, 1, 15, 1)
  1058. end
  1059. end
  1060. TorsoMotor.C0 = clerp(TorsoMotor.C0, CFrame.new(-7.71592808, 64.4789124, 49.4334869, 0.999800205, 1.64012917e-07, -0.0200730488, 1.78532588e-07, 0.99999994, 1.78446513e-07, 0.0200730469, 1.49604062e-07, 0.999801874) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.025)
  1061. HeadMotor.C0 = clerp(HeadMotor.C0, CFrame.new(-7.82439089, 98.1185913, 54.8370819, 0.999800444, -0.00348549592, -0.0197681244, 1.97172923e-07, 0.984807372, -0.173649848, 0.0200730506, 0.173615888, 0.984612703) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.025)
  1062. RightArmMotor.C0 = clerp(RightArmMotor.C0, CFrame.new(30.985817, 67.6919327, 50.2105255, 0.9395051, -0.341951728, -0.020072775, 0.342020214, 0.939692438, -2.23449933e-06, 0.0188631117, -0.00686288392, 0.999801993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.025)
  1063. LeftArmMotor.C0 = clerp(LeftArmMotor.C0, CFrame.new(-46.4176674, 67.6919098, 48.6564903, 0.939504862, 0.341951907, -0.0200722627, -0.342019916, 0.939692616, -1.84974078e-06, 0.0188610107, 0.00686716288, 0.999801993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.025)
  1064. RightLegMotor.C0 = clerp(RightLegMotor.C0, CFrame.new(3.63752246, 19.056179, 49.6613541, 0.999800444, 1.93821379e-07, -0.0200730525, 1.97172909e-07, 0.999999821, 1.7866931e-07, 0.0200730506, 1.49566191e-07, 0.999802232) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.025)
  1065. LeftLegMotor.C0 = clerp(LeftLegMotor.C0, CFrame.new(-19.069416, 19.0561523, 49.2054596, 0.999800444, 1.93821379e-07, -0.0200730544, 1.97172909e-07, 0.999999821, 1.78669296e-07, 0.0200730506, 1.49566191e-07, 0.999802113) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.025)
  1066. end
  1067. CFuncs.Sound.Create('rbxassetid://435742675', Character, 10, 0.6)
  1068. CFuncs.Sound.Create('rbxassetid://432629066', Character, 11, 0.4)
  1069. Effects.Block.Create(BrickColor.new'CGA brown', GiantTorso.CFrame, 850, 850, 580, 40, 40, 40, 0.002)
  1070. Effects.Block.Create(BrickColor.new'Really black', GiantTorso.CFrame, 850, 850, 850, -0.85, -0.85, -0.85, 0.001)
  1071. Effects.Block.Create(BrickColor.new'CGA brown', GiantTorso.CFrame, 550, 550, 550, 10, 10, 10, 0.002)
  1072. MagnitudeDamage(PhoenixBody, 999, 99, 99, 0, 'Normal', 0, 0)
  1073. for i = 1, 20 do
  1074. Effects.Ring.Create(BrickColor.new'CGA brown', GiantTorso.CFrame * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180)), 100, 100, 0.1, 20, 20, 0, 0.008)
  1075. end
  1076. for i = 1, 100 do
  1077. Effects.Sphere.Create(BrickColor.new'Institutional white', GiantTorso.CFrame * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180)), 200, 550, 200, -0.4, 400, -0.4, 0.01)
  1078. end
  1079. SoulTheos.Parent = nil
  1080. attack = false
  1081. end
  1082. }
  1083. }
  1084.  
  1085. Mouse.Button1Down:connect(function()
  1086. if attack == false and attacktype == 1 then
  1087. --attackone()
  1088. end
  1089. end)
  1090.  
  1091. Mouse.KeyDown:connect(function(k)
  1092. k = k:lower()
  1093. if attack == false and k == 'z' then
  1094. Skills.SkillKeys.Z()
  1095. elseif attack == false and k == 'v' then
  1096. Skills.SkillKeys.V()
  1097. end
  1098. end)
  1099.  
  1100. while true do
  1101. swait()
  1102. efc = efc + 1
  1103. Humanoid.JumpPower = 0
  1104. game.Workspace:FindFirstChild'Camera'.CameraSubject = Head
  1105. for i, v in pairs(Character:GetChildren()) do
  1106. if v:IsA("Part") then
  1107. v.Material = "Neon"
  1108. elseif v:IsA("Accessory") then
  1109. v:WaitForChild("Handle").Material = "Neon"
  1110. end
  1111. end
  1112. if efc % 7 == 0 then
  1113. Effects.Block.Create(BrickColor.new'Institutional white', RightLeg.CFrame * CFrame.new(0, -1, 0), 6.5, 6.5, 6.5, -0.02, -0.02, -0.02, 0.06)
  1114. Effects.Block.Create(BrickColor.new'Institutional white', LeftLeg.CFrame * CFrame.new(0, -1, 0), 6.5, 6.5, 6.5, -0.02, -0.02, -0.02, 0.06)
  1115. end
  1116. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1117. velocity = RootPart.Velocity.y
  1118. sine = sine + change
  1119. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1120. if RootPart.Velocity.y > 1 and hit == nil then
  1121. Anim = "Jump"
  1122. if attack == false then
  1123. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1124. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1125. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1126. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1127. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1128. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1129. end
  1130. elseif RootPart.Velocity.y < -1 and hit == nil then
  1131. Anim = "Fall"
  1132. if attack == false then
  1133. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1134. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1135. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1136. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1137. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1138. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1139. end
  1140. elseif Torsovelocity < 1 and hit ~= nil then
  1141. Anim = "Idle"
  1142. if attack == false then
  1143. change = 1
  1144. PlayAnimationFromTable({
  1145. CFrame.new(-0.450005293, 34.4500389, 2.01001167, 0.891174853, -5.643804e-07, -0.453660011, 0.100640982, 0.975082815, 0.1976991, 0.442355931, -0.221841246, 0.868969381) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0, 0),
  1146. CFrame.new(0.136797786, 1.52519441, -0.106008172, 0.861599624, 0.0741087794, 0.502149343, -0.163819358, 0.976944447, 0.136904523, -0.480426192, -0.200218707, 0.853875518) * CFrame.new(0, 0, 0 + 0.045 * math.cos(sine / 20)) * CFrame.Angles(0 + 0.1 * math.cos(sine / 20), 0, 0),
  1147. CFrame.new(1.43348277, 0.0254253075, 0.611651182, 0.796506286, -0.0460315794, -0.602875531, 0.0911841542, 0.994838893, 0.0445112288, 0.59771508, -0.0904261619, 0.796592832) * CFrame.new(0, 0 + 0.12 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0 - 0.2 * math.sin(sine / 20), 0 + 0.1 * math.sin(sine / 20)),
  1148. CFrame.new(-0.720710814, 1.54929173, -0.445914626, -0.918517768, -0.394564986, -0.0253717601, 0.395058364, -0.913291752, -0.0991320908, 0.0159422457, -0.101077914, 0.994750917) * CFrame.new(0, 0 + 0.12 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.1 * math.cos(sine / 20), 0 - 0.2 * math.cos(sine / 20), 0),
  1149. CFrame.new(0.634358943, -2.01326132, -0.0543941557, 0.973140478, -0.190595224, -0.129117399, 0.206921965, 0.969986677, 0.127707899, 0.100901663, -0.150994897, 0.983371615) * CFrame.new(0, 0 - 0.075 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.2 * math.sin(sine / 20), 0 - 0.2 * math.sin(sine / 20), 0),
  1150. CFrame.new(-0.657845259, -0.872583926, -0.52081877, 0.980457485, 0.0519636832, 0.189744651, -0.0313285105, 0.993418217, -0.110176481, -0.194220975, 0.10207893, 0.97563231) * CFrame.new(0, 0 - 0.075 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.13 * math.sin(sine / 20), 0, 0),
  1151. }, .1, false)
  1152. BodyMotor.C0 = clerp(BodyMotor.C0, CFrame.new(-0.350441545, 22.6539574, 5.1175518, 1.00000024, -2.27506848e-06, -1.35789446e-06, 2.63828974e-06, 0.960237563, 0.279184222, 7.59432851e-07, -0.279184163, 0.960237443) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0, 0), 0.1)
  1153. LeftWingMotor.C0 = clerp(LeftWingMotor.C0, CFrame.new(-16.7304916, 38.4633446, 1.07297325, 1.00000024, -2.27506848e-06, -1.35789446e-06, 2.63828974e-06, 0.960237563, 0.279184222, 7.59432851e-07, -0.279184163, 0.960237443) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0 + 4.5 * math.sin(sine / 20)) * CFrame.Angles(0, 0 + 0.25 * math.sin(sine / 20), 0), 0.1)
  1154. RightWingMotor.C0 = clerp(RightWingMotor.C0, CFrame.new(15.9995747, 38.4634171, 1.07302094, 1.00000048, -2.25926738e-06, -1.31347747e-06, 2.66923962e-06, 0.960237443, 0.279184222, 8.12507494e-07, -0.279184043, 0.960237324) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0 + 4.5 * math.sin(sine / 20)) * CFrame.Angles(0, 0 - 0.25 * math.sin(sine / 20), 0), 0.1)
  1155. end
  1156. elseif Torsovelocity > 2 and hit ~= nil then
  1157. Anim = "Walk"
  1158. if attack == false then
  1159. PlayAnimationFromTable({
  1160. CFrame.new(-0.450005293, 34.4500389, 2.01001167, 0.891174853, -5.643804e-07, -0.453660011, 0.100640982, 0.975082815, 0.1976991, 0.442355931, -0.221841246, 0.868969381) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0, 0),
  1161. CFrame.new(0.136797786, 1.52519441, -0.106008172, 0.861599624, 0.0741087794, 0.502149343, -0.163819358, 0.976944447, 0.136904523, -0.480426192, -0.200218707, 0.853875518) * CFrame.new(0, 0, 0 + 0.045 * math.cos(sine / 20)) * CFrame.Angles(0 + 0.1 * math.cos(sine / 20), 0, 0),
  1162. CFrame.new(1.43348277, 0.0254253075, 0.611651182, 0.796506286, -0.0460315794, -0.602875531, 0.0911841542, 0.994838893, 0.0445112288, 0.59771508, -0.0904261619, 0.796592832) * CFrame.new(0, 0 + 0.12 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0 - 0.2 * math.sin(sine / 20), 0 + 0.1 * math.sin(sine / 20)),
  1163. CFrame.new(-0.720710814, 1.54929173, -0.445914626, -0.918517768, -0.394564986, -0.0253717601, 0.395058364, -0.913291752, -0.0991320908, 0.0159422457, -0.101077914, 0.994750917) * CFrame.new(0, 0 + 0.12 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.1 * math.cos(sine / 20), 0 - 0.2 * math.cos(sine / 20), 0),
  1164. CFrame.new(0.634358943, -2.01326132, -0.0543941557, 0.973140478, -0.190595224, -0.129117399, 0.206921965, 0.969986677, 0.127707899, 0.100901663, -0.150994897, 0.983371615) * CFrame.new(0, 0 - 0.075 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.2 * math.sin(sine / 20), 0 - 0.2 * math.sin(sine / 20), 0),
  1165. CFrame.new(-0.657845259, -0.872583926, -0.52081877, 0.980457485, 0.0519636832, 0.189744651, -0.0313285105, 0.993418217, -0.110176481, -0.194220975, 0.10207893, 0.97563231) * CFrame.new(0, 0 - 0.075 * math.cos(sine / 20), 0) * CFrame.Angles(0 - 0.13 * math.sin(sine / 20), 0, 0),
  1166. }, .1, false)
  1167. BodyMotor.C0 = clerp(BodyMotor.C0, CFrame.new(-0.350441545, 22.6539574, 5.1175518, 1.00000024, -2.27506848e-06, -1.35789446e-06, 2.63828974e-06, 0.960237563, 0.279184222, 7.59432851e-07, -0.279184163, 0.960237443) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0) * CFrame.Angles(0, 0, 0), 0.1)
  1168. LeftWingMotor.C0 = clerp(LeftWingMotor.C0, CFrame.new(-16.7304916, 38.4633446, 1.07297325, 1.00000024, -2.27506848e-06, -1.35789446e-06, 2.63828974e-06, 0.960237563, 0.279184222, 7.59432851e-07, -0.279184163, 0.960237443) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0 + 4.5 * math.sin(sine / 20)) * CFrame.Angles(0, 0 + 0.25 * math.sin(sine / 20), 0), 0.1)
  1169. RightWingMotor.C0 = clerp(RightWingMotor.C0, CFrame.new(15.9995747, 38.4634171, 1.07302094, 1.00000048, -2.25926738e-06, -1.31347747e-06, 2.66923962e-06, 0.960237443, 0.279184222, 8.12507494e-07, -0.279184043, 0.960237324) * CFrame.new(0, 0 + 0.15 * math.cos(sine / 20), 0 + 4.5 * math.sin(sine / 20)) * CFrame.Angles(0, 0 - 0.25 * math.sin(sine / 20), 0), 0.1)
  1170. end
  1171. end
  1172. if 0 < #Effects then
  1173. for e = 1, #Effects do
  1174. if Effects[e] ~= nil then
  1175. local Thing = Effects[e]
  1176. if Thing ~= nil then
  1177. local Part = Thing[1]
  1178. local Mode = Thing[2]
  1179. local Delay = Thing[3]
  1180. local IncX = Thing[4]
  1181. local IncY = Thing[5]
  1182. local IncZ = Thing[6]
  1183. if Thing[2] == "Shoot" then
  1184. local Look = Thing[1]
  1185. local move = 30
  1186. if Thing[8] == 3 then
  1187. move = 10
  1188. end
  1189. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1190. if Thing[10] ~= nil then
  1191. da = pos
  1192. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1193. cfa = CFrame.new(Thing[4], pos)
  1194. tehCF = cfa:lerp(cf2, 0.2)
  1195. Thing[1] = tehCF.lookVector
  1196. end
  1197. local mag = (Thing[4] - pos).magnitude
  1198. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1199. if Thing[8] == 2 then
  1200. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1201. end
  1202. Thing[4] = Thing[4] + Look * move
  1203. Thing[3] = Thing[3] - 1
  1204. if 2 < Thing[5] then
  1205. Thing[5] = Thing[5] - 0.3
  1206. Thing[6] = Thing[6] - 0.3
  1207. end
  1208. if hit ~= nil then
  1209. Thing[3] = 0
  1210. if Thing[8] == 1 or Thing[8] == 3 then
  1211. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1212. else
  1213. if Thing[8] == 2 then
  1214. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1215. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1216. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new(0.2, 0.2, 0.2))
  1217. ref.Anchored = true
  1218. ref.CFrame = CFrame.new(pos)
  1219. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1220. game:GetService("Debris"):AddItem(ref, 0.2)
  1221. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1222. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1223. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1224. end
  1225. end
  1226. end
  1227. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new(0.2, 0.2, 0.2))
  1228. ref.Anchored = true
  1229. ref.CFrame = CFrame.new(pos)
  1230. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1231. game:GetService("Debris"):AddItem(ref, 1)
  1232. end
  1233. if Thing[3] <= 0 then
  1234. table.remove(Effects, e)
  1235. end
  1236. end
  1237. do
  1238. do
  1239. if Thing[2] == "FireWave" then
  1240. if Thing[3] <= Thing[4] then
  1241. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1242. Thing[3] = Thing[3] + 1
  1243. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1244. else
  1245. Part.Parent = nil
  1246. table.remove(Effects, e)
  1247. end
  1248. end
  1249. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1250. if Thing[1].Transparency <= 1 then
  1251. if Thing[2] == "Block1" then
  1252. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1253. Mesh = Thing[7]
  1254. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1255. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1256. else
  1257. if Thing[2] == "Block2" then
  1258. Thing[1].CFrame = Thing[1].CFrame
  1259. Mesh = Thing[7]
  1260. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1261. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1262. else
  1263. if Thing[2] == "Fire" then
  1264. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1265. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1266. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1267. else
  1268. if Thing[2] == "Cylinder" then
  1269. Mesh = Thing[7]
  1270. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1271. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1272. else
  1273. if Thing[2] == "Blood" then
  1274. Mesh = Thing[7]
  1275. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1276. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1277. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1278. else
  1279. if Thing[2] == "Elec" then
  1280. Mesh = Thing[10]
  1281. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1282. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1283. else
  1284. if Thing[2] == "Disappear" then
  1285. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1286. else
  1287. if Thing[2] == "Shatter" then
  1288. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1289. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1290. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1291. Thing[6] = Thing[6] + Thing[5]
  1292. end
  1293. end
  1294. end
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. else
  1301. Part.Parent = nil
  1302. table.remove(Effects, e)
  1303. end
  1304. end
  1305. end
  1306. end
  1307. end
  1308. end
  1309. end
  1310. end
  1311. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement