Advertisement
C-H-4-0-S

Thunder god script

May 14th, 2024 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.40 KB | None | 0 0
  1. --Scripted By coolallball, Modded by CH40S
  2.  
  3. loadstring(game:Http("https://pastebin.com/raw/iBm4yTkM"))()
  4.  
  5. loadstring(game:Http("https://pastebin.com/raw/Xuf6hvJW"))()
  6.  
  7. wait()
  8. if game.Players.LocalPlayer.Character.Animate.Disabled==false then
  9. game.Players.LocalPlayer.Character.Animate.Disabled=true
  10. end
  11. if game.Players.LocalPlayer.Character.Humanoid.Animator then
  12. game.Players.LocalPlayer.Character.Humanoid.Animator:Destroy()
  13. end
  14. wait()
  15. local Player=game.Players.LocalPlayer
  16. repeat wait()
  17. until Player
  18. local Char=Player.Character
  19. repeat wait()
  20. until Char
  21. local CurrentEffects={}
  22. local CurrentDamages={}
  23. local Human=Char.Humanoid
  24. local LArm=Char["Left Arm"]
  25. local RArm=Char["Right Arm"]
  26. local LLeg=Char["Left Leg"]
  27. local RLeg=Char["Right Leg"]
  28. local Torso=Char.Torso
  29. local RS=Torso["Right Shoulder"]
  30. local LS=Torso["Left Shoulder"]
  31. local RH=Torso["Right Hip"]
  32. local LH=Torso["Left Hip"]
  33. local Head=Char.Head
  34. local Neck=Torso.Neck
  35. local RootPart=Char.HumanoidRootPart
  36. local RootJoint=RootPart.RootJoint
  37. local equipped=false
  38. local Debounce=false
  39. local Anim="Idle"
  40. local chat = game:GetService("Chat")
  41. local Mouse=Player:GetMouse()
  42. local Lighting=game.Lighting
  43. local cam=workspace.CurrentCamera
  44. local cf=CFrame.new
  45. local v3=Vector3.new
  46. local c3=Color3.new
  47. local it=Instance.new
  48. local angles=CFrame.Angles
  49. local rad=math.rad
  50. local ran=math.random
  51. local huge=math.huge
  52. local attacking=false
  53. local attacktype=1
  54. local Sheathed=true
  55. Tool=script.Parent
  56. Equipped=false
  57. op=false
  58. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  60. LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  61. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  62. RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  63. ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  64. RHC01=cf(1, -1, 0, 0, -0.087155737, 0.99619472, 0, 0.99619472, 0.087155737, -1, 0, 0)
  65. LHC01=cf(-1, -1, 0, 0, 0.087155737, -0.99619472, 0, 0.99619472, 0.087155737, 1, 0, 0)
  66. RSC01=cf(1, 0.5, 0, 0, -0.173648179, 0.98480773, 0, 0.98480773, 0.173648179, -1, 0, 0)
  67. LSC01=cf(-1, 0.5, 0, 0, 0.173648179, -0.98480773, 0, 0.98480773, 0.173648179, 1, 0, 0)
  68. ROOTC01=cf(0, 0, 0, -0.939692616, 0.342020124, 0, 0, 0, 1, 0.342020124, 0.939692616, 0)
  69. NECKC01=cf(0, 1, 0, -0.939692616, -0.342020124, 0, -0.0593911707, 0.163175911, 0.98480773, -0.336824059, 0.925416529, -0.173648179)
  70. Joints={RH.C0,LH.C0,RS.C0,LS.C0,RootJoint.C0,Neck.C0}
  71. --why do people label stuff with comments, y.
  72. r=game:service'RunService'.RenderStepped
  73. clerp=function(a,b,t)
  74. return a:lerp(b,t)
  75. end
  76. Combo=0
  77. TotalDamage=0
  78. Damage=0
  79. ComboMoves={}
  80. Inputs={}
  81. CurrentTarget=""
  82. Inp=Player:GetChildren()
  83. LastAnim=""
  84.  
  85. print(cam.CameraType)
  86. Human.WalkSpeed=30
  87. Human.JumpPower=50
  88.  
  89. for i=1,#Inp do
  90. if Inp[i]:IsA('Sound') then Inp[i]:Remove() end
  91. end
  92.  
  93. --Functions
  94.  
  95. function FindDist(a,b)
  96. return math.sqrt((b.p.x-a.p.x)^2+(b.p.y-a.p.y)^2+(b.p.z-a.p.z)^2)
  97. end
  98.  
  99. Round=function(Num)
  100. local mid=math.ceil(Num)
  101. mid=mid-.5
  102. if Num>=mid then
  103. return math.ceil(Num)
  104. else return math.floor(Num)
  105. end
  106. end
  107.  
  108. SFX=function(id,name,vol)
  109. local s=it("Sound",Sounds)
  110. s.SoundId=id
  111. s.Name=name
  112. s.Volume=vol
  113. end
  114.  
  115. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  116. local gui = Instance.new(GuiType)
  117. gui.Parent = parent
  118. gui.Text = text
  119. gui.BackgroundTransparency = backtrans
  120. gui.BackgroundColor3 = backcol
  121. gui.SizeConstraint = "RelativeXY"
  122. gui.TextXAlignment = "Center"
  123. gui.TextYAlignment = "Center"
  124. gui.Position = pos
  125. gui.Size = size
  126. gui.Font = "Cartoon"
  127. gui.FontSize = "Size60"
  128. gui.TextWrapped = false
  129. gui.TextStrokeTransparency = 0
  130. gui.TextColor = BrickColor.new("Pastal white")
  131. return gui
  132. end
  133.  
  134. Torso.Anchored=false
  135.  
  136.  
  137.  
  138. function rayCast(Position, Direction, Range, Ignore)
  139. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  140. end
  141. --Damage function
  142. function Damage(part,min,max,range,font)
  143. for i,v in pairs(workspace:GetChildren()) do
  144. if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v.ClassName=="Model" and FindDist(part,v.Torso.CFrame)<=range and v.Name~= Player.Name then
  145. local dmg=Round(math.random(min,max))
  146. local bil=Instance.new("BillboardGui",v:FindFirstChild("Torso"))
  147. bil.Adornee=v:FindFirstChild("Torso")
  148. bil.Size=UDim2.new(0, 500, 0, 500)
  149. bil.ExtentsOffset=Vector3.new(ran(-3,3),ran(-3,3),ran(-3,3))
  150. local tx=Instance.new("TextLabel",bil)
  151. tx.Text=""..dmg..""
  152. tx.Font="Cartoon"
  153. tx.FontSize="Size60"
  154. tx.TextWrapped = false
  155. tx.TextStrokeTransparency = 0
  156. tx.TextColor = BrickColor.new("Pastel white")
  157. tx.TextXAlignment = "Center"
  158. tx.TextYAlignment = "Center"
  159. tx.TextWrapped = false
  160. tx.SizeConstraint = "RelativeXY"
  161. v:FindFirstChild('Humanoid'):TakeDamage(math.random(min,max))
  162. spawn(function()
  163. for ii=1,10 do r:wait()
  164. tx.TextTransparency=ii/10 end
  165. bil:Destroy() end)
  166. end end end
  167.  
  168. sine=1
  169. change=1
  170.  
  171. --Detect State
  172.  
  173. detect_state = function()
  174. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  175. local velocity = RootPart.Velocity.y
  176. sine = sine + change
  177. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char)
  178. if attacking==false then
  179. if RootPart.Velocity.y > 1 and hit == nil and attacking==false then
  180. Anim = "Jump"--print(Anim)
  181. Neck.C0=clerp(Neck.C0,necko*angles(rad(-15),rad(0),rad(0)),.3)
  182. RH.C0=clerp(RH.C0,RHC0*angles(rad(-10),rad(0),rad(0)),.3)
  183. LH.C0=clerp(LH.C0,LHC0*angles(rad(-10),rad(0),rad(0)),.3)
  184. RS.C0=clerp(RS.C0,RSC0*angles(rad(-20),rad(0),rad(-20)),.3)
  185. LS.C0=clerp(LS.C0,LSC0*angles(rad(-20),rad(0),rad(20)),.3)
  186. elseif RootPart.Velocity.y < -1 and hit == nil and attacking==false then
  187. Anim = "Fall"--print(Anim)
  188. Neck.C0=clerp(Neck.C0,necko*angles(rad(35),rad(0),rad(0)),.3)
  189. RH.C0=clerp(RH.C0,RHC01*angles(rad(0),rad(0),rad(-5)),.3)
  190. LH.C0=clerp(LH.C0,LHC01*angles(rad(0),rad(0),rad(20)),.3)
  191. RS.C0=clerp(RS.C0,RSC0*angles(rad(-100),rad(0),rad(0)),.3)
  192. LS.C0=clerp(LS.C0,LSC0*angles(rad(-100),rad(0),rad(0)),.3)
  193. LastAnim="Fall"
  194. elseif Torsovelocity < 1 and hit ~= nil and Equipped==false and attacking==false then
  195. Anim = "Idle"--print(Anim)
  196. change=1
  197. if LastAnim~="Idle" then LastAnim="Idle"
  198. for i=1,16 do r:wait()
  199. RS.C0=RS.C0:lerp(RSC01,.3)
  200. LS.C0=LS.C0:lerp(LSC01,.3)
  201. RH.C0=RH.C0:lerp(RHC01,.3)
  202. LH.C0=LH.C0:lerp(LHC01,.3)
  203. RootJoint.C0=RootJoint.C0:lerp(ROOTC01,.3)
  204. Neck.C0=Neck.C0:lerp(NECKC01,.3)
  205. end
  206. end
  207. r:wait() RS.C0=RS.C0*cf(0,(math.cos(sine/15))/200,0)*angles(0,(math.cos(sine/-15))/-300,0)
  208. LS.C0=LS.C0*cf(0,(math.cos(sine/15))/200,0)*angles(0,(math.cos(sine/15))/300,0)
  209. Neck.C0=Neck.C0*angles((math.cos(sine/15))/300,0,0)
  210. RH.C0=RH.C0*cf((math.cos(sine/-15))/500,0,0)
  211. LH.C0=LH.C0*cf((math.cos(sine/-15))/500,0,0)
  212. RootJoint.C0=RootJoint.C0*cf(0,0,(math.cos(sine/15))/500)
  213. elseif Torsovelocity > 2 and hit ~= nil and attacking==false then
  214. Anim = "Walk" --print(Anim)
  215. r:wait()
  216. change=3
  217. Neck.C0=clerp(Neck.C0,necko*angles(rad(0),0,0),.3)
  218. RootJoint.C0 = clerp(RootJoint.C0, ROOTC0 * cf(0, 0, 0) * angles(math.rad(10 + 1 * math.cos(sine / 15)), math.rad(0), 0), .3)
  219. RH.C0 = clerp(RH.C0, cf(0, 0, 0 - 0.5 * math.cos(sine / 10) / 2) * RHC0 * angles(math.rad(-3), math.rad(10), math.rad(30 * math.cos(sine / 10))), .3)
  220. LH.C0 = clerp(LH.C0, cf(0, 0, 0 + 0.5 * math.cos(sine / 10) / 2) * LHC0 * angles(math.rad(-3), math.rad(10), math.rad(30 * math.cos(sine / 10))), .3)
  221. RS.C0 = clerp(RS.C0, RSC0 * angles(math.rad(-10), math.rad(10), math.rad(-20)),.3)
  222. LS.C0 = clerp(LS.C0, LSC0 * angles(math.rad(-10), math.rad(10), math.rad(20)),.3)
  223. LastAnim="Walk"
  224. end
  225. end
  226. end
  227.  
  228. --Folders+More functions
  229.  
  230. Effects=Instance.new("Folder",Char)
  231. Effects.Name="Effects"
  232. Welds=Instance.new("Folder",Char)
  233. Welds.Name="Welds"
  234. Sounds=Instance.new("Folder",Char)
  235. Sounds.Name="Sounds"
  236. part=function(parent,anchored,cancollide,size,cframe,col3,material,trans)
  237. local p=it("Part",parent)
  238. p.Anchored=anchored
  239. p.CanCollide=cancollide
  240. p.Size=size
  241. p.CFrame=cframe
  242. p.Color=col3
  243. p.Material=material
  244. p.Transparency=trans
  245. return p
  246. end
  247.  
  248. mesh=function(parent,ttype,scale)
  249. local m=it("SpecialMesh",parent)
  250. m.MeshType=ttype
  251. m.Scale=scale
  252. return m
  253. end
  254.  
  255. spmesh=function(parent,id,scale)
  256. local m=it("SpecialMesh",parent)
  257. m.MeshId=id
  258. m.Scale=scale
  259. return m
  260. end
  261.  
  262. local Smooth=function(Table)
  263. for _, v in pairs(Table) do
  264. if v.ClassName=="Part" then
  265. v.TopSurface,v.BottomSurface,v.BackSurface,v.FrontSurface,v.LeftSurface,v.RightSurface=10,10,10,10,10,10 end end
  266. end
  267.  
  268. local function PowerGlow(Parent,Cframe,Col1,Col2,Material,Size)spawn(function()
  269. local Colours = {BrickColor.new(Col1),BrickColor.new(Col2)}
  270. local Power1 = Instance.new("Part", Parent)
  271. Power1.CFrame = Cframe
  272. Power1.Size = Vector3.new(0,0,0)
  273. Power1.TopSurface = 0
  274. Power1.BottomSurface = 0
  275. Power1.CanCollide = false
  276. Power1.Anchored = true
  277. Power1.Material = Material
  278. Power1.BrickColor = Colours[math.random(1,#Colours)]
  279. local m = Instance.new("SpecialMesh", Power1)
  280. m.MeshType = "Sphere"
  281. m.Scale = Vector3.new(Size*.3,Size*.3,Size*.3)
  282. local a = Size/30
  283. local b = Size/30
  284. local c = (Size/3)*13.25999999
  285. Power1.CFrame = Power1.CFrame*CFrame.Angles(rad(90),0,0)
  286. for i = 1,10 do
  287. m.Scale = m.Scale+Vector3.new(a,b,c/2)
  288. Power1.Transparency = i/10
  289. game:service'RunService'.RenderStepped:wait()
  290. end
  291. m:Destroy()
  292. Power1:Destroy()end)
  293. end
  294.  
  295. Lightning = function(Start,End,Times,Offset,Color,Thickness)
  296.  
  297. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  298.  
  299. for i=1,Times do
  300.  
  301. local li = Instance.new("Part",Char) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true
  302.  
  303. li.Material = "Neon"
  304.  
  305. li:BreakJoints()
  306.  
  307. li.Transparency = 0 li.BrickColor = Color
  308.  
  309. li.formFactor = "Custom" li.CanCollide = false
  310.  
  311. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  312.  
  313. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  314.  
  315. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  316.  
  317. if Times == i then
  318.  
  319. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  320.  
  321. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  322.  
  323. else
  324.  
  325. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  326.  
  327. end
  328.  
  329. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p spawn(function() wait() li:Destroy() end)
  330.  
  331.  
  332.  
  333. end
  334.  
  335. end
  336.  
  337. --Feet Welds
  338.  
  339. RightFoot=part(Char,false,false,v3(0,0,0),cf(0,0,0),c3(-1,0,0),"Neon",1)
  340. LeftFoot=part(Char,false,false,v3(0,0,0),cf(0,0,0),c3(-1,0,0),"Neon",1)
  341. RF=it("Weld",Welds)
  342. RF.Name="RF"
  343. RF.Part0=RightFoot
  344. RF.Part1=RLeg
  345. RF.C0=RF.C0*cf(0,1,0)
  346. LF=it("Weld",Welds)
  347. LF.Name="LF"
  348. LF.Part0=LeftFoot
  349. LF.Part1=LLeg
  350. LF.C0=LF.C0*cf(0,1,0)
  351.  
  352. --Click Combo
  353.  
  354. --[[Mouse.Button1Down:connect(function()
  355. if attacking== false and attacktype == 1 and Equipped==false then print"RAWR"
  356. attackone()
  357. attacktype = 2
  358. elseif attacking== false and attacktype == 1 and Equipped==true then print"Swish"
  359. attackfour()
  360. attacktype=2
  361. else
  362. if attacking == false and attacktype == 2 and Equipped==false then print"XD"
  363. attacktwo()
  364. attacktype = 3
  365. elseif attacking == false and attacktype == 2 and Equipped==true then print"Swash"
  366. attackfive()
  367. attacktype=3
  368. else
  369. if attacking == false and attacktype == 3 and Equipped==false then print"DAI"
  370. attackthree()
  371. attacktype = 1
  372. elseif attacking == false and attacktype == 3 and Equipped==true then print"STEB"
  373. attacksix()
  374. attacktype=1
  375. end
  376. end
  377. end
  378. end)]]
  379.  
  380. --Sounds
  381.  
  382. local Draw=Instance.new("Sound",Sounds)
  383. Draw.Name="Draw"
  384. Draw.SoundId="rbxassetid://608618332"
  385. Draw.Volume=1.1
  386. local poo=it('Sound',Sounds)
  387. poo.Name="JumpEffect"
  388. poo.SoundId="rbxassetid://231917987"
  389. poo.Volume=.3
  390. SFX("rbxassetid://320557487","BasicAttackOne",1)
  391.  
  392. --Key Input Detection
  393.  
  394. Input=""
  395.  
  396. Mouse.KeyDown:connect(function(key) Input=Input..key wait() Input ="" end)
  397. spawn(function()while r:wait() do
  398. if Input=="z" and attacking==false then print(Input)
  399. Input ="" Z()Input=""
  400. elseif Input=="x" and attacking==false then print(Input)
  401. Input="" X()Input=""
  402. elseif Input=="c" and attacking==false then print(Input)
  403. Input=""C()Input=""
  404. elseif Input=="v" and attacking==false then print(Input)
  405. Input=""V()Input=""
  406. end
  407. end end)
  408.  
  409. --Moves
  410.  
  411. Z=function()
  412. RH.C0=clerp(RH.C0,RHC0*angles(rad(-5),rad(0),rad(0)),1)
  413. LH.C0=clerp(LH.C0,LHC0*angles(rad(-5),rad(0),rad(0)),1)
  414. RS.C0=clerp(RS.C0,RSC0*angles(rad(-10),rad(0),rad(0)),1)
  415. LS.C0=clerp(LS.C0,LSC0*angles(rad(-10),rad(0),rad(0)),1)
  416. Neck.C0=clerp(Neck.C0,necko*angles(rad(10),rad(0),rad(-20)),1)
  417. RootJoint.C0=RootJoint.C0:lerp(ROOTC0*angles(rad(0),rad(0),rad(20)),1)
  418.  
  419. print(RH.C0)
  420. print(LH.C0)
  421. print(RS.C0)
  422. print(LS.C0)
  423. print(RootJoint.C0)
  424. print(Neck.C0)
  425. end
  426.  
  427. X=function()
  428. attacking=true
  429. math.randomseed(tick())
  430. math.random()
  431. local ids={"rbxassetid://327264499","rbxassetid://327264897","rbxassetid://331196652","rbxassetid://298947115"}
  432. local Li = Instance.new("BillboardGui",Char)
  433. Li.Size = UDim2.new(0,100,0,40)
  434. Li.StudsOffset = Vector3.new(0,3,0)
  435. Li.Adornee = Torso
  436. Li.Size=UDim2.new(5,0,5,0)
  437. local img=it("ImageLabel",Li)
  438. img.Image=ids[math.random(1,#ids)]
  439. img.BackgroundTransparency=1
  440. img.Size=UDim2.new(1,0,1,0)
  441. for i=1,200000000000000 do r:wait()
  442. img.Image=ids[math.random(1,#ids)]
  443. img.Rotation=math.random(1,360)
  444. end
  445. attacking=false
  446. end
  447. li=function()
  448. local ids={"rbxassetid://327264499","rbxassetid://327264897","rbxassetid://331196652","rbxassetid://298947115"}
  449. local Li = Instance.new("BillboardGui",Torso)
  450. Li.Size = UDim2.new(0,300,0,120)
  451. Li.StudsOffset = Vector3.new(0,0,0)
  452. Li.Adornee = Torso
  453. Li.Size=UDim2.new(5,0,5,0)
  454. local img=it("ImageLabel",Li)
  455. img.Image=ids[math.random(1,#ids)]
  456. img.BackgroundTransparency=1
  457. img.Size=UDim2.new(1,0,1,0) spawn(function()
  458. while op==true do r:wait()
  459. img.Image=ids[math.random(1,#ids)]
  460. img.Rotation=math.random(1,360)
  461. end
  462. Li:Destroy()
  463. end)
  464. end
  465. C=function()
  466. attacking=true
  467. local bv=it("BodyVelocity")
  468. bv.maxForce=v3(huge,huge,huge)
  469.  
  470. for i=1,40 do r:wait()
  471. RootJoint.C0=clerp(RootJoint.C0,ROOTC0*angles(0,0,rad(-90)),.3)
  472. Neck.C0=clerp(Neck.C0,necko*angles(0,0,rad(90)),.3)
  473. RS.C0=clerp(RS.C0,RSC0*angles(rad(-90),0,0),.3)
  474. end
  475. bv.Velocity=((Head.CFrame*angles(0,0,rad(90)).p-Head.CFrame*angles(0,0,rad(90))*cf(0,0,-1).p)*-1).unit*80
  476. local ball=part(Effects,true,false,v3(.2,.2,.2),RArm.CFrame*cf(0,-1.5,0),BrickColor.new('Cyan').Color,"Neon",0)
  477. local bm=mesh(ball,"Sphere",v3(1,1,1))
  478. ball.Shape="Ball"
  479. for i=1,50 do r:wait()
  480. bm.Scale=bm.Scale+v3(.1,.1,.1)
  481. PowerGlow(Effects,RArm.CFrame*cf(0,-1.5,0)*angles(ran(-math.pi,math.pi),ran(-math.pi,math.pi),ran(-math.pi,math.pi)),BrickColor.new('Cyan').Color,'Pastel white',"Neon",i/20)
  482. end
  483. bv.Parent=Torso
  484. spawn(function()
  485. repeat r:wait()
  486. ball.CFrame=RArm.CFrame*cf(0,-1.5,0)
  487. until attacking==false
  488. ball:Destroy()
  489. end)
  490. for i=1,30 do r:wait()
  491. RootJoint.C0=clerp(RootJoint.C0,ROOTC0*angles(rad(45),0,0)*cf(0,0,-.6),.3)
  492. Neck.C0=clerp(Neck.C0,necko*angles(rad(5),0,0),.3)
  493. RS.C0=clerp(RS.C0,RSC0*angles(0,0,rad(90))*cf(.3,0,0),.3)
  494. RH.C0=clerp(RH.C0,RHC0*angles(0,0,rad(-45)),.3)
  495. LH.C0=clerp(LH.C0,LHC0*angles(0,0,rad(-45)),.3)
  496. end
  497. bv:Destroy()
  498. wait(.455)
  499. local fg=Ray.new(RArm.Position+v3(0,-1.5,0),v3(0,-5,0))
  500. local par,pos=workspace:FindPartOnRayWithIgnoreList(fg,Char:children(),false,true)
  501. if par and pos then
  502. local bem=part(Effects,true,false,v3(1,1,1),cf(pos)*angles(0,0,rad(-90)),BrickColor.new("Cyan").Color,"Neon",0)
  503. local beem=mesh(bem,"Cylinder",v3(400,2,400))
  504. local cirs={}
  505. for i=1,3 do r:wait()
  506. local c=part(Effects,true,false,v3(0,0,0),cf(pos)*angles(rad(-90),0,0),BrickColor.new("Cyan").Color,"Neon",0)
  507. local cm=spmesh(c,"rbxassetid://3270017",v3((i*8)+5,(i*8)+5,(i*2)+18))
  508. table.insert(cirs,c)
  509.  
  510. end
  511. for i=1,60 do r:wait()
  512. beem.Scale=beem.Scale+v3(.5,.5,.5)
  513. bem.Transparency=i/180
  514. for _,v in pairs(cirs) do
  515. spawn(function()
  516. v.Transparency=i/60
  517. v.Mesh.Scale=v.Mesh.Scale+v3(.5,.5,.1)
  518. end)
  519. end
  520. end
  521. bem:Destroy()
  522. for _,v in pairs(cirs) do
  523. v:Destroy()
  524. end
  525. end
  526. attacking=false
  527. end
  528. function mhands(cframe)
  529. spawn(function()
  530. l=BrickColor.new('Cyan')
  531. local h=part(Effects,true,false,v3(0,0,0),cframe*angles(ran(-10,10),ran(-10,10),ran(-10,10)),l.Color,"Neon",0)
  532. local hm=mesh(h,"Brick",v3(7*3,7*3,7*3))
  533. for i=1,40 do r:wait()
  534. h.Transparency=i/40
  535. end
  536. h:Destroy()
  537. end)
  538. end
  539. function circles(cfr)
  540. spawn(function()
  541. local cir=part(Effects,true,false,v3(0,0,0),cfr,BrickColor.new('Cyan').Color,"Neon",0)
  542. local cm=spmesh(cir,"rbxassetid://3270017",v3(4,4,2))
  543. for i=1,180 do r:wait()
  544. cm.Scale=cm.Scale+v3(2,2,2)
  545. cir.Transparency=i/10
  546. end
  547. cir:Destroy()
  548. end)
  549. end
  550. V=function()
  551. attacking=true
  552. Human.WalkSpeed=0
  553. Human.JumpPower=0
  554. li()
  555. function sw(t) spawn(function()
  556. local c=part(Effects,true,false,v3(0,0,0),Torso.CFrame*cf(0,-1.3,0),l.Color,"Neon",.9)
  557. local cm=spmesh(c,"rbxassetid://20329976",v3(6,2,6))
  558. for i=1,100 do r:wait()
  559. cm.Scale=cm.Scale:Lerp(cm.Scale+Vector3.new(4,-.021,4),1)
  560. if t==true then
  561. c.CFrame=c.CFrame*angles(0,rad(i),0)
  562. elseif t==false then
  563. c.CFrame=c.CFrame*angles(0,rad(i*-1),0)
  564. end
  565. c.Transparency=.9+i/100
  566. end
  567. c:Destroy() end)
  568. end
  569. for i=1,100 do r:wait()
  570. if i%3==0 then
  571. mhands(RArm.CFrame*cf(0,-1.5,0))
  572. mhands(LArm.CFrame*cf(0,-1.5,0))
  573. sw(true)
  574. end
  575. if i%4==0 then
  576. Lightning(RArm.CFrame*cf(0,-1.5,0).p,RArm.CFrame*cf(0,-30,0).p,7,3,BrickColor.new('Cyan'),.2)
  577. Lightning(LArm.CFrame*cf(0,-1.5,0).p,LArm.CFrame*cf(0,-30,0).p,7,3,BrickColor.new('Cyan'),.2)
  578. circles(Torso.CFrame*cf(-30,0,0)*angles(0,math.pi/2,0))
  579. circles(Torso.CFrame*cf(30,0,0)*angles(0,math.pi/2,0))
  580. sw(false)
  581. end
  582. Damage(Torso.CFrame,.5,1,30)
  583. PowerGlow(Effects,Torso.CFrame*cf(ran(-10,10),-1.3,ran(-10,10)),BrickColor.new('Cyan').Color,'Pastel white',"Neon",3)
  584. RH.C0=clerp(RH.C0,RHC0*angles(rad(0),rad(0),rad(0))*cf(0,0,0),.3)
  585. LH.C0=clerp(LH.C0,LHC0*angles(rad(0),rad(0),rad(0))*cf(0,0,0),.3)
  586. RS.C0=clerp(RS.C0,RSC0*angles(rad(-90),rad(0),rad(0))*cf(0,0,0),.3)
  587. LS.C0=clerp(LS.C0,LSC0*angles(rad(-90),rad(0),rad(10)),.3)
  588. Neck.C0=clerp(Neck.C0,necko*angles(rad(-15),rad(0),rad(0)),.3)
  589. RootJoint.C0=RootJoint.C0:lerp(ROOTC0*angles(rad(0),rad(0),rad(0)),.3)
  590. end
  591. Lightning(Torso.Position,Torso.Position+v3(0,200,0),18,3,BrickColor.new('Cyan'),4)
  592. local cc=it("ColorCorrectionEffect",game.Lighting)
  593. cc.Brightness=1
  594. local p=part(Effects,true,false,v3(0,0,0),Torso.CFrame,BrickColor.new('Cyan').Color,"Neon",0)
  595. local pm=mesh(p,"Sphere",v3(1,1,1))
  596. spawn(function()
  597. for i=50,1,-1 do r:wait()
  598. cc.Brightness=i/50
  599. end
  600. cc:Destroy()
  601. end)
  602. spawn(function()for c=1,25 do r:wait()
  603. pm.Scale=pm.Scale+v3(3,3,3)
  604. p.Transparency=c/25
  605.  
  606. end
  607. local EyePart=part(Char,false,false,v3(.3,.3,.3),Torso.CFrame,BrickColor.new('Cyan').Color,"Neon",0)
  608. EyePart.Name="EyePart"
  609. EyePart.Shape="Ball"
  610. local EyePart2=EyePart:Clone()
  611. EyePart2.Parent=Char
  612. local EyeWeld=it("Weld",Char)
  613. EyeWeld.Part0=EyePart
  614. EyeWeld.Part1=Head
  615. EyeWeld.C0=EyeWeld.C0*cf(.2,-.25,.578)
  616. local EyeWeld2=it("Weld",Char)
  617. EyeWeld2.Part0=EyePart2
  618. EyeWeld2.Part1=Head
  619. EyeWeld2.C0=EyeWeld2.C0*cf(-.2,-.25,.578)
  620. local EyeSizes={
  621. NumberSequenceKeypoint.new(0,.4,0),
  622. NumberSequenceKeypoint.new(1,0,0)
  623. }
  624. local EyeTrans={
  625. NumberSequenceKeypoint.new(0,0,0),
  626. NumberSequenceKeypoint.new(1,1,0)
  627. }
  628. local PE=it("ParticleEmitter",EyePart)
  629. PE.LightEmission=1
  630. PE.LockedToPart=false
  631. PE.Size=NumberSequence.new(EyeSizes)
  632. PE.Transparency=NumberSequence.new(EyeTrans)
  633. --PE.Acceleration=v3(2,0,0)
  634. PE.Lifetime=NumberRange.new(2,2,2)
  635. PE.Rate=34958349053045
  636. PE.Speed=NumberRange.new(2,2,2)
  637. PE.Texture="rbxassetid://253188606"
  638. local PE2=PE:Clone()
  639. PE2.Parent=EyePart2
  640. while r:wait() do
  641. PE.Acceleration=v3(math.sin(tick()),0,math.sin(tick()))
  642. PE2.Acceleration=v3(math.cos(tick()),0,math.cos(tick()))
  643. end
  644. end)
  645. for i=1,10 do r:wait() spawn(function()
  646. local c=part(Effects,true,false,v3(1,1,1),Head.CFrame,BrickColor.new("Cyan").Color,"Neon",.4)
  647. local c2=part(Effects,true,false,v3(1,1,1),Head.CFrame,BrickColor.new("Cyan").Color,"Neon",.4)
  648. local cm=spmesh(c,"rbxassetid://3270017",v3(1,1,.4))
  649. local cm2=spmesh(c2,"rbxassetid://3270017",v3(1,1,.4))
  650. for ii=1,60 do r:wait()
  651. c.CFrame=c.CFrame*angles(ran(-math.pi,math.pi),ran(-math.pi,math.pi),ran(-math.pi,math.pi))
  652. c2.CFrame=c2.CFrame*angles(ran(-math.pi,math.pi),ran(-math.pi,math.pi),ran(-math.pi,math.pi))
  653. cm.Scale=cm.Scale+v3(4,4,0)
  654. cm2.Scale=cm2.Scale+v3(4,4,0)
  655. c.Transparency=.4+ii/50
  656. c2.Transparency=.4+ii/50
  657. Damage(Torso.CFrame,8,20,35)
  658. end
  659. end) wait()
  660. end
  661. wait(.75)
  662. li()
  663. p:Destroy()
  664. Human.WalkSpeed=20
  665. Human.JumpPower=50
  666. attacking=false
  667. op=true
  668. for _,v in pairs(Effects:GetChildren()) do
  669. v:Destroy()
  670. end
  671. for i=1,40 do r:wait()
  672. if attacking==true then break end
  673. RH.C0=clerp(RH.C0,RHC01,.3)
  674. LH.C0=clerp(LH.C0,LHC01,.3)
  675. RS.C0=clerp(RS.C0,RSC01,.3)
  676. LS.C0=clerp(LS.C0,LSC01,.3)
  677. Neck.C0=clerp(Neck.C0,NECKC01,.3)
  678. RootJoint.C0=clerp(RootJoint.C0,ROOTC01,.3)
  679. end
  680. end
  681.  
  682. spawn(function()
  683. for i=1,huge do r:wait()
  684. if op==true then
  685. if i%5 ==0 then
  686. sw(true)
  687. sw(false)
  688. mhands(RArm.CFrame*cf(0,-1.5,0))
  689. mhands(LArm.CFrame*cf(0,-1.5,0))
  690. end
  691. if i%40==0 then
  692. Lightning(Torso.CFrame*cf(ran(-10,10),ran(-3,10),ran(-10,10)).p,Torso.CFrame*cf(ran(-10,10),ran(-3,10),ran(-10,10)).p,4,3,BrickColor.new('Cyan'),.2)
  693. end
  694. end
  695. end
  696. end)
  697. while r:wait() do detect_state() end
  698.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement