ExcuseMehEdit

Broken

Nov 15th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 262.50 KB | None | 0 0
  1. local Source = [[Remote = Instance.new("RemoteFunction")
  2. Remote.Name = "Remote"
  3. Remote.OnServerInvoke = function(player, request, ...)
  4. if player ~= owner then
  5. return error ('You cannot invoke this remote', 0);
  6. end;
  7.  
  8. if request == 1 then
  9. Button1Down(...)
  10. elseif request == 2 then
  11. KeyDown(...)
  12. end
  13.  
  14. end
  15. Remote.Parent = script
  16.  
  17.  
  18. Player=owner
  19. Character=Player.Character
  20. PlayerGui=Player.PlayerGui
  21. Backpack=Player.Backpack
  22. Torso=Character.Torso
  23. Head=Character.Head
  24. Humanoid=Character.Humanoid
  25. LeftArm=Character["Left Arm"]
  26. LeftLeg=Character["Left Leg"]
  27. RightArm=Character["Right Arm"]
  28. RightLeg=Character["Right Leg"]
  29. LS=Torso["Left Shoulder"]
  30. LH=Torso["Left Hip"]
  31. RS=Torso["Right Shoulder"]
  32. RH=Torso["Right Hip"]
  33. Face = Head.face
  34. Neck=Torso.Neck
  35. it=Instance.new
  36. attacktype=1
  37. vt=Vector3.new
  38. cf=CFrame.new
  39. euler=CFrame.fromEulerAnglesXYZ
  40. angles=CFrame.Angles
  41. cloaked=false
  42. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  43. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  44. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  45. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  46. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  47. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  48. RootPart=Character.HumanoidRootPart
  49. RootJoint=RootPart.RootJoint
  50. RootCF=euler(-1.57,0,3.14)
  51. attack = false
  52. bounce=false
  53. cooldown=false
  54. deeznuts=false
  55. attackdebounce = false
  56. deb=false
  57. equipped=true
  58. hand=false
  59. MMouse=nil
  60. combo=0
  61. mana=0
  62. trispeed=.2
  63. attackmode='none'
  64. local idle=0
  65. local Anim="Idle"
  66. local Effects={}
  67. local gun=false
  68. local shoot=false
  69. player=nil
  70. mana=0
  71. ZTarget = nil
  72. RocketTarget = nil
  73. local m = Instance.new("Model",Character)
  74. m.Name = "WeaponModel"
  75. RSH, LSH=nil, nil
  76. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  77. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  78. LH=Torso["Left Hip"]
  79. RH=Torso["Right Hip"]
  80. TorsoColor=Torso.BrickColor
  81. function NoOutline(Part)
  82. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  83. end
  84. player=Player
  85. ch=Character
  86. RSH=ch.Torso["Right Shoulder"]
  87. LSH=ch.Torso["Left Shoulder"]
  88. RSH.Parent=nil
  89. LSH.Parent=nil
  90. RW.Name="Right Shoulder"
  91. RW.Part0=ch.Torso
  92. RW.C0=cf(1.5, 0.5, 0)
  93. RW.C1=cf(0, 0.5, 0)
  94. RW.Part1=ch["Right Arm"]
  95. RW.Parent=ch.Torso
  96. LW.Name="Left Shoulder"
  97. LW.Part0=ch.Torso
  98. LW.C0=cf(-1.5, 0.5, 0)
  99. LW.C1=cf(0, 0.5, 0)
  100. LW.Part1=ch["Left Arm"]
  101. LW.Parent=ch.Torso
  102.  
  103. function swait(num)
  104. if num==0 or num==nil then
  105. game:service'RunService'.Heartbeat:wait(0)
  106. else
  107. for i=0,num do
  108. game:service'RunService'.Heartbeat:wait(0)
  109. end
  110. end
  111. end
  112.  
  113. function nooutline(part)
  114. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  115. end
  116.  
  117. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  118. local fp=it("Part")
  119. fp.formFactor=formfactor
  120. fp.Parent=parent
  121. fp.Reflectance=reflectance
  122. fp.Transparency=transparency
  123. fp.CanCollide=false
  124. fp.Locked=true
  125. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  126. fp.Name=name
  127. fp.Size=size
  128. fp.Position=Character.Torso.Position
  129. nooutline(fp)
  130. fp.Material=material
  131. fp:BreakJoints()
  132. return fp
  133. end
  134.  
  135. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  136. local fp = it("Part")
  137. fp.formFactor = formfactor
  138. fp.Parent = parent
  139. fp.Reflectance = reflectance
  140. fp.Transparency = transparency
  141. fp.CanCollide = false
  142. fp.Locked=true
  143. fp.BrickColor = brickcolor
  144. fp.Name = name
  145. fp.Size = size
  146. fp.Position = EffectPart.Position
  147. NoOutline(fp)
  148. fp.Material="Neon"
  149. fp:BreakJoints()
  150. return fp
  151. end
  152.  
  153. function wweld(parent,part0,part1,c0)
  154. local weld=it("Weld")
  155. weld.Parent=parent
  156. weld.Part0=part0
  157. weld.Part1=part1
  158. weld.C0=c0
  159. return weld
  160. end
  161.  
  162. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  163. local mesh=it(Mesh)
  164. mesh.Parent=part
  165. if Mesh=="SpecialMesh" then
  166. mesh.MeshType=meshtype
  167. mesh.MeshId=meshid
  168. end
  169. mesh.Offset=offset
  170. mesh.Scale=scale
  171. return mesh
  172. end
  173.  
  174. function decal(part,face,texture,transparency,shiny,specular,name)
  175. local d=it("Decal",part)
  176. d.Shiny=shiny
  177. d.Face=face
  178. d.Specular=specular
  179. d.Transparency=transparency
  180. d.Texture=texture
  181. d.Name=name
  182. return d
  183. end
  184.  
  185. function weld(parent,part0,part1,c0,c1)
  186. local weld=it("Weld")
  187. weld.Parent=parent
  188. weld.Part0=part0
  189. weld.Part1=part1
  190. weld.C0=c0
  191. weld.C1=c1
  192. return weld
  193. end
  194.  
  195.  
  196. local function CFrameFromTopBack(at, top, back)
  197. local right = top:Cross(back)
  198. return CFrame.new(at.x, at.y, at.z,right.x, top.x, back.x,right.y, top.y, back.y,right.z, top.z, back.z)
  199. end
  200.  
  201. function Triangle(a, b, c)
  202. local edg1 = (c-a):Dot((b-a).unit)
  203. local edg2 = (a-b):Dot((c-b).unit)
  204. local edg3 = (b-c):Dot((a-c).unit)
  205. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  206. a, b, c = a, b, c
  207. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  208. a, b, c = b, c, a
  209. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  210. a, b, c = c, a, b
  211. else
  212. assert(false, "unreachable")
  213. end
  214.  
  215. local len1 = (c-a):Dot((b-a).unit)
  216. local len2 = (b-a).magnitude - len1
  217. local width = (a + (b-a).unit*len1 - c).magnitude
  218.  
  219. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  220.  
  221. local list = {}
  222.  
  223. local TrailColor = ("Royal purple")
  224.  
  225. if len1 > 0.01 then
  226. local w1 = Instance.new('WedgePart', m)
  227. game:GetService("Debris"):AddItem(w1,5)
  228. w1.Material = "Neon"
  229. w1.FormFactor = 'Custom'
  230. w1.BrickColor = BrickColor.new(TrailColor)
  231. w1.Transparency = 0
  232. w1.Reflectance = 0
  233. w1.Material = "Neon"
  234. w1.CanCollide = false
  235. NoOutline(w1)
  236. local sz = Vector3.new(0.2, width, len1)
  237. w1.Size = sz
  238. local sp = Instance.new("SpecialMesh",w1)
  239. sp.MeshType = "Wedge"
  240. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  241. w1:BreakJoints()
  242. w1.Anchored = true
  243. w1.Parent = workspace
  244. w1.Transparency = 0.7
  245. table.insert(Effects,{w1,"Disappear",.01})
  246. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  247. table.insert(list,w1)
  248. end
  249.  
  250. if len2 > 0.01 then
  251. local w2 = Instance.new('WedgePart', m)
  252. game:GetService("Debris"):AddItem(w2,5)
  253. w2.Material = "Neon"
  254. w2.FormFactor = 'Custom'
  255. w2.BrickColor = BrickColor.new(TrailColor)
  256. w2.Transparency = 0
  257. w2.Reflectance = 0
  258. w2.Material = "Neon"
  259. w2.CanCollide = false
  260. NoOutline(w2)
  261. local sz = Vector3.new(0.2, width, len2)
  262. w2.Size = sz
  263. local sp = Instance.new("SpecialMesh",w2)
  264. sp.MeshType = "Wedge"
  265. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  266. w2:BreakJoints()
  267. w2.Anchored = true
  268. w2.Parent = workspace
  269. w2.Transparency = 0.7
  270. table.insert(Effects,{w2,"Disappear",.01})
  271. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  272. table.insert(list,w2)
  273. end
  274. return unpack(list)
  275. end
  276.  
  277.  
  278. so = function(id,par,vol,pit)
  279. coroutine.resume(coroutine.create(function()
  280. local sou = Instance.new("Sound",par or workspace)
  281. sou.Volume=vol
  282. sou.Pitch=pit or 1
  283. sou.SoundId=id
  284. swait()
  285. sou:play()
  286. game:GetService("Debris"):AddItem(sou,6)
  287. end))
  288. end
  289.  
  290. function clerp(a,b,t)
  291. local qa = {QuaternionFromCFrame(a)}
  292. local qb = {QuaternionFromCFrame(b)}
  293. local ax, ay, az = a.x, a.y, a.z
  294. local bx, by, bz = b.x, b.y, b.z
  295. local _t = 1-t
  296. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  297. end
  298.  
  299. function QuaternionFromCFrame(cf)
  300. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  301. local trace = m00 + m11 + m22
  302. if trace > 0 then
  303. local s = math.sqrt(1 + trace)
  304. local recip = 0.5/s
  305. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  306. else
  307. local i = 0
  308. if m11 > m00 then
  309. i = 1
  310. end
  311. if m22 > (i == 0 and m00 or m11) then
  312. i = 2
  313. end
  314. if i == 0 then
  315. local s = math.sqrt(m00-m11-m22+1)
  316. local recip = 0.5/s
  317. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  318. elseif i == 1 then
  319. local s = math.sqrt(m11-m22-m00+1)
  320. local recip = 0.5/s
  321. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  322. elseif i == 2 then
  323. local s = math.sqrt(m22-m00-m11+1)
  324. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  325. end
  326. end
  327. end
  328.  
  329. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  330. local xs, ys, zs = x + x, y + y, z + z
  331. local wx, wy, wz = w*xs, w*ys, w*zs
  332. local xx = x*xs
  333. local xy = x*ys
  334. local xz = x*zs
  335. local yy = y*ys
  336. local yz = y*zs
  337. local zz = z*zs
  338. 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))
  339. end
  340.  
  341. function QuaternionSlerp(a, b, t)
  342. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  343. local startInterp, finishInterp;
  344. if cosTheta >= 0.0001 then
  345. if (1 - cosTheta) > 0.0001 then
  346. local theta = math.acos(cosTheta)
  347. local invSinTheta = 1/math.sin(theta)
  348. startInterp = math.sin((1-t)*theta)*invSinTheta
  349. finishInterp = math.sin(t*theta)*invSinTheta
  350. else
  351. startInterp = 1-t
  352. finishInterp = t
  353. end
  354. else
  355. if (1+cosTheta) > 0.0001 then
  356. local theta = math.acos(-cosTheta)
  357. local invSinTheta = 1/math.sin(theta)
  358. startInterp = math.sin((t-1)*theta)*invSinTheta
  359. finishInterp = math.sin(t*theta)*invSinTheta
  360. else
  361. startInterp = t-1
  362. finishInterp = t
  363. end
  364. end
  365. 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
  366. end
  367.  
  368. function rayCast(Pos, Dir, Max, Ignore)
  369. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  370. end
  371.  
  372. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  373. if hit.Parent==nil then
  374. return
  375. end
  376. local h=hit.Parent:FindFirstChild("Humanoid")
  377. for _,v in pairs(hit.Parent:children()) do
  378. if v:IsA("Humanoid") then
  379. h=v
  380. end
  381. end
  382. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  383. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  384. end
  385. if hit.Parent.className=="Hat" then
  386. hit=hit.Parent.Parent:findFirstChild("Head")
  387. end
  388. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  389. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  390. local c=Instance.new("ObjectValue")
  391. c.Name="creator"
  392. c.Value=game:service("Players").LocalPlayer
  393. c.Parent=h
  394. game:GetService("Debris"):AddItem(c,.5)
  395. local Damage=math.random(minim,maxim)
  396. local blocked=false
  397. local block=hit.Parent:findFirstChild("Block")
  398. if block~=nil then
  399. print(block.className)
  400. if block.className=="NumberValue" then
  401. if block.Value>0 then
  402. blocked=true
  403. if decreaseblock==nil then
  404. block.Value=block.Value-1
  405. end
  406. end
  407. end
  408. if block.className=="IntValue" then
  409. if block.Value>0 then
  410. blocked=true
  411. if decreaseblock~=nil then
  412. block.Value=block.Value-1
  413. end
  414. end
  415. end
  416. end
  417. if blocked==false then
  418. h.Health=h.Health-Damage
  419. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  420. else
  421. h.Health=h.Health-(Damage/2)
  422. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  423. end
  424. if Type=="Knockdown" then
  425. local hum=hit.Parent.Humanoid
  426. hum.PlatformStand=true
  427. coroutine.resume(coroutine.create(function(HHumanoid)
  428. swait(1)
  429. HHumanoid.PlatformStand=false
  430. end),hum)
  431. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  432. local bodvol=Instance.new("BodyVelocity")
  433. bodvol.velocity=angle*knockback
  434. bodvol.P=5000
  435. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  436. bodvol.Parent=hit
  437. local rl=Instance.new("BodyAngularVelocity")
  438. rl.P=3000
  439. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  440. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  441. rl.Parent=hit
  442. game:GetService("Debris"):AddItem(bodvol,.5)
  443. game:GetService("Debris"):AddItem(rl,.5)
  444. elseif Type=="Normal" then
  445. local vp=Instance.new("BodyVelocity")
  446. vp.P=500
  447. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  448. if KnockbackType==1 then
  449. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  450. elseif KnockbackType==2 then
  451. vp.velocity=Property.CFrame.lookVector*knockback
  452. end
  453. if knockback>0 then
  454. vp.Parent=hit.Parent.Torso
  455. end
  456. game:GetService("Debris"):AddItem(vp,.5)
  457. elseif Type=="Up" then
  458. local bodyVelocity=Instance.new("BodyVelocity")
  459. bodyVelocity.velocity=vt(0,60,0)
  460. bodyVelocity.P=5000
  461. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  462. bodyVelocity.Parent=hit
  463. game:GetService("Debris"):AddItem(bodyVelocity,1)
  464. local rl=Instance.new("BodyAngularVelocity")
  465. rl.P=3000
  466. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  467. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  468. rl.Parent=hit
  469. game:GetService("Debris"):AddItem(rl,.5)
  470. elseif Type=="Snare" then
  471. local bp=Instance.new("BodyPosition")
  472. bp.P=2000
  473. bp.D=100
  474. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  475. bp.position=hit.Parent.Torso.Position
  476. bp.Parent=hit.Parent.Torso
  477. game:GetService("Debris"):AddItem(bp,1)
  478. elseif Type=="Target" then
  479. local Targetting = false
  480. if Targetting==false then
  481. ZTarget=hit.Parent.Torso
  482. coroutine.resume(coroutine.create(function(Part)
  483. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  484. swait(5)
  485. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  486. end),ZTarget)
  487. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  488. local targetgui=Instance.new("BillboardGui")
  489. targetgui.Parent=ZTarget
  490. targetgui.Size=UDim2.new(10,100,10,100)
  491. local targ=Instance.new("ImageLabel")
  492. targ.Parent=targetgui
  493. targ.BackgroundTransparency=1
  494. targ.Image="rbxassetid://4834067"
  495. targ.Size=UDim2.new(1,0,1,0)
  496. Targetting=true
  497. RocketTarget=ZTarget
  498. for i=1,Property do
  499. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  500. swait()
  501. end
  502. end
  503. Targetting=false
  504. RocketTarget=nil
  505. targetgui.Parent=nil
  506. end
  507. end
  508. local debounce=Instance.new("BoolValue")
  509. debounce.Name="DebounceHit"
  510. debounce.Parent=hit.Parent
  511. debounce.Value=true
  512. game:GetService("Debris"):AddItem(debounce,Delay)
  513. c=Instance.new("ObjectValue")
  514. c.Name="creator"
  515. c.Value=Player
  516. c.Parent=h
  517. game:GetService("Debris"):AddItem(c,.5)
  518. end
  519. end
  520.  
  521.  
  522. function ShowDamage(Pos, Text, Time, Color)
  523. local Rate = (1 / 30)
  524. local Pos = (Pos or Vector3.new(0, 0, 0))
  525. local Text = (Text or "")
  526. local Time = (Time or 2)
  527. local Color = (Color or Color3.new(1, 0, 0))
  528. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  529. EffectPart.Anchored = true
  530. local BillboardGui = Instance.new("BillboardGui")
  531. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  532. BillboardGui.Adornee = EffectPart
  533. local TextLabel = Instance.new("TextLabel")
  534. TextLabel.BackgroundTransparency = 1
  535. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  536. TextLabel.Text = Text
  537. TextLabel.TextColor3 = Color
  538. TextLabel.TextScaled = true
  539. TextLabel.Font = Enum.Font.ArialBold
  540. TextLabel.Parent = BillboardGui
  541. BillboardGui.Parent = EffectPart
  542. game.Debris:AddItem(EffectPart, (Time + 0.1))
  543. EffectPart.Parent = game:GetService("Workspace")
  544. Delay(0, function()
  545. local Frames = (Time / Rate)
  546. for Frame = 1, Frames do
  547. wait(Rate)
  548. local Percent = (Frame / Frames)
  549. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  550. TextLabel.TextTransparency = Percent
  551. end
  552. if EffectPart and EffectPart.Parent then
  553. EffectPart:Destroy()
  554. end
  555. end)
  556. end
  557.  
  558. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
  559. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  560. mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
  561. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
  562. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
  563. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
  565. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
  566. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  567. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
  568. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
  569. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
  571. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
  572. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
  573. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
  574. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
  575. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
  577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
  578. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
  579. Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1))
  580. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
  581. mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
  582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  584. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  585. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  586. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  587. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
  588. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
  589. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  590. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
  591. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
  592. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  593. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
  594. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
  595. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  596. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  597. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
  598. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  599. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
  600. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  601. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
  602. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  603. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  604. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
  605. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  606. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
  607. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
  608. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  609. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
  610. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  611. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  612. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
  613. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
  614. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  615. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
  616. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
  617. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  618. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
  619. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
  620. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
  621. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
  622. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
  623. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
  624. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  625. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
  626. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
  627. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
  628. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
  629. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
  630. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  631. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
  632. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
  633. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
  634. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
  635. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
  636. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  637. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
  638. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
  639. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  640. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  641. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Royal purple","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  642. EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  643. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  644. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  645. EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  646.  
  647. DarkRiftF=function(par)
  648. while lol == true do
  649. wait()
  650. local PWN={}
  651. for _,v in pairs(game.Workspace:children()) do
  652. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  653. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  654. table.insert(PWN,v.Torso)
  655. end
  656. end
  657. end
  658. for _,t in pairs(PWN) do
  659. local targ=par.Position-t.Position
  660. local Mag=targ.magnitude
  661. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  662. if Mag<=30 then
  663. t.Parent.Humanoid:TakeDamage(.5)
  664. local rl=Instance.new("BodyAngularVelocity")
  665. rl.P=3000
  666. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  667. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  668. rl.Parent=t
  669. game:GetService("Debris"):AddItem(rl,.1)
  670. end
  671. if Mag<=20 then
  672. t.Parent.Humanoid:TakeDamage(.1)
  673. else
  674. local vl=Instance.new("BodyVelocity")
  675. vl.P=3000
  676. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  677. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  678. vl.Parent=t
  679. game:GetService("Debris"):AddItem(vl,.1)
  680. end
  681. end
  682. end
  683. wait(.08)
  684. end
  685. end
  686.  
  687. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  688. local msh1 = Instance.new("BlockMesh")
  689. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  690. local S=Instance.new("Part")
  691. S.Name="Effect"
  692. S.Material="Neon"
  693. S.formFactor=0
  694. S.Size=Vector3.new(x1,y1,z1)
  695. S.BrickColor=color
  696. S.Reflectance = 0
  697. S.TopSurface=0
  698. S.BottomSurface=0
  699. S.Transparency=0
  700. S.Anchored=false
  701. S.CanCollide=false
  702. S.CFrame=part.CFrame
  703. S.Parent=game.Workspace
  704. msh1.Parent = S
  705. local W=Instance.new("Weld")
  706. W.Parent=S
  707. W.Part0=S
  708. W.Part1=part
  709. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  710. W.Parent=nil
  711. S.Anchored=true
  712. coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  713. end
  714.  
  715. local function BlackHole(parent,cframe)
  716. local effectsmsh = Instance.new("SpecialMesh")
  717. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  718. effectsmsh.Scale = Vector3.new(3,3,3)
  719. local effectsg = Instance.new("Part")
  720. effectsg.formFactor = 3
  721. effectsg.CanCollide = false
  722. effectsg.Name = "Effect"
  723. effectsg.Locked = true
  724. effectsg.Transparency = 1
  725. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  726. effectsg.Parent = parent
  727. effectsg.BrickColor = BrickColor.new("Royal purple")
  728. effectsg.Material="Neon"
  729. coroutine.resume(coroutine.create(function(Part,Mesh)
  730. local Mesh = Instance.new("SpecialMesh")
  731. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  732. Mesh.MeshType = "Sphere"
  733. Part=Instance.new("Part")
  734. Part.Name="Effect"
  735. Part.formFactor=0
  736. Part.Size=Vector3.new(1,1,1)
  737. Part.BrickColor=BrickColor.new("Royal purple")
  738. Part.Material="Neon"
  739. Part.Reflectance = 0
  740. Part.TopSurface=0
  741. Part.BottomSurface=0
  742. Part.Transparency=0
  743. Part.Anchored=true
  744. NoOutline(Part)
  745. Part.CanCollide=false
  746. Part.CFrame=cframe
  747. Part.Parent=parent
  748. Mesh.Parent = Part
  749. lol=true
  750. coroutine.resume(coroutine.create(function()
  751. DarkRiftF(Part)
  752. end))
  753. for i=0,200 do
  754. wait()
  755. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple"))
  756. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  757. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  758. end
  759. local fff=200
  760. for i=0,100 do
  761. wait()
  762. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple"))
  763. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  764. end
  765. for i=0,1,0.05 do
  766. wait()
  767. Part.Transparency=Part.Transparency+0.05
  768. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  769. end
  770. lol=false
  771. Part.Parent=nil
  772. end),nil,nil)
  773. end
  774.  
  775. function makeShockwave(height,color,speed,range,pulse)
  776. local range = range or 2000
  777. local p = Instance.new("Part")
  778. p.Anchored = true
  779. p.CanCollide = false
  780. p.FormFactor = "Custom"
  781. p.BrickColor = color
  782. p.Parent = workspace
  783. local m = Instance.new("SpecialMesh",p)
  784. m.MeshId = "rbxassetid://3270017"
  785. local estimateSurvival = math.floor(range/speed) * 0.03
  786. game:GetService("Debris"):AddItem(p,estimateSurvival)
  787. Spawn(function ()
  788. for i = 1,range,speed do
  789. p.Transparency = 1-math.min(0.5,3-(i/500))
  790. m.Scale = Vector3.new(i,i,i*height)
  791. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  792. wait()
  793. end
  794. p:Destroy()
  795. end)
  796. end
  797.  
  798. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  799. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  800. prt.Anchored=true
  801. prt.CFrame=cframe
  802. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  803. game:GetService("Debris"):AddItem(prt,2)
  804. coroutine.resume(coroutine.create(function(Part,Mesh)
  805. for i=0,2,delay do
  806. wait()
  807. Part.CFrame=Part.CFrame
  808. Part.Transparency=i
  809. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  810. end
  811. Part.Parent=nil
  812. end),prt,msh)
  813. end
  814.  
  815. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  816. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  817. prt.Anchored=true
  818. prt.CFrame=cframe
  819. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  820. game:GetService("Debris"):AddItem(prt,5)
  821. coroutine.resume(coroutine.create(function(Part,Mesh)
  822. for i=0,1,delay do
  823. wait()
  824. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  825. Part.Transparency=i
  826. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  827. end
  828. Part.Parent=nil
  829. end),prt,msh)
  830. end
  831.  
  832. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  833. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  834. if Type~=2 then
  835. prt.Anchored=true
  836. end
  837. prt.CFrame=cframe
  838. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  839. game:GetService("Debris"):AddItem(prt,5)
  840. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  841. local wld=nil
  842. if dur==2 then
  843. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  844. end
  845. for i=0,1,delay do
  846. swait()
  847. if dur==1 then
  848. Part.CFrame=Part.CFrame
  849. elseif dur==2 then
  850. wld.C0=cframe
  851. end
  852. Part.Transparency=i
  853. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  854. end
  855. Part.Parent=nil
  856. end),prt,msh,Type)
  857. end
  858.  
  859. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  860. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  861. prt.Anchored=true
  862. prt.CFrame=cframe
  863. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  864. game:GetService("Debris"):AddItem(prt,5)
  865. coroutine.resume(coroutine.create(function(Part,Mesh)
  866. for i=0,1,delay do
  867. swait()
  868. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  869. Part.Transparency=i
  870. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  871. end
  872. Part.Parent=nil
  873. end),prt,msh)
  874. end
  875.  
  876. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  877. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  878. prt.Anchored=true
  879. prt.CFrame=cframe
  880. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  881. game:GetService("Debris"):AddItem(prt,5)
  882. coroutine.resume(coroutine.create(function(Part,Mesh)
  883. for i=0,1,delay do
  884. wait()
  885. Part.CFrame=Part.CFrame
  886. Part.Transparency=i
  887. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  888. end
  889. Part.Parent=nil
  890. end),prt,msh)
  891. end
  892.  
  893. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  894. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  895. prt.Anchored=true
  896. prt.CFrame=cframe
  897. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  898. game:GetService("Debris"):AddItem(prt,5)
  899. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  900. end
  901.  
  902. function Blast(parent)
  903. MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  904. MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  905. end
  906.  
  907. function ChargeBall(parent,t)
  908. local counter=0
  909. local size=1
  910. for i=0,t,1 do
  911. swait()
  912. counter=counter+1
  913. if counter%10==0 then
  914. if size==3 then
  915. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  916. elseif size==2 then
  917. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  918. end
  919. end
  920. if counter%5==0 then
  921. if size==1 then
  922. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  923. elseif size==2 then
  924. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  925. elseif size==3 then
  926. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  927. end
  928. end
  929. end
  930. end
  931.  
  932. function ChargeBall2(parent,t)
  933. local counter=0
  934. local size=1
  935. for i=0,t,1 do
  936. swait()
  937. counter=counter+1
  938. if counter%10==0 then
  939. if size==3 then
  940. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  941. elseif size==2 then
  942. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  943. end
  944. end
  945. if counter%5==0 then
  946. if size==1 then
  947. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  948. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  949. elseif size==2 then
  950. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  951. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  952. elseif size==3 then
  953. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  954. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  955. end
  956. end
  957. end
  958. end
  959.  
  960. function MagniDamage(Part,dis,mind,maxd,force,knock)
  961. for _,c in pairs(workspace:children()) do
  962. local hum=c:findFirstChild("Humanoid")
  963. if hum~=nil then
  964. local head=c:findFirstChild("Torso")
  965. if head~=nil then
  966. local targ=head.Position-Part.Position
  967. local mag=targ.magnitude
  968. if mag<=dis and c.Name~=Character.Name then
  969. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  970. end
  971. end
  972. end
  973. end
  974. end
  975.  
  976. function computeDirection(vec)
  977. local lenSquared = vec.magnitude * vec.magnitude
  978. local invSqrt = 1 / math.sqrt(lenSquared)
  979. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  980. end
  981.  
  982. function attackone()
  983. attack = true
  984. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  985. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  986. local fx=Hitbox.Touched:connect(function(part)
  987. local human=part.Parent:findFirstChild("Humanoid")
  988. if human~=nil and bounce==false then
  989. bounce=true
  990. local rndm=math.random(1,#hitsounds)
  991. local r=rndm
  992. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  993. end
  994. end)
  995. for i = 0,1,0.1 do
  996. swait()
  997. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  998. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  999. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  1000. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  1001. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  1002. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  1003. end
  1004. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  1005. for i = 0,1,0.1 do
  1006. swait()
  1007. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1008. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1009. local h = 5
  1010. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1011. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1012. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1013. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1014. scfr = blcf
  1015. elseif not scfr then
  1016. scfr = blcf
  1017. end
  1018. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  1019. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  1020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1021. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1022. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  1023. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  1024. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1025. end
  1026. attack = false
  1027. bounce=false
  1028. scfr=nil
  1029. fx:disconnect()
  1030. con:disconnect()
  1031. end
  1032.  
  1033. function attacktwo()
  1034. attack=true
  1035. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1036. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1037. local fx=Hitbox.Touched:connect(function(part)
  1038. local human=part.Parent:findFirstChild("Humanoid")
  1039. if human~=nil and bounce==false then
  1040. bounce=true
  1041. local rndm=math.random(1,#hitsounds)
  1042. local r=rndm
  1043. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1044. end
  1045. end)
  1046. for i=0,1,.1 do
  1047. swait()
  1048. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  1049. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  1050. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  1051. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  1052. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  1053. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  1054. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
  1055. end
  1056. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  1057. for i = 0,1,0.1 do
  1058. swait()
  1059. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1060. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1061. local h = 5
  1062. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1063. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1064. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1065. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1066. scfr = blcf
  1067. elseif not scfr then
  1068. scfr = blcf
  1069. end
  1070. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  1071. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  1072. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  1073. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  1074. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  1075. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  1076. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1077. end
  1078. scfr=nil
  1079. attack=false
  1080. bounce=false
  1081. con:disconnect()
  1082. fx:disconnect()
  1083. end
  1084.  
  1085. function attackthree()
  1086. attack=true
  1087. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1088. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end)
  1089. local fx=Hitbox.Touched:connect(function(part)
  1090. local human=part.Parent:findFirstChild("Humanoid")
  1091. if human~=nil and bounce==false then
  1092. bounce=true
  1093. local rndm=math.random(1,#hitsounds)
  1094. local r=rndm
  1095. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1096. end
  1097. end)
  1098. for i=0,1,.1 do
  1099. swait()
  1100. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1101. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1102. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1103. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1104. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1105. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1106. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  1107. end
  1108. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  1109. for i = 0,1,0.1 do
  1110. swait()
  1111. local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
  1112. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1113. local h = 5
  1114. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1115. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1116. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1117. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1118. scfr = blcf
  1119. elseif not scfr then
  1120. scfr = blcf
  1121. end
  1122. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1123. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1124. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1125. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1126. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1127. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1128. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
  1129. end
  1130. attack=false
  1131. bounce=false
  1132. scfr=nil
  1133. con:disconnect()
  1134. fx:disconnect()
  1135. end
  1136.  
  1137. function attackfour()
  1138. attack = true
  1139. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1140. local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end)
  1141. local fx=Hitbox.Touched:connect(function(part)
  1142. local human=part.Parent:findFirstChild("Humanoid")
  1143. if human~=nil and bounce==false then
  1144. bounce=true
  1145. local rndm=math.random(1,#hitsounds)
  1146. local r=rndm
  1147. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1148. end
  1149. end)
  1150. for i = 0,1,0.1 do
  1151. swait()
  1152. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
  1153. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  1154. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
  1155. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  1156. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
  1157. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
  1158. handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
  1159. end
  1160. so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
  1161. local v=it("BodyVelocity",Torso)
  1162. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1163. v.velocity=RootPart.CFrame.lookVector*50
  1164. for i = 0,1,0.1 do
  1165. swait()
  1166. local blcf = Hitbox.CFrame*cf(0,0,0)
  1167. if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
  1168. local h = 5
  1169. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1170. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1171. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1172. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1173. scfr = blcf
  1174. elseif not scfr then
  1175. scfr = blcf
  1176. end
  1177. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
  1178. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1179. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
  1180. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
  1181. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1182. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1183. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
  1184. end
  1185. v.Parent=nil
  1186. scfr=nil
  1187. attack = false
  1188. bounce=false
  1189. con:disconnect()
  1190. fx:disconnect()
  1191. end
  1192.  
  1193. function LustrisFulgo()
  1194. attack=true
  1195. Humanoid.WalkSpeed=0
  1196. for i=0,1,0.1 do
  1197. swait()
  1198. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
  1199. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
  1200. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
  1201. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
  1202. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
  1203. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
  1204. handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
  1205. end
  1206. local function boom()
  1207. local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1208. pprt.Anchored=true
  1209. pprt.CFrame=EffectPart.CFrame
  1210. game:GetService("Debris"):AddItem(pprt,2)
  1211. MagicCircle(BrickColor.new("Black"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
  1212. so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
  1213. so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
  1214. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1215. local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  1216. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1217. MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart)
  1218. for i=0,80 do
  1219. swait()
  1220. MagicBlock(BrickColor.new("Black"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
  1221. MagicCircle(BrickColor.new("Black"),EffectPart.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
  1222. wave.Size=vt(1+i,1+i,1+i)
  1223. wavemesh.Scale=vt(1+i,1+i,1+i)
  1224. wave.CFrame=EffectPart.CFrame
  1225. Humanoid.Health=Humanoid.Health+.15
  1226. end
  1227. wave:Destroy()
  1228. end
  1229. boom()
  1230. attack=false
  1231. Humanoid.WalkSpeed=16
  1232. end
  1233.  
  1234. function LeviterGlomus()
  1235. attack=true
  1236. for i=0,1,.1 do
  1237. swait()
  1238. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1239. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1240. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
  1241. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
  1242. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
  1243. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1244. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
  1245. end
  1246. so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
  1247. efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Black","BallEffect",Vector3.new(2, 2, 2))
  1248. weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  1249. mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
  1250. ChargeBall(EffectPart2,35)
  1251. for i=0,1,.1 do
  1252. swait()
  1253. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1254. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  1255. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
  1256. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
  1257. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1258. LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1259. handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
  1260. end
  1261. so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
  1262. efprt:BreakJoints()
  1263. local Target=Remote:InvokeClient(owner,"hit").p
  1264. local direction = Target - handle.Position
  1265. direction = computeDirection(direction)
  1266. local pos = handle.Position + (direction * 10.0)
  1267. efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
  1268. local floatForce = Instance.new("BodyForce")
  1269. floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
  1270. floatForce.Parent = efprt
  1271. efprt.Velocity = direction * 160
  1272. efprt.Touched:connect(function(hit)
  1273. if not hit:IsDescendantOf(Character) then
  1274. if hit.Name~="Effect" then
  1275. MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart)
  1276. floatForce.Parent=nil
  1277. efprt.Anchored=true
  1278. so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
  1279. Blast(efprt)
  1280. efprt:Destroy()
  1281. end
  1282. end
  1283. end)
  1284. game:GetService("Debris"):AddItem(efprt,6)
  1285. attack=false
  1286. end
  1287.  
  1288. function PortalStorm()
  1289. Humanoid.WalkSpeed=0
  1290. attack=true
  1291. for i=0,1,.1 do
  1292. swait()
  1293. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1294. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1295. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
  1296. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
  1297. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1298. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1299. handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
  1300. end
  1301. so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
  1302. ChargeBall2(handle,100)
  1303. makeShockwave(0.5,BrickColor.new("Crimson"),30,1000,0)
  1304. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1305. so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
  1306. wait(2)
  1307. so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
  1308. delay(0.5,function ()
  1309. MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart)
  1310. end)
  1311. Humanoid.Health=Humanoid.Health-0
  1312. makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
  1313. attack=false
  1314. Humanoid.WalkSpeed=9
  1315. wait(4)
  1316. Humanoid.WalkSpeed=16
  1317. end
  1318.  
  1319. function SolSiderea()
  1320. Humanoid.WalkSpeed=0
  1321. attack=true
  1322. so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
  1323. for i=0,1,.1 do
  1324. swait()
  1325. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1326. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1327. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
  1328. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
  1329. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1330. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1331. handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
  1332. end
  1333. for i=0,1,.1 do
  1334. swait()
  1335. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1336. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1337. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
  1338. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
  1339. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1340. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1341. handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
  1342. end
  1343. coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
  1344. local n=2
  1345. local orb=ppart(3,Character,0,1,BrickColor.new("Crimson"),"Orb",vt())
  1346. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  1347. local owld=wweld(orb,orb,Torso,cf(-10,-150,0))
  1348. for i=1,0.3,-0.01 do
  1349. wait()
  1350. orb.Transparency=i
  1351. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  1352. MagicBlock(BrickColor.new("Crimson"),orb.CFrame,15,15,15,2,2,2,0.1)
  1353. local ef=ppart(3,workspace,0,0,BrickColor.new("Royal purple"),"Effect",vt())
  1354. ef.Anchored=true
  1355. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  1356. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  1357. ef.CFrame=orb.CFrame*ceef
  1358. game:GetService("Debris"):AddItem(ef,2)
  1359. coroutine.resume(coroutine.create(function(Part,Mesh)
  1360. for i=0,1,0.1 do
  1361. wait()
  1362. Part.Transparency=i
  1363. Part.CFrame=Part.CFrame*cf(0,-1,0)
  1364. end
  1365. Part.Parent=nil
  1366. end),ef,emsh)
  1367. end
  1368. local Pos=cf(orb.Position,Remote:InvokeClient(owner,"hit").p).lookVector
  1369. wait(.5)
  1370. orb.Parent=nil
  1371. wait(1)
  1372. local hit,pos = rayCast(orb.Position,Pos,1000,Character)
  1373. local mag=(orb.Position-pos).magnitude
  1374. BlackHole(game.Workspace,cf(pos))
  1375. coroutine.resume(coroutine.create(function()
  1376. local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1))
  1377. wweld(game.Workspace,wave,orb,Torso.CFrame)
  1378. local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
  1379. for i=1,100 do
  1380. swait()
  1381. wave.Size=vt(1+i,1+i,1+i)
  1382. wavemesh.Scale=vt(1+i,1+i,1+i)
  1383. wave.CFrame=cf(pos)
  1384. end
  1385. end))
  1386. coroutine.resume(coroutine.create(function()
  1387. for i=0,20 do
  1388. swait(15)
  1389. local range = 1500
  1390. local p = Instance.new("Part")
  1391. p.Anchored = true
  1392. p.CanCollide = false
  1393. p.FormFactor = "Custom"
  1394. p.BrickColor = BrickColor.new("Crimson")
  1395. p.Parent = workspace
  1396. p.Name="Effect"
  1397. p.CFrame=cf(pos)
  1398. local m = Instance.new("SpecialMesh",p)
  1399. m.MeshId = "rbxassetid://3270017"
  1400. local estimateSurvival = math.floor(range/30) * 0.03
  1401. game:GetService("Debris"):AddItem(p,estimateSurvival)
  1402. Spawn(function ()
  1403. for i = 1,range,30 do
  1404. p.Transparency = 1-math.min(0.5,3-(i/500))
  1405. m.Scale = Vector3.new(i,i,i*0.5)
  1406. p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
  1407. wait()
  1408. end
  1409. p:Destroy()
  1410. end)
  1411. end
  1412. end))
  1413. MagicCylinder(BrickColor.new("Crimson"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  1414. for i=1,2 do
  1415. end
  1416. for i=1,5 do
  1417. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  1418. end
  1419. for i=0,5 do
  1420. tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  1421. end
  1422. local ref=ppart(3,workspace,0,1,BrickColor.new("Crimson"),"Effect",vt())
  1423. ref.CFrame=cf(pos)
  1424. coroutine.resume(coroutine.create(function(Part)
  1425. wait(1)
  1426. Part.Parent=nil
  1427. end),ref)
  1428. MagniDamage(ref,25,22220,32220,40,"Knockdown",ref)
  1429. if hit~=nil then
  1430. Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0)
  1431. end
  1432. local n=2
  1433. MagicWave(BrickColor.new("Crimson"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01)
  1434. swait(75)
  1435. Humanoid.WalkSpeed=16
  1436. attack=false
  1437. end
  1438.  
  1439. attacktype=1
  1440. Button1Down = function()
  1441. if attacktype==1 and attack==false then
  1442. attacktype=2
  1443. attackone()
  1444. elseif attacktype==2 and attack==false then
  1445. attacktype=3
  1446. attacktwo()
  1447. elseif attacktype==3 and attack==false then
  1448. attacktype=4
  1449. attackthree()
  1450. elseif attacktype==4 and attack==false then
  1451. attacktype=1
  1452. attackfour()
  1453. end
  1454. end
  1455.  
  1456. KeyDown = function(k)
  1457. k=k:lower()
  1458. if attack == false and k == 'e' then
  1459. LeviterGlomus()
  1460. ChargeBall(efprt,100)
  1461. end
  1462. if attack == false and k == 'q' then
  1463. LustrisFulgo()
  1464. end
  1465. if attack == false and k == 'f' and deeznuts==false then
  1466. deeznuts=true
  1467. SolSiderea()
  1468. deeznuts=false
  1469. end
  1470. if attack == false and k == 'r' and cooldown==false then
  1471. cooldown=true
  1472. PortalStorm()
  1473. cooldown=false
  1474. end
  1475. end
  1476.  
  1477.  
  1478. local sine = 0
  1479. local change = 1
  1480. local val = 0
  1481.  
  1482. while true do
  1483. swait()
  1484. sine = sine + change
  1485. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1486. local velderp=RootPart.Velocity.y
  1487. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1488. if equipped==true or equipped==false then
  1489. if attack==false then
  1490. idle=idle+1
  1491. else
  1492. idle=0
  1493. end
  1494. if idle>=500 then
  1495. if attack==false then
  1496. end
  1497. end
  1498. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1499. Anim="Jump"
  1500. if attack==false then
  1501. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1502. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1503. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1504. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1505. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1506. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1507. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1508. end
  1509. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1510. Anim="Fall"
  1511. if attack==false then
  1512. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1513. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  1514. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  1515. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1516. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1517. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1518. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  1519. end
  1520. elseif torvel<1 and hitfloor~=nil then
  1521. Anim="Idle"
  1522. if attack==false then
  1523. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
  1524. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
  1525. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
  1526. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1527. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  1528. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  1529. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
  1530. end
  1531. elseif torvel>2 and hitfloor~=nil then
  1532. Anim="Walk"
  1533. if attack==false then
  1534. change=3
  1535. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
  1536. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
  1537. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
  1538. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
  1539. RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
  1540. LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
  1541. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1542. end
  1543. end
  1544. end
  1545. if #Effects>0 then
  1546. for e=1,#Effects do
  1547. if Effects[e]~=nil then
  1548. local Thing=Effects[e]
  1549. if Thing~=nil then
  1550. local Part=Thing[1]
  1551. local Mode=Thing[2]
  1552. local Delay=Thing[3]
  1553. local IncX=Thing[4]
  1554. local IncY=Thing[5]
  1555. local IncZ=Thing[6]
  1556. if Thing[1].Transparency<=1 then
  1557. if Thing[2]=="Block1" then
  1558. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1559. Mesh=Thing[1].Mesh
  1560. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1561. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1562. elseif Thing[2]=="Cylinder" then
  1563. Mesh=Thing[1].Mesh
  1564. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1565. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1566. elseif Thing[2]=="Blood" then
  1567. Mesh=Thing[7]
  1568. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1569. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1570. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1571. elseif Thing[2]=="Elec" then
  1572. Mesh=Thing[1].Mesh
  1573. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1574. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1575. elseif Thing[2]=="Disappear" then
  1576. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1577. end
  1578. else
  1579. Part.Parent=nil
  1580. table.remove(Effects,e)
  1581. end
  1582. end
  1583. end
  1584. end
  1585. end
  1586. end]]
  1587.  
  1588. print("Making ServerScript")
  1589. local Remote = NS(Source,owner.Character):WaitForChild("Remote")
  1590.  
  1591. mouse=owner:GetMouse()
  1592.  
  1593. mouse.Button1Down:connect(function(...)
  1594. Remote:InvokeServer(1,...)
  1595. end)
  1596. mouse.KeyDown:connect(function(...)
  1597. Remote:InvokeServer(2,...)
  1598. end)
  1599. Remote.OnClientInvoke = function(request)
  1600. if request == "hit" then
  1601. return mouse.Hit
  1602. end
  1603. end
  1604. print("Scripts and remotes loaded! ~WaverlyCoal")
  1605.  
  1606. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  1607. print("FE Compatibility: by WaverlyCole & Mokiros")
  1608. InternalData = {}
  1609. do
  1610. script.Parent = owner.Character
  1611. local Event = Instance.new("RemoteEvent")
  1612. Event.Name = "UserInput"
  1613. local function NewFakeEvent()
  1614. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  1615. return Fake
  1616. end
  1617. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  1618. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  1619. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  1620. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  1621. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  1622. local function TriggerEvent(self,Event,...)
  1623. local Trigger = Mouse[Event]
  1624. if Trigger and Trigger.fakeEvent and Trigger.Function then
  1625. Trigger.Function(...)
  1626. end
  1627. end
  1628. Mouse.TrigEvent = TriggerEvent
  1629. UserInputService.TrigEvent = TriggerEvent
  1630. Event.OnServerEvent:Connect(function(FiredBy,Input)
  1631. if FiredBy.Name ~= owner.Name then end
  1632. if Input.MouseEvent then
  1633. Mouse.Target = Input.Target
  1634. Mouse.Hit = Input.Hit
  1635. else
  1636. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  1637. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1638. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  1639. end
  1640. for _,Action in pairs(ContextActionService.Actions) do
  1641. for _,Key in pairs(Action.Keys) do
  1642. if Key==Input.KeyCode then
  1643. Action.Function(Action.Name,Input.UserInputState,Input)
  1644. end
  1645. end
  1646. end
  1647. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  1648. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  1649. end
  1650. end)
  1651. InternalData["Mouse"] = Mouse
  1652. InternalData["ContextActionService"] = ContextActionService
  1653. InternalData["UserInputService"] = UserInputService
  1654. Event.Parent = NLS([[
  1655. local Player = owner
  1656. local Event = script:WaitForChild("UserInput")
  1657. local UserInputService = game:GetService("UserInputService")
  1658. local Mouse = Player:GetMouse()
  1659. local Input = function(Input,gameProcessedEvent)
  1660. if gameProcessedEvent then return end
  1661. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  1662. end
  1663. UserInputService.InputBegan:Connect(Input)
  1664. UserInputService.InputEnded:Connect(Input)
  1665. local Hit,Target
  1666. while wait(1/30) do
  1667. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  1668. Hit,Target = Mouse.Hit,Mouse.Target
  1669. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  1670. end
  1671. end
  1672. ]],owner.Character)
  1673. end
  1674. RealGame = game;game = setmetatable({},{
  1675. __index = function (self,Index)
  1676. local Sandbox = function (Thing)
  1677. if Thing:IsA("Player") then
  1678. local RealPlayer = Thing
  1679. return setmetatable({},{
  1680. __index = function (self,Index)
  1681. local Type = type(RealPlayer[Index])
  1682. if Type == "function" then
  1683. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  1684. return function (self)
  1685. return InternalData["Mouse"]
  1686. end
  1687. end
  1688. return function (self,...)
  1689. return RealPlayer[Index](RealPlayer,...)
  1690. end
  1691. else
  1692. if Index == "PlrObj" then
  1693. return RealPlayer
  1694. end
  1695. return RealPlayer[Index]
  1696. end
  1697. end;
  1698. __tostring = function(self)
  1699. return RealPlayer.Name
  1700. end
  1701. })
  1702. end
  1703. end
  1704. if RealGame[Index] then
  1705. local Type = type(RealGame[Index])
  1706. if Type == "function" then
  1707. if Index:lower() == "getservice" or Index:lower() == "service" then
  1708. return function (self,Service)
  1709. if Service:lower() == "players" then
  1710. return setmetatable({},{
  1711. __index = function (self2,Index2)
  1712. local RealService = RealGame:GetService(Service)
  1713. local Type2 = type(Index2)
  1714. if Type2 == "function" then
  1715. return function (self,...)
  1716. return RealService[Index2](RealService,...)
  1717. end
  1718. else
  1719. if Index2:lower() == "localplayer" then
  1720. return Sandbox(owner)
  1721. end
  1722. return RealService[Index2]
  1723. end
  1724. end;
  1725. __tostring = function(self)
  1726. return RealGame:GetService(Service).Name
  1727. end
  1728. })
  1729. elseif Service:lower() == "contextactionservice" then
  1730. return InternalData["ContextActionService"]
  1731. elseif Service:lower() == "contextactionservice" then
  1732. return InternalData["UserInputService"]
  1733. elseif Service:lower() == "runservice" then
  1734. return setmetatable({},{
  1735. __index = function(self2,Index2)
  1736. local RealService = RealGame:GetService(Service)
  1737. local Type2 = type(Index2)
  1738. if Type2 == "function" then
  1739. return function (self,...)
  1740. return RealService[Index2](RealService,...)
  1741. end
  1742. else
  1743. if Index2:lower() == "bindtorenderstep" then
  1744. return function (self,Name,Priority,Function)
  1745. return RealGame:GetService("RunService").Stepped:Connect(Function)
  1746. end
  1747. end
  1748. if Index2:lower() == "renderstepped" then
  1749. return RealService["Stepped"]
  1750. end
  1751. return RealService[Index2]
  1752. end
  1753. end
  1754. })
  1755. else
  1756. return RealGame:GetService(Service)
  1757. end
  1758. end
  1759. end
  1760. return function (self,...)
  1761. return RealGame[Index](RealGame,...)
  1762. end
  1763. else
  1764. if game:GetService(Index) then
  1765. return game:GetService(Index)
  1766. end
  1767. return RealGame[Index]
  1768. end
  1769. else
  1770. return nil
  1771. end
  1772. end
  1773. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  1774. print("Complete! Running...")
  1775.  
  1776.  
  1777. --//Paste script below this line.
  1778.  
  1779. warn("Get Triggered")
  1780. warn("All purpose switcher...")
  1781. warn("Edit By Some ***.")
  1782. warn("Minor Edit By UndeniableInfinity.")
  1783. warn("Please Support The Original Creator Of This Script.")
  1784. plr = game.Players.LocalPlayer
  1785. char = plr.Character
  1786. hum = char.Humanoid
  1787. local cam = game.Workspace.CurrentCamera
  1788. Camera = cam
  1789. local CamInterrupt = false
  1790. local TwoD = false
  1791. local TargetInfo = {nil, nil}
  1792. cam.CameraType = "Custom"
  1793. t = char.Torso
  1794. h = char.Head
  1795. ra = char["Right Arm"]
  1796. la = char["Left Arm"]
  1797. rl = char["Right Leg"]
  1798. ll = char["Left Leg"]
  1799. tors = char.Torso
  1800. lleg = char["Left Leg"]
  1801. root = char.HumanoidRootPart
  1802. hed = char.Head
  1803. rleg = char["Right Leg"]
  1804. rarm = char["Right Arm"]
  1805. larm = char["Left Arm"]
  1806. radian = math.rad
  1807. random = math.random
  1808. Vec3 = Vector3.new
  1809. Inst = Instance.new
  1810. cFrame = CFrame.new
  1811. Euler = CFrame.fromEulerAnglesXYZ
  1812. vt = Vector3.new
  1813. bc = BrickColor.new
  1814. br = BrickColor.random
  1815. it = Instance.new
  1816. cf = CFrame.new
  1817. local Booleans = {CamFollow = true, GyroUse = true}
  1818. function lerp(object, newCFrame, alpha)
  1819. return object:lerp(newCFrame, alpha)
  1820. end
  1821.  
  1822. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  1823. ff.Visible = false
  1824.  
  1825.  
  1826. local Directer = Inst("BodyGyro", root)
  1827. Directer.MaxTorque = Vec3(0, 0, 0)
  1828. Directer.P = 600000
  1829. local CPart = Inst("Part")
  1830. CPart.Anchored = true
  1831. CPart.CanCollide = false
  1832. CPart.Locked = true
  1833. CPart.Transparency = 1
  1834. local rainbowmode = false
  1835. local chaosmode = false
  1836. kan = Instance.new("Sound", char)
  1837. kan.Volume = 1.98
  1838. kan.TimePosition = 0
  1839. kan.PlaybackSpeed = 1
  1840. kan.Pitch = 1
  1841. kan.SoundId = "rbxassetid://415898123"
  1842. kan.Name = "wrecked"
  1843. kan.Looped = true
  1844. kan:Play()
  1845. function newTheme(ID, timepos, pitch, vol)
  1846. local kanz = kan
  1847. kanz.PlaybackSpeed = pitch
  1848. kanz.Pitch = pitch
  1849. kanz.SoundId = ID
  1850. kanz.Name = "wrecked"
  1851. kanz.Looped = true
  1852. end
  1853. function CameraShake(Times, Power, PlayerTarget)
  1854. coroutine.resume(coroutine.create(function()
  1855. FV = Instance.new("BoolValue", PlayerTarget)
  1856. FV.Name = "CameraShake"
  1857. for ShakeNum = 1, Times do
  1858. swait()
  1859. local ef = Power
  1860. if ef >= 1 then
  1861. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  1862. else
  1863. ef = Power * 10
  1864. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  1865. end
  1866. end
  1867. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1868. FV:Destroy()
  1869. end))
  1870. end
  1871. function CameraEnshaking(Length, Intensity)
  1872. coroutine.resume(coroutine.create(function()
  1873. local intensity = 1 * Intensity
  1874. local rotM = 0.01 * Intensity
  1875. for i = 0, Length, 0.1 do
  1876. swait()
  1877. intensity = intensity - 0.05 * Intensity / Length
  1878. rotM = rotM - 5.0E-4 * Intensity / Length
  1879. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1880. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  1881. end
  1882. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1883. end))
  1884. end
  1885. function CamShake(Part, Distan, Power, Times)
  1886. local de = Part.Position
  1887. for i, v in pairs(workspace:children()) do
  1888. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1889. for _, c in pairs(v:children()) do
  1890. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  1891. do
  1892. local Noob = v.Humanoid
  1893. if Noob ~= nil then
  1894. coroutine.resume(coroutine.create(function()
  1895. FV = Instance.new("BoolValue", Noob)
  1896. FV.Name = "CameraShake"
  1897. for ShakeNum = 1, Times do
  1898. swait()
  1899. local ef = Power
  1900. if ef >= 1 then
  1901. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  1902. else
  1903. ef = Power * 10
  1904. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  1905. end
  1906. end
  1907. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1908. FV:Destroy()
  1909. end))
  1910. CameraShake(Times, Power, Noob)
  1911. end
  1912. end
  1913. end
  1914. end
  1915. end
  1916. end
  1917. end
  1918. function chatfunc(text, color)
  1919. local chat = coroutine.wrap(function()
  1920. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  1921. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1922. end
  1923. local naeeym2 = Instance.new("BillboardGui", Character)
  1924. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1925. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  1926. naeeym2.Adornee = Character.Head
  1927. naeeym2.Name = "TalkingBillBoard"
  1928. local tecks2 = Instance.new("TextLabel", naeeym2)
  1929. tecks2.BackgroundTransparency = 1
  1930. tecks2.BorderSizePixel = 0
  1931. tecks2.Text = ""
  1932. tecks2.Font = "Code"
  1933. tecks2.TextSize = 60
  1934. tecks2.TextStrokeTransparency = 0
  1935. tecks2.TextColor3 = color
  1936. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1937. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1938. local tecks3 = Instance.new("TextLabel", naeeym2)
  1939. tecks3.BackgroundTransparency = 1
  1940. tecks3.BorderSizePixel = 0
  1941. tecks3.Text = ""
  1942. tecks3.Font = "SciFi"
  1943. tecks3.TextSize = 30
  1944. tecks3.TextStrokeTransparency = 0
  1945. tecks3.TextColor3 = Color3.new(0, 0, 0)
  1946. tecks3.TextStrokeColor3 = color
  1947. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  1948. coroutine.resume(coroutine.create(function()
  1949. while true do
  1950. swait(1)
  1951. if chaosmode == true then
  1952. tecks2.TextColor3 = BrickColor.random().Color
  1953. tecks3.TextStrokeColor3 = BrickColor.random().Color
  1954. end
  1955. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1956. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1957. tecks2.Rotation = math.random(-5, 5)
  1958. tecks3.Rotation = math.random(-5, 5)
  1959. end
  1960. end))
  1961. for i = 1, string.len(text) do
  1962. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  1963. tecks2.Text = string.sub(text, 1, i)
  1964. tecks3.Text = string.sub(text, 1, i)
  1965. swait(1)
  1966. end
  1967. wait(1)
  1968. local randomrot = math.random(1, 2)
  1969. if randomrot == 1 then
  1970. for i = 1, 50 do
  1971. swait()
  1972. tecks2.Rotation = tecks2.Rotation - 0.75
  1973. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1974. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  1975. tecks3.Rotation = tecks2.Rotation + 0.75
  1976. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1977. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  1978. end
  1979. elseif randomrot == 2 then
  1980. for i = 1, 50 do
  1981. swait()
  1982. tecks2.Rotation = tecks2.Rotation + 0.75
  1983. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1984. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  1985. tecks3.Rotation = tecks2.Rotation - 0.75
  1986. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  1987. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  1988. end
  1989. end
  1990. naeeym2:Destroy()
  1991. end)
  1992. chat()
  1993. end
  1994. local Create = LoadLibrary("RbxUtility").Create
  1995. CFuncs = {
  1996. Part = {
  1997. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1998. local Part = Create("Part")({
  1999. Parent = Parent,
  2000. Reflectance = Reflectance,
  2001. Transparency = Transparency,
  2002. CanCollide = false,
  2003. Locked = true,
  2004. BrickColor = BrickColor.new(tostring(BColor)),
  2005. Name = Name,
  2006. Size = Size,
  2007. Material = Material
  2008. })
  2009. RemoveOutlines(Part)
  2010. return Part
  2011. end
  2012. },
  2013. Mesh = {
  2014. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2015. local Msh = Create(Mesh)({
  2016. Parent = Part,
  2017. Offset = OffSet,
  2018. Scale = Scale
  2019. })
  2020. if Mesh == "SpecialMesh" then
  2021. Msh.MeshType = MeshType
  2022. Msh.MeshId = MeshId
  2023. end
  2024. return Msh
  2025. end
  2026. },
  2027. Mesh = {
  2028. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2029. local Msh = Create(Mesh)({
  2030. Parent = Part,
  2031. Offset = OffSet,
  2032. Scale = Scale
  2033. })
  2034. if Mesh == "SpecialMesh" then
  2035. Msh.MeshType = MeshType
  2036. Msh.MeshId = MeshId
  2037. end
  2038. return Msh
  2039. end
  2040. },
  2041. Weld = {
  2042. Create = function(Parent, Part0, Part1, C0, C1)
  2043. local Weld = Create("Weld")({
  2044. Parent = Parent,
  2045. Part0 = Part0,
  2046. Part1 = Part1,
  2047. C0 = C0,
  2048. C1 = C1
  2049. })
  2050. return Weld
  2051. end
  2052. },
  2053. Sound = {
  2054. Create = function(id, par, vol, pit)
  2055. coroutine.resume(coroutine.create(function()
  2056. local S = Create("Sound")({
  2057. Volume = vol,
  2058. Pitch = pit or 1,
  2059. SoundId = id,
  2060. Parent = par or workspace
  2061. })
  2062. wait()
  2063. S:play()
  2064. game:GetService("Debris"):AddItem(S, 10)
  2065. end))
  2066. end
  2067. },
  2068. LongSound = {
  2069. Create = function(id, par, vol, pit)
  2070. coroutine.resume(coroutine.create(function()
  2071. local S = Create("Sound")({
  2072. Volume = vol,
  2073. Pitch = pit or 1,
  2074. SoundId = id,
  2075. Parent = par or workspace
  2076. })
  2077. wait()
  2078. S:play()
  2079. game:GetService("Debris"):AddItem(S, 30)
  2080. end))
  2081. end
  2082. },
  2083. ParticleEmitter = {
  2084. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  2085. local fp = Create("ParticleEmitter")({
  2086. Parent = Parent,
  2087. Color = ColorSequence.new(Color1, Color2),
  2088. LightEmission = LightEmission,
  2089. Size = Size,
  2090. Texture = Texture,
  2091. Transparency = Transparency,
  2092. ZOffset = ZOffset,
  2093. Acceleration = Accel,
  2094. Drag = Drag,
  2095. LockedToPart = LockedToPart,
  2096. VelocityInheritance = VelocityInheritance,
  2097. EmissionDirection = EmissionDirection,
  2098. Enabled = Enabled,
  2099. Lifetime = LifeTime,
  2100. Rate = Rate,
  2101. Rotation = Rotation,
  2102. RotSpeed = RotSpeed,
  2103. Speed = Speed,
  2104. VelocitySpread = VelocitySpread
  2105. })
  2106. return fp
  2107. end
  2108. },
  2109. CreateTemplate = {}
  2110. }
  2111. function New(Object, Parent, Name, Data)
  2112. local Object = Instance.new(Object)
  2113. for Index, Value in pairs(Data or {}) do
  2114. Object[Index] = Value
  2115. end
  2116. Object.Parent = Parent
  2117. Object.Name = Name
  2118. return Object
  2119. end
  2120. local halocolor = BrickColor.new("Crimson")
  2121. local halocolor2 = BrickColor.new("Really black")
  2122. local starcolor = BrickColor.new("Really black")
  2123. local lunacolor = BrickColor.new("Crimson")
  2124. local lunacolor2 = BrickColor.new("Crimson")
  2125. local wepcolor = BrickColor.new("Crimson")
  2126. local maincolor = BrickColor.new("Crimson")
  2127. local m = Instance.new("Model", char)
  2128. local m2 = Instance.new("Model", char)
  2129. local m3 = Instance.new("Model", char)
  2130. local mw1 = Instance.new("Model", char)
  2131. local mw2 = Instance.new("Model", char)
  2132. local extrawingmod1 = Instance.new("Model", char)
  2133. local extrawingmod2 = Instance.new("Model", char)
  2134. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  2135. local p = Instance.new("Part")
  2136. p.TopSurface = 0
  2137. p.BottomSurface = 0
  2138. p.Parent = parent
  2139. p.Size = Vector3.new(0.1, 0.1, 0.1)
  2140. p.Transparency = transparency
  2141. p.Reflectance = reflectance
  2142. p.CanCollide = false
  2143. p.Locked = true
  2144. p.BrickColor = brickcolor
  2145. p.Material = material
  2146. return p
  2147. end
  2148. function CreateMesh(parent, meshtype, x1, y1, z1)
  2149. local mesh = Instance.new("SpecialMesh", parent)
  2150. mesh.MeshType = meshtype
  2151. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  2152. return mesh
  2153. end
  2154. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  2155. local mesh = Instance.new("SpecialMesh", parent)
  2156. mesh.MeshType = "FileMesh"
  2157. mesh.MeshId = meshid
  2158. mesh.Scale = Vector3.new(x1, y1, z1)
  2159. return mesh
  2160. end
  2161. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  2162. local mesh = Instance.new("SpecialMesh", parent)
  2163. mesh.MeshType = "FileMesh"
  2164. mesh.MeshId = meshid
  2165. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  2166. mesh.Scale = Vector3.new(x1, y1, z1)
  2167. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  2168. return mesh
  2169. end
  2170. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  2171. local weld = Instance.new("Weld")
  2172. weld.Parent = parent
  2173. weld.Part0 = part0
  2174. weld.Part1 = part1
  2175. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  2176. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  2177. return weld
  2178. end
  2179. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  2180. CreateMesh(handle, "Brick", 0, 0, 0)
  2181. local handlexweld = CreateWeld(handlex, tors, handlex, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2182. local valuaring = 10
  2183. for i = 0, 49 do
  2184. valuaring = valuaring + 10
  2185. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2186. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  2187. CreateWeld(rn, handlex, rn, 0, 1, 0, math.rad(0), math.rad(0), math.rad(valuaring), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2188. end
  2189. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  2190. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2191. local handleweld = CreateWeld(handle, tors, handle, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2192. local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  2193. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2194. local lwing1weld = CreateWeld(lwing1, handle, lwing1, 3, 0, 0, math.rad(5), math.rad(0), math.rad(12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2195. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2196. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2197. CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2198. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2199. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2200. CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2201. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2202. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2203. CreateWeld(wed, lwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2204. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2205. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2206. CreateWeld(wed, lwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2207. local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  2208. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2209. local lwing2weld = CreateWeld(lwing2, handle, lwing2, 4, 1, 0, math.rad(10), math.rad(0), math.rad(25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2210. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2211. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2212. CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2213. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2214. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2215. CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2216. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2217. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2218. CreateWeld(wed, lwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2219. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2220. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2221. CreateWeld(wed, lwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2222. local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  2223. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2224. local lwing3weld = CreateWeld(lwing3, handle, lwing3, 4.75, 2, 0, math.rad(15), math.rad(0), math.rad(37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2225. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2226. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2227. CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2228. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2229. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2230. CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2231. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2232. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2233. CreateWeld(wed, lwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2234. wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
  2235. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2236. CreateWeld(wed, lwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2237. local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  2238. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2239. local lwing4weld = CreateWeld(lwing4, handle, lwing4, 5.75, 3, 0, math.rad(20), math.rad(0), math.rad(50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2240. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2241. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2242. CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2243. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2244. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2245. CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2246. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2247. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2248. CreateWeld(wed, lwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2249. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2250. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2251. CreateWeld(wed, lwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2252. local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  2253. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2254. local lwing5weld = CreateWeld(lwing5, handle, lwing5, 6.75, 4, 0, math.rad(25), math.rad(0), math.rad(62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2255. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2256. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2257. CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2258. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2259. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2260. CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2261. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2262. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2263. CreateWeld(wed, lwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2264. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2265. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2266. CreateWeld(wed, lwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2267. local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  2268. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2269. local lwing6weld = CreateWeld(lwing6, handle, lwing6, 7.75, 5, 0, math.rad(30), math.rad(0), math.rad(75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2270. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2271. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2272. CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2273. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2274. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2275. CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2276. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2277. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2278. CreateWeld(wed, lwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2279. wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
  2280. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2281. CreateWeld(wed, lwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2282. local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
  2283. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2284. local rwing1weld = CreateWeld(rwing1, handle, rwing1, -3, 0, 0, math.rad(5), math.rad(0), math.rad(-12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2285. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2286. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2287. CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2288. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2289. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2290. CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2291. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2292. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2293. CreateWeld(wed, rwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2294. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2295. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2296. CreateWeld(wed, rwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2297. local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
  2298. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2299. local rwing2weld = CreateWeld(rwing2, handle, rwing2, -4, 1, 0, math.rad(10), math.rad(0), math.rad(-25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2300. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2301. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2302. CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2303. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2304. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2305. CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2306. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2307. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2308. CreateWeld(wed, rwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2309. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2310. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2311. CreateWeld(wed, rwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2312. local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
  2313. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2314. local rwing3weld = CreateWeld(rwing3, handle, rwing3, -4.75, 2, 0, math.rad(15), math.rad(0), math.rad(-37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2315. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2316. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2317. CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2318. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2319. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2320. CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2321. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2322. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2323. CreateWeld(wed, rwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2324. wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
  2325. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2326. CreateWeld(wed, rwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2327. local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
  2328. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2329. local rwing4weld = CreateWeld(rwing4, handle, rwing4, -5.75, 3, 0, math.rad(20), math.rad(0), math.rad(-50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2330. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2331. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2332. CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2333. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2334. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2335. CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2336. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2337. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2338. CreateWeld(wed, rwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2339. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2340. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2341. CreateWeld(wed, rwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2342. local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
  2343. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2344. local rwing5weld = CreateWeld(rwing5, handle, rwing5, -6.75, 4, 0, math.rad(25), math.rad(0), math.rad(-62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2345. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2346. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2347. CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2348. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2349. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2350. CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2351. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2352. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2353. CreateWeld(wed, rwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2354. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2355. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2356. CreateWeld(wed, rwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2357. local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
  2358. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  2359. local rwing6weld = CreateWeld(rwing6, handle, rwing6, -7.75, 3, 0, math.rad(30), math.rad(0), math.rad(-75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2360. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2361. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2362. CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2363. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2364. CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
  2365. CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2366. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2367. CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
  2368. CreateWeld(wed, rwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2369. wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
  2370. CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
  2371. CreateWeld(wed, rwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2372. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  2373. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  2374. CreateWeld(ran, larm, ran, 0, 0.15, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2375. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2376. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  2377. CreateWeld(ran, larm, ran, 0, 0.155, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2378. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2379. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  2380. CreateWeld(ran, larm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2381. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2382. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2383. CreateWeld(gan, larm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2384. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2385. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2386. CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2387. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2388. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2389. CreateWeld(gan, larm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2390. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2391. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2392. CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2393. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  2394. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  2395. CreateWeld(gane, larm, gane, 0, 0.6, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2396. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2397. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  2398. CreateWeld(star, larm, star, 0, 0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2399. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  2400. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  2401. CreateWeld(starl, larm, starl, 0, 0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2402. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2403. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2404. CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2405. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2406. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2407. CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2408. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2409. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2410. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2411. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2412. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2413. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2414. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2415. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2416. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2417. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2418. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2419. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2420. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2421. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2422. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2423. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2424. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2425. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2426. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2427. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2428. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2429. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2430. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2431. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2432. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2433. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2434. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2435. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2436. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2437. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2438. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2439. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2440. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2441. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2442. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2443. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2444. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2445. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2446. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2447. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2448. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2449. CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2450. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2451. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2452. CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2453. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2454. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2455. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2456. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2457. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2458. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2459. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2460. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2461. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2462. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2463. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2464. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2465. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2466. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2467. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2468. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2469. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2470. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2471. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2472. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2473. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2474. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2475. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2476. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2477. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2478. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2479. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2480. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2481. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2482. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2483. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2484. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2485. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2486. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2487. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2488. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2489. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2490. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2491. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2492. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  2493. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  2494. CreateWeld(ran, rarm, ran, 0, 0.15, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2495. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2496. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  2497. CreateWeld(ran, rarm, ran, 0, 0.155, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2498. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2499. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  2500. CreateWeld(ran, rarm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2501. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2502. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2503. CreateWeld(gan, rarm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2504. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2505. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  2506. CreateWeld(gan, rarm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2507. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2508. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2509. CreateWeld(gan, rarm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2510. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  2511. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  2512. CreateWeld(gan, rarm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2513. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  2514. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  2515. CreateWeld(gane, rarm, gane, 0, 0.6, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2516. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2517. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  2518. CreateWeld(star, rarm, star, 0, -0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2519. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  2520. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  2521. CreateWeld(starl, rarm, starl, 0, -0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2522. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2523. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2524. CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2525. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2526. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2527. CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2528. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2529. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2530. CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2531. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2532. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2533. CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2534. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2535. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2536. CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2537. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2538. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2539. CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2540. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2541. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2542. CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2543. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2544. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2545. CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2546. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2547. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2548. CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2549. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2550. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2551. CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2552. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2553. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2554. CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2555. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2556. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2557. CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2558. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2559. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2560. CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2561. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2562. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2563. CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2564. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2565. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2566. CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2567. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2568. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2569. CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2570. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2571. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2572. CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2573. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2574. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2575. CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2576. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2577. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2578. CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2579. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2580. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2581. CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2582. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2583. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2584. CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2585. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2586. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2587. CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2588. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2589. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2590. CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2591. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2592. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2593. CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2594. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2595. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2596. CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2597. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2598. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2599. CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2600. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2601. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2602. CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2603. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  2604. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  2605. CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2606. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  2607. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  2608. CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2609. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  2610. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  2611. CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  2612. for i, v in pairs(m:GetChildren()) do
  2613. if v:IsA("Part") then
  2614. v.BrickColor = BrickColor.new("Really black")
  2615. v.Material = "Glass"
  2616. end
  2617. end
  2618. for i, v in pairs(m2:GetChildren()) do
  2619. if v:IsA("Part") then
  2620. v.BrickColor = BrickColor.new("Crimson")
  2621. v.Material = "Granite"
  2622. end
  2623. end
  2624. for i, v in pairs(m3:GetChildren()) do
  2625. if v:IsA("Part") then
  2626. v.BrickColor = BrickColor.new("Really red")
  2627. v.Material = "Neon"
  2628. end
  2629. end
  2630. for i, v in pairs(mw2:GetChildren()) do
  2631. if v:IsA("Part") then
  2632. v.BrickColor = BrickColor.new("Really red")
  2633. v.Material = "Neon"
  2634. end
  2635. end
  2636. for i, v in pairs(mw1:GetChildren()) do
  2637. if v:IsA("Part") then
  2638. v.Transparency = 1
  2639. v.BrickColor = BrickColor.new("Really red")
  2640. v.Material = "Neon"
  2641. end
  2642. end
  2643. for i, v in pairs(extrawingmod1:GetChildren()) do
  2644. if v:IsA("Part") then
  2645. v.Transparency = 1
  2646. v.BrickColor = BrickColor.new("White")
  2647. v.Material = "Neon"
  2648. end
  2649. end
  2650. for i, v in pairs(extrawingmod2:GetChildren()) do
  2651. if v:IsA("Part") then
  2652. v.Transparency = 1
  2653. v.BrickColor = BrickColor.new("White")
  2654. v.Material = "Neon"
  2655. end
  2656. end
  2657.  
  2658. FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  2659. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  2660. Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  2661. FHead.CanCollide = false
  2662.  
  2663.  
  2664.  
  2665. local MAINRUINCOLOR = BrickColor.new("Really red")
  2666. function RemoveOutlines(part)
  2667. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2668. end
  2669. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2670. local Part = Create("Part")({
  2671. Parent = Parent,
  2672. Reflectance = Reflectance,
  2673. Transparency = Transparency,
  2674. CanCollide = false,
  2675. Locked = true,
  2676. BrickColor = BrickColor.new(tostring(BColor)),
  2677. Name = Name,
  2678. Size = Size,
  2679. Material = Material
  2680. })
  2681. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2682. RemoveOutlines(Part)
  2683. return Part
  2684. end
  2685. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2686. local Msh = Create(Mesh)({
  2687. Parent = Part,
  2688. Offset = OffSet,
  2689. Scale = Scale
  2690. })
  2691. if Mesh == "SpecialMesh" then
  2692. Msh.MeshType = MeshType
  2693. Msh.MeshId = MeshId
  2694. end
  2695. return Msh
  2696. end
  2697. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2698. local Weld = Create("Weld")({
  2699. Parent = Parent,
  2700. Part0 = Part0,
  2701. Part1 = Part1,
  2702. C0 = C0,
  2703. C1 = C1
  2704. })
  2705. return Weld
  2706. end
  2707. Player = game:GetService("Players").LocalPlayer
  2708. Character = Player.Character
  2709. PlayerGui = Player.PlayerGui
  2710. Backpack = Player.Backpack
  2711. Torso = Character.Torso
  2712. Head = Character.Head
  2713. Humanoid = Character.Humanoid
  2714. m = Instance.new("Model", Character)
  2715. LeftArm = Character["Left Arm"]
  2716. LeftLeg = Character["Left Leg"]
  2717. RightArm = Character["Right Arm"]
  2718. RightLeg = Character["Right Leg"]
  2719. LS = Torso["Left Shoulder"]
  2720. LH = Torso["Left Hip"]
  2721. RS = Torso["Right Shoulder"]
  2722. RH = Torso["Right Hip"]
  2723. Face = Head.face
  2724. Neck = Torso.Neck
  2725. it = Instance.new
  2726. attacktype = 1
  2727. vt = Vector3.new
  2728. cf = CFrame.new
  2729. euler = CFrame.fromEulerAnglesXYZ
  2730. angles = CFrame.Angles
  2731. cloaked = false
  2732. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2733. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2734. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2735. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2736. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2737. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2738. RootPart = Character.HumanoidRootPart
  2739. RootJoint = RootPart.RootJoint
  2740. RootCF = euler(-1.57, 0, 3.14)
  2741. attack = false
  2742. attackdebounce = false
  2743. deb = false
  2744. equipped = true
  2745. hand = false
  2746. MMouse = nil
  2747. combo = 0
  2748. mana = 0
  2749. trispeed = 0.2
  2750. attackmode = "none"
  2751. local idle = 0
  2752. local Anim = "Idle"
  2753. local Effects = {}
  2754. local gun = false
  2755. local shoot = false
  2756. local sine = 0
  2757. local change = 1
  2758. player = nil
  2759. local toggleTag = true
  2760. local txt = Instance.new("BillboardGui", Head)
  2761. txt.Adornee = nil
  2762. txt.Name = "NameDetect"
  2763. txt.Size = UDim2.new(4, 0, 1.2, 0)
  2764. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  2765. local text = Instance.new("TextLabel", txt)
  2766. text.Size = UDim2.new(5, 0, 3.5, 0)
  2767. text.FontSize = "Size8"
  2768. text.TextScaled = true
  2769. text.TextTransparency = 0
  2770. text.BackgroundTransparency = 1
  2771. text.TextTransparency = 0
  2772. text.TextStrokeTransparency = 0
  2773. text.Font = "Fantasy"
  2774. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  2775. text.TextColor3 = Color3.new(0, 0, 0)
  2776. text.Text = "Sweet Dreams"
  2777. function RecolorTextAndRename(name, col1, col2)
  2778. text.TextStrokeColor3 = col2
  2779. text.TextColor3 = col1
  2780. text.Text = name
  2781. end
  2782. mouse = Player:GetMouse()
  2783. RSH, LSH = nil, nil
  2784. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  2785. RW.Name = "Right Shoulder"
  2786. LW.Name = "Left Shoulder"
  2787. LH = Torso["Left Hip"]
  2788. RH = Torso["Right Hip"]
  2789. TorsoColor = Torso.BrickColor
  2790. function NoOutline(Part)
  2791. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  2792. end
  2793. player = Player
  2794. ch = Character
  2795. RSH = ch.Torso["Right Shoulder"]
  2796. LSH = ch.Torso["Left Shoulder"]
  2797. RSH.Parent = nil
  2798. LSH.Parent = nil
  2799. RW.Name = "Right Shoulder"
  2800. RW.Part0 = ch.Torso
  2801. RW.C0 = cf(1.5, 0.5, 0)
  2802. RW.C1 = cf(0, 0.5, 0)
  2803. RW.Part1 = ch["Right Arm"]
  2804. RW.Parent = ch.Torso
  2805. LW.Name = "Left Shoulder"
  2806. LW.Part0 = ch.Torso
  2807. LW.C0 = cf(-1.5, 0.5, 0)
  2808. LW.C1 = cf(0, 0.5, 0)
  2809. LW.Part1 = ch["Left Arm"]
  2810. LW.Parent = ch.Torso
  2811. local Stats = Instance.new("BoolValue")
  2812. Stats.Name = "Stats"
  2813. Stats.Parent = Character
  2814. local Atk = Instance.new("NumberValue")
  2815. Atk.Name = "Damage"
  2816. Atk.Parent = Stats
  2817. Atk.Value = 1
  2818. local Def = Instance.new("NumberValue")
  2819. Def.Name = "Defense"
  2820. Def.Parent = Stats
  2821. Def.Value = 1
  2822. local Speed = Instance.new("NumberValue")
  2823. Speed.Name = "Speed"
  2824. Speed.Parent = Stats
  2825. Speed.Value = 1
  2826. local Mvmt = Instance.new("NumberValue")
  2827. Mvmt.Name = "Movement"
  2828. Mvmt.Parent = Stats
  2829. Mvmt.Value = 1
  2830. local donum = 0
  2831. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  2832. local fp = it("Part")
  2833. fp.formFactor = formfactor
  2834. fp.Parent = parent
  2835. fp.Reflectance = reflectance
  2836. fp.Transparency = transparency
  2837. fp.CanCollide = false
  2838. fp.Locked = true
  2839. fp.BrickColor = brickcolor
  2840. fp.Name = name
  2841. fp.Size = size
  2842. fp.Position = Torso.Position
  2843. NoOutline(fp)
  2844. fp.Material = "SmoothPlastic"
  2845. fp:BreakJoints()
  2846. return fp
  2847. end
  2848. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  2849. local mesh = it(Mesh)
  2850. mesh.Parent = part
  2851. if Mesh == "SpecialMesh" then
  2852. mesh.MeshType = meshtype
  2853. if meshid ~= "nil" then
  2854. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  2855. end
  2856. end
  2857. mesh.Offset = offset
  2858. mesh.Scale = scale
  2859. return mesh
  2860. end
  2861. function weld(parent, part0, part1, c0)
  2862. local weld = it("Weld")
  2863. weld.Parent = parent
  2864. weld.Part0 = part0
  2865. weld.Part1 = part1
  2866. weld.C0 = c0
  2867. return weld
  2868. end
  2869. local Color1 = Torso.BrickColor
  2870. local bodvel = Instance.new("BodyVelocity")
  2871. local bg = Instance.new("BodyGyro")
  2872. function swait(num)
  2873. if num == 0 or num == nil then
  2874. game:service("RunService").Stepped:wait(0)
  2875. else
  2876. for i = 0, num do
  2877. game:service("RunService").Stepped:wait(0)
  2878. end
  2879. end
  2880. end
  2881. local r = 255
  2882. local g = 0
  2883. local b = 0
  2884. coroutine.resume(coroutine.create(function()
  2885. while wait() do
  2886. for i = 0, 50.8 do
  2887. swait()
  2888. g = g + 5
  2889. end
  2890. for i = 0, 50.8 do
  2891. swait()
  2892. r = r - 5
  2893. end
  2894. for i = 0, 50.8 do
  2895. swait()
  2896. b = b + 5
  2897. end
  2898. for i = 0, 50.8 do
  2899. swait()
  2900. g = g - 5
  2901. end
  2902. for i = 0, 50.8 do
  2903. swait()
  2904. r = r + 5
  2905. end
  2906. for i = 0, 50.8 do
  2907. swait()
  2908. b = b - 5
  2909. end
  2910. end
  2911. end))
  2912. function so(id, par, vol, pit)
  2913. coroutine.resume(coroutine.create(function()
  2914. local sou = Instance.new("Sound", par or workspace)
  2915. sou.Volume = vol
  2916. sou.Pitch = pit or 1
  2917. sou.SoundId = id
  2918. swait()
  2919. sou:play()
  2920. game:GetService("Debris"):AddItem(sou, 6)
  2921. end))
  2922. end
  2923. function clerp(a, b, t)
  2924. local qa = {
  2925. QuaternionFromCFrame(a)
  2926. }
  2927. local qb = {
  2928. QuaternionFromCFrame(b)
  2929. }
  2930. local ax, ay, az = a.x, a.y, a.z
  2931. local bx, by, bz = b.x, b.y, b.z
  2932. local _t = 1 - t
  2933. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2934. end
  2935. function QuaternionFromCFrame(cf)
  2936. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2937. local trace = m00 + m11 + m22
  2938. if trace > 0 then
  2939. local s = math.sqrt(1 + trace)
  2940. local recip = 0.5 / s
  2941. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2942. else
  2943. local i = 0
  2944. if m00 < m11 then
  2945. i = 1
  2946. end
  2947. if m22 > (i == 0 and m00 or m11) then
  2948. i = 2
  2949. end
  2950. if i == 0 then
  2951. local s = math.sqrt(m00 - m11 - m22 + 1)
  2952. local recip = 0.5 / s
  2953. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2954. elseif i == 1 then
  2955. local s = math.sqrt(m11 - m22 - m00 + 1)
  2956. local recip = 0.5 / s
  2957. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2958. elseif i == 2 then
  2959. local s = math.sqrt(m22 - m00 - m11 + 1)
  2960. local recip = 0.5 / s
  2961. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2962. end
  2963. end
  2964. end
  2965. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2966. local xs, ys, zs = x + x, y + y, z + z
  2967. local wx, wy, wz = w * xs, w * ys, w * zs
  2968. local xx = x * xs
  2969. local xy = x * ys
  2970. local xz = x * zs
  2971. local yy = y * ys
  2972. local yz = y * zs
  2973. local zz = z * zs
  2974. 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))
  2975. end
  2976. function QuaternionSlerp(a, b, t)
  2977. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2978. local startInterp, finishInterp
  2979. if cosTheta >= 1.0E-4 then
  2980. if 1 - cosTheta > 1.0E-4 then
  2981. local theta = math.acos(cosTheta)
  2982. local invSinTheta = 1 / math.sin(theta)
  2983. startInterp = math.sin((1 - t) * theta) * invSinTheta
  2984. finishInterp = math.sin(t * theta) * invSinTheta
  2985. else
  2986. startInterp = 1 - t
  2987. finishInterp = t
  2988. end
  2989. elseif 1 + cosTheta > 1.0E-4 then
  2990. local theta = math.acos(-cosTheta)
  2991. local invSinTheta = 1 / math.sin(theta)
  2992. startInterp = math.sin((t - 1) * theta) * invSinTheta
  2993. finishInterp = math.sin(t * theta) * invSinTheta
  2994. else
  2995. startInterp = t - 1
  2996. finishInterp = t
  2997. end
  2998. 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
  2999. end
  3000. local CFrameFromTopBack = function(at, top, back)
  3001. local right = top:Cross(back)
  3002. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  3003. end
  3004. function Triangle(a, b, c)
  3005. local edg1 = (c - a):Dot((b - a).unit)
  3006. local edg2 = (a - b):Dot((c - b).unit)
  3007. local edg3 = (b - c):Dot((a - c).unit)
  3008. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  3009. a, b = a, b
  3010. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  3011. a, b, c = b, c, a
  3012. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  3013. a, b, c = c, a, b
  3014. else
  3015. assert(false, "unreachable")
  3016. end
  3017. local len1 = (c - a):Dot((b - a).unit)
  3018. local len2 = (b - a).magnitude - len1
  3019. local width = (a + (b - a).unit * len1 - c).magnitude
  3020. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  3021. local list = {}
  3022. if len1 > 0.01 then
  3023. local w1 = Instance.new("WedgePart", m)
  3024. game:GetService("Debris"):AddItem(w1, 5)
  3025. w1.Material = "SmoothPlastic"
  3026. w1.FormFactor = "Custom"
  3027. w1.BrickColor = BrickColor.new("Really red")
  3028. w1.Transparency = 0
  3029. w1.Reflectance = 0
  3030. w1.Material = "SmoothPlastic"
  3031. w1.CanCollide = false
  3032. local l1 = Instance.new("PointLight", w1)
  3033. l1.Color = Color3.new(170, 0, 0)
  3034. NoOutline(w1)
  3035. local sz = Vector3.new(0.2, width, len1)
  3036. w1.Size = sz
  3037. local sp = Instance.new("SpecialMesh", w1)
  3038. sp.MeshType = "Wedge"
  3039. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  3040. w1:BreakJoints()
  3041. w1.Anchored = true
  3042. w1.Parent = workspace
  3043. w1.Transparency = 0.7
  3044. table.insert(Effects, {
  3045. w1,
  3046. "Disappear",
  3047. 0.01
  3048. })
  3049. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  3050. table.insert(list, w1)
  3051. end
  3052. if len2 > 0.01 then
  3053. local w2 = Instance.new("WedgePart", m)
  3054. game:GetService("Debris"):AddItem(w2, 5)
  3055. w2.Material = "SmoothPlastic"
  3056. w2.FormFactor = "Custom"
  3057. w2.BrickColor = BrickColor.new("Really red")
  3058. w2.Transparency = 0
  3059. w2.Reflectance = 0
  3060. w2.Material = "SmoothPlastic"
  3061. w2.CanCollide = false
  3062. local l2 = Instance.new("PointLight", w2)
  3063. l2.Color = Color3.new(170, 0, 0)
  3064. NoOutline(w2)
  3065. local sz = Vector3.new(0.2, width, len2)
  3066. w2.Size = sz
  3067. local sp = Instance.new("SpecialMesh", w2)
  3068. sp.MeshType = "Wedge"
  3069. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  3070. w2:BreakJoints()
  3071. w2.Anchored = true
  3072. w2.Parent = workspace
  3073. w2.Transparency = 0.7
  3074. table.insert(Effects, {
  3075. w2,
  3076. "Disappear",
  3077. 0.01
  3078. })
  3079. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  3080. table.insert(list, w2)
  3081. end
  3082. return unpack(list)
  3083. end
  3084. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  3085. if hit.Parent == nil then
  3086. return
  3087. end
  3088. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  3089. for _, v in pairs(hit.Parent:children()) do
  3090. if v:IsA("Humanoid") then
  3091. h = v
  3092. end
  3093. end
  3094. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  3095. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3096. return
  3097. end
  3098. local c = Create("ObjectValue")({
  3099. Name = "creator",
  3100. Value = RealGame:service("Players")[owner.Name],
  3101. Parent = h
  3102. })
  3103. game:GetService("Debris"):AddItem(c, 0.5)
  3104. if HitSound ~= nil and HitPitch ~= nil then
  3105. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  3106. end
  3107. local Damage = math.random(minim, maxim)
  3108. local blocked = false
  3109. local block = hit.Parent:findFirstChild("Block")
  3110. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  3111. blocked = true
  3112. block.Value = block.Value - 1
  3113. print(block.Value)
  3114. end
  3115. if blocked == false then
  3116. HitHealth = h.Health
  3117. h.Health = h.Health - Damage
  3118. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  3119. print("gained kill")
  3120. end
  3121. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  3122. else
  3123. h.Health = h.Health - Damage / 2
  3124. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  3125. end
  3126. if Type == "Knockdown" then
  3127. local hum = hit.Parent.Humanoid
  3128. hum.PlatformStand = true
  3129. coroutine.resume(coroutine.create(function(HHumanoid)
  3130. swait(1)
  3131. HHumanoid.PlatformStand = false
  3132. end), hum)
  3133. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3134. local bodvol = Create("BodyVelocity")({
  3135. velocity = angle * knockback,
  3136. P = 5000,
  3137. maxForce = Vector3.new(8000, 8000, 8000),
  3138. Parent = hit
  3139. })
  3140. local rl = Create("BodyAngularVelocity")({
  3141. P = 3000,
  3142. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  3143. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  3144. Parent = hit
  3145. })
  3146. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3147. game:GetService("Debris"):AddItem(rl, 0.5)
  3148. elseif Type == "Normal" then
  3149. local vp = Create("BodyVelocity")({
  3150. P = 500,
  3151. maxForce = Vector3.new(math.huge, 0, math.huge),
  3152. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3153. })
  3154. if knockback > 0 then
  3155. vp.Parent = hit.Parent.Head
  3156. end
  3157. game:GetService("Debris"):AddItem(vp, 0.5)
  3158. elseif Type == "Up" then
  3159. local bodyVelocity = Create("BodyVelocity")({
  3160. velocity = Vector3.new(0, 20, 0),
  3161. P = 5000,
  3162. maxForce = Vector3.new(8000, 8000, 8000),
  3163. Parent = hit
  3164. })
  3165. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  3166. local bodyVelocity = Create("BodyVelocity")({
  3167. velocity = Vector3.new(0, 20, 0),
  3168. P = 5000,
  3169. maxForce = Vector3.new(8000, 8000, 8000),
  3170. Parent = hit
  3171. })
  3172. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  3173. elseif Type == "Leech" then
  3174. local hum = hit.Parent.Humanoid
  3175. if hum ~= nil then
  3176. for i = 0, 2 do
  3177. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  3178. end
  3179. Humanoid.Health = Humanoid.Health + 10
  3180. end
  3181. elseif Type == "UpKnock" then
  3182. local hum = hit.Parent.Humanoid
  3183. hum.PlatformStand = true
  3184. if hum ~= nil then
  3185. hitr = true
  3186. end
  3187. coroutine.resume(coroutine.create(function(HHumanoid)
  3188. swait(5)
  3189. HHumanoid.PlatformStand = false
  3190. hitr = false
  3191. end), hum)
  3192. local bodyVelocity = Create("BodyVelocity")({
  3193. velocity = Vector3.new(0, 20, 0),
  3194. P = 5000,
  3195. maxForce = Vector3.new(8000, 8000, 8000),
  3196. Parent = hit
  3197. })
  3198. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  3199. local bodyVelocity = Create("BodyVelocity")({
  3200. velocity = Vector3.new(0, 20, 0),
  3201. P = 5000,
  3202. maxForce = Vector3.new(8000, 8000, 8000),
  3203. Parent = hit
  3204. })
  3205. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  3206. elseif Type == "Snare" then
  3207. local bp = Create("BodyPosition")({
  3208. P = 2000,
  3209. D = 100,
  3210. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3211. position = hit.Parent.Torso.Position,
  3212. Parent = hit.Parent.Torso
  3213. })
  3214. game:GetService("Debris"):AddItem(bp, 1)
  3215. elseif Type == "Slashnare" then
  3216. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  3217. for i = 1, math.random(4, 5) do
  3218. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  3219. end
  3220. local bp = Create("BodyPosition")({
  3221. P = 2000,
  3222. D = 100,
  3223. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3224. position = hit.Parent.Torso.Position,
  3225. Parent = hit.Parent.Torso
  3226. })
  3227. game:GetService("Debris"):AddItem(bp, 1)
  3228. elseif Type == "Spike" then
  3229. CreateBigIceSword(hit.Parent.Torso.CFrame)
  3230. local bp = Create("BodyPosition")({
  3231. P = 2000,
  3232. D = 100,
  3233. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3234. position = hit.Parent.Torso.Position,
  3235. Parent = hit.Parent.Torso
  3236. })
  3237. game:GetService("Debris"):AddItem(bp, 1)
  3238. elseif Type == "Freeze" then
  3239. local BodPos = Create("BodyPosition")({
  3240. P = 50000,
  3241. D = 1000,
  3242. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  3243. position = hit.Parent.Torso.Position,
  3244. Parent = hit.Parent.Torso
  3245. })
  3246. local BodGy = Create("BodyGyro")({
  3247. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  3248. P = 20000,
  3249. Parent = hit.Parent.Torso,
  3250. cframe = hit.Parent.Torso.CFrame
  3251. })
  3252. hit.Parent.Torso.Anchored = true
  3253. coroutine.resume(coroutine.create(function(Part)
  3254. swait(1.5)
  3255. Part.Anchored = false
  3256. end), hit.Parent.Torso)
  3257. game:GetService("Debris"):AddItem(BodPos, 3)
  3258. game:GetService("Debris"):AddItem(BodGy, 3)
  3259. end
  3260. local debounce = Create("BoolValue")({
  3261. Name = "DebounceHit",
  3262. Parent = hit.Parent,
  3263. Value = true
  3264. })
  3265. game:GetService("Debris"):AddItem(debounce, Delay)
  3266. c = Instance.new("ObjectValue")
  3267. c.Name = "creator"
  3268. c.Value = RealGame:service("Players")[owner.Name];
  3269. c.Parent = h
  3270. game:GetService("Debris"):AddItem(c, 0.5)
  3271. end
  3272. end
  3273. function ShowDamage(Pos, Text, Time, Color)
  3274. local Rate = 0.03333333333333333
  3275. local Pos = Pos or Vector3.new(0, 0, 0)
  3276. local Text = Text or ""
  3277. local Time = Time or 2
  3278. local Color = Color or Color3.new(1, 0, 1)
  3279. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  3280. EffectPart.Anchored = true
  3281. local BillboardGui = Create("BillboardGui")({
  3282. Size = UDim2.new(3, 0, 3, 0),
  3283. Adornee = EffectPart,
  3284. Parent = EffectPart
  3285. })
  3286. local TextLabel = Create("TextLabel")({
  3287. BackgroundTransparency = 1,
  3288. Size = UDim2.new(1, 0, 1, 0),
  3289. Text = Text,
  3290. TextColor3 = Color,
  3291. TextScaled = true,
  3292. Font = Enum.Font.ArialBold,
  3293. Parent = BillboardGui
  3294. })
  3295. game.Debris:AddItem(EffectPart, Time + 0.1)
  3296. EffectPart.Parent = game:GetService("Workspace")
  3297. delay(0, function()
  3298. local Frames = Time / Rate
  3299. for Frame = 1, Frames do
  3300. wait(Rate)
  3301. local Percent = Frame / Frames
  3302. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  3303. TextLabel.TextTransparency = Percent
  3304. end
  3305. if EffectPart and EffectPart.Parent then
  3306. EffectPart:Destroy()
  3307. end
  3308. end)
  3309. end
  3310. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  3311. for _, c in pairs(workspace:children()) do
  3312. local hum = c:findFirstChildOfClass("Humanoid")
  3313. if hum ~= nil then
  3314. local head = c:findFirstChild("Head")
  3315. if head ~= nil then
  3316. local targ = head.Position - Part.Position
  3317. local mag = targ.magnitude
  3318. if magni >= mag and c.Name ~= Player.Name then
  3319. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  3320. end
  3321. end
  3322. end
  3323. end
  3324. end
  3325. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  3326. for _, c in pairs(workspace:children()) do
  3327. local hum = c:findFirstChild("Humanoid")
  3328. if hum ~= nil then
  3329. local head = c:findFirstChild("Torso")
  3330. if head ~= nil then
  3331. local targ = head.Position - Part.Position
  3332. local mag = targ.magnitude
  3333. if magni >= mag and c.Name ~= Player.Name then
  3334. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  3335. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  3336. end
  3337. end
  3338. end
  3339. end
  3340. end
  3341. function rayCast(Pos, Dir, Max, Ignore)
  3342. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3343. end
  3344. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  3345. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3346. prt.Anchored = true
  3347. prt.CFrame = cframe
  3348. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  3349. game:GetService("Debris"):AddItem(prt, 2)
  3350. CF = prt.CFrame
  3351. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  3352. for i = 0, 1, 0.2 do
  3353. wait()
  3354. Part.CFrame = CF * cf(0, 0, -0.4)
  3355. end
  3356. for i = 0, 1, delay do
  3357. wait()
  3358. Mesh.Scale = Mesh.Scale
  3359. end
  3360. for i = 0, 1, 0.1 do
  3361. wait()
  3362. Part.Transparency = i
  3363. end
  3364. Part.Parent = nil
  3365. end), prt, msh, CF)
  3366. end
  3367. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3368. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3369. prt.Anchored = true
  3370. prt.Material = "Neon"
  3371. prt.CFrame = cframe
  3372. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3373. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3374. game:GetService("Debris"):AddItem(prt, 5)
  3375. coroutine.resume(coroutine.create(function(Part, Mesh)
  3376. for i = 0, 1, delay do
  3377. swait()
  3378. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3379. Part.Transparency = i
  3380. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3381. end
  3382. Part.Parent = nil
  3383. end), prt, msh)
  3384. end
  3385. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  3386. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3387. prt.Anchored = true
  3388. prt.Material = "Neon"
  3389. prt.CFrame = cframe
  3390. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3391. game:GetService("Debris"):AddItem(prt, 5)
  3392. coroutine.resume(coroutine.create(function(Part, Mesh)
  3393. local rtype = rottype
  3394. for i = 0, 1, delay do
  3395. swait()
  3396. if rtype == 1 then
  3397. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3398. elseif rtype == 2 then
  3399. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3400. end
  3401. Part.Transparency = i
  3402. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3403. end
  3404. Part.Parent = nil
  3405. end), prt, msh)
  3406. end
  3407. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3408. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3409. prt.Anchored = true
  3410. prt.CFrame = cframe
  3411. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3412. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3413. game:GetService("Debris"):AddItem(prt, 5)
  3414. coroutine.resume(coroutine.create(function(Part, Mesh)
  3415. for i = 0, 1, delay do
  3416. wait()
  3417. Part.Transparency = i
  3418. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3419. end
  3420. Part.Parent = nil
  3421. end), prt, msh)
  3422. end
  3423. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  3424. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3425. prt.Anchored = true
  3426. prt.Material = "Neon"
  3427. prt.CFrame = cframe
  3428. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3429. game:GetService("Debris"):AddItem(prt, 5)
  3430. coroutine.resume(coroutine.create(function(Part, Mesh)
  3431. local rtype = rottype
  3432. for i = 0, 1, delay do
  3433. swait()
  3434. if rtype == 1 then
  3435. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3436. elseif rtype == 2 then
  3437. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3438. end
  3439. Part.Transparency = i
  3440. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3441. end
  3442. Part.Parent = nil
  3443. end), prt, msh)
  3444. end
  3445. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  3446. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3447. prt.Anchored = true
  3448. prt.Material = "Neon"
  3449. prt.CFrame = cframe
  3450. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  3451. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  3452. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  3453. game:GetService("Debris"):AddItem(prt, 5)
  3454. coroutine.resume(coroutine.create(function(Part, Mesh)
  3455. local rtype = rottype
  3456. for i = 0, 1, delay do
  3457. swait()
  3458. if rtype == 1 then
  3459. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3460. elseif rtype == 2 then
  3461. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3462. end
  3463. dec.Transparency = i
  3464. dec2.Transparency = i
  3465. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  3466. end
  3467. Part.Parent = nil
  3468. end), prt, msh)
  3469. end
  3470. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  3471. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3472. prt.Anchored = true
  3473. prt.Material = "Neon"
  3474. prt.CFrame = cframe
  3475. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  3476. game:GetService("Debris"):AddItem(prt, 5)
  3477. coroutine.resume(coroutine.create(function(Part, Mesh)
  3478. local rtype = rottype
  3479. for i = 0, 1, delay do
  3480. swait()
  3481. if rtype == 1 then
  3482. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3483. elseif rtype == 2 then
  3484. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3485. end
  3486. prt.Transparency = i
  3487. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  3488. end
  3489. Part.Parent = nil
  3490. end), prt, msh)
  3491. end
  3492. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  3493. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3494. prt.Anchored = true
  3495. prt.Material = "Neon"
  3496. prt.CFrame = cframe
  3497. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  3498. game:GetService("Debris"):AddItem(prt, 5)
  3499. coroutine.resume(coroutine.create(function(Part, Mesh)
  3500. local rtype = rottype
  3501. for i = 0, 1, delay do
  3502. swait()
  3503. if rtype == 1 then
  3504. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  3505. elseif rtype == 2 then
  3506. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  3507. end
  3508. prt.Transparency = i
  3509. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  3510. end
  3511. Part.Parent = nil
  3512. end), prt, msh)
  3513. end
  3514. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  3515. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3516. prt.Anchored = true
  3517. prt.Material = "Neon"
  3518. prt.CFrame = cframe
  3519. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3520. game:GetService("Debris"):AddItem(prt, 5)
  3521. coroutine.resume(coroutine.create(function(Part, Mesh)
  3522. local rtype = rottype
  3523. for i = 0, 1, delay do
  3524. swait()
  3525. if rtype == 1 then
  3526. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3527. elseif rtype == 2 then
  3528. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3529. end
  3530. prt.Transparency = i
  3531. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  3532. end
  3533. Part.Parent = nil
  3534. end), prt, msh)
  3535. end
  3536. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  3537. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3538. prt.Anchored = true
  3539. prt.Material = "Neon"
  3540. prt.CFrame = cframe
  3541. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3542. game:GetService("Debris"):AddItem(prt, 5)
  3543. coroutine.resume(coroutine.create(function(Part, Mesh)
  3544. local rtype = rottype
  3545. for i = 0, 1, delay do
  3546. swait()
  3547. if rtype == 1 then
  3548. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  3549. elseif rtype == 2 then
  3550. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  3551. end
  3552. prt.Transparency = i
  3553. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3554. end
  3555. Part.Parent = nil
  3556. end), prt, msh)
  3557. end
  3558. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  3559. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3560. prt.Anchored = false
  3561. prt.CFrame = cframe
  3562. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3563. local wld = weld(prt, prt, Parent, cframe)
  3564. game:GetService("Debris"):AddItem(prt, 5)
  3565. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  3566. for i = 0, 1, delay do
  3567. wait()
  3568. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  3569. Part.Transparency = i
  3570. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3571. end
  3572. Part.Parent = nil
  3573. end), prt, msh, wld)
  3574. end
  3575. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  3576. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3577. prt.Anchored = false
  3578. prt.CFrame = cframe
  3579. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3580. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  3581. game:GetService("Debris"):AddItem(prt, 5)
  3582. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  3583. for i = 0, 1, delay do
  3584. wait()
  3585. Weld.C0 = euler(i * 20, 0, 0)
  3586. Part.Transparency = i
  3587. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3588. end
  3589. Part.Parent = nil
  3590. end), prt, msh, wld)
  3591. end
  3592. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3593. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3594. prt.Anchored = true
  3595. prt.CFrame = cframe
  3596. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3597. game:GetService("Debris"):AddItem(prt, 2)
  3598. coroutine.resume(coroutine.create(function(Part, Mesh)
  3599. for i = 0, 1, delay do
  3600. wait()
  3601. Part.CFrame = Part.CFrame
  3602. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3603. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3604. prt2.Anchored = true
  3605. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3606. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  3607. game:GetService("Debris"):AddItem(prt2, 2)
  3608. coroutine.resume(coroutine.create(function(Part, Mesh)
  3609. for i = 0, 1, 0.1 do
  3610. wait()
  3611. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  3612. end
  3613. Part.Parent = nil
  3614. end), prt2, msh2)
  3615. end
  3616. for i = 0, 1, delay * 2 do
  3617. wait()
  3618. Part.CFrame = Part.CFrame
  3619. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  3620. end
  3621. Part.Parent = nil
  3622. end), prt, msh)
  3623. end
  3624. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3625. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3626. prt.Anchored = true
  3627. prt.CFrame = cframe
  3628. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3629. game:GetService("Debris"):AddItem(prt, 2)
  3630. coroutine.resume(coroutine.create(function(Part, Mesh)
  3631. for i = 0, 1, delay do
  3632. wait()
  3633. Part.CFrame = Part.CFrame
  3634. Part.Transparency = i
  3635. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3636. end
  3637. Part.Parent = nil
  3638. end), prt, msh)
  3639. end
  3640. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  3641. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3642. prt.Anchored = true
  3643. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3644. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3645. game:GetService("Debris"):AddItem(prt, 2)
  3646. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  3647. CF = Part.CFrame
  3648. Numbb = 0
  3649. randnumb = math.random() / 10
  3650. rand1 = math.random() / 10
  3651. for i = 0, 1, rand1 do
  3652. wait()
  3653. CF = CF * cf(0, math.random() / 2, 0)
  3654. Part.CFrame = CF * euler(Numbb, 0, 0)
  3655. Part.Transparency = i
  3656. Numbb = Numbb + randnumb
  3657. end
  3658. Part.Parent = nil
  3659. end), prt, CF, Numbb, randnumb)
  3660. end
  3661. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3662. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3663. prt.Anchored = true
  3664. prt.CFrame = cframe
  3665. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  3666. game:GetService("Debris"):AddItem(prt, 5)
  3667. coroutine.resume(coroutine.create(function(Part, Mesh)
  3668. for i = 0, 1, delay do
  3669. wait()
  3670. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  3671. Part.Transparency = i
  3672. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3673. end
  3674. Part.Parent = nil
  3675. end), prt, msh)
  3676. end
  3677. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3678. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3679. prt.Anchored = true
  3680. prt.CFrame = cframe
  3681. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3682. game:GetService("Debris"):AddItem(prt, 2)
  3683. coroutine.resume(coroutine.create(function(Part, Mesh)
  3684. for i = 0, 1, delay do
  3685. wait()
  3686. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  3687. Part.Transparency = i
  3688. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3689. end
  3690. Part.Parent = nil
  3691. end), prt, msh)
  3692. end
  3693. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  3694. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3695. prt.Anchored = true
  3696. prt.CFrame = cframe * cf(x, y, z)
  3697. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  3698. game:GetService("Debris"):AddItem(prt, 5)
  3699. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  3700. local num = math.random()
  3701. local num2 = math.random(-3, 2) + math.random()
  3702. local numm = 0
  3703. for i = 0, 1, delay * 2 do
  3704. swait()
  3705. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  3706. Part.Transparency = i
  3707. numm = numm + 0.01
  3708. end
  3709. Part.Parent = nil
  3710. Mesh.Parent = nil
  3711. end), prt, msh, x, y, z)
  3712. end
  3713. function dmgstart(dmg, what)
  3714. hitcon = what.Touched:connect(function(hit)
  3715. local hum = hit.Parent:FindFirstChild("Humanoid")
  3716. if hum and not hum:IsDescendantOf(Character) then
  3717. hum:TakeDamage(dmg)
  3718. end
  3719. end)
  3720. end
  3721. function dmgstop()
  3722. hitcon:disconnect()
  3723. end
  3724. function Cloak()
  3725. Face.Parent = nil
  3726. cloaked = true
  3727. for _, v in pairs(Torso.Parent:children()) do
  3728. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3729. coroutine.resume(coroutine.create(function()
  3730. for i = 0, 1, 0.2 do
  3731. wait()
  3732. v.Transparency = i
  3733. end
  3734. v.Transparency = 1
  3735. end))
  3736. end
  3737. if v.className == "Hat" then
  3738. hatp = v.Handle
  3739. coroutine.resume(coroutine.create(function(derp)
  3740. for i = 0, 1, 0.2 do
  3741. wait()
  3742. derp.Transparency = i
  3743. end
  3744. derp.Transparency = 1
  3745. end), hatp)
  3746. end
  3747. end
  3748. for _, v in pairs(m:children()) do
  3749. if v.className == "Part" then
  3750. coroutine.resume(coroutine.create(function()
  3751. for i = 0, 1, 0.2 do
  3752. wait()
  3753. v.Transparency = i
  3754. end
  3755. v.Transparency = 1
  3756. end))
  3757. end
  3758. end
  3759. end
  3760. function UnCloak()
  3761. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  3762. Face.Parent = Head
  3763. cloaked = false
  3764. for _, v in pairs(Torso.Parent:children()) do
  3765. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3766. coroutine.resume(coroutine.create(function()
  3767. for i = 0, 1, 0.1 do
  3768. wait()
  3769. v.Transparency = v.Transparency - 0.1
  3770. end
  3771. v.Transparency = 0
  3772. end))
  3773. end
  3774. if v.className == "Hat" then
  3775. hatp = v.Handle
  3776. coroutine.resume(coroutine.create(function(derp)
  3777. for i = 0, 1, 0.1 do
  3778. wait()
  3779. derp.Transparency = derp.Transparency - 0.1
  3780. end
  3781. derp.Transparency = 0
  3782. end), hatp)
  3783. end
  3784. end
  3785. for _, v in pairs(m:children()) do
  3786. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  3787. coroutine.resume(coroutine.create(function()
  3788. for i = 0, 1, 0.1 do
  3789. wait()
  3790. v.Transparency = v.Transparency - 0.1
  3791. end
  3792. v.Transparency = 0
  3793. end))
  3794. v.Transparency = 0
  3795. end
  3796. end
  3797. end
  3798. local origcolor = BrickColor.new("Pastel light blue")
  3799. function Explode(rad, par, pitch, vol, mindam, maxdam)
  3800. local expart = Instance.new("Part", char)
  3801. local expart2 = Instance.new("Part", char)
  3802. local rin = Instance.new("Part", char)
  3803. local rin2 = Instance.new("Part", char)
  3804. local partMesh = Instance.new("SpecialMesh", expart)
  3805. partMesh.MeshType = "Sphere"
  3806. local partMesh2 = Instance.new("SpecialMesh", expart2)
  3807. partMesh2.MeshType = "Sphere"
  3808. local partMesh3 = Instance.new("SpecialMesh", rin)
  3809. partMesh3.MeshType = "Brick"
  3810. local partMesh4 = Instance.new("SpecialMesh", rin2)
  3811. partMesh4.MeshType = "Brick"
  3812. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  3813. partMesh.Scale = vt(rad, rad, rad)
  3814. expart.Size = vt(1, 1, 1)
  3815. expart.Transparency = 0
  3816. expart.Anchored = true
  3817. expart.Material = "Neon"
  3818. expart.BrickColor = bc("White")
  3819. expart.CFrame = par.CFrame
  3820. partMesh2.Scale = vt(rad, rad, rad)
  3821. expart2.Size = vt(1.15, 1.15, 1.15)
  3822. expart2.Transparency = 0.5
  3823. expart2.Anchored = true
  3824. expart2.Material = "Neon"
  3825. expart2.BrickColor = par.BrickColor
  3826. expart2.CFrame = par.CFrame
  3827. rin.Size = vt(1.15, 1.15, 1.15)
  3828. rin.Transparency = 1
  3829. rin.Anchored = true
  3830. rin.Material = "Neon"
  3831. rin.BrickColor = par.BrickColor
  3832. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  3833. rin2.Size = vt(1.15, 1.15, 1.15)
  3834. rin2.Transparency = 1
  3835. rin2.Anchored = true
  3836. rin2.Material = "Neon"
  3837. rin2.BrickColor = par.BrickColor
  3838. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  3839. partMesh3.Scale = vt(0, 1, 0)
  3840. partMesh4.Scale = vt(0, 1, 0)
  3841. local dec2 = Instance.new("Decal", rin)
  3842. dec2.Face = "Top"
  3843. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  3844. dec2.Parent = rin
  3845. local dec2b = dec2:Clone()
  3846. dec2b.Face = "Bottom"
  3847. dec2b.Parent = rin
  3848. local dec2a = Instance.new("Decal", rin2)
  3849. dec2a.Face = "Top"
  3850. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  3851. dec2a.Parent = rin2
  3852. local dec2ab = dec2a:Clone()
  3853. dec2ab.Face = "Bottom"
  3854. dec2ab.Parent = rin2
  3855. expart.CanCollide = false
  3856. expart2.CanCollide = false
  3857. rin.CanCollide = false
  3858. rin2.CanCollide = false
  3859. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  3860. local value = 1 * rad / 6.5
  3861. for i = 0, 199 do
  3862. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3863. expart.CFrame = expart.CFrame
  3864. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  3865. expart2.CFrame = expart.CFrame
  3866. value = value - 0.035 * rad / 30
  3867. if value < 7.5 then
  3868. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  3869. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  3870. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  3871. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  3872. end
  3873. if value < 0 then
  3874. dec2.Transparency = dec2.Transparency + 0.025
  3875. dec2a.Transparency = dec2a.Transparency + 0.025
  3876. dec2b.Transparency = dec2b.Transparency + 0.025
  3877. dec2ab.Transparency = dec2ab.Transparency + 0.025
  3878. expart.Transparency = expart.Transparency + 0.025
  3879. expart2.Transparency = expart2.Transparency + 0.025
  3880. rin.Transparency = rin.Transparency + 0.025
  3881. rin2.Transparency = rin2.Transparency + 0.025
  3882. end
  3883. swait()
  3884. end
  3885. game:GetService("Debris"):AddItem(expart, 1)
  3886. game:GetService("Debris"):AddItem(expart2, 1)
  3887. game:GetService("Debris"):AddItem(rin, 1)
  3888. game:GetService("Debris"):AddItem(rin2, 1)
  3889. end
  3890. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  3891. local expart = Instance.new("Part", char)
  3892. local expart2 = Instance.new("Part", char)
  3893. local partMesh = Instance.new("SpecialMesh", expart)
  3894. partMesh.MeshType = "Sphere"
  3895. local partMesh2 = Instance.new("SpecialMesh", expart2)
  3896. partMesh2.MeshType = "Sphere"
  3897. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  3898. partMesh.Scale = vt(rad, rad, rad)
  3899. expart.Size = vt(1, 1, 1)
  3900. expart.Transparency = 0
  3901. expart.Anchored = true
  3902. expart.Material = "Neon"
  3903. expart.BrickColor = bc("White")
  3904. expart.CFrame = par.CFrame
  3905. partMesh2.Scale = vt(rad, rad, rad)
  3906. expart2.Size = vt(1.15, 1.15, 1.15)
  3907. expart2.Transparency = 0.5
  3908. expart2.Anchored = true
  3909. expart2.Material = "Neon"
  3910. expart2.BrickColor = par.BrickColor
  3911. expart2.CFrame = par.CFrame
  3912. expart.CanCollide = false
  3913. expart2.CanCollide = false
  3914. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  3915. local value = 1 * rad / 6.5
  3916. for i = 0, 75 do
  3917. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3918. expart.CFrame = expart.CFrame
  3919. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  3920. expart2.CFrame = expart.CFrame
  3921. value = value - 0.035 * rad / 5
  3922. if value < 0 then
  3923. value = 0
  3924. expart.Transparency = expart.Transparency + 0.05
  3925. expart2.Transparency = expart2.Transparency + 0.05
  3926. end
  3927. swait()
  3928. end
  3929. game:GetService("Debris"):AddItem(expart, 1)
  3930. game:GetService("Debris"):AddItem(expart2, 1)
  3931. end
  3932. function AreaDanger(rad, par, mindam, maxdam)
  3933. local expart = Instance.new("Part", char)
  3934. local partMesh = Instance.new("SpecialMesh", expart)
  3935. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  3936. partMesh.MeshType = "Sphere"
  3937. partMesh.Scale = vt(rad, rad, rad)
  3938. expart.Size = vt(1, 1, 1)
  3939. expart.Transparency = 0.5
  3940. expart.Anchored = true
  3941. expart.Material = "Neon"
  3942. expart.CanCollide = false
  3943. expart.BrickColor = par.BrickColor
  3944. expart.CFrame = par.CFrame
  3945. local value = 1 * rad / 5
  3946. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  3947. for i = 0, 14 do
  3948. wait()
  3949. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3950. expart.CFrame = expart.CFrame
  3951. value = value - 0.035 * rad
  3952. if value < 0 then
  3953. value = 0
  3954. end
  3955. end
  3956. wait(0.25)
  3957. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  3958. wait(0.5)
  3959. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  3960. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  3961. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  3962. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  3963. for i = 0, 14 do
  3964. wait()
  3965. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3966. expart.CFrame = expart.CFrame
  3967. value = value - 0.035 * rad / 2
  3968. end
  3969. expart.Transparency = 1
  3970. game:GetService("Debris"):AddItem(expart, 5)
  3971. end
  3972. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  3973. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  3974. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  3975. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  3976. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  3977. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  3978. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  3979. for i = 0, 24 do
  3980. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
  3981. end
  3982. for i = 0, 24 do
  3983. local expart = Instance.new("Part", char)
  3984. expart.Transparency = 1
  3985. expart.Anchored = true
  3986. expart.CanCollide = false
  3987. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  3988. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  3989. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  3990. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  3991. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  3992. for i = 0, 9 do
  3993. MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
  3994. end
  3995. game:GetService("Debris"):AddItem(expart, 2)
  3996. wait(0.1)
  3997. end
  3998. end
  3999. function EXterPlosion(par)
  4000. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  4001. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  4002. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  4003. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  4004. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  4005. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  4006. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  4007. for i = 0, 24 do
  4008. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
  4009. end
  4010. for i = 0, 24 do
  4011. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
  4012. end
  4013. end
  4014. function ring(type, pos, scale, value)
  4015. local type = type
  4016. local rng = Instance.new("Part", char)
  4017. rng.Anchored = true
  4018. rng.BrickColor = origcolor
  4019. rng.CanCollide = false
  4020. rng.FormFactor = 3
  4021. rng.Name = "Ring"
  4022. rng.Size = Vector3.new(1, 1, 1)
  4023. rng.Transparency = 0
  4024. rng.TopSurface = 0
  4025. rng.BottomSurface = 0
  4026. rng.CFrame = pos
  4027. local rngm = Instance.new("SpecialMesh", rng)
  4028. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  4029. rngm.Scale = scale
  4030. local scaler2 = 1
  4031. if type == "Add" then
  4032. scaler2 = 1 * value
  4033. elseif type == "Divide" then
  4034. scaler2 = 1 / value
  4035. end
  4036. coroutine.resume(coroutine.create(function()
  4037. for i = 0, 10, 0.1 do
  4038. swait()
  4039. if type == "Add" then
  4040. scaler2 = scaler2 - 0.01 * value
  4041. elseif type == "Divide" then
  4042. scaler2 = scaler2 - 0.01 / value
  4043. end
  4044. rng.Transparency = rng.Transparency + 0.01
  4045. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  4046. end
  4047. rng:Destroy()
  4048. end))
  4049. end
  4050. function wave(type, pos, scale, value)
  4051. local type = type
  4052. local rng = Instance.new("Part", char)
  4053. rng.Anchored = true
  4054. rng.BrickColor = origcolor
  4055. rng.CanCollide = false
  4056. rng.FormFactor = 3
  4057. rng.Name = "Ring"
  4058. rng.Size = Vector3.new(1, 1, 1)
  4059. rng.Transparency = 0
  4060. rng.TopSurface = 0
  4061. rng.BottomSurface = 0
  4062. rng.CFrame = pos
  4063. local rngm = Instance.new("SpecialMesh", rng)
  4064. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  4065. rngm.Scale = scale
  4066. local scaler2 = 1
  4067. if type == "Add" then
  4068. scaler2 = 1 * value
  4069. elseif type == "Divide" then
  4070. scaler2 = 1 / value
  4071. end
  4072. coroutine.resume(coroutine.create(function()
  4073. for i = 0, 10, 0.1 do
  4074. swait()
  4075. if type == "Add" then
  4076. scaler2 = scaler2 - 0.01 * value
  4077. elseif type == "Divide" then
  4078. scaler2 = scaler2 - 0.01 / value
  4079. end
  4080. rng.Transparency = rng.Transparency + 0.01
  4081. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  4082. end
  4083. rng:Destroy()
  4084. end))
  4085. end
  4086. function wind(type, pos, scale, value, speed)
  4087. local type = type
  4088. local rng = Instance.new("Part", char)
  4089. rng.Anchored = true
  4090. rng.BrickColor = origcolor
  4091. rng.CanCollide = false
  4092. rng.FormFactor = 3
  4093. rng.Name = "Ring"
  4094. rng.Size = Vector3.new(1, 1, 1)
  4095. rng.Transparency = 0
  4096. rng.TopSurface = 0
  4097. rng.BottomSurface = 0
  4098. rng.CFrame = pos
  4099. local rngm = Instance.new("SpecialMesh", rng)
  4100. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  4101. rngm.Scale = scale
  4102. local scaler2 = 1
  4103. if type == "Add" then
  4104. scaler2 = 1 * value
  4105. elseif type == "Divide" then
  4106. scaler2 = 1 / value
  4107. end
  4108. coroutine.resume(coroutine.create(function()
  4109. for i = 0, 10, 0.1 do
  4110. swait()
  4111. if type == "Add" then
  4112. scaler2 = scaler2 - 0.01 * value
  4113. elseif type == "Divide" then
  4114. scaler2 = scaler2 - 0.01 / value
  4115. end
  4116. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  4117. rng.Transparency = rng.Transparency + 0.01
  4118. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  4119. end
  4120. rng:Destroy()
  4121. end))
  4122. end
  4123. function groundwind(type, pos, scale, value, speed)
  4124. local type = type
  4125. local rng = Instance.new("Part", char)
  4126. rng.Anchored = true
  4127. rng.BrickColor = origcolor
  4128. rng.CanCollide = false
  4129. rng.FormFactor = 3
  4130. rng.Name = "Ring"
  4131. rng.Size = Vector3.new(1, 1, 1)
  4132. rng.Transparency = 0
  4133. rng.TopSurface = 0
  4134. rng.BottomSurface = 0
  4135. rng.CFrame = pos
  4136. local rngm = Instance.new("SpecialMesh", rng)
  4137. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  4138. rngm.Scale = scale
  4139. local scaler2 = 1
  4140. if type == "Add" then
  4141. scaler2 = 1 * value
  4142. elseif type == "Divide" then
  4143. scaler2 = 1 / value
  4144. end
  4145. coroutine.resume(coroutine.create(function()
  4146. for i = 0, 10, 0.1 do
  4147. swait()
  4148. if type == "Add" then
  4149. scaler2 = scaler2 - 0.01 * value
  4150. elseif type == "Divide" then
  4151. scaler2 = scaler2 - 0.01 / value
  4152. end
  4153. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  4154. rng.Transparency = rng.Transparency + 0.01
  4155. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  4156. end
  4157. rng:Destroy()
  4158. end))
  4159. end
  4160. function CameraManager()
  4161. if TwoD and not CamInterrupt then
  4162. if Humanoid.Health > 0 then
  4163. Camera.CameraSubject = Humanoid
  4164. Camera.CameraType = "Scriptable"
  4165. Humanoid.AutoRotate = false
  4166. if Booleans.GyroUse then
  4167. Directer.MaxTorque = Vec3(0, huge, 0)
  4168. else
  4169. Directer.MaxTorque = Vec3(0, 0, 0)
  4170. end
  4171. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  4172. if Booleans.CamFollow then
  4173. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  4174. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  4175. else
  4176. CPart.Position = RootPart.Position
  4177. end
  4178. else
  4179. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  4180. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  4181. end
  4182. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  4183. else
  4184. Camera.CameraSubject = Humanoid
  4185. Camera.CameraType = "Custom"
  4186. end
  4187. end
  4188. end
  4189. function sphere(bonuspeed, type, pos, scale, value, color)
  4190. local type = type
  4191. local rng = Instance.new("Part", char)
  4192. rng.Anchored = true
  4193. rng.BrickColor = color
  4194. rng.CanCollide = false
  4195. rng.FormFactor = 3
  4196. rng.Name = "Ring"
  4197. rng.Material = "Neon"
  4198. rng.Size = Vector3.new(1, 1, 1)
  4199. rng.Transparency = 0
  4200. rng.TopSurface = 0
  4201. rng.BottomSurface = 0
  4202. rng.CFrame = pos
  4203. local rngm = Instance.new("SpecialMesh", rng)
  4204. rngm.MeshType = "Sphere"
  4205. rngm.Scale = scale
  4206. if rainbowmode == true then
  4207. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4208. end
  4209. local scaler2 = 1
  4210. if type == "Add" then
  4211. scaler2 = 1 * value
  4212. elseif type == "Divide" then
  4213. scaler2 = 1 / value
  4214. end
  4215. coroutine.resume(coroutine.create(function()
  4216. for i = 0, 10 / bonuspeed, 0.1 do
  4217. swait()
  4218. if rainbowmode == true then
  4219. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4220. end
  4221. if type == "Add" then
  4222. scaler2 = scaler2 - 0.01 * value / bonuspeed
  4223. elseif type == "Divide" then
  4224. scaler2 = scaler2 - 0.01 / value * bonuspeed
  4225. end
  4226. if chaosmode == true then
  4227. rng.BrickColor = BrickColor.random()
  4228. end
  4229. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  4230. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  4231. end
  4232. rng:Destroy()
  4233. end))
  4234. end
  4235. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  4236. local type = type
  4237. local rng = Instance.new("Part", char)
  4238. rng.Anchored = true
  4239. rng.BrickColor = color
  4240. rng.CanCollide = false
  4241. rng.FormFactor = 3
  4242. rng.Name = "Ring"
  4243. rng.Material = "Neon"
  4244. rng.Size = Vector3.new(1, 1, 1)
  4245. rng.Transparency = 0
  4246. rng.TopSurface = 0
  4247. rng.BottomSurface = 0
  4248. rng.CFrame = pos
  4249. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  4250. local rngm = Instance.new("SpecialMesh", rng)
  4251. rngm.MeshType = "Sphere"
  4252. rngm.Scale = vt(x1, y1, z1)
  4253. if rainbowmode == true then
  4254. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4255. end
  4256. local scaler2 = 1
  4257. local speeder = FastSpeed
  4258. if type == "Add" then
  4259. scaler2 = 1 * value
  4260. elseif type == "Divide" then
  4261. scaler2 = 1 / value
  4262. end
  4263. coroutine.resume(coroutine.create(function()
  4264. for i = 0, 10 / bonuspeed, 0.1 do
  4265. swait()
  4266. if rainbowmode == true then
  4267. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4268. end
  4269. if type == "Add" then
  4270. scaler2 = scaler2 - 0.01 * value / bonuspeed
  4271. elseif type == "Divide" then
  4272. scaler2 = scaler2 - 0.01 / value * bonuspeed
  4273. end
  4274. if chaosmode == true then
  4275. rng.BrickColor = BrickColor.random()
  4276. end
  4277. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  4278. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  4279. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  4280. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  4281. end
  4282. rng:Destroy()
  4283. end))
  4284. end
  4285. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  4286. local type = type
  4287. local rng = Instance.new("Part", char)
  4288. rng.Anchored = true
  4289. rng.BrickColor = color
  4290. rng.CanCollide = false
  4291. rng.FormFactor = 3
  4292. rng.Name = "Ring"
  4293. rng.Material = "Neon"
  4294. rng.Size = Vector3.new(1, 1, 1)
  4295. rng.Transparency = 1
  4296. rng.TopSurface = 0
  4297. rng.BottomSurface = 0
  4298. rng.CFrame = pos
  4299. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  4300. local rngm = Instance.new("SpecialMesh", rng)
  4301. rngm.MeshType = "Sphere"
  4302. rngm.Scale = vt(x1, y1, z1)
  4303. if rainbowmode == true then
  4304. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4305. end
  4306. local scaler2 = 1
  4307. local speeder = FastSpeed
  4308. if type == "Add" then
  4309. scaler2 = 1 * value
  4310. elseif type == "Divide" then
  4311. scaler2 = 1 / value
  4312. end
  4313. coroutine.resume(coroutine.create(function()
  4314. for i = 0, 10 / bonuspeed, 0.1 do
  4315. swait()
  4316. if rainbowmode == true then
  4317. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  4318. end
  4319. if type == "Add" then
  4320. scaler2 = scaler2 - 0.01 * value / bonuspeed
  4321. elseif type == "Divide" then
  4322. scaler2 = scaler2 - 0.01 / value * bonuspeed
  4323. end
  4324. if chaosmode == true then
  4325. rng.BrickColor = BrickColor.random()
  4326. end
  4327. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  4328. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  4329. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  4330. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  4331. end
  4332. rng:Destroy()
  4333. end))
  4334. end
  4335. function dmg(dude)
  4336. if dude.Name ~= Character then
  4337. local bgf = Instance.new("BodyGyro", dude.Head)
  4338. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  4339. local val = Instance.new("BoolValue", dude)
  4340. val.Name = "IsHit"
  4341. local ds = coroutine.wrap(function()
  4342. dude:WaitForChild("Head"):BreakJoints()
  4343. wait(0.5)
  4344. targetted = nil
  4345. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  4346. coroutine.resume(coroutine.create(function()
  4347. for i, v in pairs(dude:GetChildren()) do
  4348. if v:IsA("Accessory") then
  4349. v:Destroy()
  4350. end
  4351. if v:IsA("Humanoid") then
  4352. v:Destroy()
  4353. end
  4354. if v:IsA("CharacterMesh") then
  4355. v:Destroy()
  4356. end
  4357. if v:IsA("Model") then
  4358. v:Destroy()
  4359. end
  4360. if v:IsA("Part") or v:IsA("MeshPart") then
  4361. for x, o in pairs(v:GetChildren()) do
  4362. if o:IsA("Decal") then
  4363. o:Destroy()
  4364. end
  4365. end
  4366. coroutine.resume(coroutine.create(function()
  4367. v.Material = "Neon"
  4368. v.CanCollide = false
  4369. local bld = Instance.new("ParticleEmitter", v)
  4370. bld.LightEmission = 1
  4371. bld.Texture = "rbxassetid://284205403"
  4372. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  4373. bld.Rate = 50
  4374. bld.Lifetime = NumberRange.new(1)
  4375. bld.Size = NumberSequence.new({
  4376. NumberSequenceKeypoint.new(0, 0.75, 0),
  4377. NumberSequenceKeypoint.new(1, 0, 0)
  4378. })
  4379. bld.Transparency = NumberSequence.new({
  4380. NumberSequenceKeypoint.new(0, 0, 0),
  4381. NumberSequenceKeypoint.new(1, 1, 0)
  4382. })
  4383. bld.Speed = NumberRange.new(0, 0)
  4384. bld.VelocitySpread = 50000
  4385. bld.Rotation = NumberRange.new(-500, 500)
  4386. bld.RotSpeed = NumberRange.new(-500, 500)
  4387. local sbs = Instance.new("BodyPosition", v)
  4388. sbs.P = 3000
  4389. sbs.D = 1000
  4390. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  4391. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  4392. v.Color = Color3.new(1, 1, 1)
  4393. coroutine.resume(coroutine.create(function()
  4394. for i = 0, 49 do
  4395. swait(1)
  4396. v.Transparency = v.Transparency + 0.02
  4397. end
  4398. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  4399. bld.Speed = NumberRange.new(1, 5)
  4400. bld.Acceleration = vt(0, 10, 0)
  4401. wait(0.5)
  4402. bld.Enabled = false
  4403. wait(3)
  4404. v:Destroy()
  4405. dude:Destroy()
  4406. end))
  4407. end))
  4408. end
  4409. end
  4410. end))
  4411. end)
  4412. ds()
  4413. end
  4414. end
  4415. function FindNearestHead(Position, Distance, SinglePlayer)
  4416. if SinglePlayer then
  4417. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  4418. end
  4419. local List = {}
  4420. for i, v in pairs(workspace:GetChildren()) do
  4421. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  4422. table.insert(List, v)
  4423. end
  4424. end
  4425. return List
  4426. end
  4427. function FaceMouse()
  4428. Cam = workspace.CurrentCamera
  4429. return {
  4430. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  4431. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4432. }
  4433. end
  4434. function FaceMouse2()
  4435. Cam = workspace.CurrentCamera
  4436. return {
  4437. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  4438. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4439. }
  4440. end
  4441. local ModeOfGlitch = 1
  4442. local storehumanoidWS = 16
  4443. function ExtinctiveHeartbreak()
  4444. local targetted
  4445. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4446. targetted = mouse.Target.Parent
  4447. end
  4448. if targetted ~= nil then
  4449. attack = true
  4450. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  4451. for i = 0, 9 do
  4452. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4453. end
  4454. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4455. local originalpos = root.CFrame
  4456. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  4457. for i = 0, 9 do
  4458. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4459. end
  4460. hum.WalkSpeed = 0
  4461. targetted.Head.Anchored = true
  4462. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4463. for i = 0, 2, 0.1 do
  4464. swait()
  4465. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4)
  4466. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4)
  4467. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4)
  4468. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  4469. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4)
  4470. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4)
  4471. end
  4472. coroutine.resume(coroutine.create(function()
  4473. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  4474. bld.LightEmission = 0.1
  4475. bld.Texture = "rbxassetid://284205403"
  4476. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  4477. bld.Rate = 500
  4478. bld.Lifetime = NumberRange.new(1)
  4479. bld.Size = NumberSequence.new({
  4480. NumberSequenceKeypoint.new(0, 2, 0),
  4481. NumberSequenceKeypoint.new(1, 0, 0)
  4482. })
  4483. bld.Acceleration = vt(0, -25, 0)
  4484. bld.Transparency = NumberSequence.new({
  4485. NumberSequenceKeypoint.new(0, 0, 0),
  4486. NumberSequenceKeypoint.new(1, 0, 0)
  4487. })
  4488. bld.Speed = NumberRange.new(10, 50)
  4489. bld.EmissionDirection = "Front"
  4490. bld.VelocitySpread = 25
  4491. bld.Rotation = NumberRange.new(-500, 500)
  4492. bld.RotSpeed = NumberRange.new(-500, 500)
  4493. end))
  4494. coroutine.resume(coroutine.create(function()
  4495. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  4496. bld.LightEmission = 0.1
  4497. bld.Texture = "rbxassetid://284205403"
  4498. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  4499. bld.Rate = 500
  4500. bld.Lifetime = NumberRange.new(1)
  4501. bld.Size = NumberSequence.new({
  4502. NumberSequenceKeypoint.new(0, 2, 0),
  4503. NumberSequenceKeypoint.new(1, 0, 0)
  4504. })
  4505. bld.Acceleration = vt(0, -25, 0)
  4506. bld.Transparency = NumberSequence.new({
  4507. NumberSequenceKeypoint.new(0, 0, 0),
  4508. NumberSequenceKeypoint.new(1, 0, 0)
  4509. })
  4510. bld.Speed = NumberRange.new(10, 50)
  4511. bld.EmissionDirection = "Front"
  4512. bld.VelocitySpread = 25
  4513. bld.Rotation = NumberRange.new(-500, 500)
  4514. bld.RotSpeed = NumberRange.new(-500, 500)
  4515. end))
  4516. CameraEnshaking(5, 5)
  4517. game:GetService("Debris"):AddItem(bld, 3)
  4518. dmg(targetted)
  4519. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  4520. for i = 0, 1, 0.1 do
  4521. swait()
  4522. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8)
  4523. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8)
  4524. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.8)
  4525. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  4526. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  4527. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.8)
  4528. end
  4529. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  4530. for i = 0, 9 do
  4531. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4532. end
  4533. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4534. root.CFrame = originalpos
  4535. for i = 0, 9 do
  4536. sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
  4537. end
  4538. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4539. bld.Enabled = false
  4540. attack = false
  4541. hum.WalkSpeed = storehumanoidWS
  4542. end
  4543. end
  4544. function PureBomb()
  4545. attack = true
  4546. local orb = Instance.new("Part", char)
  4547. orb.Anchored = true
  4548. orb.BrickColor = BrickColor.new("Toothpaste")
  4549. orb.CanCollide = false
  4550. orb.FormFactor = 3
  4551. orb.Name = "Ring"
  4552. orb.Material = "Neon"
  4553. orb.Size = Vector3.new(1, 1, 1)
  4554. orb.Transparency = 0
  4555. orb.TopSurface = 0
  4556. orb.BottomSurface = 0
  4557. local orbm = Instance.new("SpecialMesh", orb)
  4558. orbm.MeshType = "Sphere"
  4559. orbm.Name = "SizeMesh"
  4560. orbm.Scale = vt(0, 0, 0)
  4561. local scaled = 0.1
  4562. local posid = 0
  4563. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  4564. for i = 0, 5, 0.1 do
  4565. swait()
  4566. scaled = scaled - 0.001
  4567. posid = posid - scaled
  4568. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  4569. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  4570. sphereMKCharge(5, -0.25, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Toothpaste"), 10)
  4571. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1)
  4572. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1)
  4573. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4574. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4575. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  4576. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.1)
  4577. end
  4578. for i = 0, 2, 0.1 do
  4579. swait()
  4580. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  4581. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4)
  4582. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4)
  4583. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4)
  4584. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  4585. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  4586. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4)
  4587. end
  4588. coroutine.resume(coroutine.create(function()
  4589. orb.Anchored = false
  4590. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  4591. local a = Instance.new("Part", workspace)
  4592. a.Name = "Direction"
  4593. a.Anchored = true
  4594. a.BrickColor = bc("Bright red")
  4595. a.Material = "Neon"
  4596. a.Transparency = 1
  4597. a.CanCollide = false
  4598. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  4599. local ignore = orb
  4600. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4601. a.BottomSurface = 10
  4602. a.TopSurface = 10
  4603. local distance = (orb.CFrame.p - position).magnitude
  4604. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4605. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4606. orb.CFrame = a.CFrame
  4607. a:Destroy()
  4608. local bv = Instance.new("BodyVelocity")
  4609. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4610. bv.velocity = orb.CFrame.lookVector * 125
  4611. bv.Parent = orb
  4612. local hitted = false
  4613. game:GetService("Debris"):AddItem(orb, 15)
  4614. wait()
  4615. local hit = orb.Touched:connect(function(hit)
  4616. if hitted == false then
  4617. hitted = true
  4618. CameraEnshaking(10, 2.5)
  4619. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  4620. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  4621. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  4622. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  4623. for i = 0, 9 do
  4624. sphereMK(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
  4625. sphereMK(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
  4626. end
  4627. orb.Anchored = true
  4628. orb.Transparency = 1
  4629. wait(8)
  4630. orb:Destroy()
  4631. end
  4632. end)
  4633. end))
  4634. for i = 0, 1, 0.1 do
  4635. swait()
  4636. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4)
  4637. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4)
  4638. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4)
  4639. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  4640. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  4641. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4)
  4642. end
  4643. attack = false
  4644. end
  4645. function ChaosGroundStrike()
  4646. attack = true
  4647. for i = 0, 2, 0.1 do
  4648. swait()
  4649. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4650. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4651. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4652. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4653. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  4654. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  4655. end
  4656. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  4657. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  4658. CameraEnshaking(4, 12)
  4659. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  4660. if v:FindFirstChild("Head") then
  4661. dmg(v)
  4662. end
  4663. end
  4664. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  4665. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  4666. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  4667. for i = 0, 2, 0.1 do
  4668. swait()
  4669. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4670. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4671. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4672. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4673. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4674. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4675. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4676. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4677. end
  4678. attack = false
  4679. end
  4680. function ChaosBegone()
  4681. attack = true
  4682. chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
  4683. for i = 0, 10, 0.1 do
  4684. swait()
  4685. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4686. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  4687. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4688. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4689. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  4690. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  4691. end
  4692. chatfunc("DIE!!", BrickColor.random().Color)
  4693. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  4694. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  4695. CameraEnshaking(5, 25)
  4696. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4697. if v:FindFirstChild("Head") then
  4698. dmg(v)
  4699. end
  4700. end
  4701. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  4702. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  4703. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  4704. for i = 0, 3, 0.1 do
  4705. swait()
  4706. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4707. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4708. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4709. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4710. RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4711. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  4712. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4713. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4714. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4715. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4716. end
  4717. attack = false
  4718. end
  4719. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  4720. local orb = Instance.new("Part", char)
  4721. orb.Anchored = true
  4722. orb.BrickColor = color
  4723. orb.CanCollide = false
  4724. orb.FormFactor = 3
  4725. orb.Name = "Ring"
  4726. orb.Material = "Neon"
  4727. orb.Size = Vector3.new(1, 1, 1)
  4728. orb.Transparency = 0
  4729. orb.TopSurface = 0
  4730. orb.BottomSurface = 0
  4731. local orbm = Instance.new("SpecialMesh", orb)
  4732. orbm.MeshType = "Sphere"
  4733. orb.CFrame = positted
  4734. orbm.Name = "SizeMesh"
  4735. orbm.Scale = vt(1, 1, 1)
  4736. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  4737. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  4738. coroutine.resume(coroutine.create(function()
  4739. wait(timer)
  4740. CameraEnshaking(3, ShakePower)
  4741. orb.Transparency = 1
  4742. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  4743. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  4744. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  4745. wait(3)
  4746. orb:Destroy()
  4747. end))
  4748. end
  4749. function orb_spawn(positted, timer)
  4750. local randomcol = math.random(1, 2)
  4751. local orb = Instance.new("Part", char)
  4752. orb.Anchored = true
  4753. if randomcol == 1 then
  4754. orb.BrickColor = BrickColor.new("White")
  4755. elseif randomcol == 2 then
  4756. orb.BrickColor = BrickColor.new("Really black")
  4757. end
  4758. orb.CanCollide = false
  4759. orb.FormFactor = 3
  4760. orb.Name = "Ring"
  4761. orb.Material = "Neon"
  4762. orb.Size = Vector3.new(1, 1, 1)
  4763. orb.Transparency = 0
  4764. orb.TopSurface = 0
  4765. orb.BottomSurface = 0
  4766. local orbm = Instance.new("SpecialMesh", orb)
  4767. orbm.MeshType = "Sphere"
  4768. orb.CFrame = positted
  4769. orbm.Name = "SizeMesh"
  4770. orbm.Scale = vt(1, 1, 1)
  4771. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  4772. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  4773. for i = 0, 2 do
  4774. sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0)
  4775. end
  4776. coroutine.resume(coroutine.create(function()
  4777. wait(timer)
  4778. CameraEnshaking(3, 2)
  4779. orb.Transparency = 1
  4780. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  4781. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  4782. for i = 0, 4 do
  4783. sphereMK(5, 0.65, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2.5, 2.5, 15, -0.025, orb.BrickColor, 0)
  4784. end
  4785. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  4786. wait(3)
  4787. orb:Destroy()
  4788. end))
  4789. end
  4790. function scattercorrupt()
  4791. attack = true
  4792. local rot = 0
  4793. local randomrotations = math.random(1, 2)
  4794. local lookv = 2.5
  4795. local power = 5
  4796. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  4797. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  4798. for i = 0, 9 do
  4799. sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
  4800. end
  4801. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  4802. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  4803. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  4804. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  4805. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  4806. local hite = Instance.new("Part", char)
  4807. hite.Anchored = true
  4808. hite.CanCollide = false
  4809. hite.FormFactor = 3
  4810. hite.Name = "Ring"
  4811. hite.Material = "Neon"
  4812. hite.Size = Vector3.new(1, 1, 1)
  4813. hite.Transparency = 1
  4814. hite.TopSurface = 0
  4815. hite.BottomSurface = 0
  4816. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  4817. local rem = Instance.new("Part", char)
  4818. rem.Anchored = true
  4819. rem.CanCollide = false
  4820. rem.FormFactor = 3
  4821. rem.Name = "Ring"
  4822. rem.Material = "Neon"
  4823. rem.Size = Vector3.new(1, 1, 1)
  4824. rem.Transparency = 1
  4825. rem.TopSurface = 0
  4826. rem.BottomSurface = 0
  4827. rem.CFrame = hite.CFrame
  4828. local rem2 = rem:Clone()
  4829. rem2.Parent = char
  4830. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4831. local rem3 = rem:Clone()
  4832. rem3.Parent = char
  4833. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4834. local rem4 = rem:Clone()
  4835. rem4.Parent = char
  4836. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4837. hite:Destroy()
  4838. coroutine.resume(coroutine.create(function()
  4839. for i = 0, 24 do
  4840. swait(1)
  4841. if randomrotations == 1 then
  4842. rot = rot + 1
  4843. elseif randomrotations == 2 then
  4844. rot = rot - 1
  4845. end
  4846. power = power + 0.5
  4847. lookv = lookv + 7.5
  4848. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  4849. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4850. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4851. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4852. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4853. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4854. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4855. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4856. end
  4857. end))
  4858. attack = false
  4859. end
  4860. function yinyangi()
  4861. attack = true
  4862. for i = 0, 2, 0.1 do
  4863. swait()
  4864. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2)
  4865. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2)
  4866. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2)
  4867. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4868. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  4869. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  4870. end
  4871. local bv = Instance.new("BodyVelocity")
  4872. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4873. bv.velocity = root.CFrame.lookVector * 175
  4874. bv.Parent = root
  4875. for Rotations = 0, 9 do
  4876. for i = 0, 1, 0.5 do
  4877. swait()
  4878. bv.velocity = root.CFrame.lookVector * 175
  4879. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4880. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  4882. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4883. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4884. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4885. end
  4886. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4887. for i = 0, 1, 0.5 do
  4888. swait()
  4889. bv.velocity = root.CFrame.lookVector * 175
  4890. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4891. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4892. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(180)), 0.5)
  4893. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4894. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4895. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4896. end
  4897. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4898. for i = 0, 1, 0.5 do
  4899. swait()
  4900. bv.velocity = root.CFrame.lookVector * 175
  4901. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4902. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4903. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(270)), 0.5)
  4904. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4905. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4906. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4907. end
  4908. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4909. for i = 0, 1, 0.5 do
  4910. swait()
  4911. bv.velocity = root.CFrame.lookVector * 175
  4912. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5)
  4913. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5)
  4914. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(360)), 0.5)
  4915. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4916. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4917. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4918. end
  4919. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4920. end
  4921. bv:Destroy()
  4922. attack = false
  4923. end
  4924. function Wip()
  4925. attack = true
  4926. local rngb = Instance.new("Part", char)
  4927. rngb.Anchored = true
  4928. rngb.BrickColor = origcolor
  4929. rngb.CanCollide = false
  4930. rngb.FormFactor = 3
  4931. rngb.Name = "Ring"
  4932. rngb.Material = "Neon"
  4933. rngb.Size = Vector3.new(1, 0.05, 1)
  4934. rngb.Transparency = 1
  4935. rngb.TopSurface = 0
  4936. rngb.BottomSurface = 0
  4937. local rngmb = Instance.new("SpecialMesh", rngb)
  4938. rngmb.MeshType = "Brick"
  4939. rngmb.Name = "SizeMesh"
  4940. rngmb.Scale = vt(0, 1, 0)
  4941. local orb = rngb:Clone()
  4942. orb.Parent = char
  4943. orb.Transparency = 0
  4944. orb.BrickColor = BrickColor.new("White")
  4945. orb.Size = vt(1, 1, 1)
  4946. local orbmish = orb.SizeMesh
  4947. orbmish.Scale = vt(0, 0, 0)
  4948. orbmish.MeshType = "Sphere"
  4949. local orbe = rngb:Clone()
  4950. orbe.Parent = char
  4951. orbe.Transparency = 0.5
  4952. orbe.BrickColor = BrickColor.new("New Yeller")
  4953. orbe.Size = vt(1, 1, 1)
  4954. local orbmish2 = orbe.SizeMesh
  4955. orbmish2.Scale = vt(0, 0, 0)
  4956. orbmish2.MeshType = "Sphere"
  4957. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  4958. rngb:Destroy()
  4959. for i = 0, 5, 0.1 do
  4960. swait()
  4961. if rainbowmode == true then
  4962. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  4963. end
  4964. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4965. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4966. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  4967. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  4968. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4969. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4970. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  4971. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3)
  4972. RootPart.CFrame = FaceMouse()[1]
  4973. end
  4974. orbe.Transparency = 1
  4975. orb.Transparency = 1
  4976. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  4977. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  4978. local a = Instance.new("Part", Character)
  4979. a.Name = "Direction"
  4980. a.Anchored = true
  4981. a.BrickColor = bc("White")
  4982. a.Material = "Neon"
  4983. a.Transparency = 0
  4984. a.Shape = "Cylinder"
  4985. a.CanCollide = false
  4986. local a2 = Instance.new("Part", Character)
  4987. a2.Name = "Direction"
  4988. a2.Anchored = true
  4989. a2.BrickColor = bc("New Yeller")
  4990. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  4991. a2.Material = "Neon"
  4992. a2.Transparency = 0.5
  4993. a2.Shape = "Cylinder"
  4994. a2.CanCollide = false
  4995. local ba = Instance.new("Part", Character)
  4996. ba.Name = "HitDirect"
  4997. ba.Anchored = true
  4998. ba.BrickColor = bc("Really black")
  4999. ba.Material = "Neon"
  5000. ba.Transparency = 1
  5001. ba.CanCollide = false
  5002. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5003. local ignore = Character
  5004. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5005. a.BottomSurface = 10
  5006. a.TopSurface = 10
  5007. a2.BottomSurface = 10
  5008. a2.TopSurface = 10
  5009. local distance = (orb.CFrame.p - position).magnitude
  5010. a.Size = Vector3.new(distance, 1, 1)
  5011. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5012. a2.Size = Vector3.new(distance, 1, 1)
  5013. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5014. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5015. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5016. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5017. game:GetService("Debris"):AddItem(a, 20)
  5018. game:GetService("Debris"):AddItem(a2, 20)
  5019. game:GetService("Debris"):AddItem(ba, 20)
  5020. local msh = Instance.new("SpecialMesh", a)
  5021. msh.MeshType = "Cylinder"
  5022. msh.Scale = vt(1, 25, 25)
  5023. local msh2 = Instance.new("SpecialMesh", a2)
  5024. msh2.MeshType = "Cylinder"
  5025. msh2.Scale = vt(1, 30, 30)
  5026. for i = 0, 10, 0.1 do
  5027. swait()
  5028. CameraEnshaking(1, 5)
  5029. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  5030. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5031. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5032. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5033. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5034. distance = (orb.CFrame.p - position).magnitude
  5035. if typrot == 1 then
  5036. rotation = rotation + 2.5
  5037. elseif typrot == 2 then
  5038. rotation = rotation - 2.5
  5039. end
  5040. RootPart.CFrame = FaceMouse()[1]
  5041. a.Size = Vector3.new(distance, 1, 1)
  5042. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5043. a2.Size = Vector3.new(distance, 1, 1)
  5044. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5045. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5046. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5047. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5048. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  5049. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  5050. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  5051. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  5052. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  5053. end
  5054. a:Destroy()
  5055. a2:Destroy()
  5056. ba:Destroy()
  5057. orb:Destroy()
  5058. orbe:Destroy()
  5059. attack = false
  5060. end
  5061. function UniversalSpark()
  5062. attack = true
  5063. local rngb = Instance.new("Part", char)
  5064. rngb.Anchored = true
  5065. rngb.BrickColor = origcolor
  5066. rngb.CanCollide = false
  5067. rngb.FormFactor = 3
  5068. rngb.Name = "Ring"
  5069. rngb.Material = "Neon"
  5070. rngb.Size = Vector3.new(1, 0.05, 1)
  5071. rngb.Transparency = 1
  5072. rngb.TopSurface = 0
  5073. rngb.BottomSurface = 0
  5074. local rngmb = Instance.new("SpecialMesh", rngb)
  5075. rngmb.MeshType = "Brick"
  5076. rngmb.Name = "SizeMesh"
  5077. rngmb.Scale = vt(0, 1, 0)
  5078. local orb = rngb:Clone()
  5079. orb.Parent = char
  5080. orb.Transparency = 0
  5081. orb.BrickColor = BrickColor.new("White")
  5082. orb.Size = vt(1, 1, 1)
  5083. local orbmish = orb.SizeMesh
  5084. orbmish.Scale = vt(0, 0, 0)
  5085. orbmish.MeshType = "Sphere"
  5086. local orbe = rngb:Clone()
  5087. orbe.Parent = char
  5088. orbe.Transparency = 0.5
  5089. orbe.BrickColor = BrickColor.new("New Yeller")
  5090. orbe.Size = vt(1, 1, 1)
  5091. local orbmish2 = orbe.SizeMesh
  5092. orbmish2.Scale = vt(0, 0, 0)
  5093. orbmish2.MeshType = "Sphere"
  5094. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  5095. rngb:Destroy()
  5096. for i = 0, 5, 0.1 do
  5097. swait()
  5098. if rainbowmode == true then
  5099. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  5100. end
  5101. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  5102. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  5103. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  5104. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  5105. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5106. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5107. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  5108. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3)
  5109. RootPart.CFrame = FaceMouse()[1]
  5110. end
  5111. orbe.Transparency = 1
  5112. orb.Transparency = 1
  5113. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  5114. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  5115. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  5116. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  5117. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  5118. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  5119. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  5120. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  5121. local xd = Instance.new("Sound", char)
  5122. xd.SoundId = "rbxassetid://445796828"
  5123. xd.Pitch = 0.75
  5124. xd.Looped = true
  5125. xd.Volume = 1.25
  5126. xd:Play()
  5127. local a = Instance.new("Part", Character)
  5128. a.Name = "Direction"
  5129. a.Anchored = true
  5130. a.BrickColor = bc("Alder")
  5131. a.Color = MAINRUINCOLOR.Color
  5132. a.Material = "Neon"
  5133. a.Transparency = 0.5
  5134. a.Shape = "Cylinder"
  5135. a.CanCollide = false
  5136. local a2 = Instance.new("Part", Character)
  5137. a2.Name = "Direction"
  5138. a2.Anchored = true
  5139. a2.BrickColor = bc("New Yeller")
  5140. a2.Color = MAINRUINCOLOR.Color
  5141. a2.Material = "Neon"
  5142. a2.Transparency = 0.5
  5143. a2.Shape = "Cylinder"
  5144. a2.CanCollide = false
  5145. local ba = Instance.new("Part", Character)
  5146. ba.Name = "HitDirect"
  5147. ba.Anchored = true
  5148. ba.BrickColor = bc("Really black")
  5149. ba.Material = "Neon"
  5150. ba.Transparency = 1
  5151. ba.CanCollide = false
  5152. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5153. local ignore = Character
  5154. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5155. a.BottomSurface = 10
  5156. a.TopSurface = 10
  5157. a2.BottomSurface = 10
  5158. a2.TopSurface = 10
  5159. local distance = (orb.CFrame.p - position).magnitude
  5160. a.Size = Vector3.new(distance, 1, 1)
  5161. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5162. a2.Size = Vector3.new(distance, 1, 1)
  5163. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5164. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5165. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5166. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5167. game:GetService("Debris"):AddItem(a, 60)
  5168. game:GetService("Debris"):AddItem(a2, 60)
  5169. game:GetService("Debris"):AddItem(ba, 60)
  5170. local outerscale = 0
  5171. local msh = Instance.new("SpecialMesh", a)
  5172. msh.MeshType = "Cylinder"
  5173. msh.Scale = vt(1, 0, 0)
  5174. local msh2 = Instance.new("SpecialMesh", a2)
  5175. msh2.MeshType = "Cylinder"
  5176. msh2.Scale = vt(1, 0, 0)
  5177. for i = 0, 2, 0.1 do
  5178. swait()
  5179. CameraEnshaking(1, 1)
  5180. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  5181. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  5182. outerscale = outerscale - 0.015
  5183. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5184. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5185. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5186. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5187. distance = (orb.CFrame.p - position).magnitude
  5188. if typrot == 1 then
  5189. rotation = rotation + 2.5
  5190. elseif typrot == 2 then
  5191. rotation = rotation - 2.5
  5192. end
  5193. RootPart.CFrame = FaceMouse()[1]
  5194. a.Size = Vector3.new(distance, 1, 1)
  5195. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5196. a2.Size = Vector3.new(distance, 1, 1)
  5197. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5198. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5199. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5200. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5201. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5202. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5203. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5204. end
  5205. for z = 0, 2 do
  5206. for i = 0, 4, 0.1 do
  5207. swait()
  5208. CameraEnshaking(1, 1)
  5209. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5210. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5211. outerscale = outerscale + 0.015
  5212. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5213. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5214. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5215. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5216. distance = (orb.CFrame.p - position).magnitude
  5217. if typrot == 1 then
  5218. rotation = rotation + 2.5
  5219. elseif typrot == 2 then
  5220. rotation = rotation - 2.5
  5221. end
  5222. RootPart.CFrame = FaceMouse()[1]
  5223. a.Size = Vector3.new(distance, 1, 1)
  5224. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5225. a2.Size = Vector3.new(distance, 1, 1)
  5226. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5227. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5228. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5229. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5230. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5231. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5232. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5233. end
  5234. for i = 0, 4, 0.1 do
  5235. swait()
  5236. CameraEnshaking(1, 1)
  5237. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5238. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5239. outerscale = outerscale - 0.015
  5240. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5241. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5242. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5243. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5244. distance = (orb.CFrame.p - position).magnitude
  5245. if typrot == 1 then
  5246. rotation = rotation + 2.5
  5247. elseif typrot == 2 then
  5248. rotation = rotation - 2.5
  5249. end
  5250. RootPart.CFrame = FaceMouse()[1]
  5251. a.Size = Vector3.new(distance, 1, 1)
  5252. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5253. a2.Size = Vector3.new(distance, 1, 1)
  5254. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5255. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5256. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5257. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5258. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5259. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5260. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5261. end
  5262. end
  5263. for i = 0, 4, 0.1 do
  5264. swait()
  5265. CameraEnshaking(1, 1)
  5266. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5267. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5268. xd.Volume = xd.Volume - 0.025
  5269. a.Transparency = a.Transparency + 0.025
  5270. a2.Transparency = a2.Transparency + 0.025
  5271. outerscale = outerscale - 0.015
  5272. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5273. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5274. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5275. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5276. distance = (orb.CFrame.p - position).magnitude
  5277. if typrot == 1 then
  5278. rotation = rotation + 2.5
  5279. elseif typrot == 2 then
  5280. rotation = rotation - 2.5
  5281. end
  5282. RootPart.CFrame = FaceMouse()[1]
  5283. a.Size = Vector3.new(distance, 1, 1)
  5284. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5285. a2.Size = Vector3.new(distance, 1, 1)
  5286. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5287. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5288. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5289. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5290. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5291. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5292. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5293. end
  5294. xd:Destroy()
  5295. a:Destroy()
  5296. a2:Destroy()
  5297. ba:Destroy()
  5298. orb:Destroy()
  5299. orbe:Destroy()
  5300. attack = false
  5301. end
  5302. function resetmode()
  5303. rainbowmode = false
  5304. chaosmode = false
  5305. RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
  5306. ModeOfGlitch = 1
  5307. storehumanoidWS = 16
  5308. for i, v in pairs(mw2:GetChildren()) do
  5309. if v:IsA("Part") then
  5310. v.BrickColor = BrickColor.new("Really red")
  5311. v.Material = "Neon"
  5312. end
  5313. end
  5314. for i, v in pairs(mw1:GetChildren()) do
  5315. if v:IsA("Part") then
  5316. v.Transparency = 1
  5317. v.BrickColor = BrickColor.new("Really red")
  5318. v.Material = "Neon"
  5319. end
  5320. end
  5321. MAINRUINCOLOR = BrickColor.new("Really red")
  5322. hum.WalkSpeed = 16
  5323. newTheme("rbxassetid://415898123", 0, 1, 10)
  5324. for i, v in pairs(m:GetChildren()) do
  5325. if v:IsA("Part") then
  5326. v.BrickColor = BrickColor.new("Really black")
  5327. v.Material = "Glass"
  5328. end
  5329. end
  5330. for i, v in pairs(m2:GetChildren()) do
  5331. if v:IsA("Part") then
  5332. v.BrickColor = BrickColor.new("Crimson")
  5333. v.Material = "Granite"
  5334. end
  5335. end
  5336. for i, v in pairs(m3:GetChildren()) do
  5337. if v:IsA("Part") then
  5338. v.BrickColor = BrickColor.new("Really red")
  5339. v.Material = "Neon"
  5340. end
  5341. end
  5342. for i, v in pairs(extrawingmod1:GetChildren()) do
  5343. if v:IsA("Part") then
  5344. v.Transparency = 1
  5345. v.BrickColor = BrickColor.new("White")
  5346. v.Material = "Neon"
  5347. end
  5348. end
  5349. for i, v in pairs(extrawingmod2:GetChildren()) do
  5350. if v:IsA("Part") then
  5351. v.Transparency = 1
  5352. v.BrickColor = BrickColor.new("White")
  5353. v.Material = "Neon"
  5354. end
  5355. end
  5356. end
  5357. function attackone()
  5358. attack = true
  5359. for i = 0, 1, 0.1 do
  5360. swait()
  5361. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  5362. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  5363. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5364. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5365. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  5366. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.2)
  5367. end
  5368. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  5369. local hitb = Instance.new("Part", char)
  5370. hitb.Anchored = true
  5371. hitb.CanCollide = false
  5372. hitb.FormFactor = 3
  5373. hitb.Name = "Ring"
  5374. hitb.Material = "Neon"
  5375. hitb.Size = Vector3.new(1, 1, 1)
  5376. hitb.Transparency = 1
  5377. hitb.TopSurface = 0
  5378. hitb.BottomSurface = 0
  5379. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  5380. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  5381. hitb:Destroy()
  5382. for i = 0, 1, 0.1 do
  5383. swait()
  5384. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  5385. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  5386. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5387. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5388. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4)
  5389. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.4)
  5390. end
  5391. attack = false
  5392. end
  5393. function attacktwo()
  5394. attack = true
  5395. for i = 0, 1, 0.1 do
  5396. swait()
  5397. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  5398. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  5399. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5400. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5401. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  5402. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.2)
  5403. end
  5404. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  5405. local hitb = Instance.new("Part", char)
  5406. hitb.Anchored = true
  5407. hitb.CanCollide = false
  5408. hitb.FormFactor = 3
  5409. hitb.Name = "Ring"
  5410. hitb.Material = "Neon"
  5411. hitb.Size = Vector3.new(1, 1, 1)
  5412. hitb.Transparency = 1
  5413. hitb.TopSurface = 0
  5414. hitb.BottomSurface = 0
  5415. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  5416. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  5417. hitb:Destroy()
  5418. for i = 0, 1, 0.1 do
  5419. swait()
  5420. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  5421. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  5422. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5423. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5424. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4)
  5425. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.4)
  5426. end
  5427. attack = false
  5428. end
  5429. function attackthree()
  5430. attack = true
  5431. for i = 0, 1, 0.1 do
  5432. swait()
  5433. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  5434. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  5435. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5436. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5437. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3)
  5438. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3)
  5439. end
  5440. local distlook = 5
  5441. for i = 0, 4 do
  5442. swait(2)
  5443. CameraEnshaking(2, 3)
  5444. local hite = Instance.new("Part", char)
  5445. hite.Anchored = true
  5446. hite.CanCollide = false
  5447. hite.FormFactor = 3
  5448. hite.Name = "Ring"
  5449. hite.Material = "Neon"
  5450. hite.Size = Vector3.new(1, 1, 1)
  5451. hite.Transparency = 1
  5452. hite.TopSurface = 0
  5453. hite.BottomSurface = 0
  5454. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  5455. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  5456. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  5457. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  5458. for i = 0, 2 do
  5459. sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5460. sphereMK(3, 0.2, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5461. sphereMK(6, 0.35, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5462. end
  5463. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  5464. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5465. game:GetService("Debris"):AddItem(hite, 5)
  5466. distlook = distlook + 10
  5467. end
  5468. attack = false
  5469. end
  5470. local attacktype = 1
  5471. mouse.Button1Down:connect(function()
  5472. if attack == false and attacktype == 1 then
  5473. attacktype = 2
  5474. attackone()
  5475. elseif attack == false and attacktype == 2 then
  5476. attacktype = 3
  5477. attacktwo()
  5478. elseif attack == false and attacktype == 3 then
  5479. attacktype = 1
  5480. attackthree()
  5481. elseif attack == false and attacktype == 4 then
  5482. attacktype = 1
  5483. end
  5484. end)
  5485. mouse.KeyDown:connect(function(k)
  5486. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5487. ModeOfGlitch = 2
  5488. storehumanoidWS = 16
  5489. hum.WalkSpeed = 16
  5490. rainbowmode = false
  5491. chaosmode = false
  5492. RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  5493. newTheme("rbxassetid://1119453744", 20.25, 1, 1)
  5494. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5495. for i, v in pairs(mw2:GetChildren()) do
  5496. if v:IsA("Part") then
  5497. v.BrickColor = MAINRUINCOLOR
  5498. v.Material = "Neon"
  5499. end
  5500. end
  5501. for i, v in pairs(mw1:GetChildren()) do
  5502. if v:IsA("Part") then
  5503. v.Transparency = 1
  5504. v.BrickColor = MAINRUINCOLOR
  5505. v.Material = "Neon"
  5506. end
  5507. end
  5508. for i, v in pairs(m:GetChildren()) do
  5509. if v:IsA("Part") then
  5510. v.BrickColor = BrickColor.new("White")
  5511. v.Material = "Ice"
  5512. end
  5513. end
  5514. for i, v in pairs(m2:GetChildren()) do
  5515. if v:IsA("Part") then
  5516. v.BrickColor = BrickColor.new("Pastel light blue")
  5517. v.Material = "Glass"
  5518. end
  5519. end
  5520. for i, v in pairs(m3:GetChildren()) do
  5521. if v:IsA("Part") then
  5522. v.BrickColor = BrickColor.new("Toothpaste")
  5523. v.Material = "Neon"
  5524. end
  5525. end
  5526. for i, v in pairs(extrawingmod1:GetChildren()) do
  5527. if v:IsA("Part") then
  5528. v.Transparency = 1
  5529. v.BrickColor = BrickColor.new("White")
  5530. v.Material = "Neon"
  5531. end
  5532. end
  5533. for i, v in pairs(extrawingmod2:GetChildren()) do
  5534. if v:IsA("Part") then
  5535. v.Transparency = 1
  5536. v.BrickColor = BrickColor.new("White")
  5537. v.Material = "Neon"
  5538. end
  5539. end
  5540. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5541. resetmode()
  5542. end
  5543. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5544. ModeOfGlitch = 3
  5545. storehumanoidWS = 16
  5546. hum.WalkSpeed = 16
  5547. rainbowmode = false
  5548. chaosmode = false
  5549. RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
  5550. newTheme("rbxassetid://1509634377", 58.15, 1,2)
  5551. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5552. for i, v in pairs(mw2:GetChildren()) do
  5553. if v:IsA("Part") then
  5554. v.BrickColor = MAINRUINCOLOR
  5555. v.Material = "Neon"
  5556. end
  5557. end
  5558. for i, v in pairs(mw1:GetChildren()) do
  5559. if v:IsA("Part") then
  5560. v.Transparency = 1
  5561. v.BrickColor = MAINRUINCOLOR
  5562. v.Material = "Neon"
  5563. end
  5564. end
  5565. for i, v in pairs(m:GetChildren()) do
  5566. if v:IsA("Part") then
  5567. v.BrickColor = BrickColor.new("Black")
  5568. v.Material = "Ice"
  5569. end
  5570. end
  5571. for i, v in pairs(m2:GetChildren()) do
  5572. if v:IsA("Part") then
  5573. v.BrickColor = BrickColor.new("Dark indigo")
  5574. v.Material = "Glass"
  5575. end
  5576. end
  5577. for i, v in pairs(m3:GetChildren()) do
  5578. if v:IsA("Part") then
  5579. v.BrickColor = BrickColor.new("Royal purple")
  5580. v.Material = "Neon"
  5581. end
  5582. end
  5583. for i, v in pairs(extrawingmod1:GetChildren()) do
  5584. if v:IsA("Part") then
  5585. v.Transparency = 1
  5586. v.BrickColor = BrickColor.new("White")
  5587. v.Material = "Neon"
  5588. end
  5589. end
  5590. for i, v in pairs(extrawingmod2:GetChildren()) do
  5591. if v:IsA("Part") then
  5592. v.Transparency = 1
  5593. v.BrickColor = BrickColor.new("White")
  5594. v.Material = "Neon"
  5595. end
  5596. end
  5597. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5598. resetmode()
  5599. end
  5600. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5601. ModeOfGlitch = 4
  5602. storehumanoidWS = 16
  5603. hum.WalkSpeed = 16
  5604. rainbowmode = false
  5605. chaosmode = true
  5606. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  5607. newTheme("rbxassetid://415898123", 0, 1, 10)
  5608. MAINRUINCOLOR = BrickColor.new("Black")
  5609. for i, v in pairs(mw2:GetChildren()) do
  5610. if v:IsA("Part") then
  5611. v.BrickColor = MAINRUINCOLOR
  5612. v.Material = "Neon"
  5613. end
  5614. end
  5615. for i, v in pairs(mw1:GetChildren()) do
  5616. if v:IsA("Part") then
  5617. v.Transparency = 0.75
  5618. v.BrickColor = BrickColor.random()
  5619. v.Material = "Neon"
  5620. end
  5621. end
  5622. for i, v in pairs(m:GetChildren()) do
  5623. if v:IsA("Part") then
  5624. v.BrickColor = BrickColor.new("Black")
  5625. v.Material = "Neon"
  5626. end
  5627. end
  5628. for i, v in pairs(m2:GetChildren()) do
  5629. if v:IsA("Part") then
  5630. v.BrickColor = BrickColor.random()
  5631. v.Material = "Neon"
  5632. end
  5633. end
  5634. for i, v in pairs(m3:GetChildren()) do
  5635. if v:IsA("Part") then
  5636. v.BrickColor = BrickColor.new("Black")
  5637. v.Material = "Neon"
  5638. end
  5639. end
  5640. for i, v in pairs(extrawingmod1:GetChildren()) do
  5641. if v:IsA("Part") then
  5642. v.Transparency = 1
  5643. v.BrickColor = BrickColor.new("White")
  5644. v.Material = "Neon"
  5645. end
  5646. end
  5647. for i, v in pairs(extrawingmod2:GetChildren()) do
  5648. if v:IsA("Part") then
  5649. v.Transparency = 1
  5650. v.BrickColor = BrickColor.new("White")
  5651. v.Material = "Neon"
  5652. end
  5653. end
  5654. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5655. resetmode()
  5656. end
  5657. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5658. ModeOfGlitch = 5
  5659.  
  5660. storehumanoidWS = 16
  5661. hum.WalkSpeed = 16
  5662. rainbowmode = false
  5663. chaosmode = false
  5664. RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
  5665. newTheme("rbxassetid://723652641", 10, 1, 3.2)
  5666. ModeOfGlitch = 1
  5667. MAINRUINCOLOR = BrickColor.new("Really black")
  5668. for i, v in pairs(mw2:GetChildren()) do
  5669. if v:IsA("Part") then
  5670. v.BrickColor = MAINRUINCOLOR
  5671. v.Material = "Neon"
  5672. end
  5673. end
  5674. for i, v in pairs(mw1:GetChildren()) do
  5675. if v:IsA("Part") then
  5676. v.Transparency = 0
  5677. v.BrickColor = MAINRUINCOLOR
  5678. v.Material = "Neon"
  5679. end
  5680. end
  5681. for i, v in pairs(m:GetChildren()) do
  5682. if v:IsA("Part") then
  5683. v.BrickColor = BrickColor.new("Really black")
  5684. v.Material = "Ice"
  5685. end
  5686. end
  5687. for i, v in pairs(m2:GetChildren()) do
  5688. if v:IsA("Part") then
  5689. v.BrickColor = BrickColor.new("Really black")
  5690. v.Material = "Ice"
  5691. end
  5692. end
  5693. for i, v in pairs(m3:GetChildren()) do
  5694. if v:IsA("Part") then
  5695. v.BrickColor = BrickColor.new("Really black")
  5696. v.Material = "Neon"
  5697. end
  5698. end
  5699. for i, v in pairs(extrawingmod1:GetChildren()) do
  5700. if v:IsA("Part") then
  5701. v.Transparency = 1
  5702. v.BrickColor = BrickColor.new("White")
  5703. v.Material = "Neon"
  5704. end
  5705. end
  5706. for i, v in pairs(extrawingmod2:GetChildren()) do
  5707. if v:IsA("Part") then
  5708. v.Transparency = 1
  5709. v.BrickColor = BrickColor.new("White")
  5710. v.Material = "Neon"
  5711. end
  5712. end
  5713. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5714. resetmode()
  5715. end
  5716. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5717. ModeOfGlitch = 6
  5718. storehumanoidWS = 75
  5719. hum.WalkSpeed = 75
  5720. rainbowmode = false
  5721. chaosmode = false
  5722. RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
  5723. newTheme("rbxassetid://519067542", 0, 1, 1)
  5724. MAINRUINCOLOR = BrickColor.new("Really black")
  5725. for i, v in pairs(mw2:GetChildren()) do
  5726. if v:IsA("Part") then
  5727. v.BrickColor = BrickColor.new("White")
  5728. v.Material = "Neon"
  5729. end
  5730. end
  5731. for i, v in pairs(mw1:GetChildren()) do
  5732. if v:IsA("Part") then
  5733. v.Transparency = 0
  5734. v.BrickColor = BrickColor.new("Really black")
  5735. v.Material = "Neon"
  5736. end
  5737. end
  5738. for i, v in pairs(m:GetChildren()) do
  5739. if v:IsA("Part") then
  5740. v.BrickColor = BrickColor.new("White")
  5741. v.Material = "Ice"
  5742. end
  5743. end
  5744. for i, v in pairs(m2:GetChildren()) do
  5745. if v:IsA("Part") then
  5746. v.BrickColor = BrickColor.new("Really black")
  5747. v.Material = "Ice"
  5748. end
  5749. end
  5750. for i, v in pairs(m3:GetChildren()) do
  5751. if v:IsA("Part") then
  5752. v.BrickColor = BrickColor.new("White")
  5753. v.Material = "Neon"
  5754. end
  5755. end
  5756. for i, v in pairs(extrawingmod1:GetChildren()) do
  5757. if v:IsA("Part") then
  5758. v.Transparency = 1
  5759. v.BrickColor = BrickColor.new("White")
  5760. v.Material = "Neon"
  5761. end
  5762. end
  5763. for i, v in pairs(extrawingmod2:GetChildren()) do
  5764. if v:IsA("Part") then
  5765. v.Transparency = 1
  5766. v.BrickColor = BrickColor.new("White")
  5767. v.Material = "Neon"
  5768. end
  5769. end
  5770.  
  5771.  
  5772. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5773. resetmode()
  5774. end
  5775. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5776. ModeOfGlitch = 6127843
  5777. storehumanoidWS = 50
  5778. hum.WalkSpeed = 50
  5779. rainbowmode = true
  5780. chaosmode = false
  5781. RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  5782. newTheme("rbxassetid://152539141", 0, 1, 1)
  5783. MAINRUINCOLOR = BrickColor.new("White")
  5784. for i, v in pairs(mw2:GetChildren()) do
  5785. if v:IsA("Part") then
  5786. v.BrickColor = MAINRUINCOLOR
  5787. v.Material = "Neon"
  5788. end
  5789. end
  5790. for i, v in pairs(mw1:GetChildren()) do
  5791. if v:IsA("Part") then
  5792. v.Transparency = 0
  5793. v.BrickColor = MAINRUINCOLOR
  5794. v.Material = "Neon"
  5795. end
  5796. end
  5797. for i, v in pairs(m:GetChildren()) do
  5798. if v:IsA("Part") then
  5799. v.BrickColor = BrickColor.new("White")
  5800. v.Material = "Neon"
  5801. end
  5802. end
  5803. for i, v in pairs(m2:GetChildren()) do
  5804. if v:IsA("Part") then
  5805. v.BrickColor = BrickColor.new("White")
  5806. v.Material = "Neon"
  5807. end
  5808. end
  5809. for i, v in pairs(m3:GetChildren()) do
  5810. if v:IsA("Part") then
  5811. v.BrickColor = BrickColor.new("White")
  5812. v.Material = "Neon"
  5813. end
  5814. end
  5815. for i, v in pairs(extrawingmod1:GetChildren()) do
  5816. if v:IsA("Part") then
  5817. v.Transparency = 1
  5818. v.BrickColor = BrickColor.new("White")
  5819. v.Material = "Neon"
  5820. end
  5821. end
  5822. for i, v in pairs(extrawingmod2:GetChildren()) do
  5823. if v:IsA("Part") then
  5824. v.Transparency = 1
  5825. v.BrickColor = BrickColor.new("White")
  5826. v.Material = "Neon"
  5827. end
  5828. end
  5829. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5830. resetmode()
  5831. end
  5832. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5833. ModeOfGlitch = 1000000
  5834. storehumanoidWS = 100
  5835. hum.WalkSpeed = 100
  5836. rainbowmode = false
  5837. chaosmode = false
  5838. RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  5839. newTheme("rbxassetid://614032233", 0, 1, 1)
  5840. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5841. for i, v in pairs(mw2:GetChildren()) do
  5842. if v:IsA("Part") then
  5843. v.BrickColor = MAINRUINCOLOR
  5844. v.Material = "Neon"
  5845. end
  5846. end
  5847. for i, v in pairs(mw1:GetChildren()) do
  5848. if v:IsA("Part") then
  5849. v.Transparency = 0
  5850. v.BrickColor = MAINRUINCOLOR
  5851. v.Material = "Neon"
  5852. end
  5853. end
  5854. for i, v in pairs(m:GetChildren()) do
  5855. if v:IsA("Part") then
  5856. v.Color = Color3.new(0.5, 0, 1)
  5857. v.Material = "Neon"
  5858. end
  5859. end
  5860. for i, v in pairs(m2:GetChildren()) do
  5861. if v:IsA("Part") then
  5862. v.Color = Color3.new(0.25, 0, 1)
  5863. v.Material = "Neon"
  5864. end
  5865. end
  5866. for i, v in pairs(m3:GetChildren()) do
  5867. if v:IsA("Part") then
  5868. v.Color = Color3.new(0.45, 0, 1)
  5869. v.Material = "Neon"
  5870. end
  5871. end
  5872. for i, v in pairs(extrawingmod1:GetChildren()) do
  5873. if v:IsA("Part") then
  5874. v.Transparency = 0
  5875. v.Color = Color3.new(0.25, 0, 1)
  5876. v.Material = "Neon"
  5877. end
  5878. end
  5879. for i, v in pairs(extrawingmod2:GetChildren()) do
  5880. if v:IsA("Part") then
  5881. v.Transparency = 0
  5882. v.Color = Color3.new(0.5, 0, 1)
  5883. v.Material = "Neon"
  5884. end
  5885. end
  5886. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5887. resetmode()
  5888. end
  5889. if k == "l" and toggleTag == false then
  5890. toggleTag = true
  5891. text.TextTransparency = 0
  5892. text.TextStrokeTransparency = 0
  5893. elseif k == "l" and toggleTag == true then
  5894. toggleTag = false
  5895. text.TextTransparency = 1
  5896. text.TextStrokeTransparency = 1
  5897. end
  5898. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5899. ExtinctiveHeartbreak()
  5900. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5901. PureBomb()
  5902. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5903. scattercorrupt()
  5904. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5905. ChaosGroundStrike()
  5906. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5907. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5908. UniversalSpark()
  5909. elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
  5910. scattercorrupt()
  5911. wait(1)
  5912. yinyangi()
  5913. elseif k == "l" and attack == false and ModeOfGlitch == 5 then
  5914. scattercorrupt()
  5915. scattercorrupt()
  5916. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5917. yinyangi()
  5918. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5919. Wip()
  5920. end
  5921. if k == "l" and attack == false and ModeOfGlitch == 4 then
  5922. ChaosBegone()
  5923. end
  5924. end)
  5925. coroutine.resume(coroutine.create(function()
  5926. while true do
  5927. swait(2)
  5928. if rainbowmode == true or ModeOfGlitch == 6 then
  5929. sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0)
  5930. end
  5931. end
  5932. end))
  5933. coroutine.resume(coroutine.create(function()
  5934. while true do
  5935. swait(0.5)
  5936. if ModeOfGlitch == 1000000 then
  5937. sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0)
  5938. end
  5939. end
  5940. end))
  5941. coroutine.resume(coroutine.create(function()
  5942. while true do
  5943. swait(2)
  5944. if chaosmode == true then
  5945. RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
  5946. for i, v in pairs(mw1:GetChildren()) do
  5947. if v:IsA("Part") then
  5948. v.Transparency = 0.75
  5949. v.BrickColor = BrickColor.random()
  5950. v.Material = "Neon"
  5951. end
  5952. end
  5953. for i, v in pairs(m2:GetChildren()) do
  5954. if v:IsA("Part") then
  5955. v.BrickColor = BrickColor.random()
  5956. v.Material = "Neon"
  5957. end
  5958. end
  5959. end
  5960. end
  5961. end))
  5962. Humanoid.Name = "STARGLITCHER"
  5963. Humanoid.MaxHealth = math.huge
  5964. Humanoid.Health = math.huge
  5965. Instance.new("ForceField", char).Visible = false
  5966. Humanoid.Animator.Parent = nil
  5967. idleanim = 0.4
  5968. while true do
  5969. if rainbowmode == true then
  5970. RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
  5971. MAINRUINCOLOR = BrickColor.new("White")
  5972. for i, v in pairs(m:GetChildren()) do
  5973. if v:IsA("Part") then
  5974. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5975. end
  5976. end
  5977. for i, v in pairs(m2:GetChildren()) do
  5978. if v:IsA("Part") then
  5979. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5980. end
  5981. end
  5982. for i, v in pairs(m3:GetChildren()) do
  5983. if v:IsA("Part") then
  5984. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5985. end
  5986. end
  5987. for i, v in pairs(mw1:GetChildren()) do
  5988. if v:IsA("Part") then
  5989. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5990. v.Material = "Neon"
  5991. end
  5992. end
  5993. for i, v in pairs(mw2:GetChildren()) do
  5994. if v:IsA("Part") then
  5995. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5996. v.Material = "Neon"
  5997. end
  5998. end
  5999. end
  6000. CameraManager()
  6001. swait()
  6002. lwing1weld.C1 = clerp(lwing1weld.C1, cf(2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(12.5 + 5 * math.cos(sine / 32))), 0.3)
  6003. lwing2weld.C1 = clerp(lwing2weld.C1, cf(3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(25 + 7.5 * math.cos(sine / 32))), 0.3)
  6004. lwing3weld.C1 = clerp(lwing3weld.C1, cf(3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(37.5 + 10 * math.cos(sine / 32))), 0.3)
  6005. lwing4weld.C1 = clerp(lwing4weld.C1, cf(4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(50 + 12.5 * math.cos(sine / 32))), 0.3)
  6006. lwing5weld.C1 = clerp(lwing5weld.C1, cf(5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(62.5 + 15 * math.cos(sine / 32))), 0.3)
  6007. lwing6weld.C1 = clerp(lwing6weld.C1, cf(6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(75 + 17.5 * math.cos(sine / 32))), 0.3)
  6008. rwing1weld.C1 = clerp(rwing1weld.C1, cf(-2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(-12.5 - 5 * math.cos(sine / 32))), 0.3)
  6009. rwing2weld.C1 = clerp(rwing2weld.C1, cf(-3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(-25 - 7.5 * math.cos(sine / 32))), 0.3)
  6010. rwing3weld.C1 = clerp(rwing3weld.C1, cf(-3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(-37.5 - 10 * math.cos(sine / 32))), 0.3)
  6011. rwing4weld.C1 = clerp(rwing4weld.C1, cf(-4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(-50 - 12.5 * math.cos(sine / 32))), 0.3)
  6012. rwing5weld.C1 = clerp(rwing5weld.C1, cf(-5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(-62.5 - 15 * math.cos(sine / 32))), 0.3)
  6013. rwing6weld.C1 = clerp(rwing6weld.C1, cf(-6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(-75 - 17.5 * math.cos(sine / 32))), 0.3)
  6014. sine = sine + change
  6015. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  6016. local velderp = RootPart.Velocity.y
  6017. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  6018. if equipped == true or equipped == false then
  6019. if attack == false then
  6020. idle = idle + 1
  6021. else
  6022. idle = 0
  6023. end
  6024. if not (idle >= 500) or attack == false then
  6025. end
  6026. if RootPart.Velocity.y > 1 and hitfloor == nil then
  6027. Anim = "Jump"
  6028. if attack == false then
  6029. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1)
  6030. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1)
  6031. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  6032. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  6033. RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-5), math.rad(0), math.rad(25)), 0.1)
  6034. LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-5), math.rad(0), math.rad(-25)), 0.1)
  6035. end
  6036. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  6037. Anim = "Fall"
  6038. if attack == false then
  6039. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1)
  6040. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1)
  6041. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  6042. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  6043. RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1)
  6044. LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1)
  6045. end
  6046. elseif torvel < 1 and hitfloor ~= nil then
  6047. Anim = "Idle"
  6048. if attack == false then
  6049. if ModeOfGlitch == 1 then
  6050. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10 - 2.5 * math.cos(sine / 32)), math.rad(-20), math.rad(0)), 0.1)
  6051. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 32))), 0.1)
  6052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(10 - 2 * math.cos(sine / 32)), math.rad(0), math.rad(20)), 0.1)
  6053. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 32)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(-20 - 5 * math.cos(sine / 0.465))), 0.1)
  6054. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1)
  6055. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  6056. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6057. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-7.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  6058. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  6059. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  6060. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  6061. RW.C0 = clerp(RW.C0, cf(0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(30 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-100 - 2.5 * math.cos(sine / 28))), 0.1)
  6062. LW.C0 = clerp(LW.C0, cf(-0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(40 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(90 + 2.5 * math.cos(sine / 28))), 0.1)
  6063. elseif ModeOfGlitch == 3 then
  6064. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 - 1 * math.cos(sine / 34))), 0.1)
  6065. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  6066. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-20)), 0.1)
  6067. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
  6068. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1)
  6069. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  6070. elseif ModeOfGlitch == 4 then
  6071. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(20)), 0.1)
  6072. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(-20)), 0.1)
  6073. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(20 - 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1)
  6074. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1)
  6075. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1)
  6076. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1)
  6077. elseif ModeOfGlitch == 5 then
  6078. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  6079. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1)
  6080. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  6081. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  6082. RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.1)
  6083. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  6084. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6085. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.1)
  6086. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.1)
  6087. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1)
  6088. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  6089. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1)
  6090. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1)
  6091. end
  6092. end
  6093. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  6094. Anim = "Walk"
  6095. if attack == false then
  6096. if ModeOfGlitch == 1 then
  6097. RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
  6098. LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
  6099. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1)
  6100. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 5 * math.cos(sine / 0.325)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 + 5 * math.cos(sine / 8))), 0.1)
  6101. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1)
  6102. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
  6103. elseif ModeOfGlitch == 4 then
  6104. RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 8)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 12)), math.rad(5 + 25 * math.cos(sine / 12))), 0.1)
  6105. LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 8)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 12)), math.rad(-5 + 25 * math.cos(sine / 12))), 0.1)
  6106. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 8)) * angles(math.rad(12.5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 12))), 0.1)
  6107. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1)
  6108. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 - 15 * math.cos(sine / 12)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1)
  6109. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 15 * math.cos(sine / 12)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1)
  6110. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
  6111. RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
  6112. LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
  6113. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1)
  6114. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 5 * math.cos(sine / 8))), 0.1)
  6115. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1)
  6116. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 8)), math.rad(0), math.rad(-10 + 10 * math.cos(sine / 4))), 0.1)
  6117. end
  6118. end
  6119. elseif torvel >= 22 and hitfloor ~= nil then
  6120. Anim = "Run"
  6121. if attack == false then
  6122. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  6123. RH.C0 = clerp(RH.C0, cf(1, -0.75 - 0.25 * math.cos(sine / 3), -0.25 - 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1)
  6124. LH.C0 = clerp(LH.C0, cf(-1, -0.75 + 0.25 * math.cos(sine / 3), -0.25 + 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1)
  6125. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.125 + 0.125 * math.cos(sine / 3)) * angles(math.rad(20), math.rad(0), math.rad(0 - 15 * math.cos(sine / 6))), 0.1)
  6126. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 15 * math.cos(sine / 6))), 0.1)
  6127. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 155 * math.cos(sine / 6)), math.rad(0), math.rad(5 - 10 * math.cos(sine / 3))), 0.1)
  6128. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 155 * math.cos(sine / 6)), math.rad(0), math.rad(-5 + 10 * math.cos(sine / 3))), 0.1)
  6129. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6130. RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2)
  6131. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2)
  6132. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2)
  6133. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  6134. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30 + 2.5 * math.cos(sine / 28))), 0.2)
  6135. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30 - 2.5 * math.cos(sine / 28))), 0.2)
  6136. end
  6137. end
  6138. end
  6139. end
  6140. end
Advertisement
Add Comment
Please, Sign In to add comment