Advertisement
memberhero

Untitled

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