Advertisement
Goo345

dark phoenix

Aug 3rd, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.77 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.Parent = NLS([==[
  42. local Player = game:GetService("Players").LocalPlayer
  43. local Event = script:WaitForChild("UserInput_Event")
  44.  
  45. local Mouse = Player:GetMouse()
  46. local UIS = game:GetService("UserInputService")
  47. local input = function(io,a)
  48. if a then return end
  49. --Since InputObject is a client-side instance, we create and pass table instead
  50. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  51. end
  52. UIS.InputBegan:Connect(input)
  53. UIS.InputEnded:Connect(input)
  54.  
  55. local h,t
  56. --Give the server mouse data 30 times every second, but only if the values changed
  57. --If player is not moving their mouse, client won't fire events
  58. while wait(1/30) do
  59. if h~=Mouse.Hit or t~=Mouse.Target then
  60. h,t=Mouse.Hit,Mouse.Target
  61. Event:FireServer({isMouse=true,Target=t,Hit=h})
  62. end
  63. end]==],Player.Character)
  64.  
  65. ----Sandboxed game object that allows the usage of client-side methods and services
  66. --Real game object
  67. local _rg = game
  68.  
  69. --Metatable for fake service
  70. local fsmt = {
  71. __index = function(self,k)
  72. local s = rawget(self,"_RealService")
  73. if s then return s[k] end
  74. end,
  75. __newindex = function(self,k,v)
  76. local s = rawget(self,"_RealService")
  77. if s then s[k]=v end
  78. end,
  79. __call = function(self,...)
  80. local s = rawget(self,"_RealService")
  81. if s then return s(...) end
  82. end
  83. }
  84. local function FakeService(t,RealService)
  85. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  86. return setmetatable(t,fsmt)
  87. end
  88.  
  89. --Fake game object
  90. local g = {
  91. GetService = function(self,s)
  92. return self[s]
  93. end,
  94. Players = FakeService({
  95. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  96. },"Players"),
  97. UserInputService = FakeService(UIS,"UserInputService"),
  98. ContextActionService = FakeService(CAS,"ContextActionService"),
  99. }
  100. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  101. g.service = g.GetService
  102.  
  103. g.RunService = FakeService({
  104. RenderStepped = _rg:GetService("RunService").Heartbeat,
  105. BindToRenderStep = function(self,name,_,fun)
  106.  
  107. end,
  108. UnbindFromRenderStep = function(self,name)
  109. self._btrs[name]:Disconnect()
  110. end,
  111. },"RunService")
  112.  
  113. setmetatable(g,{
  114. __index=function(self,s)
  115. return _rg:GetService(s) or typeof(_rg[s])=="function"
  116. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  117. end,
  118. __newindex = fsmt.__newindex,
  119. __call = fsmt.__call
  120. })
  121. --Changing owner to fake player object to support owner:GetMouse()
  122. game,owner = g,g.Players.LocalPlayer
  123. end
  124.  
  125. --[[Soul Phoenix by Injectioneer]]--
  126. wait(1 / 60)
  127. Effects = { }
  128. local Player = game:GetService'Players'.localPlayer
  129. local Character = Player.Character
  130. local Humanoid = Character.Humanoid
  131. local Mouse = Player:GetMouse()
  132. local LeftArm = Character["Left Arm"]
  133. local RightArm = Character["Right Arm"]
  134. local LeftLeg = Character["Left Leg"]
  135. local RightLeg = Character["Right Leg"]
  136. local Head = Character.Head
  137. local Torso = Character.Torso
  138. local Camera = game.Workspace.CurrentCamera
  139. local RootPart = Character.HumanoidRootPart
  140. local RootJoint = RootPart.RootJoint
  141. local attack = false
  142. local Anim = 'Idle'
  143. local attacktype = 1
  144. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  145. local velocity = RootPart.Velocity.y
  146. local sine = 0
  147. local change = 1
  148. local Create = LoadLibrary("RbxUtility").Create
  149. local efc = 0
  150. local gothit = false
  151. Humanoid.MaxHealth = 100 + (1e19 * math.huge)
  152. Humanoid.Health = Humanoid.MaxHealth
  153.  
  154. local m = Create("Model"){
  155. Parent = Character,
  156. Name = "WeaponModel",
  157. }
  158.  
  159. local Phoenix_Theme = Create'Sound'{
  160. SoundId = 'rbxassetid://462506896',
  161. Parent = Character,
  162. Volume = 3,
  163. Pitch = 1,
  164. Looped = true
  165. }
  166. Phoenix_Theme:Play()
  167.  
  168. Humanoid.Animator.Parent = nil
  169. Character.Animate.Parent = nil
  170.  
  171. New = function(Object, Parent, Name, Data)
  172. local Object = Instance.new(Object)
  173. for Index, Value in pairs(Data or {}) do
  174. Object[Index] = Value
  175. end
  176. Object.Parent = Parent
  177. Object.Name = Name
  178. return Object
  179. end
  180.  
  181. function CameraShake(Intensity)
  182. coroutine.resume(coroutine.create(function()
  183. local Focus = (Camera.CoordinateFrame.p - Camera.Focus.p).magnitude
  184. Focus = 100 / Intensity + Focus / 150
  185. for i = math.random(150, 250) / 100, 0, -0.05 do
  186. 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))
  187. swait()
  188. end
  189. Camera.CFrame = CFrame.new(0, 0, 0)
  190. end))
  191. end
  192.  
  193. local newMotor = function(part0, part1, c0, c1)
  194. local w = Create('Motor'){
  195. Parent = part0,
  196. Part0 = part0,
  197. Part1 = part1,
  198. C0 = c0,
  199. C1 = c1,
  200. }
  201. return w
  202. end
  203.  
  204. function clerp(a, b, t)
  205. return a:lerp(b, t)
  206. end
  207.  
  208. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  209. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  210.  
  211. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  212. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  213. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  214. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  215. RootJoint.C1 = CFrame.new(0, 0, 0)
  216. RootJoint.C0 = CFrame.new(0, 0, 0)
  217. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  218. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  219.  
  220. local rarmc1 = RW.C1
  221. local larmc1 = LW.C1
  222. local rlegc1 = RH.C1
  223. local llegc1 = LH.C1
  224.  
  225. local resetc1 = false
  226.  
  227. function PlayAnimationFromTable(table, speed, bool)
  228. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  229. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  230. RW.C0 = clerp(RW.C0, table[3], speed)
  231. LW.C0 = clerp(LW.C0, table[4], speed)
  232. RH.C0 = clerp(RH.C0, table[5], speed)
  233. LH.C0 = clerp(LH.C0, table[6], speed)
  234. if bool == true then
  235. if resetc1 == false then
  236. resetc1 = true
  237. RootJoint.C1 = RootJoint.C1
  238. Torso.Neck.C1 = Torso.Neck.C1
  239. RW.C1 = rarmc1
  240. LW.C1 = larmc1
  241. RH.C1 = rlegc1
  242. LH.C1 = llegc1
  243. end
  244. end
  245. end
  246.  
  247. ArtificialHB = Create("BindableEvent", script){
  248. Parent = script,
  249. Name = "Heartbeat",
  250. }
  251.  
  252. script:WaitForChild("Heartbeat")
  253.  
  254. frame = 1 / 30
  255. tf = 0
  256. allowframeloss = false
  257. tossremainder = false
  258. lastframe = tick()
  259. script.Heartbeat:Fire()
  260.  
  261. game:GetService("RunService").Heartbeat:connect(function(s, p)
  262. tf = tf + s
  263. if tf >= frame then
  264. if allowframeloss then
  265. script.Heartbeat:Fire()
  266. lastframe = tick()
  267. else
  268. for i = 1, math.floor(tf / frame) do
  269. script.Heartbeat:Fire()
  270. end
  271. lastframe = tick()
  272. end
  273. if tossremainder then
  274. tf = 0
  275. else
  276. tf = tf - frame * math.floor(tf / frame)
  277. end
  278. end
  279. end)
  280.  
  281. function swait(num)
  282. if num == 0 or num == nil then
  283. ArtificialHB.Event:wait()
  284. else
  285. for i = 0, num do
  286. ArtificialHB.Event:wait()
  287. end
  288. end
  289. end
  290.  
  291. function RemoveOutlines(part)
  292. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  293. end
  294.  
  295. CFuncs = {
  296. ["Part"] = {
  297. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  298. local Part = Create("Part"){
  299. Parent = Parent,
  300. Reflectance = Reflectance,
  301. Transparency = Transparency,
  302. CanCollide = false,
  303. Locked = true,
  304. BrickColor = BrickColor.new(tostring(BColor)),
  305. Name = Name,
  306. Size = Size,
  307. Material = Material,
  308. }
  309. RemoveOutlines(Part)
  310. return Part
  311. end;
  312. };
  313.  
  314. ["Mesh"] = {
  315. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  316. local Msh = Create(Mesh){
  317. Parent = Part,
  318. Offset = OffSet,
  319. Scale = Scale,
  320. }
  321. if Mesh == "SpecialMesh" then
  322. Msh.MeshType = MeshType
  323. Msh.MeshId = MeshId
  324. end
  325. return Msh
  326. end;
  327. };
  328.  
  329. ["Mesh"] = {
  330. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  331. local Msh = Create(Mesh){
  332. Parent = Part,
  333. Offset = OffSet,
  334. Scale = Scale,
  335. }
  336. if Mesh == "SpecialMesh" then
  337. Msh.MeshType = MeshType
  338. Msh.MeshId = MeshId
  339. end
  340. return Msh
  341. end;
  342. };
  343.  
  344. ["Weld"] = {
  345. Create = function(Parent, Part0, Part1, C0, C1)
  346. local Weld = Create("Weld"){
  347. Parent = Parent,
  348. Part0 = Part0,
  349. Part1 = Part1,
  350. C0 = C0,
  351. C1 = C1,
  352. }
  353. return Weld
  354. end;
  355. };
  356.  
  357. ["Sound"] = {
  358. Create = function(id, par, vol, pit)
  359. coroutine.resume(coroutine.create(function()
  360. local S = Create("Sound"){
  361. Volume = vol,
  362. Pitch = pit or 1,
  363. SoundId = id,
  364. Parent = par or workspace,
  365. }
  366. wait()
  367. S:play()
  368. game:GetService("Debris"):AddItem(S, 25)
  369. end))
  370. end;
  371. };
  372.  
  373. ["ParticleEmitter"] = {
  374. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  375. local fp = Create("ParticleEmitter"){
  376. Parent = Parent,
  377. Color = ColorSequence.new(Color1, Color2),
  378. LightEmission = LightEmission,
  379. Size = Size,
  380. Texture = Texture,
  381. Transparency = Transparency,
  382. ZOffset = ZOffset,
  383. Acceleration = Accel,
  384. Drag = Drag,
  385. LockedToPart = LockedToPart,
  386. VelocityInheritance = VelocityInheritance,
  387. EmissionDirection = EmissionDirection,
  388. Enabled = Enabled,
  389. Lifetime = LifeTime,
  390. Rate = Rate,
  391. Rotation = Rotation,
  392. RotSpeed = RotSpeed,
  393. Speed = Speed,
  394. VelocitySpread = VelocitySpread,
  395. }
  396. return fp
  397. end;
  398. };
  399.  
  400. CreateTemplate = {
  401.  
  402. };
  403. }
  404.  
  405. function rayCast(Position, Direction, Range, Ignore)
  406. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  407. end
  408.  
  409. FindNearestTorso = function(pos)
  410. local list = (game.Workspace:children())
  411. local torso = nil
  412. local dist = 1000
  413. local temp, human, temp2 = nil, nil, nil
  414. for x = 1, #list do
  415. temp2 = list[x]
  416. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  417. temp = temp2:findFirstChild("Torso")
  418. human = temp2:findFirstChild("Humanoid")
  419. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  420. local dohit = true
  421. if dohit == true then
  422. torso = temp
  423. dist = (temp.Position - pos).magnitude
  424. end
  425. end
  426. end
  427. end
  428. return torso, dist
  429. end
  430.  
  431. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  432. if hit.Parent == nil then
  433. return
  434. end
  435. local h = hit.Parent:FindFirstChild("Humanoid")
  436. for _, v in pairs(hit.Parent:children()) do
  437. if v:IsA("Humanoid") then
  438. h = v
  439. end
  440. end
  441. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  442. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  443. if hit.Parent.DebounceHit.Value == true then
  444. return
  445. end
  446. end
  447. local c = Create("ObjectValue"){
  448. Name = "creator",
  449. Value = game:service("Players").LocalPlayer,
  450. Parent = h,
  451. }
  452. game:GetService("Debris"):AddItem(c, .5)
  453. if HitSound ~= nil and HitPitch ~= nil then
  454. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  455. end
  456. local Damage = math.random(minim, maxim)
  457. local blocked = false
  458. local block = hit.Parent:findFirstChild("Block")
  459. if block ~= nil then
  460. if block.className == "IntValue" then
  461. if block.Value > 0 then
  462. blocked = true
  463. block.Value = block.Value - 1
  464. print(block.Value)
  465. end
  466. end
  467. end
  468. if blocked == false then
  469. h.Health = h.Health - Damage
  470. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  471. else
  472. h.Health = h.Health - (Damage / 2)
  473. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  474. end
  475. if Type == "Knockdown" then
  476. local hum = hit.Parent.Humanoid
  477. hum.PlatformStand = true
  478. coroutine.resume(coroutine.create(function(HHumanoid)
  479. swait(1)
  480. HHumanoid.PlatformStand = false
  481. end), hum)
  482. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  483. local bodvol = Create("BodyVelocity"){
  484. velocity = angle * knockback,
  485. P = 5000,
  486. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  487. Parent = hit,
  488. }
  489. local rl = Create("BodyAngularVelocity"){
  490. P = 3000,
  491. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  492. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  493. Parent = hit,
  494. }
  495. game:GetService("Debris"):AddItem(bodvol, .5)
  496. game:GetService("Debris"):AddItem(rl, .5)
  497. elseif Type == "Normal" then
  498. local vp = Create("BodyVelocity"){
  499. P = 500,
  500. maxForce = Vector3.new(math.huge, 0, math.huge),
  501. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  502. }
  503. if knockback > 0 then
  504. vp.Parent = hit.Parent.Torso
  505. end
  506. game:GetService("Debris"):AddItem(vp, .5)
  507. elseif Type == "Up" then
  508. local bodyVelocity = Create("BodyVelocity"){
  509. velocity = Vector3.new(0, 20, 0),
  510. P = 5000,
  511. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  512. Parent = hit,
  513. }
  514. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  515. elseif Type == "DarkUp" then
  516. coroutine.resume(coroutine.create(function()
  517. for i = 0, 1, 0.1 do
  518. swait()
  519. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  520. end
  521. end))
  522. local bodyVelocity = Create("BodyVelocity"){
  523. velocity = Vector3.new(0, 20, 0),
  524. P = 5000,
  525. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  526. Parent = hit,
  527. }
  528. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  529. elseif Type == "Snare" then
  530. local bp = Create("BodyPosition"){
  531. P = 2000,
  532. D = 100,
  533. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  534. position = hit.Parent.Torso.Position,
  535. Parent = hit.Parent.Torso,
  536. }
  537. game:GetService("Debris"):AddItem(bp, 1)
  538. elseif Type == "Freeze" then
  539. local BodPos = Create("BodyPosition"){
  540. P = 50000,
  541. D = 1000,
  542. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  543. position = hit.Parent.Torso.Position,
  544. Parent = hit.Parent.Torso,
  545. }
  546. local BodGy = Create("BodyGyro") {
  547. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  548. P = 20e+003,
  549. Parent = hit.Parent.Torso,
  550. cframe = hit.Parent.Torso.CFrame,
  551. }
  552. hit.Parent.Torso.Anchored = true
  553. coroutine.resume(coroutine.create(function(Part)
  554. swait(1.5)
  555. Part.Anchored = false
  556. end), hit.Parent.Torso)
  557. game:GetService("Debris"):AddItem(BodPos, 3)
  558. game:GetService("Debris"):AddItem(BodGy, 3)
  559. elseif Type == "Body Snatch" then
  560. if not gothit then
  561. gothit = true
  562. local BodPos = Create("BodyPosition"){
  563. P = 50000,
  564. D = 1000,
  565. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  566. position = hit.Parent.Torso.Position,
  567. Parent = hit.Parent.Torso,
  568. }
  569. local BodGy = Create("BodyGyro") {
  570. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  571. P = 20e+003,
  572. Parent = hit.Parent.Torso,
  573. cframe = hit.Parent.Torso.CFrame,
  574. }
  575. hit.Parent.Torso.Anchored = true
  576. coroutine.resume(coroutine.create(function(Part)
  577. swait(1.5)
  578. Part.Anchored = false
  579. end), hit.Parent.Torso)
  580. game:GetService("Debris"):AddItem(BodPos, 3)
  581. game:GetService("Debris"):AddItem(BodGy, 3)
  582. end
  583. end
  584. local debounce = Create("BoolValue"){
  585. Name = "DebounceHit",
  586. Parent = hit.Parent,
  587. Value = true,
  588. }
  589. game:GetService("Debris"):AddItem(debounce, Delay)
  590. c = Create("ObjectValue"){
  591. Name = "creator",
  592. Value = Player,
  593. Parent = h,
  594. }
  595. game:GetService("Debris"):AddItem(c, .5)
  596. end
  597. end
  598.  
  599. function ShowDamage(Pos, Text, Time, Color)
  600. local Rate = (1 / 30)
  601. local Pos = (Pos or Vector3.new(0, 0, 0))
  602. local Text = (Text or "")
  603. local Time = (Time or 2)
  604. local Color = (Color or Color3.new(1, 0, 1))
  605. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  606. EffectPart.Anchored = true
  607. local BillboardGui = Create("BillboardGui"){
  608. Size = UDim2.new(3, 0, 3, 0),
  609. Adornee = EffectPart,
  610. Parent = EffectPart,
  611. }
  612. local TextLabel = Create("TextLabel"){
  613. BackgroundTransparency = 1,
  614. Size = UDim2.new(1, 0, 1, 0),
  615. Text = Text,
  616. Font = "SciFi",
  617. TextColor3 = Color,
  618. TextScaled = true,
  619. Parent = BillboardGui,
  620. }
  621. game.Debris:AddItem(EffectPart, (Time))
  622. EffectPart.Parent = game:GetService("Workspace")
  623. delay(0, function()
  624. local Frames = (Time / Rate)
  625. for Frame = 1, Frames do
  626. wait(Rate)
  627. local Percent = (Frame / Frames)
  628. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  629. TextLabel.TextTransparency = Percent
  630. end
  631. if EffectPart and EffectPart.Parent then
  632. EffectPart:Destroy()
  633. end
  634. end)
  635. end
  636.  
  637. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  638. for _, c in pairs(workspace:children()) do
  639. local hum = c:findFirstChild("Humanoid")
  640. if hum ~= nil then
  641. local head = c:findFirstChild("Torso")
  642. if head ~= nil then
  643. local targ = head.Position - Part.Position
  644. local mag = targ.magnitude
  645. if mag <= Magnitude and c.Name ~= Player.Name then
  646. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  647. end
  648. end
  649. end
  650. end
  651. end
  652.  
  653. SoulPhoenix = New("Model",Character,"SoulPhoenix",{})
  654. PhoenixBody = New("Part",SoulPhoenix,"PhoenixBody",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Fabric,Transparency = 0.30000001192093,Transparency = 0.30000001192093,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),})
  655. Mesh = New("SpecialMesh",PhoenixBody,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://92135477",MeshType = Enum.MeshType.FileMesh,})
  656. BodyMotor = New("Motor",PhoenixBody,"moy",{Part0 = RootPart, Part1 = PhoenixBody,})
  657. PhoenixLeftWing = New("Part",SoulPhoenix,"PhoenixLeftWing",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Fabric,Transparency = 0.30000001192093,Transparency = 0.30000001192093,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),})
  658. Mesh = New("SpecialMesh",PhoenixLeftWing,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://92135524",MeshType = Enum.MeshType.FileMesh,})
  659. LeftWingMotor = New("Motor",PhoenixLeftWing,"mot",{Part0 = RootPart,Part1 = PhoenixLeftWing,})
  660. PhoenixEye = New("Part",SoulPhoenix,"PhoenixEye",{BrickColor = BrickColor.new("Black"),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),})
  661. Mesh = New("SpecialMesh",PhoenixEye,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  662. 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),})
  663. PhoenixEye = New("Part",SoulPhoenix,"PhoenixEye",{BrickColor = BrickColor.new("Black"),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),})
  664. Mesh = New("SpecialMesh",PhoenixEye,"Mesh",{MeshType = Enum.MeshType.Sphere,})
  665. 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),})
  666. PhoenixRightWing = New("Part",SoulPhoenix,"PhoenixRightWing",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.Fabric,Transparency = 0.30000001192093,Transparency = 0.30000001192093,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),})
  667. Mesh = New("SpecialMesh",PhoenixRightWing,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://92135508",MeshType = Enum.MeshType.FileMesh,})
  668. RightWingMotor = New("Motor",PhoenixRightWing,"mot",{Part0 = RootPart,Part1 = PhoenixRightWing,})
  669.  
  670. SoulTheos = New("Model",nil,"SoulTheos",{})
  671. GiantTorso = New("Part",SoulTheos,"GiantTorso",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 0.20000000298023,Transparency = 0.20000000298023,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),})
  672. Mesh = New("SpecialMesh",GiantTorso,"Mesh",{Scale = Vector3.new(160, 160, 80),MeshType = Enum.MeshType.Brick,})
  673. TorsoMotor = New("Motor",GiantTorso,"mot",{Part0 = RootPart,Part1 = GiantTorso,})
  674. GiantLeftArm = New("Part",SoulTheos,"GiantLeftArm",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 0.20000000298023,Transparency = 0.20000000298023,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),})
  675. Mesh = New("SpecialMesh",GiantLeftArm,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  676. LeftArmMotor = New("Motor",GiantLeftArm,"mot",{Part0 = RootPart,Part1 = GiantLeftArm,})
  677. GiantRightArm = New("Part",SoulTheos,"GiantRightArm",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 0.20000000298023,Transparency = 0.20000000298023,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),})
  678. Mesh = New("SpecialMesh",GiantRightArm,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  679. RightArmMotor = New("Motor",GiantRightArm,"mot",{Part0 = RootPart,Part1 = GiantRightArm,})
  680. GiantLeftLeg = New("Part",SoulTheos,"GiantLeftLeg",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 0.20000000298023,Transparency = 0.20000000298023,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),})
  681. Mesh = New("SpecialMesh",GiantLeftLeg,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  682. LeftLegMotor = New("Motor",GiantLeftLeg,"mot",{Part0 = RootPart,Part1 = GiantLeftLeg,})
  683. GiantRightLeg = New("Part",SoulTheos,"GiantRightLeg",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 0.20000000298023,Transparency = 0.20000000298023,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),})
  684. Mesh = New("SpecialMesh",GiantRightLeg,"Mesh",{Scale = Vector3.new(80, 160, 80),MeshType = Enum.MeshType.Brick,})
  685. RightLegMotor = New("Motor",GiantRightLeg,"mot",{Part0 = RootPart,Part1 = GiantRightLeg,})
  686. GiantHead = New("Part",SoulTheos,"GiantHead",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Neon,Transparency = 0.20000000298023,Transparency = 0.20000000298023,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),})
  687. Mesh = New("SpecialMesh",GiantHead,"Mesh",{Scale = Vector3.new(80, 80, 80),MeshType = Enum.MeshType.Brick,})
  688. HeadMotor = New("Motor",GiantHead,"mot",{Part0 = RootPart,Part1 = GiantHead,})
  689. 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),})
  690. Mesh = New("SpecialMesh",GiantCrystal,"Mesh",{Scale = Vector3.new(10, 25, 10),MeshId = "rbxassetid://9756362",MeshType = Enum.MeshType.FileMesh,})
  691. mot = New("Motor",GiantCrystal,"mot",{Part0 = GiantTorso,Part1 = GiantCrystal,})
  692.  
  693. 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)
  694. 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)
  695. 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)
  696. 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)
  697. 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)
  698. 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)
  699.  
  700. EffectModel = Create("Model"){
  701. Parent = Character,
  702. Name = "Effects",
  703. }
  704.  
  705. Effects = {
  706. Block = {
  707. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  708. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  709. prt.Anchored = true
  710. prt.CFrame = cframe
  711. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  712. game:GetService("Debris"):AddItem(prt, 100)
  713. if Type == 1 or Type == nil then
  714. prt.CFrame = prt.CFrame * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  715. table.insert(Effects, {
  716. prt,
  717. "Block1",
  718. delay,
  719. x3,
  720. y3,
  721. z3,
  722. msh
  723. })
  724. elseif Type == 2 then
  725. table.insert(Effects, {
  726. prt,
  727. "Block2",
  728. delay,
  729. x3,
  730. y3,
  731. z3,
  732. msh
  733. })
  734. end
  735. end;
  736. };
  737.  
  738. Cylinder = {
  739. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  740. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  741. prt.Anchored = true
  742. prt.CFrame = cframe
  743. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  744. game:GetService("Debris"):AddItem(prt, 100)
  745. table.insert(Effects, {
  746. prt,
  747. "Cylinder",
  748. delay,
  749. x3,
  750. y3,
  751. z3,
  752. msh
  753. })
  754. end;
  755. };
  756. Head = {
  757. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  758. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  759. prt.Anchored = true
  760. prt.CFrame = cframe
  761. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  762. game:GetService("Debris"):AddItem(prt, 100)
  763. table.insert(Effects, {
  764. prt,
  765. "Cylinder",
  766. delay,
  767. x3,
  768. y3,
  769. z3,
  770. msh
  771. })
  772. end;
  773. };
  774.  
  775. Sphere = {
  776. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  777. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  778. prt.Anchored = true
  779. prt.CFrame = cframe
  780. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  781. game:GetService("Debris"):AddItem(prt, 100)
  782. table.insert(Effects, {
  783. prt,
  784. "Cylinder",
  785. delay,
  786. x3,
  787. y3,
  788. z3,
  789. msh
  790. })
  791. end;
  792. };
  793.  
  794. Elect = {
  795. Create = function(cff, x, y, z)
  796. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  797. prt.Anchored = true
  798. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  799. prt.CFrame = CFrame.new(prt.Position)
  800. game:GetService("Debris"):AddItem(prt, 2)
  801. local xval = math.random() / 2
  802. local yval = math.random() / 2
  803. local zval = math.random() / 2
  804. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  805. table.insert(Effects, {
  806. prt,
  807. "Elec",
  808. 0.1,
  809. x,
  810. y,
  811. z,
  812. xval,
  813. yval,
  814. zval
  815. })
  816. end;
  817.  
  818. };
  819.  
  820. Ring = {
  821. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  822. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  823. prt.Anchored = true
  824. prt.CFrame = cframe
  825. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  826. game:GetService("Debris"):AddItem(prt, 100)
  827. table.insert(Effects, {
  828. prt,
  829. "Cylinder",
  830. delay,
  831. x3,
  832. y3,
  833. z3,
  834. msh
  835. })
  836. end;
  837. };
  838.  
  839.  
  840. Wave = {
  841. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  842. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  843. prt.Anchored = true
  844. prt.CFrame = cframe
  845. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  846. game:GetService("Debris"):AddItem(prt, 100)
  847. table.insert(Effects, {
  848. prt,
  849. "Cylinder",
  850. delay,
  851. x3,
  852. y3,
  853. z3,
  854. msh
  855. })
  856. end;
  857. };
  858.  
  859. Break = {
  860. Create = function(brickcolor, cframe, x1, y1, z1)
  861. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  862. prt.Anchored = true
  863. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  864. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  865. local num = math.random(1, 5) / 100
  866. game:GetService("Debris"):AddItem(prt, 100)
  867. table.insert(Effects, {
  868. prt,
  869. "Shatter",
  870. num,
  871. prt.CFrame,
  872. math.random() - math.random(),
  873. 0,
  874. math.random(50, 100) / 100
  875. })
  876. end;
  877. };
  878.  
  879. Fire = {
  880. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  881. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  882. prt.Anchored = true
  883. prt.CFrame = cframe
  884. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  885. game:GetService("Debris"):AddItem(prt, 100)
  886. table.insert(Effects, {
  887. prt,
  888. "Fire",
  889. delay,
  890. 1,
  891. 1,
  892. 1,
  893. msh
  894. })
  895. end;
  896. };
  897.  
  898. FireWave = {
  899. Create = function(brickcolor, cframe, x1, y1, z1)
  900. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  901. prt.Anchored = true
  902. prt.CFrame = cframe
  903. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  904. local d = Create("Decal"){
  905. Parent = prt,
  906. Texture = "rbxassetid://26356434",
  907. Face = "Top",
  908. }
  909. local d = Create("Decal"){
  910. Parent = prt,
  911. Texture = "rbxassetid://26356434",
  912. Face = "Bottom",
  913. }
  914. game:GetService("Debris"):AddItem(prt, 100)
  915. table.insert(Effects, {
  916. prt,
  917. "FireWave",
  918. 1,
  919. 30,
  920. math.random(400, 600) / 100,
  921. msh
  922. })
  923. end;
  924. };
  925.  
  926. Lightning = {
  927. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  928. local magz = (p0 - p1).magnitude
  929. local curpos = p0
  930. local trz = {
  931. -ofs,
  932. ofs
  933. }
  934. for i = 1, tym do
  935. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  936. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  937. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  938. li.Material = "Neon"
  939. if tym == i then
  940. local magz2 = (curpos - p1).magnitude
  941. li.Size = Vector3.new(th, th, magz2)
  942. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  943. table.insert(Effects, {
  944. li,
  945. "Disappear",
  946. last
  947. })
  948. else
  949. do
  950. do
  951. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  952. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  953. game.Debris:AddItem(li, 10)
  954. table.insert(Effects, {
  955. li,
  956. "Disappear",
  957. last
  958. })
  959. end
  960. end
  961. end
  962. end
  963. end
  964. };
  965.  
  966. EffectTemplate = {
  967.  
  968. };
  969. }
  970.  
  971. function attackone()
  972. attack = true
  973. for i = 0, 1, 0.1 do
  974. swait()
  975. PlayAnimationFromTable({
  976. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  977. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  978. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  979. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  980. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  981. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  982. }, .3, false)
  983. end
  984. attack = false
  985. end
  986.  
  987. local Skills = {
  988. SkillKeys = {
  989. Z = function()
  990. attack = true
  991. CFuncs.Sound.Create('rbxassetid://278641993', Torso, 10, 0.8)
  992. CFuncs.Sound.Create('rbxassetid://432629066', Torso, 10, 1.4)
  993. Effects.Sphere.Create(BrickColor.new'Really black', Torso.CFrame, 5000, 5000, 5000, -500, -500, -500, 0.1)
  994. for i = 0, 1, 0.015 do
  995. swait()
  996. Effects.Block.Create(BrickColor.new'Really black', LeftArm.CFrame, 5, 10, 5, 0, 0, 0, 0.065, 2)
  997. Effects.Block.Create(BrickColor.new'Really black', 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)
  998. PlayAnimationFromTable({
  999. 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),
  1000. 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),
  1001. 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),
  1002. 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),
  1003. 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),
  1004. 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),
  1005. }, i, false)
  1006. 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)
  1007. 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)
  1008. 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)
  1009. end
  1010. CFuncs.Sound.Create('rbxassetid://231917758', Torso, 10, 0.6)
  1011. for i = 0, 1, 0.3 do
  1012. swait()
  1013. Effects.Block.Create(BrickColor.new'Really black', LeftArm.CFrame, 5, 10, 5, 0, 0, 0, 0.065, 2)
  1014. Effects.Block.Create(BrickColor.new'Really black', 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)
  1015. PlayAnimationFromTable({
  1016. 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),
  1017. 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),
  1018. 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),
  1019. 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),
  1020. 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),
  1021. 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),
  1022. }, i, false)
  1023. 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)
  1024. 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)
  1025. 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)
  1026. end
  1027. local hit, pos = rayCast(PhoenixLeftWing.Position, CFrame.new(PhoenixLeftWing.Position, PhoenixLeftWing.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1028. if hit then
  1029. Effects.Block.Create(BrickColor.new'Really black', CFrame.new(pos), 50, 50, 50, 20, 20, 20, 0.04)
  1030. Effects.Wave.Create(BrickColor.new'Really black', CFrame.new(pos) * CFrame.Angles(0, math.random(-180, 180), 0), 5, 2, 5, 3, 1, 3, 0.04)
  1031. end
  1032. local ref = CFuncs.Part.Create(EffectModel, 'Neon', 0, 1, 'White', 'Reference', Vector3.new(0.2, 0.2, 0.2))
  1033. ref.Anchored = true ref.CFrame = RootPart.CFrame * CFrame.new(2, 1, -25)
  1034. coroutine.resume(coroutine.create(function()
  1035. local hit, pos = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1036. local refposchange = coroutine.wrap(function()
  1037. while true do
  1038. swait()
  1039. hit, pos = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1040. end
  1041. end)
  1042. refposchange()
  1043. local charges = 0
  1044. repeat
  1045. swait(12)
  1046. Camera.FieldOfView = Camera.FieldOfView + 1
  1047. charges = charges + 1
  1048. if charges > 13 then
  1049. charges = 13
  1050. end
  1051. ref.CFrame = ref.CFrame * CFrame.new(0, 0, -25)
  1052. CFuncs.Sound.Create('rbxassetid://565800952', ref, 10, 0.9)
  1053. CFuncs.Sound.Create('rbxassetid://304529688', ref, 9.5, 0.8)
  1054. CFuncs.Sound.Create('rbxassetid://414516914', ref, 9.5, 0.4)
  1055. CFuncs.Sound.Create('rbxassetid://466493476', ref, 9.75, 0.7)
  1056. if hit then
  1057. Effects.Sphere.Create(BrickColor.new'Really black', CFrame.new(pos), 50, 50, 50, 20, 20, 20, 0.026)
  1058. Effects.Sphere.Create(BrickColor.new'Really black', CFrame.new(pos), 51, 35, 51, 23, 10, 23, 0.026)
  1059. Effects.Ring.Create(BrickColor.new'Really black', CFrame.new(pos) * CFrame.Angles(1.57, 0, 0), 8, 8, 0.5, 4.5, 4.5, 1.5, 0.026)
  1060. Effects.Block.Create(BrickColor.new'Really black', CFrame.new(pos), 55, 55, 55, 25, 25, 25, 0.032)
  1061. for i = 1, 2 do
  1062. Effects.Ring.Create(BrickColor.new'Really black', 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)
  1063. end
  1064. for i = 1, 10 do
  1065. Effects.Break.Create(BrickColor.new'Really black', CFrame.new(pos), 5, 15, 5)
  1066. end
  1067. MagnitudeDamage(ref, 35, 10, 35, 3, 'Body Snatch', 0, 0)
  1068. end
  1069. until gothit == true or charges >= 13
  1070. if gothit then
  1071. CFuncs.Sound.Create('rbxassetid://435742675', ref, 10, 0.9)
  1072. CFuncs.Sound.Create('rbxassetid://414516914', ref, 9.5, 0.32)
  1073. for i = 1, 130 do
  1074. swait()
  1075. MagnitudeDamage(ref, 65, 1, 1, 0, 'Normal', 0, 0)
  1076. Effects.Sphere.Create(BrickColor.new'Really black', CFrame.new(pos), 50, 50, 50, 55, 55, 55, 0.1)
  1077. Effects.Sphere.Create(BrickColor.new'Really black', CFrame.new(pos), 65, 70, 65, 55, 97, 55, 0.04)
  1078. Effects.Wave.Create(BrickColor.new'Really black', CFrame.new(pos) * CFrame.Angles(0, math.random(-180, 180), 0), 210, 5, 210, -13, 65, -13, 0.1)
  1079. Effects.Ring.Create(BrickColor.new'Really black', ref.CFrame * CFrame.Angles(1.57, 0, 0), 1, 1, 0.1, 35, 35, 0, 0.08)
  1080. end
  1081. elseif not gothit and charges >= 13 then
  1082. CFuncs.Sound.Create('rbxassetid://439342426', ref, 10, 1)
  1083. for i = 1, 10 do
  1084. swait(7.8)
  1085. Effects.Block.Create(BrickColor.new'Really black', CFrame.new(pos), 1600, 1600, 1600, -160, -160, -160, 0.1)
  1086. end
  1087. end
  1088. if gothit ~= false then
  1089. gothit = false
  1090. end
  1091. swait(10)
  1092. ref:Destroy()
  1093. coroutine.resume(coroutine.create(function()
  1094. repeat
  1095. swait()
  1096. Camera.FieldOfView = Camera.FieldOfView - 1
  1097. until Camera.FieldOfView <= 70
  1098. end))
  1099. end))
  1100. for i = 0, 1, 0.02 do
  1101. swait()
  1102. PlayAnimationFromTable({
  1103. 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),
  1104. 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),
  1105. 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),
  1106. 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),
  1107. 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),
  1108. 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),
  1109. }, i, false)
  1110. 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)
  1111. 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)
  1112. 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)
  1113. end
  1114. attack = false
  1115. end,
  1116.  
  1117. X = function()
  1118. attack = true
  1119.  
  1120. attack = false
  1121. end,
  1122.  
  1123. C = function()
  1124. attack = true
  1125.  
  1126. attack = false
  1127. end,
  1128.  
  1129. V = function()
  1130. attack = true
  1131. for i = 0, 1, 0.01 do
  1132. swait()
  1133. PlayAnimationFromTable({
  1134. 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),
  1135. 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),
  1136. 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),
  1137. 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),
  1138. 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),
  1139. 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),
  1140. }, i, false)
  1141. 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)
  1142. 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)
  1143. 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)
  1144. end
  1145. SoulTheos.Parent = Character
  1146. CFuncs.Sound.Create('rbxassetid://528589382', Character, 5, 1)
  1147. local groundref = CFuncs.Part.Create(EffectModel, 'Neon', 0, 1, 'White', 'Reference', Vector3.new(0.2, 0.2, 0.2))
  1148. groundref.Anchored = true
  1149. for i = 0, 25, 0.1 do
  1150. swait()
  1151. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1152. groundref.CFrame = CFrame.new(pos) * CFrame.new(math.random(-130, 130), 0, math.random(-130, 130))
  1153. if hit then
  1154. Effects.Block.Create(BrickColor.new'Really black', groundref.CFrame, 80, 80, 80, -8, -8, -8, 0.1)
  1155. for i = 1, 2 do
  1156. Effects.Break.Create(BrickColor.new'Really black', groundref.CFrame, 1, 15, 1)
  1157. end
  1158. end
  1159. 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)
  1160. 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)
  1161. 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)
  1162. 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)
  1163. 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)
  1164. 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)
  1165. end
  1166. CFuncs.Sound.Create('rbxassetid://435742675', Character, 10, 0.6)
  1167. CFuncs.Sound.Create('rbxassetid://432629066', Character, 11, 0.4)
  1168. Effects.Block.Create(BrickColor.new'Really black', GiantTorso.CFrame, 850, 850, 580, 40, 40, 40, 0.002)
  1169. Effects.Block.Create(BrickColor.new'Really black', GiantTorso.CFrame, 850, 850, 850, -0.85, -0.85, -0.85, 0.001)
  1170. Effects.Block.Create(BrickColor.new'Really black', GiantTorso.CFrame, 550, 550, 550, 10, 10, 10, 0.002)
  1171. for i = 1, 2 do
  1172. Effects.Ring.Create(BrickColor.new'Really black', 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)
  1173. end
  1174. for i = 1, 20 do
  1175. Effects.Sphere.Create(BrickColor.new'Really black', 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)
  1176. end
  1177. --Effects.Wind.Create(BrickColor.new'Really black', GiantTorso.CFrame, 140, 140, 140, 3, 3, 3, 0.0078)
  1178. SoulTheos.Parent = nil
  1179. attack = false
  1180. end
  1181. }
  1182. }
  1183.  
  1184. Mouse.Button1Down:connect(function()
  1185. if attack == false and attacktype == 1 then
  1186. --attackone()
  1187. end
  1188. end)
  1189.  
  1190. Mouse.KeyDown:connect(function(k)
  1191. k = k:lower()
  1192. if attack == false and k == 'z' then
  1193. Skills.SkillKeys.Z()
  1194. elseif attack == false and k == 'v' then
  1195. Skills.SkillKeys.V()
  1196. end
  1197. end)
  1198.  
  1199. while true do
  1200. swait()
  1201. efc = efc + 1
  1202. Humanoid.JumpPower = 0
  1203. game.Workspace:FindFirstChild'Camera'.CameraSubject = Head
  1204. for i, v in pairs(Character:GetChildren()) do
  1205. if v:IsA("Part") then
  1206. v.Material = "SmoothPlastic"
  1207. elseif v:IsA("Accessory") then
  1208. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1209. end
  1210. end
  1211. if efc % 7 == 0 then
  1212. Effects.Block.Create(BrickColor.new'Really black', RightLeg.CFrame * CFrame.new(0, -1, 0), 6.5, 6.5, 6.5, -0.02, -0.02, -0.02, 0.06)
  1213. Effects.Block.Create(BrickColor.new'Really black', LeftLeg.CFrame * CFrame.new(0, -1, 0), 6.5, 6.5, 6.5, -0.02, -0.02, -0.02, 0.06)
  1214. end
  1215. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1216. velocity = RootPart.Velocity.y
  1217. sine = sine + change
  1218. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1219. if RootPart.Velocity.y > 1 and hit == nil then
  1220. Anim = "Jump"
  1221. if attack == false then
  1222. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1223. 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)
  1224. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1225. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1226. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1227. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1228. end
  1229. elseif RootPart.Velocity.y < -1 and hit == nil then
  1230. Anim = "Fall"
  1231. if attack == false then
  1232. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1233. 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)
  1234. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1235. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1236. RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1237. LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1238. end
  1239. elseif Torsovelocity < 1 and hit ~= nil then
  1240. Anim = "Idle"
  1241. if attack == false then
  1242. change = 1
  1243. PlayAnimationFromTable({
  1244. 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),
  1245. 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),
  1246. 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)),
  1247. 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),
  1248. 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),
  1249. 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),
  1250. }, .1, false)
  1251. 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)
  1252. 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)
  1253. 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)
  1254. end
  1255. elseif Torsovelocity > 2 and hit ~= nil then
  1256. Anim = "Walk"
  1257. if attack == false then
  1258. PlayAnimationFromTable({
  1259. 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),
  1260. 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),
  1261. 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)),
  1262. 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),
  1263. 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),
  1264. 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),
  1265. }, .1, false)
  1266. 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)
  1267. 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)
  1268. 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)
  1269. end
  1270. end
  1271. if 0 < #Effects then
  1272. for e = 1, #Effects do
  1273. if Effects[e] ~= nil then
  1274. local Thing = Effects[e]
  1275. if Thing ~= nil then
  1276. local Part = Thing[1]
  1277. local Mode = Thing[2]
  1278. local Delay = Thing[3]
  1279. local IncX = Thing[4]
  1280. local IncY = Thing[5]
  1281. local IncZ = Thing[6]
  1282. if Thing[2] == "Shoot" then
  1283. local Look = Thing[1]
  1284. local move = 30
  1285. if Thing[8] == 3 then
  1286. move = 10
  1287. end
  1288. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1289. if Thing[10] ~= nil then
  1290. da = pos
  1291. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1292. cfa = CFrame.new(Thing[4], pos)
  1293. tehCF = cfa:lerp(cf2, 0.2)
  1294. Thing[1] = tehCF.lookVector
  1295. end
  1296. local mag = (Thing[4] - pos).magnitude
  1297. 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)
  1298. if Thing[8] == 2 then
  1299. 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)
  1300. end
  1301. Thing[4] = Thing[4] + Look * move
  1302. Thing[3] = Thing[3] - 1
  1303. if 2 < Thing[5] then
  1304. Thing[5] = Thing[5] - 0.3
  1305. Thing[6] = Thing[6] - 0.3
  1306. end
  1307. if hit ~= nil then
  1308. Thing[3] = 0
  1309. if Thing[8] == 1 or Thing[8] == 3 then
  1310. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1311. else
  1312. if Thing[8] == 2 then
  1313. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1314. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1315. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new(0.2, 0.2, 0.2))
  1316. ref.Anchored = true
  1317. ref.CFrame = CFrame.new(pos)
  1318. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1319. game:GetService("Debris"):AddItem(ref, 0.2)
  1320. 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)
  1321. 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)
  1322. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1323. end
  1324. end
  1325. end
  1326. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new(0.2, 0.2, 0.2))
  1327. ref.Anchored = true
  1328. ref.CFrame = CFrame.new(pos)
  1329. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1330. game:GetService("Debris"):AddItem(ref, 1)
  1331. end
  1332. if Thing[3] <= 0 then
  1333. table.remove(Effects, e)
  1334. end
  1335. end
  1336. do
  1337. do
  1338. if Thing[2] == "FireWave" then
  1339. if Thing[3] <= Thing[4] then
  1340. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1341. Thing[3] = Thing[3] + 1
  1342. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1343. else
  1344. Part.Parent = nil
  1345. table.remove(Effects, e)
  1346. end
  1347. end
  1348. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1349. if Thing[1].Transparency <= 1 then
  1350. if Thing[2] == "Block1" then
  1351. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1352. Mesh = Thing[7]
  1353. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1354. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1355. else
  1356. if Thing[2] == "Block2" then
  1357. Thing[1].CFrame = Thing[1].CFrame
  1358. Mesh = Thing[7]
  1359. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1360. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1361. else
  1362. if Thing[2] == "Fire" then
  1363. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1364. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1365. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1366. else
  1367. if Thing[2] == "Cylinder" then
  1368. Mesh = Thing[7]
  1369. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1370. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1371. else
  1372. if Thing[2] == "Blood" then
  1373. Mesh = Thing[7]
  1374. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1375. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1376. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1377. else
  1378. if Thing[2] == "Elec" then
  1379. Mesh = Thing[10]
  1380. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1381. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1382. else
  1383. if Thing[2] == "Disappear" then
  1384. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1385. else
  1386. if Thing[2] == "Shatter" then
  1387. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1388. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1389. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1390. Thing[6] = Thing[6] + Thing[5]
  1391. end
  1392. end
  1393. end
  1394. end
  1395. end
  1396. end
  1397. end
  1398. end
  1399. else
  1400. Part.Parent = nil
  1401. table.remove(Effects, e)
  1402. end
  1403. end
  1404. end
  1405. end
  1406. end
  1407. end
  1408. end
  1409. end
  1410. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement