Advertisement
memberhero

Untitled

Nov 28th, 2017
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.35 KB | None | 0 0
  1. --coolallball
  2. --[[ World eater Script ]]--
  3. --[[ Declarations ]]--
  4. wait(.0000000000000000000001)
  5. local Player = game:GetService("Players").LocalPlayer
  6. local Character = Player.Character
  7. local Head = Character.Head
  8. local Torso = Character.Torso
  9. local Right_Arm = Character["Right Arm"]
  10. local Right_Leg = Character["Right Leg"]
  11. local Left_Arm = Character["Left Arm"]
  12. local Left_Leg = Character["Left Leg"]
  13. local Humanoid = Character.Humanoid
  14. local Animation = "Idle"
  15. local Mouse = Player:GetMouse()
  16. local LeftShoulder = Torso["Left Shoulder"]
  17. local Left_Hip = Torso["Left Hip"]
  18. local RightShoulder = Torso["Right Shoulder"]
  19. local Right_Hip = Torso["Right Hip"]
  20. local Root = Character.HumanoidRootPart
  21. local RootJoint = Root.RootJoint
  22. local Attacking = false
  23. local CanAttack = true
  24. local Anim = "Idle"
  25. local Combo = 1
  26. local Blocking = false
  27. local MaxDestruction = 1000
  28. local Destruction = 0
  29. local MaxBlock = 100
  30. local Effects = {}
  31. local Color = "Bright yellow"
  32. local Invert = false
  33. local Idle = 0
  34. local Equipped = false
  35. local Running = false
  36. local Unseathed = false
  37. local Shard = "None"
  38.  
  39. Humanoid.MaxHealth = 3000
  40. Humanoid.Health = 3000
  41.  
  42. local WorldEaterTheme = Instance.new("Sound",Character)
  43. WorldEaterTheme.Name = "WorldEaterTheme"
  44. WorldEaterTheme.Looped = true
  45. WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=149981769"
  46. WorldEaterTheme:Play()
  47.  
  48. Left_Shoulder = Instance.new("Weld", Torso)
  49. Left_Shoulder.Part0 = Torso
  50. Left_Shoulder.Part1 = Left_Arm
  51. Left_Shoulder.Name = "Left Shoulder"
  52. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  53.  
  54. Right_Shoulder = Instance.new("Weld", Torso)
  55. Right_Shoulder.Part0 = Torso
  56. Right_Shoulder.Part1 = Right_Arm
  57. Right_Shoulder.Name = "Right Shoulder"
  58. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  59.  
  60. LeftShoulder.Parent = nil
  61. RightShoulder.Parent = nil
  62. Humanoid.WalkSpeed = 10
  63.  
  64. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  65. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  66. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  67. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  68. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  69.  
  70.  
  71. Movemment = 1
  72. Walk = 0
  73.  
  74. Animator = Humanoid.Animator
  75. --Animate = Character.Animate
  76.  
  77. Animator.Parent = nil
  78. --Animate.Parent = nil
  79.  
  80. local Services = {
  81.  
  82. SoundService = game:GetService("SoundService");
  83. Players = game:GetService("Players");
  84. Debris = game:GetService("Debris");
  85. Workspace = game:GetService("Workspace");
  86. Lighting = game:GetService("Lighting");
  87. HttpService = game:GetService("HttpService");
  88. InsertService = game:GetService("InsertService");
  89.  
  90. }
  91.  
  92. local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  93. ManaBarGUI.Name = "ManaBarGUI"
  94.  
  95. local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
  96. ManaBarP1.Name = "ManaBarPart1"
  97. ManaBarP1.Size = UDim2.new(0,300,0,20)
  98. ManaBarP1.Position = UDim2.new(0,350,0.1,0)
  99. ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
  100.  
  101. local ManaBarP2 = Instance.new("Frame", ManaBarP1)
  102. ManaBarP2.Name = "ManaBarPart2"
  103. ManaBarP2.Size = UDim2.new(0,300,0,20)
  104. ManaBarP2.Position = UDim2.new(0,0,0,0)
  105. ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
  106.  
  107. local ManaBarText = Instance.new("TextLabel", ManaBarP1)
  108. ManaBarText.Name = "ManaBarText"
  109. ManaBarText.Size = UDim2.new(0,300,0,20)
  110. ManaBarText.Position = UDim2.new(0,0,-1.5,0)
  111. ManaBarText.TextScaled = true
  112. ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
  113. ManaBarText.BackgroundTransparency = 1
  114. ManaBarText.TextStrokeTransparency = 0
  115. ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
  116. ManaBarText.TextColor3 = Color3.new(0,0,0)
  117. ManaBarText.Font = "Garamond"
  118.  
  119. local WorldEaterGui = Instance.new("BillboardGui", Head)
  120. WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
  121. WorldEaterGui.Adornee = Head
  122. WorldEaterGui.AlwaysOnTop = true
  123. WorldEaterGui.Enabled = true
  124. WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
  125.  
  126. local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
  127. WorldEaterText.BackgroundTransparency = 1
  128. WorldEaterText.Font = "Garamond"
  129. WorldEaterText.Size = UDim2.new(0, 200,0, 50)
  130. WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color
  131. WorldEaterText.TextStrokeTransparency = 0
  132. WorldEaterText.TextColor3 = BrickColor.Black().Color
  133. WorldEaterText.TextScaled = true
  134. WorldEaterText.Text = "World Eater"
  135.  
  136. --------[[ Mesh Ids ]]--------
  137.  
  138. SpikeMeshId = 1033714
  139. SpikeBallId = 9982590
  140. StarMeshId = 45428961
  141. CrystalMeshId = 9756362
  142.  
  143. --[[ Essential Functions ]]--
  144. function NoOutlines(Part)
  145. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  146. end
  147.  
  148.  
  149. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  150.  
  151. local Part = Instance.new("Part", Parent)
  152. Part.Name = Name
  153. Part.BrickColor = BrickColor.new(Color)
  154. Part.Size = Size
  155. Part.Material = Material
  156. Part.Transparency = Transparency
  157. Part.Shape = Shape
  158. Part.CanCollide = false
  159. NoOutlines(Part)
  160.  
  161. return Part
  162.  
  163. end
  164.  
  165. local CreateMesh = function(Parent, Scale, Shape)
  166.  
  167.  
  168. local Mesh = Instance.new("BlockMesh", Parent)
  169. Mesh.Scale = Scale
  170.  
  171. return Mesh
  172.  
  173. end
  174.  
  175. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  176.  
  177. local WedgePart = Instance.new("WedgePart", Parent)
  178. WedgePart.Name = Name
  179. WedgePart.BrickColor = BrickColor.new(Color)
  180. WedgePart.Size = Size
  181. WedgePart.Material = Material
  182. WedgePart.Transparency = Transparency
  183. WedgePart.CanCollide = false
  184. NoOutlines(WedgePart)
  185.  
  186. return WedgePart
  187.  
  188. end
  189.  
  190. local CreateWeld = function(Parent, Cframe, P1 , P0)
  191.  
  192. local Weld = Instance.new("Weld", Parent)
  193. Weld.Part0 = P0
  194. Weld.Part1 = P1
  195. Weld.Name = P0.Name .. "To" .. P1.Name
  196. Weld.C0 = Cframe
  197.  
  198. return Weld
  199.  
  200. end
  201.  
  202. local CreateVelocity = function(Parent,Velocity,Force)
  203.  
  204. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  205. BodyVelocity.Velocity = Velocity
  206. BodyVelocity.MaxForce = Force
  207.  
  208.  
  209.  
  210. return BodyVelocity
  211.  
  212. end
  213.  
  214.  
  215. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  216.  
  217.  
  218. local Part = Instance.new("Part", Parent)
  219. Part.Name = Name
  220. Part.BrickColor = BrickColor.new(Color)
  221. Part.Size = Size
  222. Part.Material = Material
  223. Part.Transparency = Transparency
  224. Part.CanCollide = false
  225. NoOutlines(Part)
  226.  
  227. local Mesh = Instance.new("SpecialMesh", Part)
  228. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  229. Mesh.Scale = Scale
  230.  
  231. return Mesh and Part
  232.  
  233. end
  234.  
  235. local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
  236.  
  237. local SFX = Instance.new("Sound", Parent)
  238. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  239. SFX.Name = "SFX"
  240. SFX:Play()
  241. SFX.Volume = Volume
  242. SFX.Pitch = Pitch
  243. SFX.PlayOnRemove = true
  244. SFX:Remove()
  245.  
  246. if Type == "Echo" then
  247.  
  248. Instance.new("EchoSoundEffect", SFX)
  249.  
  250. end
  251.  
  252. end
  253.  
  254. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  255.  
  256.  
  257. local Part = Instance.new("Part", Parent)
  258. Part.Name = Name
  259. Part.BrickColor = BrickColor.new(Color)
  260. Part.Size = Size
  261. Part.Material = Material
  262. Part.Transparency = Transparency
  263. Part.CanCollide = false
  264. NoOutlines(Part)
  265.  
  266. local Mesh = Instance.new("SpecialMesh", Part)
  267. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
  268. Mesh.Scale = Scale
  269.  
  270. return Mesh and Part
  271.  
  272. end
  273.  
  274. CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  275.  
  276. local Part = Instance.new("Part", Parent)
  277. Part.Transparency = Transparency
  278. Part.Name = "CircleEffect"
  279. Part.Size = Vector3.new()
  280. Part.Anchored = true
  281. Part.CanCollide = false
  282. Part.Position = Position
  283. Part.BrickColor = BrickColor.new(Brickcolor)
  284. Part.Material = Material
  285. NoOutlines(Part)
  286.  
  287. local Mesh = Instance.new("SpecialMesh", Part)
  288. Mesh.MeshType = "Sphere"
  289. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  290.  
  291. Services.Debris:AddItem(Part, Time)
  292.  
  293.  
  294. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  295.  
  296.  
  297. end
  298.  
  299. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  300.  
  301. local Part = Instance.new("Part", Parent)
  302. Part.Transparency = Transparency
  303. Part.Name = "BlockEffect"
  304. Part.Size = Vector3.new()
  305. Part.Anchored = true
  306. Part.Position = Position
  307. Part.CanCollide = false
  308. Part.BrickColor = BrickColor.new(Brickcolor)
  309. Part.Material = Material
  310. NoOutlines(Part)
  311.  
  312. local Mesh = Instance.new("BlockMesh", Part)
  313. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  314.  
  315. Services.Debris:AddItem(Part, Time)
  316.  
  317. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  318.  
  319.  
  320. end
  321.  
  322. --[[ Damage function ]]--
  323.  
  324.  
  325. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  326.  
  327. local HitHumanoid = Hit.Parent.Humanoid
  328.  
  329.  
  330. local Damage = math.random(Min, Max)
  331.  
  332.  
  333. coroutine.resume(coroutine.create(function()
  334. HitHumanoid:TakeDamage(Damage)
  335. end))
  336.  
  337. if Type == "Shrink" then
  338. MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)
  339. for i,v in pairs(Hit.Parent:children()) do
  340. if v:IsA("Part") then
  341. coroutine.resume(coroutine.create(function()
  342. for i = 1,100 do
  343. wait()
  344. v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
  345. v.Transparency = v.Transparency + 0.05
  346.  
  347. end
  348. end))
  349. end
  350. end
  351.  
  352. end
  353.  
  354.  
  355.  
  356. if Type == "Normal" then
  357.  
  358. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  359. Services.Debris:AddItem(Push, 0)
  360. DamageLabel(Hit.Parent, Damage, Hit)
  361.  
  362. elseif Type == "Ranged" then
  363. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  364. Services.Debris:AddItem(Push, 0)
  365. DamageLabel(Hit.Parent, Damage, Hit)
  366.  
  367. elseif Type == "Impale" then
  368.  
  369. local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
  370. Spike.Anchored = true
  371. Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
  372. Spike.Position = Hit.Parent.Torso.Position
  373.  
  374.  
  375. Services.Debris:AddItem(Spike, 30)
  376.  
  377. Hit.Parent:BreakJoints()
  378. Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
  379. Hit.Parent.Torso.Anchored = true
  380.  
  381. MakeSFX(Spike, 306247724, 1,1)
  382. MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
  383. elseif Type == "Knockdown" then
  384.  
  385.  
  386. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  387. DamageLabel(Hit.Parent, Damage, Hit)
  388. Services.Debris:AddItem(Push, 0.3)
  389.  
  390. coroutine.resume(coroutine.create(function()
  391.  
  392. HitHumanoid.PlatformStand = true
  393. wait(1)
  394. HitHumanoid.PlatformStand = false
  395.  
  396.  
  397. end))
  398. end
  399.  
  400. if HitSFX == "Penetration" then
  401.  
  402. MakeSFX(Hit, 199149269, 1 , 1)
  403.  
  404. elseif HitSFX == "Punch" then
  405.  
  406. MakeSFX(Hit, 278062209, 1 , 1)
  407.  
  408.  
  409.  
  410.  
  411. end
  412. end
  413.  
  414. function DamageLabel(HitCharacter, DamageDealt, Hit)
  415.  
  416. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  417. DamageShowingPart.Position = HitCharacter.Head.Position
  418.  
  419. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  420. DamageGui.Name = "Damage"
  421. DamageGui.AlwaysOnTop = true
  422. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  423.  
  424. local DamageNumber = Instance.new("TextLabel", DamageGui)
  425. DamageNumber.Size = UDim2.new(1,0,1,0)
  426. if Hit.Parent:FindFirstChild("Head") then
  427. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  428. DamageNumber.TextColor3 = Hit.BrickColor.Color
  429. end
  430. DamageNumber.TextStrokeTransparency = 0
  431. DamageNumber.BackgroundTransparency = 1
  432. DamageNumber.Font = "SourceSansBold"
  433. DamageNumber.TextScaled = true
  434. DamageNumber.Text = DamageDealt
  435.  
  436. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  437. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  438. BodyVelocity.Velocity = Vector3.new(0,2,0)
  439.  
  440. Services.Debris:AddItem(DamageShowingPart, 3)
  441.  
  442.  
  443. end
  444.  
  445. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  446. for _,WorkspaceChildren in pairs(workspace:children()) do
  447.  
  448. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  449.  
  450. if HitHumanoid ~= nil then
  451. local Hit = WorkspaceChildren:findFirstChild("Torso")
  452.  
  453. if Hit ~= nil then
  454.  
  455. local Target = Hit.Position - Part.Position
  456.  
  457. local Magnitude = Target.magnitude
  458.  
  459. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  460.  
  461. local HitBlock = Hit.Parent:FindFirstChild("Block")
  462.  
  463. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  464.  
  465. local HitBlock2 = Hit.Parent.Block.BlockDurability
  466.  
  467. if HitBlock2.Value > 15 then
  468.  
  469. local HitN = math.random(1,5)
  470.  
  471. HitBlock2.Value = HitBlock2.Value - 15
  472.  
  473.  
  474. if HitN == 1 then
  475. MakeSFX(Hit ,199148971, 0.5, 1)
  476. end
  477.  
  478. if HitN == 2 then
  479. MakeSFX(Hit ,199149025, 0.5, 1)
  480. end
  481.  
  482. if HitN == 3 then
  483. MakeSFX(Hit ,199149072, 0.5, 1)
  484. end
  485.  
  486. if HitN == 4 then
  487. MakeSFX(Hit ,199149109, 0.5, 1)
  488. end
  489.  
  490. if HitN == 5 then
  491. MakeSFX(Hit ,199149119, 0.5, 1)
  492. end
  493. return
  494. end
  495. end
  496.  
  497. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  498.  
  499.  
  500.  
  501. end
  502. end
  503. end
  504. end
  505. end
  506.  
  507.  
  508.  
  509. local Cloak = Instance.new("Part", Character)
  510. Cloak.Name = "Cloak"
  511. Cloak.CanCollide = false
  512. Cloak.BrickColor = BrickColor.new("Institutional white")
  513.  
  514. local CloakMesh = Instance.new("SpecialMesh", Cloak)
  515. CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
  516. CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
  517.  
  518. local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
  519.  
  520. for i,v in pairs(Character:children()) do
  521. if v:IsA("Accessory") then
  522. v:Remove()
  523. elseif v:IsA("Shirt") then
  524. v:Remove()
  525. elseif v:IsA("Pants") then
  526. v:Remove()
  527. elseif v:IsA("BodyColors") then
  528.  
  529. Head.BrickColor =BrickColor.new("Really black")
  530. Torso.BrickColor = BrickColor.new("Really black")
  531. Right_Arm.BrickColor = BrickColor.new("Really black")
  532. Right_Leg.BrickColor = BrickColor.new("Really black")
  533. Left_Arm.BrickColor = BrickColor.new("Really black")
  534. Left_Leg.BrickColor = BrickColor.new("Really black")
  535.  
  536. v.HeadColor = BrickColor.new("Really black")
  537. v.TorsoColor = BrickColor.new("Really black")
  538. v.RightArmColor = BrickColor.new("Really black")
  539. v.LeftArmColor = BrickColor.new("Really black")
  540. v.RightLegColor = BrickColor.new("Really black")
  541. v.LeftLegColor = BrickColor.new("Really black")
  542.  
  543. end
  544. end
  545.  
  546.  
  547.  
  548. --[[ CLerp Declarations ]]--
  549.  
  550. function clerp(a,b,t)
  551. local qa = {QuaternionFromCFrame(a)}
  552. local qb = {QuaternionFromCFrame(b)}
  553. local ax, ay, az = a.x, a.y, a.z
  554. local bx, by, bz = b.x, b.y, b.z
  555. local _t = 1-t
  556. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  557. end
  558.  
  559. function QuaternionFromCFrame(cf) -- dis one
  560. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  561. local trace = m00 + m11 + m22
  562. if trace > 0 then
  563. local s = math.sqrt(1 + trace)
  564. local recip = 0.5/s
  565. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  566. else
  567. local i = 0
  568. if m11 > m00 then
  569. i = 1
  570. end
  571. if m22 > (i == 0 and m00 or m11) then
  572. i = 2
  573. end
  574. if i == 0 then
  575. local s = math.sqrt(m00-m11-m22+1)
  576. local recip = 0.5/s
  577. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  578. elseif i == 1 then
  579. local s = math.sqrt(m11-m22-m00+1)
  580. local recip = 0.5/s
  581. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  582. elseif i == 2 then
  583. local s = math.sqrt(m22-m00-m11+1)
  584. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  585. end
  586. end
  587. end
  588.  
  589. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  590. local xs, ys, zs = x + x, y + y, z + z
  591. local wx, wy, wz = w*xs, w*ys, w*zs
  592. local xx = x*xs
  593. local xy = x*ys
  594. local xz = x*zs
  595. local yy = y*ys
  596. local yz = y*zs
  597. local zz = z*zs
  598. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  599. end
  600.  
  601. function QuaternionSlerp(a, b, t)
  602. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  603. local startInterp, finishInterp;
  604. if cosTheta >= 0.0001 then
  605. if (1 - cosTheta) > 0.0001 then
  606. local theta = math.acos(cosTheta)
  607. local invSinTheta = 1/math.sin(theta)
  608. startInterp = math.sin((1-t)*theta)*invSinTheta
  609. finishInterp = math.sin(t*theta)*invSinTheta
  610. else
  611. startInterp = 1-t
  612. finishInterp = t
  613. end
  614. else
  615. if (1+cosTheta) > 0.0001 then
  616. local theta = math.acos(-cosTheta)
  617. local invSinTheta = 1/math.sin(theta)
  618. startInterp = math.sin((t-1)*theta)*invSinTheta
  619. finishInterp = math.sin(t*theta)*invSinTheta
  620. else
  621. startInterp = t-1
  622. finishInterp = t
  623. end
  624. end
  625. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  626. end
  627.  
  628. function RayCast(Pos, Dir, Max, Ignore)
  629. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  630. end
  631.  
  632.  
  633. function Bars()
  634.  
  635. --[[ Mana Bar ]]--
  636. if Destruction ~= MaxDestruction then
  637.  
  638. Destruction = Destruction + 1
  639.  
  640. end
  641.  
  642. if Destruction >= MaxDestruction then
  643.  
  644. Destruction = Destruction
  645.  
  646. end
  647.  
  648.  
  649. ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
  650.  
  651. ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)
  652.  
  653. end
  654. local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  655. local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
  656.  
  657. coroutine.resume(coroutine.create(function()
  658.  
  659. while wait(3) do
  660.  
  661.  
  662. CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
  663.  
  664.  
  665. end
  666.  
  667. end))
  668. --[[ Attacks ]]--
  669.  
  670. function Attack1()
  671. Attacking = true
  672. MakeSFX(EyeReference, 341336274, 1,1)
  673. wait(0.3)
  674. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  675. local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root)
  676.  
  677. local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  678. local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root)
  679.  
  680.  
  681. for i = 1,10 do
  682.  
  683. wait()
  684. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
  685. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
  686. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  687. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
  688. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
  689. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3)
  690.  
  691. end
  692.  
  693. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  694. wait(0.5)
  695. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  696. wait(0.5)
  697. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  698. wait(0.5)
  699. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  700. wait(0.5)
  701. MakeSFX(Reference, 306247724, 1,1)
  702. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  703. ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
  704. Attacking = false
  705. end
  706.  
  707. function Attack2()
  708.  
  709. Attacking = true
  710. Humanoid.WalkSpeed = 0
  711. Humanoid.JumpPower = 0
  712.  
  713.  
  714. for i = 1,25 do
  715. wait()
  716.  
  717. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
  718. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  719. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
  720. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
  721. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  722. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  723.  
  724. end
  725.  
  726. MakeSFX(Torso, 142070127, 1, 1)
  727. ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
  728. local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  729. if Hit ~= nil then
  730. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  731. Reference.Anchored = true
  732. Reference.CFrame = CFrame.new(Position)
  733.  
  734. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  735.  
  736. game:GetService("Debris"):AddItem(Reference,0.1)
  737. for i=1,50 do
  738.  
  739. local Ground = CreatePart(Services.Workspace, "Ground", Hit.BrickColor.Color, Vector3.new(math.random(1,3), math.random(1,3), math.random(1,3)), Hit.Material, 0, "Block")
  740. Ground.Anchored = true
  741. Ground.CanCollide = true
  742. Ground.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30,30), 0, math.random(-30,30)) * CFrame.Angles(math.random(-50,50),math.random(-50,50), math.random(-50,50))
  743.  
  744. game:GetService("Debris"):AddItem(Ground,10)
  745.  
  746. end
  747. end
  748.  
  749. for i = 1,25 do
  750. wait()
  751.  
  752. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
  753. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  754. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  755. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  756. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  757. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  758.  
  759. end
  760.  
  761. Attacking = false
  762. Humanoid.WalkSpeed = 16
  763. Humanoid.JumpPower = 50
  764.  
  765.  
  766.  
  767. end
  768.  
  769.  
  770. function Attack3()
  771. Humanoid.WalkSpeed = 0
  772. Humanoid.JumpPower = 0
  773. Attacking = true
  774. wait(1)
  775. MakeSFX(Torso, 341336274, 1, 1.2)
  776. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  777. wait(1)
  778. MakeSFX(Torso, 341336274, 1, 1.2)
  779. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  780. wait(1)
  781. MakeSFX(Torso, 341336274, 1, 1.2)
  782. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  783. ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
  784. Humanoid.WalkSpeed = 16
  785. Humanoid.JumpPower = 50
  786. Attacking = false
  787. end
  788.  
  789. Mouse.Button1Down:connect(function()
  790. if not Attacking then
  791. if Combo == 1 then
  792.  
  793. Combo = 2
  794. Attack1()
  795.  
  796.  
  797. elseif Combo == 2 then
  798.  
  799. Attack2()
  800. Combo = 3
  801.  
  802. elseif Combo == 3 then
  803.  
  804. Attack3()
  805. Combo = 1
  806.  
  807. end
  808. end
  809. end)
  810.  
  811. --[[ CLerp Animations ]]--
  812. Change1 = 0
  813. Change2 = 0
  814. Change3 = 0
  815. Change4 = 0
  816.  
  817. while true do
  818. wait()
  819.  
  820. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  821. local Velderp = Root.Velocity.y
  822. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  823.  
  824. Bars()
  825.  
  826.  
  827. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  828. Anim = "Idle"
  829.  
  830. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  831. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  832. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  833. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  834. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
  835. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
  836.  
  837. end
  838.  
  839.  
  840. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  841. Anim = "Walking"
  842.  
  843. if Invert == false then
  844. Change1 = Change1 + 0.1
  845.  
  846. elseif Invert == true then
  847.  
  848. Change1 = Change1 - 0.1
  849.  
  850. end
  851.  
  852. if Change1 > 0.5 then
  853.  
  854. Invert = true
  855.  
  856. elseif Change1 < -0.5 then
  857.  
  858. Invert = false
  859.  
  860. end
  861.  
  862. if Attacking == false then
  863.  
  864. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  865. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  866. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
  867. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
  868. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
  869. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
  870.  
  871. end
  872. end
  873.  
  874. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  875. Anim = "Jump"
  876.  
  877. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  878. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  879. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
  880. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
  881. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  882. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  883.  
  884. end
  885.  
  886. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  887. Anim = "Fall"
  888.  
  889. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  890. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  891. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
  892. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
  893. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  894. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  895.  
  896. end
  897.  
  898.  
  899. if #Effects > 0 then
  900. for E = 1, #Effects do
  901. if Effects[E]~=nil then
  902. local Effect = Effects[E]
  903.  
  904. if Effect ~= nil then
  905.  
  906. local Part = Effect[1]
  907. local Mode = Effect[2]
  908. local Time = Effect[3]
  909. local SizeX = Effect[4]
  910. local SizeY = Effect[5]
  911. local SizeZ = Effect[6]
  912.  
  913. if Effect[1].Transparency <= 1 then
  914. if Effect[2] == "Block" then
  915. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  916.  
  917. Mesh = Effect[1]:FindFirstChild("Mesh")
  918. if Mesh ~= nil then
  919. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  920. end
  921.  
  922. elseif Effect[2] == "Circle" then
  923.  
  924. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  925. Mesh=Effect[1].Mesh
  926. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  927. end
  928.  
  929. Effect[1].Transparency = Effect[1].Transparency + 0.05
  930.  
  931. else
  932.  
  933. Part.Parent=nil
  934.  
  935. table.remove(Effects, E)
  936.  
  937. end
  938. end
  939. end
  940. end
  941. end
  942. end
  943. end
  944. WorldEaterText.Text = "Get Ready"
  945. wait(5)
  946. if game.Players.LocalPlayer.Character.Animate.Disabled==false then
  947. game.Players.LocalPlayer.Character.Animate.Disabled=true
  948. end
  949. wait()
  950. local Player=game.Players.LocalPlayer
  951. repeat wait()
  952. until Player
  953. local Char=Player.Character
  954. repeat wait()
  955. until Char
  956. local CurrentEffects={}
  957. local CurrentDamages={}
  958. local Human=Char.Humanoid
  959. --local LArm=Char["Left Arm"]
  960. --local RArm=Char["Right Arm"]
  961. ---local LLeg=Char["Left Leg"]
  962. ---local RLeg=Char["Right Leg"]
  963. local Torso=Char.Torso
  964. ---local RS=Torso["Right Shoulder"]
  965. ---local LS=Torso["Left Shoulder"]
  966. ---local RH=Torso["Right Hip"]
  967. ---local LH=Torso["Left Hip"]
  968. local Head=Char.Head
  969. --local Neck=Torso.Neck
  970. local RootPart=Char.HumanoidRootPart
  971. local RootJoint=RootPart.RootJoint
  972. local equipped=false
  973. local Debounce=false
  974. local Anim="Idle"
  975. local chat = game:GetService("Chat")
  976. local Mouse=Player:GetMouse()
  977. local Lighting=game.Lighting
  978. local cf=CFrame.new
  979. local v3=Vector3.new
  980. local c3=Color3.new
  981. local it=Instance.new
  982. local angles=CFrame.Angles
  983. local rad=math.rad
  984. local ran=math.random
  985. local huge=math.huge
  986. local attacking=false
  987. local attacktype=1
  988. local Portalling=false
  989. local p = game.Players.LocalPlayer
  990. local char = p.Character
  991. local mouse = p:GetMouse()
  992. local larm = char["Left Arm"]
  993. local rarm = char["Right Arm"]
  994. local lleg = char["Left Leg"]
  995. local rleg = char["Right Leg"]
  996. local hed = char.Head
  997. local torso = char.Torso
  998. local hum = char.Humanoid
  999. local cam = game.Workspace.CurrentCamera
  1000. local root = char.HumanoidRootPart
  1001. local deb = false
  1002. local shot = 0
  1003. local debris=game:service"Debris"
  1004. local l = game:GetService("Lighting")
  1005. local rs = game:GetService("RunService").RenderStepped
  1006. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1007. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1008. LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1009. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1010. RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1011. ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1012. r=game:service'RunService'.RenderStepped
  1013. clerp=function(a,b,t)
  1014. return a:lerp(b,t)
  1015. end
  1016.  
  1017.  
  1018. local Rainbow = { --This is the main color set. Try to use more than just a few, make it fade in order as well
  1019. "Lime green",
  1020. }
  1021.  
  1022. Debounces = {
  1023. CanAttack = true;
  1024. NoIdl = false;
  1025. Slashing = false;
  1026. Slashed = false;
  1027. RPunch = false;
  1028. Invisible = false;
  1029. RPunched = false;
  1030. LPunch = false;
  1031. LPunched = false;
  1032. }
  1033. local Touche = {char.Name, }
  1034.  
  1035.  
  1036. function genWeld(a,b)
  1037. local w = Instance.new("Weld",a)
  1038. w.Part0 = a
  1039. w.Part1 = b
  1040. return w
  1041. end
  1042. function weld(a, b)
  1043. local weld = Instance.new("Weld")
  1044. weld.Name = "W"
  1045. weld.Part0 = a
  1046. weld.Part1 = b
  1047. weld.C0 = a.CFrame:inverse() * b.CFrame
  1048. weld.Parent = a
  1049. return weld;
  1050. end
  1051. ----------------------------------------------------
  1052. function Lerp(c1,c2,al)
  1053. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1054. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1055. for i,v in pairs(com1) do
  1056. com1[i] = v+(com2[i]-v)*al
  1057. end
  1058. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1059. end
  1060. ----------------------------------------------------
  1061. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1062. local wld = Instance.new("Weld", wp1)
  1063. wld.Part0 = wp0
  1064. wld.Part1 = wp1
  1065. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1066. end
  1067. ----------------------------------------------------
  1068. function weld5(part0, part1, c0, c1)
  1069. weeld=Instance.new("Weld", part0)
  1070. weeld.Part0=part0
  1071. weeld.Part1=part1
  1072. weeld.C0=c0
  1073. weeld.C1=c1
  1074. return weeld
  1075. end
  1076. ----------------------------------------------------
  1077. function HasntTouched(plrname)
  1078. local ret = true
  1079. for _, v in pairs(Touche) do
  1080. if v == plrname then
  1081. ret = false
  1082. end
  1083. end
  1084. return ret
  1085. end
  1086. ----------------------------------------------------
  1087. newWeld(torso, larm, -1.5, 0.5, 0)
  1088. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1089. newWeld(torso, rarm, 1.5, 0.5, 0)
  1090. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1091. newWeld(torso, hed, 0, 1.5, 0)
  1092. newWeld(torso, lleg, -0.5, -1, 0)
  1093. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1094. newWeld(torso, rleg, 0.5, -1, 0)
  1095. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1096. newWeld(root, torso, 0, -1, 0)
  1097. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1098.  
  1099.  
  1100.  
  1101. p = Instance.new("Part")
  1102. p.BrickColor = BrickColor.new("Lime green")
  1103. p.Transparency = 1
  1104. TorsoColor = p.BrickColor
  1105.  
  1106. local Transforming = true
  1107. Human.WalkSpeed = 0
  1108. local fx = Instance.new("Part",Torso)
  1109. wit = p.BrickColor.Color
  1110. wit2 = Color3.new(0,255,0)
  1111. local glowz = Instance.new("ParticleEmitter",fx)
  1112. glowz.LightEmission = 1
  1113. glowz.Texture = "rbxassetid://284205403"
  1114. glowz.Color = ColorSequence.new(wit)
  1115. glowz.Size = NumberSequence.new(5)
  1116. glowz.Speed = NumberRange.new(25,50)
  1117. glowz.LockedToPart = false
  1118. glowz.Transparency = NumberSequence.new(0.75)
  1119. glowz.RotSpeed = NumberRange.new(-2000,2000)
  1120. glowz.Lifetime = NumberRange.new(1)
  1121. glowz.Rate = 50000
  1122. glowz.VelocitySpread = 9001
  1123. local glowz2 = Instance.new("ParticleEmitter",fx)
  1124. glowz2.LightEmission = 0.5
  1125. glowz.Texture = "rbxassetid://284205403"
  1126. glowz2.Color = ColorSequence.new(wit2)
  1127. glowz2.Size = NumberSequence.new(5)
  1128. glowz2.Speed = NumberRange.new(25,50)
  1129. glowz2.LockedToPart = false
  1130. glowz2.Transparency = NumberSequence.new(0.75)
  1131. glowz2.RotSpeed = NumberRange.new(-2000,2000)
  1132. glowz2.Lifetime = NumberRange.new(1)
  1133. glowz2.Rate = 50000
  1134. glowz2.VelocitySpread = 9001
  1135. fx.Anchored = true
  1136. fx.Material = "Neon"
  1137. fx.CanCollide = false
  1138. fx.Locked = true
  1139. fx.Transparency = 1
  1140. fx.Material = "Neon"
  1141. fx.Size = Vector3.new(1,1,1)
  1142. fx.TopSurface = "SmoothNoOutlines"
  1143. fx.BottomSurface = "SmoothNoOutlines"
  1144. fx.BrickColor = BrickColor.new("Really black")
  1145. fxm = Instance.new("SpecialMesh",fx)
  1146. fxm.MeshType = "Sphere"
  1147. local sa2 = Instance.new("Sound",Torso)
  1148. sa2.SoundId = "rbxassetid://93724183"
  1149. sa2.Pitch = 0.5
  1150. sa2.Volume = 5
  1151. sa2.Looped = false
  1152. sa2:Play()
  1153. local value = 1
  1154. fxm.Scale = Vector3.new(1,1,1)
  1155. for i = 1, 20 do rs:wait()
  1156. value = value - 0.05
  1157. fx.Transparency = fx.Transparency - (1/20)
  1158. fx.CFrame = Torso.CFrame
  1159. fxm.Scale = fxm.Scale + Vector3.new(value,value,value)
  1160. rs:wait()
  1161. end
  1162. ----------------------------------------------------
  1163. GroundWave1 = function()
  1164. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1165. local Colors = {"Pastel blue-green", "Really black"}
  1166. local wave = Instance.new("Part", Torso)
  1167. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1168. wave.Anchored = true
  1169. wave.CanCollide = false
  1170. wave.Locked = true
  1171. wave.Size = Vector3.new(1, 1, 1)
  1172. wave.TopSurface = "Smooth"
  1173. wave.BottomSurface = "Smooth"
  1174. wave.Transparency = 0.35
  1175. wave.CFrame = HandCF
  1176. wm = Instance.new("SpecialMesh", wave)
  1177. wm.MeshId = "rbxassetid://3270017"
  1178. coroutine.wrap(function()
  1179. for i = 1, 30, 1 do
  1180. wm.Scale = Vector3.new(50, 50, 1 + i*50)
  1181. wave.Size = wm.Scale
  1182. wave.CFrame = HandCF
  1183. wave.Transparency = i/30
  1184. wait()
  1185. end
  1186. wait()
  1187. wave:Destroy()
  1188. end)()
  1189. end
  1190. ----------------------------------------------------
  1191.  
  1192.  
  1193. GroundWave3 = function()
  1194. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1195. local Colors = {"Lime green", "Lime green"}
  1196. local wave = Instance.new("Part", torso)
  1197. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1198. wave.Anchored = true
  1199. wave.CanCollide = false
  1200. wave.Locked = true
  1201. wave.Size = Vector3.new(1, 1, 1)
  1202. wave.TopSurface = "Smooth"
  1203. wave.BottomSurface = "Smooth"
  1204. wave.Transparency = 0.35
  1205. wave.CFrame = HandCF
  1206. wm = Instance.new("SpecialMesh", wave)
  1207. wm.MeshId = "rbxassetid://3270017"
  1208. coroutine.wrap(function()
  1209. for i = 1, 14, 1 do
  1210. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  1211. wave.Size = wm.Scale
  1212. wave.CFrame = HandCF
  1213. wave.Transparency = i/14
  1214. wait()
  1215. end
  1216. wait()
  1217. wave:Destroy()
  1218. end)()
  1219. end
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225. local acos = math.acos
  1226. local sqrt = math.sqrt
  1227. local Vec3 = Vector3.new
  1228. local fromAxisAngle = CFrame.fromAxisAngle
  1229.  
  1230. local function toAxisAngle(CFr)
  1231. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  1232. local Angle = math.acos((R00+R11+R22-1)/2)
  1233. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1234. A = A == 0 and 0.00001 or A
  1235. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1236. B = B == 0 and 0.00001 or B
  1237. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1238. C = C == 0 and 0.00001 or C
  1239. local x = (R21-R12)/sqrt(A)
  1240. local y = (R02-R20)/sqrt(B)
  1241. local z = (R10-R01)/sqrt(C)
  1242. return Vec3(x,y,z),Angle
  1243. end
  1244.  
  1245. local acos = math.acos
  1246. local sqrt = math.sqrt
  1247. local Vec3 = Vector3.new
  1248. local fromAxisAngle = CFrame.fromAxisAngle
  1249.  
  1250. local function toAxisAngle(CFr)
  1251. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  1252. local Angle = math.acos((R00+R11+R22-1)/2)
  1253. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1254. A = A == 0 and 0.00001 or A
  1255. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1256. B = B == 0 and 0.00001 or B
  1257. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1258. C = C == 0 and 0.00001 or C
  1259. local x = (R21-R12)/sqrt(A)
  1260. local y = (R02-R20)/sqrt(B)
  1261. local z = (R10-R01)/sqrt(C)
  1262. return Vec3(x,y,z),Angle
  1263. end
  1264.  
  1265. function ApplyTrig(Num,Func)
  1266. local Min,Max = Func(0),Func(1)
  1267. local i = Func(Num)
  1268. return (i-Min)/(Max-Min)
  1269. --[[if Func == "sin" then
  1270. return (math.sin((1-Num)*math.pi)+1)/2
  1271. elseif Func == "cos" then
  1272. return (math.cos((1-Num)*math.pi)+1)/2
  1273. end]]
  1274. end
  1275.  
  1276. function LerpCFrame(CFrame1,CFrame2,Num)
  1277. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  1278. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  1279. end
  1280.  
  1281.  
  1282.  
  1283. function Crater(Torso,Radius)
  1284. Spawn(function()
  1285. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  1286. local Ignore = {}
  1287. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1288. if v.Character ~= nil then
  1289. Ignore[#Ignore+1] = v.Character
  1290. end
  1291. end
  1292. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  1293. if Hit == nil then return end
  1294. local Parts = {}
  1295. for i = 1,360,10 do
  1296. local P = Instance.new("Part",Torso.Parent)
  1297. P.Anchored = true
  1298. P.FormFactor = "Custom"
  1299. P.BrickColor = BrickColor.new("Lime green")
  1300. P.Material = "Granite"
  1301. P.TopSurface = "Smooth"
  1302. P.BottomSurface = "Smooth"
  1303. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  1304. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  1305. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  1306. if math.random(0,5) == 0 then -- rubble
  1307. local P = Instance.new("Part",Torso.Parent)
  1308. P.Anchored = true
  1309. P.FormFactor = "Custom"
  1310. P.BrickColor = BrickColor.new("Lime green")
  1311. P.Material = Hit.Material
  1312. P.TopSurface = "Smooth"
  1313. P.BottomSurface = "Smooth"
  1314. P.Size = Vector3.new(5,5,5)*(math.random(80,100)/100)
  1315. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  1316. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  1317. end
  1318. end
  1319. for i = 0,1,0.05 do
  1320. for i2,v in pairs(Parts) do
  1321. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  1322. end
  1323. wait(0.02)
  1324. end
  1325. for i,v in pairs(Parts) do
  1326. if v[1].Size.X > 2.1 then
  1327. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  1328. end
  1329. v[1].Anchored = false
  1330. end
  1331. for i = 0,1,0.05 do
  1332. for i2,v in pairs(Parts) do
  1333. v[1].Transparency = i
  1334. if i == 1 then
  1335. v[1]:Destroy()
  1336. elseif i >= 0.25 then
  1337. v[1].CanCollide = false
  1338. end
  1339. end
  1340. wait(0.02)
  1341. end
  1342. Parts = nil
  1343. end)
  1344. end
  1345.  
  1346.  
  1347.  
  1348. GroundWave = function()
  1349. if Transforming == true then
  1350. local value = 5
  1351. local value2 = 10
  1352. local value3 = 20
  1353. local sa2 = Instance.new("Sound",Torso)
  1354. sa2.SoundId = "rbxassetid://393621716"
  1355. sa2.Pitch = 1
  1356. sa2.Volume = 10
  1357. sa2.Looped = false
  1358. sa2:Play()
  1359. local wave = Instance.new("Part", Torso)
  1360. local glowz = Instance.new("ParticleEmitter",wave)
  1361. glowz.LightEmission = 1
  1362. glowz.Texture = "rbxassetid://284205403"
  1363. glowz.Color = ColorSequence.new(wit)
  1364. glowz.Size = NumberSequence.new(30)
  1365. glowz.Speed = NumberRange.new(25,100)
  1366. glowz.LockedToPart = false
  1367. glowz.Transparency = NumberSequence.new(0.75)
  1368. glowz.RotSpeed = NumberRange.new(-2000,2000)
  1369. glowz.Lifetime = NumberRange.new(1)
  1370. glowz.Rate = 50000
  1371. glowz.VelocitySpread = 9001
  1372. local glowz2 = Instance.new("ParticleEmitter",wave)
  1373. glowz2.LightEmission = 1
  1374. glowz.Texture = "rbxassetid://284205403"
  1375. glowz2.Color = ColorSequence.new(wit)
  1376. glowz2.Size = NumberSequence.new(30)
  1377. glowz2.Speed = NumberRange.new(25,100)
  1378. glowz2.LockedToPart = false
  1379. glowz2.Transparency = NumberSequence.new(0.75)
  1380. glowz2.RotSpeed = NumberRange.new(-2000,2000)
  1381. glowz2.Lifetime = NumberRange.new(1)
  1382. glowz2.Rate = 50000
  1383. glowz2.VelocitySpread = 9001
  1384. wave.BrickColor = BrickColor.new("Really black")
  1385. wave.Anchored = true
  1386. wave.CanCollide = false
  1387. wave.Locked = true
  1388. wave.Size = Vector3.new(1, 1, 1)
  1389. wave.TopSurface = "Smooth"
  1390. wave.BottomSurface = "Smooth"
  1391. wave.Transparency = 0.35
  1392. wave.CFrame = fx.CFrame
  1393. wave.Material = "Neon"
  1394. wm = Instance.new("SpecialMesh", wave)
  1395. wm.MeshType = "Sphere"
  1396. wm.Scale = Vector3.new(1,1,1)
  1397. local wave2 = Instance.new("Part", Torso)
  1398. wave2.BrickColor = TorsoColor
  1399. wave2.Anchored = true
  1400. wave2.CanCollide = false
  1401. wave2.Locked = true
  1402. wave2.Size = Vector3.new(1, 1, 1)
  1403. wave2.TopSurface = "Smooth"
  1404. wave2.BottomSurface = "Smooth"
  1405. wave2.Transparency = 0.35
  1406. wave2.CFrame = fx.CFrame
  1407. wave2.Material = "Neon"
  1408. wm2 = Instance.new("SpecialMesh", wave2)
  1409. wm2.MeshType = "FileMesh"
  1410. wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1411. wm2.Scale = Vector3.new(1,1,1)
  1412. local wave3 = Instance.new("Part", Torso)
  1413. wave3.BrickColor = BrickColor.new("Really black")
  1414. wave3.Anchored = true
  1415. wave3.CanCollide = false
  1416. wave3.Locked = true
  1417. wave3.Size = Vector3.new(1, 1, 1)
  1418. wave3.TopSurface = "Smooth"
  1419. wave3.BottomSurface = "Smooth"
  1420. wave3.Transparency = 0.35
  1421. wave3.CFrame = fx.CFrame
  1422. wave3.Material = "Neon"
  1423. wm3 = Instance.new("SpecialMesh", wave3)
  1424. wm3.MeshType = "FileMesh"
  1425. wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1426. wm3.Scale = Vector3.new(1,1,1)
  1427. coroutine.wrap(function()
  1428. for i = 1, 18, 1 do
  1429. value = value - 0.5
  1430. value2 = value2 - 0.75*1.5
  1431. value3 = value3 - 0.475*1.5
  1432. wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5)
  1433. wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5)
  1434. wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25)
  1435. --wave.Size = wm.Scale
  1436. wave.CFrame = fx.CFrame
  1437. wave.Transparency = i/14
  1438. --wave2.Size = wm2.Scale
  1439. wave2.CFrame = fx.CFrame
  1440. wave2.Rotation = Vector3.new(90, 0, 0)
  1441. wave2.Transparency = i/14
  1442. --wave3.Size = wm3.Scale
  1443. wave3.CFrame = fx.CFrame
  1444. wave3.Rotation = Vector3.new(90, 0, 0)
  1445. wave3.Transparency = i/14
  1446. wait()
  1447. glowz.Rate = 0
  1448. glowz2.Rate = 0
  1449. end
  1450. wait()
  1451. wave:Destroy()
  1452. wave2:Destroy()
  1453. wave3:Destroy()
  1454. end)()
  1455. elseif Transforming == false then
  1456. wait()
  1457. end
  1458. end
  1459.  
  1460. for i = 1, 100 do rs:wait()
  1461. fx.CFrame = Torso.CFrame
  1462. end
  1463.  
  1464. spawn(function()
  1465. while wait(1) do
  1466. GroundWave()
  1467. end
  1468. end)
  1469.  
  1470. wait(4)
  1471.  
  1472. Transforming = false
  1473.  
  1474.  
  1475.  
  1476. local value2 = 1
  1477. for i = 1, 20 do rs:wait()
  1478. value2 = value2 - 0.05
  1479. glowz.Rate = 0
  1480. glowz2.Rate = 0
  1481. fx.Transparency = fx.Transparency + (1/20)
  1482. fx.CFrame = torso.CFrame
  1483. fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2)
  1484. rs:wait()
  1485. end
  1486. glowz:Destroy()
  1487. glowz2:Destroy()
  1488.  
  1489. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1490. local valuer = 5
  1491. local valuer2 = 10
  1492. local valuer3 = 15
  1493. local sa2 = Instance.new("Sound",torso)
  1494. sa2.SoundId = "rbxassetid://130972023"
  1495. sa2.Pitch = 1
  1496. sa2.Volume = 5
  1497. sa2.Looped = false
  1498. sa2:Play()
  1499. local sar2 = Instance.new("Sound",torso)
  1500. sar2.SoundId = "rbxassetid://153274423"
  1501. sar2.Pitch = 1
  1502. sar2.Volume = 5
  1503. sar2.Looped = false
  1504. sar2:Play()
  1505. local Mus = Instance.new("Sound",torso)
  1506. Mus.SoundId = "rbxassetid://397952612"
  1507. Mus.Pitch = 1
  1508. Mus.Volume = 6
  1509. Mus.Looped = true
  1510. Mus:Play()
  1511. Crater(torso,67)
  1512. local wave = Instance.new("Part", torso)
  1513. wave.BrickColor = TorsoColor
  1514. wave.Anchored = true
  1515. wave.CanCollide = false
  1516. wave.Locked = true
  1517. wave.Size = Vector3.new(1, 1, 1)
  1518. wave.TopSurface = "Smooth"
  1519. wave.BottomSurface = "Smooth"
  1520. wave.Transparency = 0.35
  1521. wave.CFrame = HandCF
  1522. wm = Instance.new("SpecialMesh", wave)
  1523. wm.MeshId = "rbxassetid://3270017"
  1524. local wave2 = Instance.new("Part", torso)
  1525. wave2.BrickColor = BrickColor.new("Really black")
  1526. wave2.Anchored = true
  1527. wave2.CanCollide = false
  1528. wave2.Locked = true
  1529. wave2.Size = Vector3.new(1, 1, 1)
  1530. wave2.TopSurface = "Smooth"
  1531. wave2.BottomSurface = "Smooth"
  1532. wave2.Transparency = 0.35
  1533. wave2.CFrame = HandCF
  1534. wm2 = Instance.new("SpecialMesh", wave2)
  1535. wm2.MeshId = "rbxassetid://3270017"
  1536. local wave3 = Instance.new("Part", torso)
  1537. wave3.BrickColor = TorsoColor
  1538. wave3.Anchored = true
  1539. wave3.CanCollide = false
  1540. wave3.Locked = true
  1541. wave3.Size = Vector3.new(1, 1, 1)
  1542. wave3.TopSurface = "Smooth"
  1543. wave3.BottomSurface = "Smooth"
  1544. wave3.Transparency = 0.35
  1545. wave3.CFrame = HandCF
  1546. wm3 = Instance.new("SpecialMesh", wave3)
  1547. wm3.MeshId = "rbxassetid://3270017"
  1548. coroutine.wrap(function()
  1549. for i = 1, 14, 1 do
  1550. valuer = valuer - 0.35
  1551. valuer2 = valuer - 0.45
  1552. valuer3 = valuer3 - 0.475
  1553. wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
  1554. wave.Size = wm.Scale
  1555. wave.CFrame = HandCF
  1556. wave.Transparency = i/14
  1557. wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
  1558. wave2.Size = wm2.Scale
  1559. wave2.CFrame = HandCF
  1560. wave2.Transparency = i/14
  1561. wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
  1562. wave3.Size = wm2.Scale
  1563. wave3.CFrame = HandCF
  1564. wave3.Transparency = i/14
  1565. wait()
  1566. end
  1567. wait()
  1568. wave:Destroy()
  1569. wave2:Destroy()
  1570. end)()
  1571. hum.WalkSpeed = 16
  1572.  
  1573. spawn(function()
  1574. while wait(2)
  1575. do
  1576. GroundWave3()
  1577. end
  1578. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement