Advertisement
Insanity_Mark

World Eater #2 (ROBLOX)(FE)(Im just shitposting aint i?)

Oct 30th, 2018
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.94 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. wait(.000000000000000000000
  3. local Player = game:GetService("Players").LocalPlayer
  4. local Character = Player.Character
  5. local Head = Character.Head
  6. local Torso = Character.Torso
  7. local Right_Arm = Character["Right Arm"]
  8. local Right_Leg = Character["Right Leg"]
  9. local Left_Arm = Character["Left Arm"]
  10. local Left_Leg = Character["Left Leg"]
  11. local Humanoid = Character.Humanoid
  12. local Animation = "Idle"
  13. local Mouse = Player:GetMouse()
  14. local LeftShoulder = Torso["Left Shoulder"]
  15. local Left_Hip = Torso["Left Hip"]
  16. local RightShoulder = Torso["Right Shoulder"]
  17. local Right_Hip = Torso["Right Hip"]
  18. local Root = Character.HumanoidRootPart
  19. local RootJoint = Root.RootJoint
  20. local Attacking = false
  21. local CanAttack = true
  22. local Anim = "Idle"
  23. local Combo = 1
  24. local Blocking = false
  25. local MaxDestruction = 1000
  26. local Destruction = 0
  27. local MaxBlock = 100
  28. local Effects = {}
  29. local Color = "Bright yellow"
  30. local Invert = false
  31. local Idle = 0
  32. local Equipped = false
  33. local Running = false
  34. local Unseathed = false
  35. local Shard = "None"
  36.  
  37. Humanoid.MaxHealth = 3000
  38. Humanoid.Health = 3000
  39.  
  40. local WorldEaterTheme = Instance.new("Sound",Character)
  41. WorldEaterTheme.Name = "WorldEaterTheme"
  42. WorldEaterTheme.Looped = true
  43. WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=662102291"
  44. WorldEaterTheme:Play()
  45.  
  46. Left_Shoulder = Instance.new("Weld", Torso)
  47. Left_Shoulder.Part0 = Torso
  48. Left_Shoulder.Part1 = Left_Arm
  49. Left_Shoulder.Name = "Left Shoulder"
  50. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  51.  
  52. Right_Shoulder = Instance.new("Weld", Torso)
  53. Right_Shoulder.Part0 = Torso
  54. Right_Shoulder.Part1 = Right_Arm
  55. Right_Shoulder.Name = "Right Shoulder"
  56. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  57.  
  58. LeftShoulder.Parent = nil
  59. RightShoulder.Parent = nil
  60. Humanoid.WalkSpeed = 10
  61.  
  62. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  63. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  64. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  65. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  66. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  67.  
  68.  
  69. Movemment = 1
  70. Walk = 0
  71.  
  72. Animator = Humanoid.Animator
  73. --Animate = Character.Animate
  74.  
  75. Animator.Parent = nil
  76. --Animate.Parent = nil
  77.  
  78. local Services = {
  79.  
  80. SoundService = game:GetService("SoundService");
  81. Players = game:GetService("Players");
  82. Debris = game:GetService("Debris");
  83. Workspace = game:GetService("Workspace");
  84. Lighting = game:GetService("Lighting");
  85. HttpService = game:GetService("HttpService");
  86. InsertService = game:GetService("InsertService");
  87.  
  88. }
  89.  
  90. local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  91. ManaBarGUI.Name = "ManaBarGUI"
  92.  
  93. local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
  94. ManaBarP1.Name = "ManaBarPart1"
  95. ManaBarP1.Size = UDim2.new(0,300,0,20)
  96. ManaBarP1.Position = UDim2.new(0,350,0.1,0)
  97. ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
  98.  
  99. local ManaBarP2 = Instance.new("Frame", ManaBarP1)
  100. ManaBarP2.Name = "ManaBarPart2"
  101. ManaBarP2.Size = UDim2.new(0,300,0,20)
  102. ManaBarP2.Position = UDim2.new(0,0,0,0)
  103. ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
  104.  
  105. local ManaBarText = Instance.new("TextLabel", ManaBarP1)
  106. ManaBarText.Name = "ManaBarText"
  107. ManaBarText.Size = UDim2.new(0,300,0,20)
  108. ManaBarText.Position = UDim2.new(0,0,-1.5,0)
  109. ManaBarText.TextScaled = true
  110. ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
  111. ManaBarText.BackgroundTransparency = 1
  112. ManaBarText.TextStrokeTransparency = 0
  113. ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
  114. ManaBarText.TextColor3 = Color3.new(0,0,0)
  115. ManaBarText.Font = "Garamond"
  116.  
  117. local WorldEaterGui = Instance.new("BillboardGui", Head)
  118. WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
  119. WorldEaterGui.Adornee = Head
  120. WorldEaterGui.AlwaysOnTop = true
  121. WorldEaterGui.Enabled = true
  122. WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
  123.  
  124. local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
  125. WorldEaterText.BackgroundTransparency = 1
  126. WorldEaterText.Font = "Garamond"
  127. WorldEaterText.Size = UDim2.new(0, 200,0, 50)
  128. WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color
  129. WorldEaterText.TextStrokeTransparency = 0
  130. WorldEaterText.TextColor3 = BrickColor.Black().Color
  131. WorldEaterText.TextScaled = true
  132. WorldEaterText.Text = "World Eater"
  133.  
  134. --------[[ Mesh Ids ]]--------
  135.  
  136. SpikeMeshId = 1033714
  137. SpikeBallId = 9982590
  138. StarMeshId = 45428961
  139. CrystalMeshId = 9756362
  140.  
  141. --[[ Essential Functions ]]--
  142. function NoOutlines(Part)
  143. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  144. end
  145.  
  146.  
  147. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  148.  
  149. local Part = Instance.new("Part", Parent)
  150. Part.Name = Name
  151. Part.BrickColor = BrickColor.new(Color)
  152. Part.Size = Size
  153. Part.Material = Material
  154. Part.Transparency = Transparency
  155. Part.Shape = Shape
  156. Part.CanCollide = false
  157. NoOutlines(Part)
  158.  
  159. return Part
  160.  
  161. end
  162.  
  163. local CreateMesh = function(Parent, Scale, Shape)
  164.  
  165.  
  166. local Mesh = Instance.new("BlockMesh", Parent)
  167. Mesh.Scale = Scale
  168.  
  169. return Mesh
  170.  
  171. end
  172.  
  173. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  174.  
  175. local WedgePart = Instance.new("WedgePart", Parent)
  176. WedgePart.Name = Name
  177. WedgePart.BrickColor = BrickColor.new(Color)
  178. WedgePart.Size = Size
  179. WedgePart.Material = Material
  180. WedgePart.Transparency = Transparency
  181. WedgePart.CanCollide = false
  182. NoOutlines(WedgePart)
  183.  
  184. return WedgePart
  185.  
  186. end
  187.  
  188. local CreateWeld = function(Parent, Cframe, P1 , P0)
  189.  
  190. local Weld = Instance.new("Weld", Parent)
  191. Weld.Part0 = P0
  192. Weld.Part1 = P1
  193. Weld.Name = P0.Name .. "To" .. P1.Name
  194. Weld.C0 = Cframe
  195.  
  196. return Weld
  197.  
  198. end
  199.  
  200. local CreateVelocity = function(Parent,Velocity,Force)
  201.  
  202. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  203. BodyVelocity.Velocity = Velocity
  204. BodyVelocity.MaxForce = Force
  205.  
  206.  
  207.  
  208. return BodyVelocity
  209.  
  210. end
  211.  
  212.  
  213. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  214.  
  215.  
  216. local Part = Instance.new("Part", Parent)
  217. Part.Name = Name
  218. Part.BrickColor = BrickColor.new(Color)
  219. Part.Size = Size
  220. Part.Material = Material
  221. Part.Transparency = Transparency
  222. Part.CanCollide = false
  223. NoOutlines(Part)
  224.  
  225. local Mesh = Instance.new("SpecialMesh", Part)
  226. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  227. Mesh.Scale = Scale
  228.  
  229. return Mesh and Part
  230.  
  231. end
  232.  
  233. local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
  234.  
  235. local SFX = Instance.new("Sound", Parent)
  236. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  237. SFX.Name = "SFX"
  238. SFX:Play()
  239. SFX.Volume = Volume
  240. SFX.Pitch = Pitch
  241. SFX.PlayOnRemove = true
  242. SFX:Remove()
  243.  
  244. if Type == "Echo" then
  245.  
  246. Instance.new("EchoSoundEffect", SFX)
  247.  
  248. end
  249.  
  250. end
  251.  
  252. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  253.  
  254.  
  255. local Part = Instance.new("Part", Parent)
  256. Part.Name = Name
  257. Part.BrickColor = BrickColor.new(Color)
  258. Part.Size = Size
  259. Part.Material = Material
  260. Part.Transparency = Transparency
  261. Part.CanCollide = false
  262. NoOutlines(Part)
  263.  
  264. local Mesh = Instance.new("SpecialMesh", Part)
  265. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
  266. Mesh.Scale = Scale
  267.  
  268. return Mesh and Part
  269.  
  270. end
  271.  
  272. CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  273.  
  274. local Part = Instance.new("Part", Parent)
  275. Part.Transparency = Transparency
  276. Part.Name = "CircleEffect"
  277. Part.Size = Vector3.new()
  278. Part.Anchored = true
  279. Part.CanCollide = false
  280. Part.Position = Position
  281. Part.BrickColor = BrickColor.new(Brickcolor)
  282. Part.Material = Material
  283. NoOutlines(Part)
  284.  
  285. local Mesh = Instance.new("SpecialMesh", Part)
  286. Mesh.MeshType = "Sphere"
  287. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  288.  
  289. Services.Debris:AddItem(Part, Time)
  290.  
  291.  
  292. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  293.  
  294.  
  295. end
  296.  
  297. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  298.  
  299. local Part = Instance.new("Part", Parent)
  300. Part.Transparency = Transparency
  301. Part.Name = "BlockEffect"
  302. Part.Size = Vector3.new()
  303. Part.Anchored = true
  304. Part.Position = Position
  305. Part.CanCollide = false
  306. Part.BrickColor = BrickColor.new(Brickcolor)
  307. Part.Material = Material
  308. NoOutlines(Part)
  309.  
  310. local Mesh = Instance.new("BlockMesh", Part)
  311. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  312.  
  313. Services.Debris:AddItem(Part, Time)
  314.  
  315. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  316.  
  317.  
  318. end
  319.  
  320. --[[ Damage function ]]--
  321.  
  322.  
  323. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  324.  
  325. local HitHumanoid = Hit.Parent.Humanoid
  326.  
  327.  
  328. local Damage = math.random(Min, Max)
  329.  
  330.  
  331. coroutine.resume(coroutine.create(function()
  332. HitHumanoid:TakeDamage(Damage)
  333. end))
  334.  
  335. if Type == "Shrink" then
  336. MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)
  337. for i,v in pairs(Hit.Parent:children()) do
  338. if v:IsA("Part") then
  339. coroutine.resume(coroutine.create(function()
  340. for i = 1,100 do
  341. wait()
  342. v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
  343. v.Transparency = v.Transparency + 0.05
  344.  
  345. end
  346. end))
  347. end
  348. end
  349.  
  350. end
  351.  
  352.  
  353.  
  354. if Type == "Normal" then
  355.  
  356. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  357. Services.Debris:AddItem(Push, 0)
  358. DamageLabel(Hit.Parent, Damage, Hit)
  359.  
  360. elseif Type == "Ranged" then
  361. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  362. Services.Debris:AddItem(Push, 0)
  363. DamageLabel(Hit.Parent, Damage, Hit)
  364.  
  365. elseif Type == "Impale" then
  366.  
  367. local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
  368. Spike.Anchored = true
  369. Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
  370. Spike.Position = Hit.Parent.Torso.Position
  371.  
  372.  
  373. Services.Debris:AddItem(Spike, 30)
  374.  
  375. Hit.Parent:BreakJoints()
  376. Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
  377. Hit.Parent.Torso.Anchored = true
  378.  
  379. MakeSFX(Spike, 306247724, 1,1)
  380. MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
  381. elseif Type == "Knockdown" then
  382.  
  383.  
  384. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  385. DamageLabel(Hit.Parent, Damage, Hit)
  386. Services.Debris:AddItem(Push, 0.3)
  387.  
  388. coroutine.resume(coroutine.create(function()
  389.  
  390. HitHumanoid.PlatformStand = true
  391. wait(1)
  392. HitHumanoid.PlatformStand = false
  393.  
  394.  
  395. end))
  396. end
  397.  
  398. if HitSFX == "Penetration" then
  399.  
  400. MakeSFX(Hit, 199149269, 1 , 1)
  401.  
  402. elseif HitSFX == "Punch" then
  403.  
  404. MakeSFX(Hit, 278062209, 1 , 1)
  405.  
  406.  
  407.  
  408.  
  409. end
  410. end
  411.  
  412. function DamageLabel(HitCharacter, DamageDealt, Hit)
  413.  
  414. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  415. DamageShowingPart.Position = HitCharacter.Head.Position
  416.  
  417. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  418. DamageGui.Name = "Damage"
  419. DamageGui.AlwaysOnTop = true
  420. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  421.  
  422. local DamageNumber = Instance.new("TextLabel", DamageGui)
  423. DamageNumber.Size = UDim2.new(1,0,1,0)
  424. if Hit.Parent:FindFirstChild("Head") then
  425. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  426. DamageNumber.TextColor3 = Hit.BrickColor.Color
  427. end
  428. DamageNumber.TextStrokeTransparency = 0
  429. DamageNumber.BackgroundTransparency = 1
  430. DamageNumber.Font = "SourceSansBold"
  431. DamageNumber.TextScaled = true
  432. DamageNumber.Text = DamageDealt
  433.  
  434. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  435. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  436. BodyVelocity.Velocity = Vector3.new(0,2,0)
  437.  
  438. Services.Debris:AddItem(DamageShowingPart, 3)
  439.  
  440.  
  441. end
  442.  
  443. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  444. for _,WorkspaceChildren in pairs(workspace:children()) do
  445.  
  446. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  447.  
  448. if HitHumanoid ~= nil then
  449. local Hit = WorkspaceChildren:findFirstChild("Torso")
  450.  
  451. if Hit ~= nil then
  452.  
  453. local Target = Hit.Position - Part.Position
  454.  
  455. local Magnitude = Target.magnitude
  456.  
  457. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  458.  
  459. local HitBlock = Hit.Parent:FindFirstChild("Block")
  460.  
  461. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  462.  
  463. local HitBlock2 = Hit.Parent.Block.BlockDurability
  464.  
  465. if HitBlock2.Value > 15 then
  466.  
  467. local HitN = math.random(1,5)
  468.  
  469. HitBlock2.Value = HitBlock2.Value - 15
  470.  
  471.  
  472. if HitN == 1 then
  473. MakeSFX(Hit ,199148971, 0.5, 1)
  474. end
  475.  
  476. if HitN == 2 then
  477. MakeSFX(Hit ,199149025, 0.5, 1)
  478. end
  479.  
  480. if HitN == 3 then
  481. MakeSFX(Hit ,199149072, 0.5, 1)
  482. end
  483.  
  484. if HitN == 4 then
  485. MakeSFX(Hit ,199149109, 0.5, 1)
  486. end
  487.  
  488. if HitN == 5 then
  489. MakeSFX(Hit ,199149119, 0.5, 1)
  490. end
  491. return
  492. end
  493. end
  494.  
  495. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  496.  
  497.  
  498.  
  499. end
  500. end
  501. end
  502. end
  503. end
  504.  
  505.  
  506.  
  507. local Cloak = Instance.new("Part", Character)
  508. Cloak.Name = "Cloak"
  509. Cloak.CanCollide = false
  510. Cloak.BrickColor = BrickColor.new("Institutional white")
  511.  
  512. local CloakMesh = Instance.new("SpecialMesh", Cloak)
  513. CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
  514. CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
  515.  
  516. local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
  517.  
  518. for i,v in pairs(Character:children()) do
  519. if v:IsA("Accessory") then
  520. v:Remove()
  521. elseif v:IsA("Shirt") then
  522. v:Remove()
  523. elseif v:IsA("Pants") then
  524. v:Remove()
  525. elseif v:IsA("BodyColors") then
  526.  
  527. Head.BrickColor =BrickColor.new("Really black")
  528. Torso.BrickColor = BrickColor.new("Really black")
  529. Right_Arm.BrickColor = BrickColor.new("Really black")
  530. Right_Leg.BrickColor = BrickColor.new("Really black")
  531. Left_Arm.BrickColor = BrickColor.new("Really black")
  532. Left_Leg.BrickColor = BrickColor.new("Really black")
  533.  
  534. v.HeadColor = BrickColor.new("Really black")
  535. v.TorsoColor = BrickColor.new("Really black")
  536. v.RightArmColor = BrickColor.new("Really black")
  537. v.LeftArmColor = BrickColor.new("Really black")
  538. v.RightLegColor = BrickColor.new("Really black")
  539. v.LeftLegColor = BrickColor.new("Really black")
  540.  
  541. end
  542. end
  543.  
  544.  
  545.  
  546. --[[ CLerp Declarations ]]--
  547.  
  548. function clerp(a,b,t)
  549. local qa = {QuaternionFromCFrame(a)}
  550. local qb = {QuaternionFromCFrame(b)}
  551. local ax, ay, az = a.x, a.y, a.z
  552. local bx, by, bz = b.x, b.y, b.z
  553. local _t = 1-t
  554. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  555. end
  556.  
  557. function QuaternionFromCFrame(cf) -- dis one
  558. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  559. local trace = m00 + m11 + m22
  560. if trace > 0 then
  561. local s = math.sqrt(1 + trace)
  562. local recip = 0.5/s
  563. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  564. else
  565. local i = 0
  566. if m11 > m00 then
  567. i = 1
  568. end
  569. if m22 > (i == 0 and m00 or m11) then
  570. i = 2
  571. end
  572. if i == 0 then
  573. local s = math.sqrt(m00-m11-m22+1)
  574. local recip = 0.5/s
  575. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  576. elseif i == 1 then
  577. local s = math.sqrt(m11-m22-m00+1)
  578. local recip = 0.5/s
  579. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  580. elseif i == 2 then
  581. local s = math.sqrt(m22-m00-m11+1)
  582. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  583. end
  584. end
  585. end
  586.  
  587. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  588. local xs, ys, zs = x + x, y + y, z + z
  589. local wx, wy, wz = w*xs, w*ys, w*zs
  590. local xx = x*xs
  591. local xy = x*ys
  592. local xz = x*zs
  593. local yy = y*ys
  594. local yz = y*zs
  595. local zz = z*zs
  596. 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))
  597. end
  598.  
  599. function QuaternionSlerp(a, b, t)
  600. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  601. local startInterp, finishInterp;
  602. if cosTheta >= 0.0001 then
  603. if (1 - cosTheta) > 0.0001 then
  604. local theta = math.acos(cosTheta)
  605. local invSinTheta = 1/math.sin(theta)
  606. startInterp = math.sin((1-t)*theta)*invSinTheta
  607. finishInterp = math.sin(t*theta)*invSinTheta
  608. else
  609. startInterp = 1-t
  610. finishInterp = t
  611. end
  612. else
  613. if (1+cosTheta) > 0.0001 then
  614. local theta = math.acos(-cosTheta)
  615. local invSinTheta = 1/math.sin(theta)
  616. startInterp = math.sin((t-1)*theta)*invSinTheta
  617. finishInterp = math.sin(t*theta)*invSinTheta
  618. else
  619. startInterp = t-1
  620. finishInterp = t
  621. end
  622. end
  623. 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
  624. end
  625.  
  626. function RayCast(Pos, Dir, Max, Ignore)
  627. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  628. end
  629.  
  630.  
  631. function Bars()
  632.  
  633. --[[ Mana Bar ]]--
  634. if Destruction ~= MaxDestruction then
  635.  
  636. Destruction = Destruction + 1
  637.  
  638. end
  639.  
  640. if Destruction >= MaxDestruction then
  641.  
  642. Destruction = Destruction
  643.  
  644. end
  645.  
  646.  
  647. ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
  648.  
  649. ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)
  650.  
  651. end
  652. local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  653. local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
  654.  
  655. coroutine.resume(coroutine.create(function()
  656.  
  657. while wait(3) do
  658.  
  659.  
  660. CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
  661.  
  662.  
  663. end
  664.  
  665. end))
  666. --[[ Attacks ]]--
  667.  
  668. function Attack1()
  669. Attacking = true
  670. MakeSFX(EyeReference, 341336274, 1,1)
  671. wait(0.3)
  672. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  673. local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root)
  674.  
  675. local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  676. local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root)
  677.  
  678.  
  679. for i = 1,10 do
  680.  
  681. wait()
  682. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
  683. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
  684. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  685. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
  686. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
  687. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3)
  688.  
  689. end
  690.  
  691. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  692. wait(0.5)
  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. MakeSFX(Reference, 306247724, 1,1)
  700. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  701. ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
  702. Attacking = false
  703. end
  704.  
  705. function Attack2()
  706.  
  707. Attacking = true
  708. Humanoid.WalkSpeed = 0
  709. Humanoid.JumpPower = 0
  710.  
  711.  
  712. for i = 1,25 do
  713. wait()
  714.  
  715. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
  716. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  717. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
  718. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
  719. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  720. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  721.  
  722. end
  723.  
  724. MakeSFX(Torso, 142070127, 1, 1)
  725. ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
  726. local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  727. if Hit ~= nil then
  728. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  729. Reference.Anchored = true
  730. Reference.CFrame = CFrame.new(Position)
  731.  
  732. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  733.  
  734. game:GetService("Debris"):AddItem(Reference,0.1)
  735. for i=1,50 do
  736.  
  737. 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")
  738. Ground.Anchored = true
  739. Ground.CanCollide = true
  740. 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))
  741.  
  742. game:GetService("Debris"):AddItem(Ground,10)
  743.  
  744. end
  745. end
  746.  
  747. for i = 1,25 do
  748. wait()
  749.  
  750. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
  751. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  752. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  753. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  754. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  755. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  756.  
  757. end
  758.  
  759. Attacking = false
  760. Humanoid.WalkSpeed = 16
  761. Humanoid.JumpPower = 50
  762.  
  763.  
  764.  
  765. end
  766.  
  767.  
  768. function Attack3()
  769. Humanoid.WalkSpeed = 0
  770. Humanoid.JumpPower = 0
  771. Attacking = true
  772. wait(1)
  773. MakeSFX(Torso, 341336274, 1, 1.2)
  774. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  775. wait(1)
  776. MakeSFX(Torso, 341336274, 1, 1.2)
  777. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  778. wait(1)
  779. MakeSFX(Torso, 341336274, 1, 1.2)
  780. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  781. ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
  782. Humanoid.WalkSpeed = 16
  783. Humanoid.JumpPower = 50
  784. Attacking = false
  785. end
  786.  
  787. Mouse.Button1Down:connect(function()
  788. if not Attacking then
  789. if Combo == 1 then
  790.  
  791. Combo = 2
  792. Attack1()
  793.  
  794.  
  795. elseif Combo == 2 then
  796.  
  797. Attack2()
  798. Combo = 3
  799.  
  800. elseif Combo == 3 then
  801.  
  802. Attack3()
  803. Combo = 1
  804.  
  805. end
  806. end
  807. end)
  808.  
  809. --[[ CLerp Animations ]]--
  810. Change1 = 0
  811. Change2 = 0
  812. Change3 = 0
  813. Change4 = 0
  814.  
  815. while true do
  816. wait()
  817.  
  818. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  819. local Velderp = Root.Velocity.y
  820. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  821.  
  822. Bars()
  823.  
  824.  
  825. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  826. Anim = "Idle"
  827.  
  828. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  829. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  830. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  831. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  832. 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)
  833. 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)
  834.  
  835. end
  836.  
  837.  
  838. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  839. Anim = "Walking"
  840.  
  841. if Invert == false then
  842. Change1 = Change1 + 0.1
  843.  
  844. elseif Invert == true then
  845.  
  846. Change1 = Change1 - 0.1
  847.  
  848. end
  849.  
  850. if Change1 > 0.5 then
  851.  
  852. Invert = true
  853.  
  854. elseif Change1 < -0.5 then
  855.  
  856. Invert = false
  857.  
  858. end
  859.  
  860. if Attacking == false then
  861.  
  862. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  863. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  864. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
  865. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
  866. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
  867. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
  868.  
  869. end
  870. end
  871.  
  872. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  873. Anim = "Jump"
  874.  
  875. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  876. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  877. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
  878. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
  879. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  880. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  881.  
  882. end
  883.  
  884. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  885. Anim = "Fall"
  886.  
  887. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  888. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  889. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
  890. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
  891. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  892. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  893.  
  894. end
  895.  
  896.  
  897. if #Effects > 0 then
  898. for E = 1, #Effects do
  899. if Effects[E]~=nil then
  900. local Effect = Effects[E]
  901.  
  902. if Effect ~= nil then
  903.  
  904. local Part = Effect[1]
  905. local Mode = Effect[2]
  906. local Time = Effect[3]
  907. local SizeX = Effect[4]
  908. local SizeY = Effect[5]
  909. local SizeZ = Effect[6]
  910.  
  911. if Effect[1].Transparency <= 1 then
  912. if Effect[2] == "Block" then
  913. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  914.  
  915. Mesh = Effect[1]:FindFirstChild("Mesh")
  916. if Mesh ~= nil then
  917. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  918. end
  919.  
  920. elseif Effect[2] == "Circle" then
  921.  
  922. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  923. Mesh=Effect[1].Mesh
  924. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  925. end
  926.  
  927. Effect[1].Transparency = Effect[1].Transparency + 0.05
  928.  
  929. else
  930.  
  931. Part.Parent=nil
  932.  
  933. table.remove(Effects, E)
  934.  
  935. end
  936. end
  937. end
  938. end
  939. end
  940. end
  941. end
  942. RAW Paste Data
  943.  
  944. --[[ World eater Script ]]--
  945. --[[ Declarations ]]--
  946. wait(.0000000000000000000001)
  947. local Player = game:GetService("Players").LocalPlayer
  948. local Character = Player.Character
  949. local Head = Character.Head
  950. local Torso = Character.Torso
  951. local Right_Arm = Character["Right Arm"]
  952. local Right_Leg = Character["Right Leg"]
  953. local Left_Arm = Character["Left Arm"]
  954. local Left_Leg = Character["Left Leg"]
  955. local Humanoid = Character.Humanoid
  956. local Animation = "Idle"
  957. local Mouse = Player:GetMouse()
  958. local LeftShoulder = Torso["Left Shoulder"]
  959. local Left_Hip = Torso["Left Hip"]
  960. local RightShoulder = Torso["Right Shoulder"]
  961. local Right_Hip = Torso["Right Hip"]
  962. local Root = Character.HumanoidRootPart
  963. local RootJoint = Root.RootJoint
  964. local Attacking = false
  965. local CanAttack = true
  966. local Anim = "Idle"
  967. local Combo = 1
  968. local Blocking = false
  969. local MaxDestruction = 1000
  970. local Destruction = 0
  971. local MaxBlock = 100
  972. local Effects = {}
  973. local Color = "Bright yellow"
  974. local Invert = false
  975. local Idle = 0
  976. local Equipped = false
  977. local Running = false
  978. local Unseathed = false
  979. local Shard = "None"
  980.  
  981. Humanoid.MaxHealth = 3000
  982. Humanoid.Health = 3000
  983.  
  984. local WorldEaterTheme = Instance.new("Sound",Character)
  985. WorldEaterTheme.Name = "WorldEaterTheme"
  986. WorldEaterTheme.Looped = true
  987. WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=149981769"
  988. WorldEaterTheme:Play()
  989.  
  990. Left_Shoulder = Instance.new("Weld", Torso)
  991. Left_Shoulder.Part0 = Torso
  992. Left_Shoulder.Part1 = Left_Arm
  993. Left_Shoulder.Name = "Left Shoulder"
  994. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  995.  
  996. Right_Shoulder = Instance.new("Weld", Torso)
  997. Right_Shoulder.Part0 = Torso
  998. Right_Shoulder.Part1 = Right_Arm
  999. Right_Shoulder.Name = "Right Shoulder"
  1000. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  1001.  
  1002. LeftShoulder.Parent = nil
  1003. RightShoulder.Parent = nil
  1004. Humanoid.WalkSpeed = 10
  1005.  
  1006. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  1007. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1008. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1009. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1010. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1011.  
  1012.  
  1013. Movemment = 1
  1014. Walk = 0
  1015.  
  1016. Animator = Humanoid.Animator
  1017. --Animate = Character.Animate
  1018.  
  1019. Animator.Parent = nil
  1020. --Animate.Parent = nil
  1021.  
  1022. local Services = {
  1023.  
  1024. SoundService = game:GetService("SoundService");
  1025. Players = game:GetService("Players");
  1026. Debris = game:GetService("Debris");
  1027. Workspace = game:GetService("Workspace");
  1028. Lighting = game:GetService("Lighting");
  1029. HttpService = game:GetService("HttpService");
  1030. InsertService = game:GetService("InsertService");
  1031.  
  1032. }
  1033.  
  1034. local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  1035. ManaBarGUI.Name = "ManaBarGUI"
  1036.  
  1037. local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
  1038. ManaBarP1.Name = "ManaBarPart1"
  1039. ManaBarP1.Size = UDim2.new(0,300,0,20)
  1040. ManaBarP1.Position = UDim2.new(0,350,0.1,0)
  1041. ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
  1042.  
  1043. local ManaBarP2 = Instance.new("Frame", ManaBarP1)
  1044. ManaBarP2.Name = "ManaBarPart2"
  1045. ManaBarP2.Size = UDim2.new(0,300,0,20)
  1046. ManaBarP2.Position = UDim2.new(0,0,0,0)
  1047. ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
  1048.  
  1049. local ManaBarText = Instance.new("TextLabel", ManaBarP1)
  1050. ManaBarText.Name = "ManaBarText"
  1051. ManaBarText.Size = UDim2.new(0,300,0,20)
  1052. ManaBarText.Position = UDim2.new(0,0,-1.5,0)
  1053. ManaBarText.TextScaled = true
  1054. ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
  1055. ManaBarText.BackgroundTransparency = 1
  1056. ManaBarText.TextStrokeTransparency = 0
  1057. ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
  1058. ManaBarText.TextColor3 = Color3.new(0,0,0)
  1059. ManaBarText.Font = "Garamond"
  1060.  
  1061. local WorldEaterGui = Instance.new("BillboardGui", Head)
  1062. WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
  1063. WorldEaterGui.Adornee = Head
  1064. WorldEaterGui.AlwaysOnTop = true
  1065. WorldEaterGui.Enabled = true
  1066. WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
  1067.  
  1068. local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
  1069. WorldEaterText.BackgroundTransparency = 1
  1070. WorldEaterText.Font = "Garamond"
  1071. WorldEaterText.Size = UDim2.new(0, 200,0, 50)
  1072. WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color
  1073. WorldEaterText.TextStrokeTransparency = 0
  1074. WorldEaterText.TextColor3 = BrickColor.Black().Color
  1075. WorldEaterText.TextScaled = true
  1076. WorldEaterText.Text = "World Eater"
  1077.  
  1078. --------[[ Mesh Ids ]]--------
  1079.  
  1080. SpikeMeshId = 1033714
  1081. SpikeBallId = 9982590
  1082. StarMeshId = 45428961
  1083. CrystalMeshId = 9756362
  1084.  
  1085. --[[ Essential Functions ]]--
  1086. function NoOutlines(Part)
  1087. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1088. end
  1089.  
  1090.  
  1091. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  1092.  
  1093. local Part = Instance.new("Part", Parent)
  1094. Part.Name = Name
  1095. Part.BrickColor = BrickColor.new(Color)
  1096. Part.Size = Size
  1097. Part.Material = Material
  1098. Part.Transparency = Transparency
  1099. Part.Shape = Shape
  1100. Part.CanCollide = false
  1101. NoOutlines(Part)
  1102.  
  1103. return Part
  1104.  
  1105. end
  1106.  
  1107. local CreateMesh = function(Parent, Scale, Shape)
  1108.  
  1109.  
  1110. local Mesh = Instance.new("BlockMesh", Parent)
  1111. Mesh.Scale = Scale
  1112.  
  1113. return Mesh
  1114.  
  1115. end
  1116.  
  1117. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  1118.  
  1119. local WedgePart = Instance.new("WedgePart", Parent)
  1120. WedgePart.Name = Name
  1121. WedgePart.BrickColor = BrickColor.new(Color)
  1122. WedgePart.Size = Size
  1123. WedgePart.Material = Material
  1124. WedgePart.Transparency = Transparency
  1125. WedgePart.CanCollide = false
  1126. NoOutlines(WedgePart)
  1127.  
  1128. return WedgePart
  1129.  
  1130. end
  1131.  
  1132. local CreateWeld = function(Parent, Cframe, P1 , P0)
  1133.  
  1134. local Weld = Instance.new("Weld", Parent)
  1135. Weld.Part0 = P0
  1136. Weld.Part1 = P1
  1137. Weld.Name = P0.Name .. "To" .. P1.Name
  1138. Weld.C0 = Cframe
  1139.  
  1140. return Weld
  1141.  
  1142. end
  1143.  
  1144. local CreateVelocity = function(Parent,Velocity,Force)
  1145.  
  1146. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  1147. BodyVelocity.Velocity = Velocity
  1148. BodyVelocity.MaxForce = Force
  1149.  
  1150.  
  1151.  
  1152. return BodyVelocity
  1153.  
  1154. end
  1155.  
  1156.  
  1157. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1158.  
  1159.  
  1160. local Part = Instance.new("Part", Parent)
  1161. Part.Name = Name
  1162. Part.BrickColor = BrickColor.new(Color)
  1163. Part.Size = Size
  1164. Part.Material = Material
  1165. Part.Transparency = Transparency
  1166. Part.CanCollide = false
  1167. NoOutlines(Part)
  1168.  
  1169. local Mesh = Instance.new("SpecialMesh", Part)
  1170. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  1171. Mesh.Scale = Scale
  1172.  
  1173. return Mesh and Part
  1174.  
  1175. end
  1176.  
  1177. local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
  1178.  
  1179. local SFX = Instance.new("Sound", Parent)
  1180. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  1181. SFX.Name = "SFX"
  1182. SFX:Play()
  1183. SFX.Volume = Volume
  1184. SFX.Pitch = Pitch
  1185. SFX.PlayOnRemove = true
  1186. SFX:Remove()
  1187.  
  1188. if Type == "Echo" then
  1189.  
  1190. Instance.new("EchoSoundEffect", SFX)
  1191.  
  1192. end
  1193.  
  1194. end
  1195.  
  1196. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1197.  
  1198.  
  1199. local Part = Instance.new("Part", Parent)
  1200. Part.Name = Name
  1201. Part.BrickColor = BrickColor.new(Color)
  1202. Part.Size = Size
  1203. Part.Material = Material
  1204. Part.Transparency = Transparency
  1205. Part.CanCollide = false
  1206. NoOutlines(Part)
  1207.  
  1208. local Mesh = Instance.new("SpecialMesh", Part)
  1209. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
  1210. Mesh.Scale = Scale
  1211.  
  1212. return Mesh and Part
  1213.  
  1214. end
  1215.  
  1216. CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  1217.  
  1218. local Part = Instance.new("Part", Parent)
  1219. Part.Transparency = Transparency
  1220. Part.Name = "CircleEffect"
  1221. Part.Size = Vector3.new()
  1222. Part.Anchored = true
  1223. Part.CanCollide = false
  1224. Part.Position = Position
  1225. Part.BrickColor = BrickColor.new(Brickcolor)
  1226. Part.Material = Material
  1227. NoOutlines(Part)
  1228.  
  1229. local Mesh = Instance.new("SpecialMesh", Part)
  1230. Mesh.MeshType = "Sphere"
  1231. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  1232.  
  1233. Services.Debris:AddItem(Part, Time)
  1234.  
  1235.  
  1236. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  1237.  
  1238.  
  1239. end
  1240.  
  1241. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  1242.  
  1243. local Part = Instance.new("Part", Parent)
  1244. Part.Transparency = Transparency
  1245. Part.Name = "BlockEffect"
  1246. Part.Size = Vector3.new()
  1247. Part.Anchored = true
  1248. Part.Position = Position
  1249. Part.CanCollide = false
  1250. Part.BrickColor = BrickColor.new(Brickcolor)
  1251. Part.Material = Material
  1252. NoOutlines(Part)
  1253.  
  1254. local Mesh = Instance.new("BlockMesh", Part)
  1255. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  1256.  
  1257. Services.Debris:AddItem(Part, Time)
  1258.  
  1259. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  1260.  
  1261.  
  1262. end
  1263.  
  1264. --[[ Damage function ]]--
  1265.  
  1266.  
  1267. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  1268.  
  1269. local HitHumanoid = Hit.Parent.Humanoid
  1270.  
  1271.  
  1272. local Damage = math.random(Min, Max)
  1273.  
  1274.  
  1275. coroutine.resume(coroutine.create(function()
  1276. HitHumanoid:TakeDamage(Damage)
  1277. end))
  1278.  
  1279. if Type == "Shrink" then
  1280. MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)
  1281. for i,v in pairs(Hit.Parent:children()) do
  1282. if v:IsA("Part") then
  1283. coroutine.resume(coroutine.create(function()
  1284. for i = 1,100 do
  1285. wait()
  1286. v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
  1287. v.Transparency = v.Transparency + 0.05
  1288.  
  1289. end
  1290. end))
  1291. end
  1292. end
  1293.  
  1294. end
  1295.  
  1296.  
  1297.  
  1298. if Type == "Normal" then
  1299.  
  1300. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  1301. Services.Debris:AddItem(Push, 0)
  1302. DamageLabel(Hit.Parent, Damage, Hit)
  1303.  
  1304. elseif Type == "Ranged" then
  1305. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  1306. Services.Debris:AddItem(Push, 0)
  1307. DamageLabel(Hit.Parent, Damage, Hit)
  1308.  
  1309. elseif Type == "Impale" then
  1310.  
  1311. local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
  1312. Spike.Anchored = true
  1313. Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
  1314. Spike.Position = Hit.Parent.Torso.Position
  1315.  
  1316.  
  1317. Services.Debris:AddItem(Spike, 30)
  1318.  
  1319. Hit.Parent:BreakJoints()
  1320. Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
  1321. Hit.Parent.Torso.Anchored = true
  1322.  
  1323. MakeSFX(Spike, 306247724, 1,1)
  1324. MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
  1325. elseif Type == "Knockdown" then
  1326.  
  1327.  
  1328. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  1329. DamageLabel(Hit.Parent, Damage, Hit)
  1330. Services.Debris:AddItem(Push, 0.3)
  1331.  
  1332. coroutine.resume(coroutine.create(function()
  1333.  
  1334. HitHumanoid.PlatformStand = true
  1335. wait(1)
  1336. HitHumanoid.PlatformStand = false
  1337.  
  1338.  
  1339. end))
  1340. end
  1341.  
  1342. if HitSFX == "Penetration" then
  1343.  
  1344. MakeSFX(Hit, 199149269, 1 , 1)
  1345.  
  1346. elseif HitSFX == "Punch" then
  1347.  
  1348. MakeSFX(Hit, 278062209, 1 , 1)
  1349.  
  1350.  
  1351.  
  1352.  
  1353. end
  1354. end
  1355.  
  1356. function DamageLabel(HitCharacter, DamageDealt, Hit)
  1357.  
  1358. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  1359. DamageShowingPart.Position = HitCharacter.Head.Position
  1360.  
  1361. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  1362. DamageGui.Name = "Damage"
  1363. DamageGui.AlwaysOnTop = true
  1364. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  1365.  
  1366. local DamageNumber = Instance.new("TextLabel", DamageGui)
  1367. DamageNumber.Size = UDim2.new(1,0,1,0)
  1368. if Hit.Parent:FindFirstChild("Head") then
  1369. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  1370. DamageNumber.TextColor3 = Hit.BrickColor.Color
  1371. end
  1372. DamageNumber.TextStrokeTransparency = 0
  1373. DamageNumber.BackgroundTransparency = 1
  1374. DamageNumber.Font = "SourceSansBold"
  1375. DamageNumber.TextScaled = true
  1376. DamageNumber.Text = DamageDealt
  1377.  
  1378. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  1379. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1380. BodyVelocity.Velocity = Vector3.new(0,2,0)
  1381.  
  1382. Services.Debris:AddItem(DamageShowingPart, 3)
  1383.  
  1384.  
  1385. end
  1386.  
  1387. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  1388. for _,WorkspaceChildren in pairs(workspace:children()) do
  1389.  
  1390. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  1391.  
  1392. if HitHumanoid ~= nil then
  1393. local Hit = WorkspaceChildren:findFirstChild("Torso")
  1394.  
  1395. if Hit ~= nil then
  1396.  
  1397. local Target = Hit.Position - Part.Position
  1398.  
  1399. local Magnitude = Target.magnitude
  1400.  
  1401. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  1402.  
  1403. local HitBlock = Hit.Parent:FindFirstChild("Block")
  1404.  
  1405. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  1406.  
  1407. local HitBlock2 = Hit.Parent.Block.BlockDurability
  1408.  
  1409. if HitBlock2.Value > 15 then
  1410.  
  1411. local HitN = math.random(1,5)
  1412.  
  1413. HitBlock2.Value = HitBlock2.Value - 15
  1414.  
  1415.  
  1416. if HitN == 1 then
  1417. MakeSFX(Hit ,199148971, 0.5, 1)
  1418. end
  1419.  
  1420. if HitN == 2 then
  1421. MakeSFX(Hit ,199149025, 0.5, 1)
  1422. end
  1423.  
  1424. if HitN == 3 then
  1425. MakeSFX(Hit ,199149072, 0.5, 1)
  1426. end
  1427.  
  1428. if HitN == 4 then
  1429. MakeSFX(Hit ,199149109, 0.5, 1)
  1430. end
  1431.  
  1432. if HitN == 5 then
  1433. MakeSFX(Hit ,199149119, 0.5, 1)
  1434. end
  1435. return
  1436. end
  1437. end
  1438.  
  1439. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  1440.  
  1441.  
  1442.  
  1443. end
  1444. end
  1445. end
  1446. end
  1447. end
  1448.  
  1449.  
  1450.  
  1451. local Cloak = Instance.new("Part", Character)
  1452. Cloak.Name = "Cloak"
  1453. Cloak.CanCollide = false
  1454. Cloak.BrickColor = BrickColor.new("Institutional white")
  1455.  
  1456. local CloakMesh = Instance.new("SpecialMesh", Cloak)
  1457. CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
  1458. CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
  1459.  
  1460. local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
  1461.  
  1462. for i,v in pairs(Character:children()) do
  1463. if v:IsA("Accessory") then
  1464. v:Remove()
  1465. elseif v:IsA("Shirt") then
  1466. v:Remove()
  1467. elseif v:IsA("Pants") then
  1468. v:Remove()
  1469. elseif v:IsA("BodyColors") then
  1470.  
  1471. Head.BrickColor =BrickColor.new("Really black")
  1472. Torso.BrickColor = BrickColor.new("Really black")
  1473. Right_Arm.BrickColor = BrickColor.new("Really black")
  1474. Right_Leg.BrickColor = BrickColor.new("Really black")
  1475. Left_Arm.BrickColor = BrickColor.new("Really black")
  1476. Left_Leg.BrickColor = BrickColor.new("Really black")
  1477.  
  1478. v.HeadColor = BrickColor.new("Really black")
  1479. v.TorsoColor = BrickColor.new("Really black")
  1480. v.RightArmColor = BrickColor.new("Really black")
  1481. v.LeftArmColor = BrickColor.new("Really black")
  1482. v.RightLegColor = BrickColor.new("Really black")
  1483. v.LeftLegColor = BrickColor.new("Really black")
  1484.  
  1485. end
  1486. end
  1487.  
  1488.  
  1489.  
  1490. --[[ CLerp Declarations ]]--
  1491.  
  1492. function clerp(a,b,t)
  1493. local qa = {QuaternionFromCFrame(a)}
  1494. local qb = {QuaternionFromCFrame(b)}
  1495. local ax, ay, az = a.x, a.y, a.z
  1496. local bx, by, bz = b.x, b.y, b.z
  1497. local _t = 1-t
  1498. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1499. end
  1500.  
  1501. function QuaternionFromCFrame(cf) -- dis one
  1502. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1503. local trace = m00 + m11 + m22
  1504. if trace > 0 then
  1505. local s = math.sqrt(1 + trace)
  1506. local recip = 0.5/s
  1507. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1508. else
  1509. local i = 0
  1510. if m11 > m00 then
  1511. i = 1
  1512. end
  1513. if m22 > (i == 0 and m00 or m11) then
  1514. i = 2
  1515. end
  1516. if i == 0 then
  1517. local s = math.sqrt(m00-m11-m22+1)
  1518. local recip = 0.5/s
  1519. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1520. elseif i == 1 then
  1521. local s = math.sqrt(m11-m22-m00+1)
  1522. local recip = 0.5/s
  1523. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1524. elseif i == 2 then
  1525. local s = math.sqrt(m22-m00-m11+1)
  1526. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1527. end
  1528. end
  1529. end
  1530.  
  1531. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1532. local xs, ys, zs = x + x, y + y, z + z
  1533. local wx, wy, wz = w*xs, w*ys, w*zs
  1534. local xx = x*xs
  1535. local xy = x*ys
  1536. local xz = x*zs
  1537. local yy = y*ys
  1538. local yz = y*zs
  1539. local zz = z*zs
  1540. 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))
  1541. end
  1542.  
  1543. function QuaternionSlerp(a, b, t)
  1544. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1545. local startInterp, finishInterp;
  1546. if cosTheta >= 0.0001 then
  1547. if (1 - cosTheta) > 0.0001 then
  1548. local theta = math.acos(cosTheta)
  1549. local invSinTheta = 1/math.sin(theta)
  1550. startInterp = math.sin((1-t)*theta)*invSinTheta
  1551. finishInterp = math.sin(t*theta)*invSinTheta
  1552. else
  1553. startInterp = 1-t
  1554. finishInterp = t
  1555. end
  1556. else
  1557. if (1+cosTheta) > 0.0001 then
  1558. local theta = math.acos(-cosTheta)
  1559. local invSinTheta = 1/math.sin(theta)
  1560. startInterp = math.sin((t-1)*theta)*invSinTheta
  1561. finishInterp = math.sin(t*theta)*invSinTheta
  1562. else
  1563. startInterp = t-1
  1564. finishInterp = t
  1565. end
  1566. end
  1567. 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
  1568. end
  1569.  
  1570. function RayCast(Pos, Dir, Max, Ignore)
  1571. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1572. end
  1573.  
  1574.  
  1575. function Bars()
  1576.  
  1577. --[[ Mana Bar ]]--
  1578. if Destruction ~= MaxDestruction then
  1579.  
  1580. Destruction = Destruction + 1
  1581.  
  1582. end
  1583.  
  1584. if Destruction >= MaxDestruction then
  1585.  
  1586. Destruction = Destruction
  1587.  
  1588. end
  1589.  
  1590.  
  1591. ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
  1592.  
  1593. ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)
  1594.  
  1595. end
  1596. local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  1597. local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
  1598.  
  1599. coroutine.resume(coroutine.create(function()
  1600.  
  1601. while wait(3) do
  1602.  
  1603.  
  1604. CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
  1605.  
  1606.  
  1607. end
  1608.  
  1609. end))
  1610. --[[ Attacks ]]--
  1611.  
  1612. function Attack1()
  1613. Attacking = true
  1614. MakeSFX(EyeReference, 341336274, 1,1)
  1615. wait(0.3)
  1616. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  1617. local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root)
  1618.  
  1619. local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  1620. local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root)
  1621.  
  1622.  
  1623. for i = 1,10 do
  1624.  
  1625. wait()
  1626. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
  1627. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
  1628. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  1629. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
  1630. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
  1631. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3)
  1632.  
  1633. end
  1634.  
  1635. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1636. wait(0.5)
  1637. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1638. wait(0.5)
  1639. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1640. wait(0.5)
  1641. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1642. wait(0.5)
  1643. MakeSFX(Reference, 306247724, 1,1)
  1644. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  1645. ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
  1646. Attacking = false
  1647. end
  1648.  
  1649. function Attack2()
  1650.  
  1651. Attacking = true
  1652. Humanoid.WalkSpeed = 0
  1653. Humanoid.JumpPower = 0
  1654.  
  1655.  
  1656. for i = 1,25 do
  1657. wait()
  1658.  
  1659. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
  1660. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1661. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
  1662. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
  1663. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  1664. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  1665.  
  1666. end
  1667.  
  1668. MakeSFX(Torso, 142070127, 1, 1)
  1669. ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
  1670. local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1671. if Hit ~= nil then
  1672. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  1673. Reference.Anchored = true
  1674. Reference.CFrame = CFrame.new(Position)
  1675.  
  1676. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  1677.  
  1678. game:GetService("Debris"):AddItem(Reference,0.1)
  1679. for i=1,50 do
  1680.  
  1681. 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")
  1682. Ground.Anchored = true
  1683. Ground.CanCollide = true
  1684. 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))
  1685.  
  1686. game:GetService("Debris"):AddItem(Ground,10)
  1687.  
  1688. end
  1689. end
  1690.  
  1691. for i = 1,25 do
  1692. wait()
  1693.  
  1694. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
  1695. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  1696. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  1697. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  1698. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  1699. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  1700.  
  1701. end
  1702.  
  1703. Attacking = false
  1704. Humanoid.WalkSpeed = 16
  1705. Humanoid.JumpPower = 50
  1706.  
  1707.  
  1708.  
  1709. end
  1710.  
  1711.  
  1712. function Attack3()
  1713. Humanoid.WalkSpeed = 0
  1714. Humanoid.JumpPower = 0
  1715. Attacking = true
  1716. wait(1)
  1717. MakeSFX(Torso, 341336274, 1, 1.2)
  1718. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  1719. wait(1)
  1720. MakeSFX(Torso, 341336274, 1, 1.2)
  1721. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  1722. wait(1)
  1723. MakeSFX(Torso, 341336274, 1, 1.2)
  1724. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  1725. ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
  1726. Humanoid.WalkSpeed = 16
  1727. Humanoid.JumpPower = 50
  1728. Attacking = false
  1729. end
  1730.  
  1731. Mouse.Button1Down:connect(function()
  1732. if not Attacking then
  1733. if Combo == 1 then
  1734.  
  1735. Combo = 2
  1736. Attack1()
  1737.  
  1738.  
  1739. elseif Combo == 2 then
  1740.  
  1741. Attack2()
  1742. Combo = 3
  1743.  
  1744. elseif Combo == 3 then
  1745.  
  1746. Attack3()
  1747. Combo = 1
  1748.  
  1749. end
  1750. end
  1751. end)
  1752.  
  1753. --[[ CLerp Animations ]]--
  1754. Change1 = 0
  1755. Change2 = 0
  1756. Change3 = 0
  1757. Change4 = 0
  1758.  
  1759. while true do
  1760. wait()
  1761.  
  1762. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  1763. local Velderp = Root.Velocity.y
  1764. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1765.  
  1766. Bars()
  1767.  
  1768.  
  1769. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  1770. Anim = "Idle"
  1771.  
  1772. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  1773. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  1774. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  1775. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  1776. 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)
  1777. 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)
  1778.  
  1779. end
  1780.  
  1781.  
  1782. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  1783. Anim = "Walking"
  1784.  
  1785. if Invert == false then
  1786. Change1 = Change1 + 0.1
  1787.  
  1788. elseif Invert == true then
  1789.  
  1790. Change1 = Change1 - 0.1
  1791.  
  1792. end
  1793.  
  1794. if Change1 > 0.5 then
  1795.  
  1796. Invert = true
  1797.  
  1798. elseif Change1 < -0.5 then
  1799.  
  1800. Invert = false
  1801.  
  1802. end
  1803.  
  1804. if Attacking == false then
  1805.  
  1806. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  1807. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  1808. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
  1809. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
  1810. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
  1811. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
  1812.  
  1813. end
  1814. end
  1815.  
  1816. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  1817. Anim = "Jump"
  1818.  
  1819. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  1820. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  1821. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
  1822. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
  1823. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  1824. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  1825.  
  1826. end
  1827.  
  1828. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  1829. Anim = "Fall"
  1830.  
  1831. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  1832. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  1833. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
  1834. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
  1835. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  1836. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  1837.  
  1838. end
  1839.  
  1840.  
  1841. if #Effects > 0 then
  1842. for E = 1, #Effects do
  1843. if Effects[E]~=nil then
  1844. local Effect = Effects[E]
  1845.  
  1846. if Effect ~= nil then
  1847.  
  1848. local Part = Effect[1]
  1849. local Mode = Effect[2]
  1850. local Time = Effect[3]
  1851. local SizeX = Effect[4]
  1852. local SizeY = Effect[5]
  1853. local SizeZ = Effect[6]
  1854.  
  1855. if Effect[1].Transparency <= 1 then
  1856. if Effect[2] == "Block" then
  1857. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1858.  
  1859. Mesh = Effect[1]:FindFirstChild("Mesh")
  1860. if Mesh ~= nil then
  1861. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1862. end
  1863.  
  1864. elseif Effect[2] == "Circle" then
  1865.  
  1866. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  1867. Mesh=Effect[1].Mesh
  1868. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1869. end
  1870.  
  1871. Effect[1].Transparency = Effect[1].Transparency + 0.05
  1872.  
  1873. else
  1874.  
  1875. Part.Parent=nil
  1876.  
  1877. table.remove(Effects, E)
  1878.  
  1879. end
  1880. end
  1881. end
  1882. end
  1883. end
  1884. end
  1885. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement