Advertisement
Maximuspondal

World Eater Script ( Saved from deletion )

Apr 20th, 2017
9,474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.67 KB | None | 0 0
  1. --[[ World eater Script ]]--
  2. --[[ Declarations ]]--
  3.  
  4. local a = game.Players.LocalPlayer
  5. local mouse = a:GetMouse()
  6.  
  7. game.Workspace[a.Name].Humanoid.HealthDisplayType = "AlwaysOff"
  8. game.Workspace[a.Name].Humanoid.HealthDisplayDistance = "0"
  9. game.Workspace[a.Name].Humanoid.DisplayDistanceType = "None"
  10.  
  11.  
  12.  
  13. mouse.KeyDown:connect(function(key)
  14. if key == "q" then
  15. local p = game.Workspace[a.Name]
  16. for i,v in pairs(p:GetChildren()) do
  17. if v:IsA("Part") then
  18. v.Transparency = 1
  19. p.Head.face.Transparency = 1
  20. p.Cloak.Transparency = 1
  21. p.Head.BillboardGui.Enabled = false
  22. game.Lighting.OutdoorAmbient = Color3.new(0, 0, 0)
  23. game.Lighting.Brightness = 0
  24. game.Lighting.Ambient = Color3.new(0, 0, 0)
  25. p.Humanoid.WalkSpeed = 100
  26. p.Humanoid.JumpPower = 75
  27. game.Workspace.Gravity = 80
  28.  
  29. end
  30. end
  31.  
  32. end
  33. end)
  34.  
  35. mouse.KeyDown:connect(function(key)
  36. if key == "e" then
  37. local p = game.Workspace[a.Name]
  38. for i,v in pairs(p:GetChildren()) do
  39. if v:IsA("Part") then
  40. v.Transparency = 0
  41. p.Cloak.Transparency = 0
  42. p.Head.face.Transparency = 0
  43. p.Reference.Transparency = 1
  44. p.HumanoidRootPart.Transparency = 1
  45. p.Head.BillboardGui.Enabled = true
  46. game.Lighting.OutdoorAmbient = Color3.new(127, 127, 127)
  47. game.Lighting.Brightness = 1
  48. game.Lighting.Ambient = Color3.new(0, 0, 0)
  49. p.Humanoid.WalkSpeed = 21
  50. p.Humanoid.JumpPower = 50
  51. game.Workspace.Gravity = 100
  52. end
  53. end
  54.  
  55. end
  56. end)
  57.  
  58. mouse.KeyDown:connect(function(key)
  59. if key == "r" then
  60. for i,v in pairs(game.Players:GetChildren()) do
  61. if v.Name == a.Name then
  62. else
  63. if v:IsA("Player") then
  64.  
  65. game.Workspace[v.Name].Humanoid.Health = 0
  66. end
  67. end
  68. end
  69. end
  70. end)
  71.  
  72. mouse.KeyDown:connect(function(key)
  73. if key == "f" then
  74. game.Workspace[a.Name].Humanoid.Jump = true
  75.  
  76. end
  77. end)
  78.  
  79. wait(.0000000000000000000001)
  80. local Player = game:GetService("Players").LocalPlayer
  81. local Character = Player.Character
  82. local Head = Character.Head
  83. local Torso = Character.Torso
  84. local Right_Arm = Character["Right Arm"]
  85. local Right_Leg = Character["Right Leg"]
  86. local Left_Arm = Character["Left Arm"]
  87. local Left_Leg = Character["Left Leg"]
  88. local Humanoid = Character.Humanoid
  89. local Animation = "Idle"
  90. local Mouse = Player:GetMouse()
  91. local LeftShoulder = Torso["Left Shoulder"]
  92. local Left_Hip = Torso["Left Hip"]
  93. local RightShoulder = Torso["Right Shoulder"]
  94. local Right_Hip = Torso["Right Hip"]
  95. local Root = Character.HumanoidRootPart
  96. local RootJoint = Root.RootJoint
  97. local Attacking = false
  98. local CanAttack = true
  99. local Anim = "Idle"
  100. local Combo = 1
  101. local Blocking = false
  102. local MaxDestruction = 1000
  103. local Destruction = 0
  104. local MaxBlock = 100
  105. local Effects = {}
  106. local Color = "Bright yellow"
  107. local Invert = false
  108. local Idle = 0
  109. local Equipped = false
  110. local Running = false
  111. local Unseathed = false
  112. local Shard = "None"
  113.  
  114. Humanoid.MaxHealth = math.huge
  115. Humanoid.Health = math.huge
  116.  
  117. local WorldEaterTheme = Instance.new("Sound",Character)
  118. WorldEaterTheme.Name = "WorldEaterTheme"
  119. WorldEaterTheme.Looped = true
  120. WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=149981769"
  121. WorldEaterTheme:Play()
  122.  
  123. Left_Shoulder = Instance.new("Weld", Torso)
  124. Left_Shoulder.Part0 = Torso
  125. Left_Shoulder.Part1 = Left_Arm
  126. Left_Shoulder.Name = "Left Shoulder"
  127. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  128.  
  129. Right_Shoulder = Instance.new("Weld", Torso)
  130. Right_Shoulder.Part0 = Torso
  131. Right_Shoulder.Part1 = Right_Arm
  132. Right_Shoulder.Name = "Right Shoulder"
  133. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  134.  
  135. LeftShoulder.Parent = nil
  136. RightShoulder.Parent = nil
  137. Humanoid.WalkSpeed = 10
  138.  
  139. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  140. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  141. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  142. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  143. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  144.  
  145.  
  146. Movemment = 1
  147. Walk = 0
  148.  
  149. Animator = Humanoid.Animator
  150. --Animate = Character.Animate
  151.  
  152. Animator.Parent = nil
  153. --Animate.Parent = nil
  154.  
  155. local Services = {
  156.  
  157. SoundService = game:GetService("SoundService");
  158. Players = game:GetService("Players");
  159. Debris = game:GetService("Debris");
  160. Workspace = game:GetService("Workspace");
  161. Lighting = game:GetService("Lighting");
  162. HttpService = game:GetService("HttpService");
  163. InsertService = game:GetService("InsertService");
  164.  
  165. }
  166.  
  167. local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  168. ManaBarGUI.Name = "ManaBarGUI"
  169.  
  170. local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
  171. ManaBarP1.Name = "ManaBarPart1"
  172. ManaBarP1.Size = UDim2.new(0,300,0,20)
  173. ManaBarP1.Position = UDim2.new(0,350,0.1,0)
  174. ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
  175.  
  176. local ManaBarP2 = Instance.new("Frame", ManaBarP1)
  177. ManaBarP2.Name = "ManaBarPart2"
  178. ManaBarP2.Size = UDim2.new(0,300,0,20)
  179. ManaBarP2.Position = UDim2.new(0,0,0,0)
  180. ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
  181.  
  182. local ManaBarText = Instance.new("TextLabel", ManaBarP1)
  183. ManaBarText.Name = "ManaBarText"
  184. ManaBarText.Size = UDim2.new(0,300,0,20)
  185. ManaBarText.Position = UDim2.new(0,0,-1.5,0)
  186. ManaBarText.TextScaled = true
  187. ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
  188. ManaBarText.BackgroundTransparency = 1
  189. ManaBarText.TextStrokeTransparency = 0
  190. ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
  191. ManaBarText.TextColor3 = Color3.new(0,0,0)
  192. ManaBarText.Font = "Garamond"
  193.  
  194. local WorldEaterGui = Instance.new("BillboardGui", Head)
  195. WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
  196. WorldEaterGui.Adornee = Head
  197. WorldEaterGui.AlwaysOnTop = true
  198. WorldEaterGui.Enabled = true
  199. WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
  200.  
  201. local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
  202. WorldEaterText.BackgroundTransparency = 1
  203. WorldEaterText.Font = "Garamond"
  204. WorldEaterText.Size = UDim2.new(0, 200,0, 50)
  205. WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color
  206. WorldEaterText.TextStrokeTransparency = 0
  207. WorldEaterText.TextColor3 = BrickColor.Black().Color
  208. WorldEaterText.TextScaled = true
  209. WorldEaterText.Text = "World Eater"
  210.  
  211. --------[[ Mesh Ids ]]--------
  212.  
  213. SpikeMeshId = 1033714
  214. SpikeBallId = 9982590
  215. StarMeshId = 45428961
  216. CrystalMeshId = 9756362
  217.  
  218. --[[ Essential Functions ]]--
  219. function NoOutlines(Part)
  220. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  221. end
  222.  
  223.  
  224. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  225.  
  226. local Part = Instance.new("Part", Parent)
  227. Part.Name = Name
  228. Part.BrickColor = BrickColor.new(Color)
  229. Part.Size = Size
  230. Part.Material = Material
  231. Part.Transparency = Transparency
  232. Part.Shape = Shape
  233. Part.CanCollide = false
  234. NoOutlines(Part)
  235.  
  236. return Part
  237.  
  238. end
  239.  
  240. local CreateMesh = function(Parent, Scale, Shape)
  241.  
  242.  
  243. local Mesh = Instance.new("BlockMesh", Parent)
  244. Mesh.Scale = Scale
  245.  
  246. return Mesh
  247.  
  248. end
  249.  
  250. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  251.  
  252. local WedgePart = Instance.new("WedgePart", Parent)
  253. WedgePart.Name = Name
  254. WedgePart.BrickColor = BrickColor.new(Color)
  255. WedgePart.Size = Size
  256. WedgePart.Material = Material
  257. WedgePart.Transparency = Transparency
  258. WedgePart.CanCollide = false
  259. NoOutlines(WedgePart)
  260.  
  261. return WedgePart
  262.  
  263. end
  264.  
  265. local CreateWeld = function(Parent, Cframe, P1 , P0)
  266.  
  267. local Weld = Instance.new("Weld", Parent)
  268. Weld.Part0 = P0
  269. Weld.Part1 = P1
  270. Weld.Name = P0.Name .. "To" .. P1.Name
  271. Weld.C0 = Cframe
  272.  
  273. return Weld
  274.  
  275. end
  276.  
  277. local CreateVelocity = function(Parent,Velocity,Force)
  278.  
  279. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  280. BodyVelocity.Velocity = Velocity
  281. BodyVelocity.MaxForce = Force
  282.  
  283.  
  284.  
  285. return BodyVelocity
  286.  
  287. end
  288.  
  289.  
  290. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  291.  
  292.  
  293. local Part = Instance.new("Part", Parent)
  294. Part.Name = Name
  295. Part.BrickColor = BrickColor.new(Color)
  296. Part.Size = Size
  297. Part.Material = Material
  298. Part.Transparency = Transparency
  299. Part.CanCollide = false
  300. NoOutlines(Part)
  301.  
  302. local Mesh = Instance.new("SpecialMesh", Part)
  303. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  304. Mesh.Scale = Scale
  305.  
  306. return Mesh and Part
  307.  
  308. end
  309.  
  310. local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
  311.  
  312. local SFX = Instance.new("Sound", Parent)
  313. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  314. SFX.Name = "SFX"
  315. SFX:Play()
  316. SFX.Volume = Volume
  317. SFX.Pitch = Pitch
  318. SFX.PlayOnRemove = true
  319. SFX:Remove()
  320.  
  321. if Type == "Echo" then
  322.  
  323. Instance.new("EchoSoundEffect", SFX)
  324.  
  325. end
  326.  
  327. end
  328.  
  329. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  330.  
  331.  
  332. local Part = Instance.new("Part", Parent)
  333. Part.Name = Name
  334. Part.BrickColor = BrickColor.new(Color)
  335. Part.Size = Size
  336. Part.Material = Material
  337. Part.Transparency = Transparency
  338. Part.CanCollide = false
  339. NoOutlines(Part)
  340.  
  341. local Mesh = Instance.new("SpecialMesh", Part)
  342. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
  343. Mesh.Scale = Scale
  344.  
  345. return Mesh and Part
  346.  
  347. end
  348.  
  349. CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  350.  
  351. local Part = Instance.new("Part", Parent)
  352. Part.Transparency = Transparency
  353. Part.Name = "CircleEffect"
  354. Part.Size = Vector3.new()
  355. Part.Anchored = true
  356. Part.CanCollide = false
  357. Part.Position = Position
  358. Part.BrickColor = BrickColor.new(Brickcolor)
  359. Part.Material = Material
  360. NoOutlines(Part)
  361.  
  362. local Mesh = Instance.new("SpecialMesh", Part)
  363. Mesh.MeshType = "Sphere"
  364. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  365.  
  366. Services.Debris:AddItem(Part, Time)
  367.  
  368.  
  369. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  370.  
  371.  
  372. end
  373.  
  374. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  375.  
  376. local Part = Instance.new("Part", Parent)
  377. Part.Transparency = Transparency
  378. Part.Name = "BlockEffect"
  379. Part.Size = Vector3.new()
  380. Part.Anchored = true
  381. Part.Position = Position
  382. Part.CanCollide = false
  383. Part.BrickColor = BrickColor.new(Brickcolor)
  384. Part.Material = Material
  385. NoOutlines(Part)
  386.  
  387. local Mesh = Instance.new("BlockMesh", Part)
  388. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  389.  
  390. Services.Debris:AddItem(Part, Time)
  391.  
  392. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  393.  
  394.  
  395. end
  396.  
  397. --[[ Damage function ]]--
  398.  
  399.  
  400. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  401.  
  402. local HitHumanoid = Hit.Parent.Humanoid
  403.  
  404.  
  405. local Damage = math.random(Min, Max)
  406.  
  407.  
  408. coroutine.resume(coroutine.create(function()
  409. HitHumanoid:TakeDamage(Damage)
  410. end))
  411.  
  412. if Type == "Shrink" then
  413. MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)
  414. for i,v in pairs(Hit.Parent:children()) do
  415. if v:IsA("Part") then
  416. coroutine.resume(coroutine.create(function()
  417. for i = 1,100 do
  418. wait()
  419. v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
  420. v.Transparency = v.Transparency + 0.05
  421.  
  422. end
  423. end))
  424. end
  425. end
  426.  
  427. end
  428.  
  429.  
  430.  
  431. if Type == "Normal" then
  432.  
  433. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  434. Services.Debris:AddItem(Push, 0)
  435. DamageLabel(Hit.Parent, Damage, Hit)
  436.  
  437. elseif Type == "Ranged" then
  438. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  439. Services.Debris:AddItem(Push, 0)
  440. DamageLabel(Hit.Parent, Damage, Hit)
  441.  
  442. elseif Type == "Impale" then
  443.  
  444. local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
  445. Spike.Anchored = true
  446. Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
  447. Spike.Position = Hit.Parent.Torso.Position
  448.  
  449.  
  450. Services.Debris:AddItem(Spike, 30)
  451.  
  452. Hit.Parent:BreakJoints()
  453. Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
  454. Hit.Parent.Torso.Anchored = true
  455.  
  456. MakeSFX(Spike, 306247724, 1,1)
  457. MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
  458. elseif Type == "Knockdown" then
  459.  
  460.  
  461. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  462. DamageLabel(Hit.Parent, Damage, Hit)
  463. Services.Debris:AddItem(Push, 0.3)
  464.  
  465. coroutine.resume(coroutine.create(function()
  466.  
  467. HitHumanoid.PlatformStand = true
  468. wait(1)
  469. HitHumanoid.PlatformStand = false
  470.  
  471.  
  472. end))
  473. end
  474.  
  475. if HitSFX == "Penetration" then
  476.  
  477. MakeSFX(Hit, 199149269, 1 , 1)
  478.  
  479. elseif HitSFX == "Punch" then
  480.  
  481. MakeSFX(Hit, 278062209, 1 , 1)
  482.  
  483.  
  484.  
  485.  
  486. end
  487. end
  488.  
  489. function DamageLabel(HitCharacter, DamageDealt, Hit)
  490.  
  491. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  492. DamageShowingPart.Position = HitCharacter.Head.Position
  493.  
  494. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  495. DamageGui.Name = "Damage"
  496. DamageGui.AlwaysOnTop = true
  497. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  498.  
  499. local DamageNumber = Instance.new("TextLabel", DamageGui)
  500. DamageNumber.Size = UDim2.new(1,0,1,0)
  501. if Hit.Parent:FindFirstChild("Head") then
  502. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  503. DamageNumber.TextColor3 = Hit.BrickColor.Color
  504. end
  505. DamageNumber.TextStrokeTransparency = 0
  506. DamageNumber.BackgroundTransparency = 1
  507. DamageNumber.Font = "SourceSansBold"
  508. DamageNumber.TextScaled = true
  509. DamageNumber.Text = DamageDealt
  510.  
  511. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  512. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  513. BodyVelocity.Velocity = Vector3.new(0,2,0)
  514.  
  515. Services.Debris:AddItem(DamageShowingPart, 3)
  516.  
  517.  
  518. end
  519.  
  520. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  521. for _,WorkspaceChildren in pairs(workspace:children()) do
  522.  
  523. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  524.  
  525. if HitHumanoid ~= nil then
  526. local Hit = WorkspaceChildren:findFirstChild("Torso")
  527.  
  528. if Hit ~= nil then
  529.  
  530. local Target = Hit.Position - Part.Position
  531.  
  532. local Magnitude = Target.magnitude
  533.  
  534. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  535.  
  536. local HitBlock = Hit.Parent:FindFirstChild("Block")
  537.  
  538. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  539.  
  540. local HitBlock2 = Hit.Parent.Block.BlockDurability
  541.  
  542. if HitBlock2.Value > 15 then
  543.  
  544. local HitN = math.random(1,5)
  545.  
  546. HitBlock2.Value = HitBlock2.Value - 15
  547.  
  548.  
  549. if HitN == 1 then
  550. MakeSFX(Hit ,199148971, 0.5, 1)
  551. end
  552.  
  553. if HitN == 2 then
  554. MakeSFX(Hit ,199149025, 0.5, 1)
  555. end
  556.  
  557. if HitN == 3 then
  558. MakeSFX(Hit ,199149072, 0.5, 1)
  559. end
  560.  
  561. if HitN == 4 then
  562. MakeSFX(Hit ,199149109, 0.5, 1)
  563. end
  564.  
  565. if HitN == 5 then
  566. MakeSFX(Hit ,199149119, 0.5, 1)
  567. end
  568. return
  569. end
  570. end
  571.  
  572. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  573.  
  574.  
  575.  
  576. end
  577. end
  578. end
  579. end
  580. end
  581.  
  582.  
  583.  
  584. local Cloak = Instance.new("Part", Character)
  585. Cloak.Name = "Cloak"
  586. Cloak.CanCollide = false
  587. Cloak.BrickColor = BrickColor.new("Institutional white")
  588.  
  589.  
  590.  
  591.  
  592. local CloakMesh = Instance.new("SpecialMesh", Cloak)
  593. CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
  594. CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
  595.  
  596. local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
  597.  
  598. for i,v in pairs(Character:children()) do
  599. if v:IsA("Accessory") then
  600. v:Remove()
  601. elseif v:IsA("Shirt") then
  602. v:Remove()
  603. elseif v:IsA("Pants") then
  604. v:Remove()
  605. elseif v:IsA("BodyColors") then
  606.  
  607. Head.BrickColor =BrickColor.new("Really black")
  608. Torso.BrickColor = BrickColor.new("Really black")
  609. Right_Arm.BrickColor = BrickColor.new("Really black")
  610. Right_Leg.BrickColor = BrickColor.new("Really black")
  611. Left_Arm.BrickColor = BrickColor.new("Really black")
  612. Left_Leg.BrickColor = BrickColor.new("Really black")
  613.  
  614. v.HeadColor = BrickColor.new("Really black")
  615. v.TorsoColor = BrickColor.new("Really black")
  616. v.RightArmColor = BrickColor.new("Really black")
  617. v.LeftArmColor = BrickColor.new("Really black")
  618. v.RightLegColor = BrickColor.new("Really black")
  619. v.LeftLegColor = BrickColor.new("Really black")
  620.  
  621. end
  622. end
  623.  
  624.  
  625.  
  626. --[[ CLerp Declarations ]]--
  627.  
  628. function clerp(a,b,t)
  629. local qa = {QuaternionFromCFrame(a)}
  630. local qb = {QuaternionFromCFrame(b)}
  631. local ax, ay, az = a.x, a.y, a.z
  632. local bx, by, bz = b.x, b.y, b.z
  633. local _t = 1-t
  634. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  635. end
  636.  
  637. function QuaternionFromCFrame(cf) -- dis one
  638. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  639. local trace = m00 + m11 + m22
  640. if trace > 0 then
  641. local s = math.sqrt(1 + trace)
  642. local recip = 0.5/s
  643. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  644. else
  645. local i = 0
  646. if m11 > m00 then
  647. i = 1
  648. end
  649. if m22 > (i == 0 and m00 or m11) then
  650. i = 2
  651. end
  652. if i == 0 then
  653. local s = math.sqrt(m00-m11-m22+1)
  654. local recip = 0.5/s
  655. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  656. elseif i == 1 then
  657. local s = math.sqrt(m11-m22-m00+1)
  658. local recip = 0.5/s
  659. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  660. elseif i == 2 then
  661. local s = math.sqrt(m22-m00-m11+1)
  662. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  663. end
  664. end
  665. end
  666.  
  667. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  668. local xs, ys, zs = x + x, y + y, z + z
  669. local wx, wy, wz = w*xs, w*ys, w*zs
  670. local xx = x*xs
  671. local xy = x*ys
  672. local xz = x*zs
  673. local yy = y*ys
  674. local yz = y*zs
  675. local zz = z*zs
  676. 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))
  677. end
  678.  
  679. function QuaternionSlerp(a, b, t)
  680. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  681. local startInterp, finishInterp;
  682. if cosTheta >= 0.0001 then
  683. if (1 - cosTheta) > 0.0001 then
  684. local theta = math.acos(cosTheta)
  685. local invSinTheta = 1/math.sin(theta)
  686. startInterp = math.sin((1-t)*theta)*invSinTheta
  687. finishInterp = math.sin(t*theta)*invSinTheta
  688. else
  689. startInterp = 1-t
  690. finishInterp = t
  691. end
  692. else
  693. if (1+cosTheta) > 0.0001 then
  694. local theta = math.acos(-cosTheta)
  695. local invSinTheta = 1/math.sin(theta)
  696. startInterp = math.sin((t-1)*theta)*invSinTheta
  697. finishInterp = math.sin(t*theta)*invSinTheta
  698. else
  699. startInterp = t-1
  700. finishInterp = t
  701. end
  702. end
  703. 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
  704. end
  705.  
  706. function RayCast(Pos, Dir, Max, Ignore)
  707. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  708. end
  709.  
  710.  
  711. function Bars()
  712.  
  713. --[[ Mana Bar ]]--
  714. if Destruction ~= MaxDestruction then
  715.  
  716. Destruction = Destruction + 1
  717.  
  718. end
  719.  
  720. if Destruction >= MaxDestruction then
  721.  
  722. Destruction = Destruction
  723.  
  724. end
  725.  
  726.  
  727. ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
  728.  
  729. ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)
  730.  
  731. end
  732. local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  733. local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
  734.  
  735. coroutine.resume(coroutine.create(function()
  736.  
  737. while wait(3) do
  738.  
  739.  
  740. CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
  741.  
  742.  
  743. end
  744.  
  745. end))
  746. --[[ Attacks ]]--
  747.  
  748. function Attack1()
  749. Attacking = true
  750. MakeSFX(EyeReference, 341336274, 1,1)
  751. wait(0.3)
  752. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  753. local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root)
  754.  
  755. local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  756. local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root)
  757.  
  758.  
  759. for i = 1,10 do
  760.  
  761. wait()
  762. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
  763. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
  764. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  765. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
  766. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
  767. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3)
  768.  
  769. end
  770.  
  771. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  772. wait(0.5)
  773. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  774. wait(0.5)
  775. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  776. wait(0.5)
  777. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  778. wait(0.5)
  779. MakeSFX(Reference, 306247724, 1,1)
  780. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  781. ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
  782. Attacking = false
  783. end
  784.  
  785. function Attack2()
  786.  
  787. Attacking = true
  788. Humanoid.WalkSpeed = 0
  789. Humanoid.JumpPower = 0
  790.  
  791.  
  792. for i = 1,25 do
  793. wait()
  794.  
  795. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
  796. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  797. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
  798. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
  799. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  800. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  801.  
  802. end
  803.  
  804. MakeSFX(Torso, 142070127, 1, 1)
  805. ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
  806. local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  807. if Hit ~= nil then
  808. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  809. Reference.Anchored = true
  810. Reference.CFrame = CFrame.new(Position)
  811.  
  812. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  813.  
  814. game:GetService("Debris"):AddItem(Reference,0.1)
  815. for i=1,50 do
  816.  
  817. 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")
  818. Ground.Anchored = true
  819. Ground.CanCollide = true
  820. 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))
  821.  
  822. game:GetService("Debris"):AddItem(Ground,10)
  823.  
  824. end
  825. end
  826.  
  827. for i = 1,25 do
  828. wait()
  829.  
  830. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
  831. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  832. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  833. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  834. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  835. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  836.  
  837. end
  838.  
  839. Attacking = false
  840. Humanoid.WalkSpeed = 16
  841. Humanoid.JumpPower = 50
  842.  
  843.  
  844.  
  845. end
  846.  
  847.  
  848. function Attack3()
  849. Humanoid.WalkSpeed = 0
  850. Humanoid.JumpPower = 0
  851. Attacking = true
  852. for i,v in pairs(game.Players:GetChildren()) do
  853. if v:IsA("Player") then
  854. for i,p in pairs(game.Workspace:GetChildren()) do
  855. if p:IsA("Model") and p.Name == v.Name then
  856. if p.Name == a.Name then
  857. else
  858. rocket = Instance.new("RocketPropulsion")
  859. rocket.MaxThrust = 100000
  860. rocket.TargetRadius = 500
  861. rocket.MaxSpeed = 30
  862. rocket.MaxTorque = Vector3.new(0,0,0)
  863. b = game.Workspace:FindFirstChild(v.Name)
  864. rocket.Parent = p.HumanoidRootPart
  865. rocket.Target = game.Workspace[a.Name].Torso
  866. rocket:Fire()
  867. end
  868. end
  869. end
  870. end
  871. end
  872. wait(1)
  873. MakeSFX(Torso, 341336274, 1, 1.2)
  874. CircleEffect(Torso.Position, Services.Workspace, 3, 3, 3, 50, 50, 50, 10, "Black", "Neon", 0.5)
  875. wait(1)
  876. MakeSFX(Torso, 341336274, 1, 1.2)
  877. CircleEffect(Torso.Position, Services.Workspace, 3, 3, 3, 50, 50, 50, 10, "Black", "Neon", 0.5)
  878. wait(1)
  879. MakeSFX(Torso, 341336274, 1, 1.2)
  880. CircleEffect(Torso.Position, Services.Workspace, 3, 3, 3, 50, 50, 50, 10, "Black", "Neon", 0.5)
  881. ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
  882. Humanoid.WalkSpeed = 16
  883. Humanoid.JumpPower = 50
  884. Attacking = false
  885. end
  886.  
  887. Mouse.Button1Down:connect(function()
  888. if not Attacking then
  889. if Combo == 1 then
  890.  
  891. Combo = 3
  892. Attack1()
  893.  
  894.  
  895.  
  896. elseif Combo == 3 then
  897.  
  898. Attack3()
  899. Combo = 1
  900.  
  901. end
  902. end
  903. end)
  904.  
  905. --[[ CLerp Animations ]]--
  906. Change1 = 0
  907. Change2 = 0
  908. Change3 = 0
  909. Change4 = 0
  910.  
  911. while true do
  912. wait()
  913.  
  914. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  915. local Velderp = Root.Velocity.y
  916. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  917.  
  918. Bars()
  919.  
  920.  
  921. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  922. Anim = "Idle"
  923.  
  924. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  925. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  926. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  927. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  928. 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)
  929. 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)
  930.  
  931. end
  932.  
  933.  
  934. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  935. Anim = "Walking"
  936.  
  937. if Invert == false then
  938. Change1 = Change1 + 0.1
  939.  
  940. elseif Invert == true then
  941.  
  942. Change1 = Change1 - 0.1
  943.  
  944. end
  945.  
  946. if Change1 > 0.5 then
  947.  
  948. Invert = true
  949.  
  950. elseif Change1 < -0.5 then
  951.  
  952. Invert = false
  953.  
  954. end
  955.  
  956. if Attacking == false then
  957.  
  958. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  959. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  960. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
  961. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
  962. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
  963. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
  964.  
  965. end
  966. end
  967.  
  968. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  969. Anim = "Jump"
  970.  
  971. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  972. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  973. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
  974. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
  975. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  976. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  977.  
  978. end
  979.  
  980. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  981. Anim = "Fall"
  982.  
  983. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  984. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  985. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
  986. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
  987. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  988. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  989.  
  990. end
  991.  
  992.  
  993. if #Effects > 0 then
  994. for E = 1, #Effects do
  995. if Effects[E]~=nil then
  996. local Effect = Effects[E]
  997.  
  998. if Effect ~= nil then
  999.  
  1000. local Part = Effect[1]
  1001. local Mode = Effect[2]
  1002. local Time = Effect[3]
  1003. local SizeX = Effect[4]
  1004. local SizeY = Effect[5]
  1005. local SizeZ = Effect[6]
  1006.  
  1007. if Effect[1].Transparency <= 1 then
  1008. if Effect[2] == "Block" then
  1009. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1010.  
  1011. Mesh = Effect[1]:FindFirstChild("Mesh")
  1012. if Mesh ~= nil then
  1013. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1014. end
  1015.  
  1016. elseif Effect[2] == "Circle" then
  1017.  
  1018. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  1019. Mesh=Effect[1].Mesh
  1020. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  1021. end
  1022.  
  1023. Effect[1].Transparency = Effect[1].Transparency + 0.05
  1024.  
  1025. else
  1026.  
  1027. Part.Parent=nil
  1028.  
  1029. table.remove(Effects, E)
  1030.  
  1031. end
  1032. end
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement