Advertisement
TheJake678

soul

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