Advertisement
memberhero

Untitled

Nov 28th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.17 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. local Player=game.Players.LocalPlayer
  945. repeat wait()
  946. until Player
  947. local Char=Player.Character
  948. repeat wait()
  949. until Char
  950. local CurrentEffects={}
  951. local CurrentDamages={}
  952. local Human=Char.Humanoid
  953. --local LArm=Char["Left Arm"]
  954. --local RArm=Char["Right Arm"]
  955. ---local LLeg=Char["Left Leg"]
  956. ---local RLeg=Char["Right Leg"]
  957. local Torso=Char.Torso
  958. ---local RS=Torso["Right Shoulder"]
  959. ---local LS=Torso["Left Shoulder"]
  960. ---local RH=Torso["Right Hip"]
  961. ---local LH=Torso["Left Hip"]
  962. local Head=Char.Head
  963. --local Neck=Torso.Neck
  964. local RootPart=Char.HumanoidRootPart
  965. local RootJoint=RootPart.RootJoint
  966. local equipped=false
  967. local Debounce=false
  968. local Anim="Idle"
  969. local chat = game:GetService("Chat")
  970. local Mouse=Player:GetMouse()
  971. local Lighting=game.Lighting
  972. local cf=CFrame.new
  973. local v3=Vector3.new
  974. local c3=Color3.new
  975. local it=Instance.new
  976. local angles=CFrame.Angles
  977. local rad=math.rad
  978. local ran=math.random
  979. local huge=math.huge
  980. local attacking=false
  981. local attacktype=1
  982. local Portalling=false
  983. local p = game.Players.LocalPlayer
  984. local char = p.Character
  985. local mouse = p:GetMouse()
  986. local larm = char["Left Arm"]
  987. local rarm = char["Right Arm"]
  988. local lleg = char["Left Leg"]
  989. local rleg = char["Right Leg"]
  990. local hed = char.Head
  991. local torso = char.Torso
  992. local hum = char.Humanoid
  993. local cam = game.Workspace.CurrentCamera
  994. local root = char.HumanoidRootPart
  995. local deb = false
  996. local shot = 0
  997. local debris=game:service"Debris"
  998. local l = game:GetService("Lighting")
  999. local rs = game:GetService("RunService").RenderStepped
  1000. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1001. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1002. LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1003. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1004. RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1005. ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1006. r=game:service'RunService'.RenderStepped
  1007. clerp=function(a,b,t)
  1008. return a:lerp(b,t)
  1009. end
  1010.  
  1011.  
  1012. local Rainbow = { --This is the main color set. Try to use more than just a few, make it fade in order as well
  1013. "Lime green",
  1014. }
  1015.  
  1016. Debounces = {
  1017. CanAttack = true;
  1018. NoIdl = false;
  1019. Slashing = false;
  1020. Slashed = false;
  1021. RPunch = false;
  1022. Invisible = false;
  1023. RPunched = false;
  1024. LPunch = false;
  1025. LPunched = false;
  1026. }
  1027. local Touche = {char.Name, }
  1028.  
  1029.  
  1030. function genWeld(a,b)
  1031. local w = Instance.new("Weld",a)
  1032. w.Part0 = a
  1033. w.Part1 = b
  1034. return w
  1035. end
  1036. function weld(a, b)
  1037. local weld = Instance.new("Weld")
  1038. weld.Name = "W"
  1039. weld.Part0 = a
  1040. weld.Part1 = b
  1041. weld.C0 = a.CFrame:inverse() * b.CFrame
  1042. weld.Parent = a
  1043. return weld;
  1044. end
  1045. ----------------------------------------------------
  1046. function Lerp(c1,c2,al)
  1047. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1048. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1049. for i,v in pairs(com1) do
  1050. com1[i] = v+(com2[i]-v)*al
  1051. end
  1052. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1053. end
  1054. ----------------------------------------------------
  1055. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1056. local wld = Instance.new("Weld", wp1)
  1057. wld.Part0 = wp0
  1058. wld.Part1 = wp1
  1059. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1060. end
  1061. ----------------------------------------------------
  1062. function weld5(part0, part1, c0, c1)
  1063. weeld=Instance.new("Weld", part0)
  1064. weeld.Part0=part0
  1065. weeld.Part1=part1
  1066. weeld.C0=c0
  1067. weeld.C1=c1
  1068. return weeld
  1069. end
  1070. ----------------------------------------------------
  1071. function HasntTouched(plrname)
  1072. local ret = true
  1073. for _, v in pairs(Touche) do
  1074. if v == plrname then
  1075. ret = false
  1076. end
  1077. end
  1078. return ret
  1079. end
  1080. ----------------------------------------------------
  1081. newWeld(torso, larm, -1.5, 0.5, 0)
  1082. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1083. newWeld(torso, rarm, 1.5, 0.5, 0)
  1084. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  1085. newWeld(torso, hed, 0, 1.5, 0)
  1086. newWeld(torso, lleg, -0.5, -1, 0)
  1087. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  1088. newWeld(torso, rleg, 0.5, -1, 0)
  1089. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  1090. newWeld(root, torso, 0, -1, 0)
  1091. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1092.  
  1093.  
  1094.  
  1095. p = Instance.new("Part")
  1096. p.BrickColor = BrickColor.new("Lime green")
  1097. p.Transparency = 1
  1098. TorsoColor = p.BrickColor
  1099.  
  1100. local Transforming = true
  1101. Human.WalkSpeed = 0
  1102. local fx = Instance.new("Part",Torso)
  1103. wit = p.BrickColor.Color
  1104. wit2 = Color3.new(0,255,0)
  1105. local glowz = Instance.new("ParticleEmitter",fx)
  1106. glowz.LightEmission = 1
  1107. glowz.Texture = "rbxassetid://284205403"
  1108. glowz.Color = ColorSequence.new(wit)
  1109. glowz.Size = NumberSequence.new(5)
  1110. glowz.Speed = NumberRange.new(25,50)
  1111. glowz.LockedToPart = false
  1112. glowz.Transparency = NumberSequence.new(0.75)
  1113. glowz.RotSpeed = NumberRange.new(-2000,2000)
  1114. glowz.Lifetime = NumberRange.new(1)
  1115. glowz.Rate = 50000
  1116. glowz.VelocitySpread = 9001
  1117. local glowz2 = Instance.new("ParticleEmitter",fx)
  1118. glowz2.LightEmission = 0.5
  1119. glowz.Texture = "rbxassetid://284205403"
  1120. glowz2.Color = ColorSequence.new(wit2)
  1121. glowz2.Size = NumberSequence.new(5)
  1122. glowz2.Speed = NumberRange.new(25,50)
  1123. glowz2.LockedToPart = false
  1124. glowz2.Transparency = NumberSequence.new(0.75)
  1125. glowz2.RotSpeed = NumberRange.new(-2000,2000)
  1126. glowz2.Lifetime = NumberRange.new(1)
  1127. glowz2.Rate = 50000
  1128. glowz2.VelocitySpread = 9001
  1129. fx.Anchored = true
  1130. fx.Material = "Neon"
  1131. fx.CanCollide = false
  1132. fx.Locked = true
  1133. fx.Transparency = 1
  1134. fx.Material = "Neon"
  1135. fx.Size = Vector3.new(1,1,1)
  1136. fx.TopSurface = "SmoothNoOutlines"
  1137. fx.BottomSurface = "SmoothNoOutlines"
  1138. fx.BrickColor = BrickColor.new("Really black")
  1139. fxm = Instance.new("SpecialMesh",fx)
  1140. fxm.MeshType = "Sphere"
  1141. local sa2 = Instance.new("Sound",Torso)
  1142. sa2.SoundId = "rbxassetid://93724183"
  1143. sa2.Pitch = 0.5
  1144. sa2.Volume = 5
  1145. sa2.Looped = false
  1146. sa2:Play()
  1147. local value = 1
  1148. fxm.Scale = Vector3.new(1,1,1)
  1149. for i = 1, 20 do rs:wait()
  1150. value = value - 0.05
  1151. fx.Transparency = fx.Transparency - (1/20)
  1152. fx.CFrame = Torso.CFrame
  1153. fxm.Scale = fxm.Scale + Vector3.new(value,value,value)
  1154. rs:wait()
  1155. end
  1156. ----------------------------------------------------
  1157. GroundWave1 = function()
  1158. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1159. local Colors = {"Pastel blue-green", "Really black"}
  1160. local wave = Instance.new("Part", Torso)
  1161. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1162. wave.Anchored = true
  1163. wave.CanCollide = false
  1164. wave.Locked = true
  1165. wave.Size = Vector3.new(1, 1, 1)
  1166. wave.TopSurface = "Smooth"
  1167. wave.BottomSurface = "Smooth"
  1168. wave.Transparency = 0.35
  1169. wave.CFrame = HandCF
  1170. wm = Instance.new("SpecialMesh", wave)
  1171. wm.MeshId = "rbxassetid://3270017"
  1172. coroutine.wrap(function()
  1173. for i = 1, 30, 1 do
  1174. wm.Scale = Vector3.new(50, 50, 1 + i*50)
  1175. wave.Size = wm.Scale
  1176. wave.CFrame = HandCF
  1177. wave.Transparency = i/30
  1178. wait()
  1179. end
  1180. wait()
  1181. wave:Destroy()
  1182. end)()
  1183. end
  1184. ----------------------------------------------------
  1185.  
  1186.  
  1187. GroundWave3 = function()
  1188. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1189. local Colors = {"Lime green", "Lime green"}
  1190. local wave = Instance.new("Part", torso)
  1191. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  1192. wave.Anchored = true
  1193. wave.CanCollide = false
  1194. wave.Locked = true
  1195. wave.Size = Vector3.new(1, 1, 1)
  1196. wave.TopSurface = "Smooth"
  1197. wave.BottomSurface = "Smooth"
  1198. wave.Transparency = 0.35
  1199. wave.CFrame = HandCF
  1200. wm = Instance.new("SpecialMesh", wave)
  1201. wm.MeshId = "rbxassetid://3270017"
  1202. coroutine.wrap(function()
  1203. for i = 1, 14, 1 do
  1204. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  1205. wave.Size = wm.Scale
  1206. wave.CFrame = HandCF
  1207. wave.Transparency = i/14
  1208. wait()
  1209. end
  1210. wait()
  1211. wave:Destroy()
  1212. end)()
  1213. end
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219. local acos = math.acos
  1220. local sqrt = math.sqrt
  1221. local Vec3 = Vector3.new
  1222. local fromAxisAngle = CFrame.fromAxisAngle
  1223.  
  1224. local function toAxisAngle(CFr)
  1225. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  1226. local Angle = math.acos((R00+R11+R22-1)/2)
  1227. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1228. A = A == 0 and 0.00001 or A
  1229. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1230. B = B == 0 and 0.00001 or B
  1231. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1232. C = C == 0 and 0.00001 or C
  1233. local x = (R21-R12)/sqrt(A)
  1234. local y = (R02-R20)/sqrt(B)
  1235. local z = (R10-R01)/sqrt(C)
  1236. return Vec3(x,y,z),Angle
  1237. end
  1238.  
  1239. local acos = math.acos
  1240. local sqrt = math.sqrt
  1241. local Vec3 = Vector3.new
  1242. local fromAxisAngle = CFrame.fromAxisAngle
  1243.  
  1244. local function toAxisAngle(CFr)
  1245. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  1246. local Angle = math.acos((R00+R11+R22-1)/2)
  1247. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1248. A = A == 0 and 0.00001 or A
  1249. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1250. B = B == 0 and 0.00001 or B
  1251. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  1252. C = C == 0 and 0.00001 or C
  1253. local x = (R21-R12)/sqrt(A)
  1254. local y = (R02-R20)/sqrt(B)
  1255. local z = (R10-R01)/sqrt(C)
  1256. return Vec3(x,y,z),Angle
  1257. end
  1258.  
  1259. function ApplyTrig(Num,Func)
  1260. local Min,Max = Func(0),Func(1)
  1261. local i = Func(Num)
  1262. return (i-Min)/(Max-Min)
  1263. --[[if Func == "sin" then
  1264. return (math.sin((1-Num)*math.pi)+1)/2
  1265. elseif Func == "cos" then
  1266. return (math.cos((1-Num)*math.pi)+1)/2
  1267. end]]
  1268. end
  1269.  
  1270. function LerpCFrame(CFrame1,CFrame2,Num)
  1271. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  1272. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  1273. end
  1274.  
  1275.  
  1276.  
  1277. function Crater(Torso,Radius)
  1278. Spawn(function()
  1279. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  1280. local Ignore = {}
  1281. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1282. if v.Character ~= nil then
  1283. Ignore[#Ignore+1] = v.Character
  1284. end
  1285. end
  1286. local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  1287. if Hit == nil then return end
  1288. local Parts = {}
  1289. for i = 1,360,10 do
  1290. local P = Instance.new("Part",Torso.Parent)
  1291. P.Anchored = true
  1292. P.FormFactor = "Custom"
  1293. P.BrickColor = BrickColor.new("Lime green")
  1294. P.Material = "Granite"
  1295. P.TopSurface = "Smooth"
  1296. P.BottomSurface = "Smooth"
  1297. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  1298. 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)))
  1299. 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}
  1300. if math.random(0,5) == 0 then -- rubble
  1301. local P = Instance.new("Part",Torso.Parent)
  1302. P.Anchored = true
  1303. P.FormFactor = "Custom"
  1304. P.BrickColor = BrickColor.new("Lime green")
  1305. P.Material = Hit.Material
  1306. P.TopSurface = "Smooth"
  1307. P.BottomSurface = "Smooth"
  1308. P.Size = Vector3.new(5,5,5)*(math.random(80,100)/100)
  1309. 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)))
  1310. 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}
  1311. end
  1312. end
  1313. for i = 0,1,0.05 do
  1314. for i2,v in pairs(Parts) do
  1315. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  1316. end
  1317. wait(0.02)
  1318. end
  1319. for i,v in pairs(Parts) do
  1320. if v[1].Size.X > 2.1 then
  1321. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  1322. end
  1323. v[1].Anchored = false
  1324. end
  1325. for i = 0,1,0.05 do
  1326. for i2,v in pairs(Parts) do
  1327. v[1].Transparency = i
  1328. if i == 1 then
  1329. v[1]:Destroy()
  1330. elseif i >= 0.25 then
  1331. v[1].CanCollide = false
  1332. end
  1333. end
  1334. wait(0.02)
  1335. end
  1336. Parts = nil
  1337. end)
  1338. end
  1339.  
  1340.  
  1341.  
  1342. GroundWave = function()
  1343. if Transforming == true then
  1344. local value = 5
  1345. local value2 = 10
  1346. local value3 = 20
  1347. local sa2 = Instance.new("Sound",Torso)
  1348. sa2.SoundId = "rbxassetid://393621716"
  1349. sa2.Pitch = 1
  1350. sa2.Volume = 10
  1351. sa2.Looped = false
  1352. sa2:Play()
  1353. local wave = Instance.new("Part", Torso)
  1354. local glowz = Instance.new("ParticleEmitter",wave)
  1355. glowz.LightEmission = 1
  1356. glowz.Texture = "rbxassetid://284205403"
  1357. glowz.Color = ColorSequence.new(wit)
  1358. glowz.Size = NumberSequence.new(30)
  1359. glowz.Speed = NumberRange.new(25,100)
  1360. glowz.LockedToPart = false
  1361. glowz.Transparency = NumberSequence.new(0.75)
  1362. glowz.RotSpeed = NumberRange.new(-2000,2000)
  1363. glowz.Lifetime = NumberRange.new(1)
  1364. glowz.Rate = 50000
  1365. glowz.VelocitySpread = 9001
  1366. local glowz2 = Instance.new("ParticleEmitter",wave)
  1367. glowz2.LightEmission = 1
  1368. glowz.Texture = "rbxassetid://284205403"
  1369. glowz2.Color = ColorSequence.new(wit)
  1370. glowz2.Size = NumberSequence.new(30)
  1371. glowz2.Speed = NumberRange.new(25,100)
  1372. glowz2.LockedToPart = false
  1373. glowz2.Transparency = NumberSequence.new(0.75)
  1374. glowz2.RotSpeed = NumberRange.new(-2000,2000)
  1375. glowz2.Lifetime = NumberRange.new(1)
  1376. glowz2.Rate = 50000
  1377. glowz2.VelocitySpread = 9001
  1378. wave.BrickColor = BrickColor.new("Really black")
  1379. wave.Anchored = true
  1380. wave.CanCollide = false
  1381. wave.Locked = true
  1382. wave.Size = Vector3.new(1, 1, 1)
  1383. wave.TopSurface = "Smooth"
  1384. wave.BottomSurface = "Smooth"
  1385. wave.Transparency = 0.35
  1386. wave.CFrame = fx.CFrame
  1387. wave.Material = "Neon"
  1388. wm = Instance.new("SpecialMesh", wave)
  1389. wm.MeshType = "Sphere"
  1390. wm.Scale = Vector3.new(1,1,1)
  1391. local wave2 = Instance.new("Part", Torso)
  1392. wave2.BrickColor = TorsoColor
  1393. wave2.Anchored = true
  1394. wave2.CanCollide = false
  1395. wave2.Locked = true
  1396. wave2.Size = Vector3.new(1, 1, 1)
  1397. wave2.TopSurface = "Smooth"
  1398. wave2.BottomSurface = "Smooth"
  1399. wave2.Transparency = 0.35
  1400. wave2.CFrame = fx.CFrame
  1401. wave2.Material = "Neon"
  1402. wm2 = Instance.new("SpecialMesh", wave2)
  1403. wm2.MeshType = "FileMesh"
  1404. wm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1405. wm2.Scale = Vector3.new(1,1,1)
  1406. local wave3 = Instance.new("Part", Torso)
  1407. wave3.BrickColor = BrickColor.new("Really black")
  1408. wave3.Anchored = true
  1409. wave3.CanCollide = false
  1410. wave3.Locked = true
  1411. wave3.Size = Vector3.new(1, 1, 1)
  1412. wave3.TopSurface = "Smooth"
  1413. wave3.BottomSurface = "Smooth"
  1414. wave3.Transparency = 0.35
  1415. wave3.CFrame = fx.CFrame
  1416. wave3.Material = "Neon"
  1417. wm3 = Instance.new("SpecialMesh", wave3)
  1418. wm3.MeshType = "FileMesh"
  1419. wm3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1420. wm3.Scale = Vector3.new(1,1,1)
  1421. coroutine.wrap(function()
  1422. for i = 1, 18, 1 do
  1423. value = value - 0.5
  1424. value2 = value2 - 0.75*1.5
  1425. value3 = value3 - 0.475*1.5
  1426. wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5)
  1427. wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5)
  1428. wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25)
  1429. --wave.Size = wm.Scale
  1430. wave.CFrame = fx.CFrame
  1431. wave.Transparency = i/14
  1432. --wave2.Size = wm2.Scale
  1433. wave2.CFrame = fx.CFrame
  1434. wave2.Rotation = Vector3.new(90, 0, 0)
  1435. wave2.Transparency = i/14
  1436. --wave3.Size = wm3.Scale
  1437. wave3.CFrame = fx.CFrame
  1438. wave3.Rotation = Vector3.new(90, 0, 0)
  1439. wave3.Transparency = i/14
  1440. wait()
  1441. glowz.Rate = 0
  1442. glowz2.Rate = 0
  1443. end
  1444. wait()
  1445. wave:Destroy()
  1446. wave2:Destroy()
  1447. wave3:Destroy()
  1448. end)()
  1449. elseif Transforming == false then
  1450. wait()
  1451. end
  1452. end
  1453.  
  1454. for i = 1, 100 do rs:wait()
  1455. fx.CFrame = Torso.CFrame
  1456. end
  1457.  
  1458. spawn(function()
  1459. while wait(1) do
  1460. GroundWave()
  1461. end
  1462. end)
  1463.  
  1464. wait(4)
  1465.  
  1466. Transforming = false
  1467.  
  1468.  
  1469.  
  1470. local value2 = 1
  1471. for i = 1, 20 do rs:wait()
  1472. value2 = value2 - 0.05
  1473. glowz.Rate = 0
  1474. glowz2.Rate = 0
  1475. fx.Transparency = fx.Transparency + (1/20)
  1476. fx.CFrame = torso.CFrame
  1477. fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2)
  1478. rs:wait()
  1479. end
  1480. glowz:Destroy()
  1481. glowz2:Destroy()
  1482.  
  1483. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1484. local valuer = 5
  1485. local valuer2 = 10
  1486. local valuer3 = 15
  1487. local sa2 = Instance.new("Sound",torso)
  1488. sa2.SoundId = "rbxassetid://130972023"
  1489. sa2.Pitch = 1
  1490. sa2.Volume = 5
  1491. sa2.Looped = false
  1492. sa2:Play()
  1493. local sar2 = Instance.new("Sound",torso)
  1494. sar2.SoundId = "rbxassetid://153274423"
  1495. sar2.Pitch = 1
  1496. sar2.Volume = 5
  1497. sar2.Looped = false
  1498. sar2:Play()
  1499. local Mus = Instance.new("Sound",torso)
  1500. Mus.SoundId = "rbxassetid://397952612"
  1501. Mus.Pitch = 1
  1502. Mus.Volume = 6
  1503. Mus.Looped = true
  1504. Mus:Play()
  1505. Crater(torso,67)
  1506. local wave = Instance.new("Part", torso)
  1507. wave.BrickColor = TorsoColor
  1508. wave.Anchored = true
  1509. wave.CanCollide = false
  1510. wave.Locked = true
  1511. wave.Size = Vector3.new(1, 1, 1)
  1512. wave.TopSurface = "Smooth"
  1513. wave.BottomSurface = "Smooth"
  1514. wave.Transparency = 0.35
  1515. wave.CFrame = HandCF
  1516. wm = Instance.new("SpecialMesh", wave)
  1517. wm.MeshId = "rbxassetid://3270017"
  1518. local wave2 = Instance.new("Part", torso)
  1519. wave2.BrickColor = BrickColor.new("Really black")
  1520. wave2.Anchored = true
  1521. wave2.CanCollide = false
  1522. wave2.Locked = true
  1523. wave2.Size = Vector3.new(1, 1, 1)
  1524. wave2.TopSurface = "Smooth"
  1525. wave2.BottomSurface = "Smooth"
  1526. wave2.Transparency = 0.35
  1527. wave2.CFrame = HandCF
  1528. wm2 = Instance.new("SpecialMesh", wave2)
  1529. wm2.MeshId = "rbxassetid://3270017"
  1530. local wave3 = Instance.new("Part", torso)
  1531. wave3.BrickColor = TorsoColor
  1532. wave3.Anchored = true
  1533. wave3.CanCollide = false
  1534. wave3.Locked = true
  1535. wave3.Size = Vector3.new(1, 1, 1)
  1536. wave3.TopSurface = "Smooth"
  1537. wave3.BottomSurface = "Smooth"
  1538. wave3.Transparency = 0.35
  1539. wave3.CFrame = HandCF
  1540. wm3 = Instance.new("SpecialMesh", wave3)
  1541. wm3.MeshId = "rbxassetid://3270017"
  1542. coroutine.wrap(function()
  1543. for i = 1, 14, 1 do
  1544. valuer = valuer - 0.35
  1545. valuer2 = valuer - 0.45
  1546. valuer3 = valuer3 - 0.475
  1547. wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200)
  1548. wave.Size = wm.Scale
  1549. wave.CFrame = HandCF
  1550. wave.Transparency = i/14
  1551. wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10)
  1552. wave2.Size = wm2.Scale
  1553. wave2.CFrame = HandCF
  1554. wave2.Transparency = i/14
  1555. wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1)
  1556. wave3.Size = wm2.Scale
  1557. wave3.CFrame = HandCF
  1558. wave3.Transparency = i/14
  1559. wait()
  1560. end
  1561. wait()
  1562. wave:Destroy()
  1563. wave2:Destroy()
  1564. end)()
  1565. hum.WalkSpeed = 16
  1566.  
  1567. spawn(function()
  1568. while wait(2)
  1569. do
  1570. GroundWave3()
  1571. end
  1572. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement