Advertisement
UnknownZealot

Miku

Jun 28th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 245.76 KB | None | 0 0
  1. warn([[Hatsune Miku Star Glitcher Loaded.
  2. All purpose switcher...
  3.  
  4. So you've made it.
  5. The most powerful being to hold this power.
  6. You make me laugh.
  7.  
  8. Created by 'NoobyGames12'
  9. Edited by 'RhiBel00351'
  10. Some stuff by 'XXUNORIBOASXX'
  11. ]])
  12.  
  13. plr = game:GetService("Players").LocalPlayer
  14. char = plr.Character
  15. hum = char.Humanoid
  16. local cam = game.Workspace.CurrentCamera
  17. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  18. Camera = cam
  19. local CamInterrupt = false
  20. local TwoD = false
  21. local TargetInfo = {nil, nil}
  22. cam.CameraType = "Custom"
  23. t = char.Torso
  24. h = char.Head
  25. ra = char["Right Arm"]
  26. la = char["Left Arm"]
  27. rl = char["Right Leg"]
  28. ll = char["Left Leg"]
  29. tors = char.Torso
  30. lleg = char["Left Leg"]
  31. root = char.HumanoidRootPart
  32. hed = char.Head
  33. rleg = char["Right Leg"]
  34. rarm = char["Right Arm"]
  35. larm = char["Left Arm"]
  36. radian = math.rad
  37. random = math.random
  38. Vec3 = Vector3.new
  39. Inst = Instance.new
  40. cFrame = CFrame.new
  41. Euler = CFrame.fromEulerAnglesXYZ
  42. vt = Vector3.new
  43. bc = BrickColor.new
  44. br = BrickColor.random
  45. it = Instance.new
  46. cf = CFrame.new
  47. local eff = true
  48. local shielding = false
  49.  
  50. local Booleans = {
  51. CamFollow = true,
  52. GyroUse = true
  53. }
  54.  
  55. function lerp(object, newCFrame, alpha)
  56. return object:lerp(newCFrame, alpha)
  57. end
  58.  
  59. local Directer = Inst("BodyGyro", root)
  60. Directer.MaxTorque = Vec3(0, 0, 0)
  61. Directer.P = 600000
  62. local CPart = Inst("Part")
  63. CPart.Anchored = true
  64. CPart.CanCollide = false
  65. CPart.Locked = true
  66. CPart.Transparency = 1
  67.  
  68. local rainbowmode = false
  69. local chaosmode = false
  70.  
  71. kan = Instance.new("Sound",char)
  72. kan.Volume = 1.25
  73. kan.TimePosition = 0
  74. kan.PlaybackSpeed = 1
  75. kan.Pitch = 1
  76. kan.SoundId = "rbxassetid://1117396305"
  77. kan.Name = "wrecked"
  78. kan.Looped = true
  79. kan:Play()
  80.  
  81. function newTheme(ID,timepos,pitch,vol)
  82. local kanz = kan
  83. --kanz:Stop()
  84. --kanz.Volume = vol
  85. --kanz.TimePosition = timepos
  86. kanz.PlaybackSpeed = pitch
  87. kanz.Pitch = pitch
  88. kanz.SoundId = ID
  89. kanz.Name = "wrecked"
  90. kanz.Looped = true
  91. kanz.Volume = 0.3
  92. --kanz:Play()
  93. --coroutine.resume(coroutine.create(function()
  94. --wait(0.05)
  95. --end))
  96. end
  97.  
  98. function newThemeCust(ID,timepos,pitch,vol)
  99. local kanz = kan
  100. kanz:Stop()
  101. kanz.Volume = vol
  102. kanz.TimePosition = timepos
  103. kanz.PlaybackSpeed = pitch
  104. kanz.Pitch = pitch
  105. kanz.SoundId = ID
  106. kanz.Name = "wrecked"
  107. kanz.Looped = true
  108. kanz:Play()
  109. coroutine.resume(coroutine.create(function()
  110. wait(0.05)
  111. end))
  112. end
  113.  
  114.  
  115.  
  116. function CameraShake(Times, Power, PlayerTarget)
  117. coroutine.resume(coroutine.create(function()
  118. FV = Instance.new("BoolValue", PlayerTarget)
  119. FV.Name = "CameraShake"
  120. for ShakeNum=1,Times do
  121. swait()
  122. local ef=Power
  123. if ef>=1 then
  124. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  125. else
  126. ef=Power*10
  127. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  128. end
  129. end
  130. Humanoid.CameraOffset = Vector3.new(0,0,0)
  131. FV:Destroy()
  132. end))
  133. end
  134.  
  135. function CameraEnshaking(Length,Intensity)
  136. coroutine.resume(coroutine.create(function()
  137. local intensity = 1*Intensity
  138. local rotM = 0.01*Intensity
  139. for i = 0, Length, 0.1 do
  140. swait()
  141. intensity = intensity - 0.05*Intensity/Length
  142. rotM = rotM - 0.0005*Intensity/Length
  143. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  144. 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)
  145. end
  146. Humanoid.CameraOffset = Vec3(0, 0, 0)
  147. end))
  148. end
  149. CamShake=function(Part,Distan,Power,Times)
  150. local de=Part.Position
  151. for i,v in pairs(workspace:children()) do
  152. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  153. for _,c in pairs(v:children()) do
  154. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  155. local Noob=v.Humanoid
  156. if Noob~=nil then
  157. coroutine.resume(coroutine.create(function()
  158. FV = Instance.new("BoolValue", Noob)
  159. FV.Name = "CameraShake"
  160. for ShakeNum=1,Times do
  161. swait()
  162. local ef=Power
  163. if ef>=1 then
  164. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  165. else
  166. ef=Power*10
  167. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  168. end
  169. end
  170. Humanoid.CameraOffset = Vector3.new(0,0,0)
  171. FV:Destroy()
  172. end))
  173. CameraShake(Times, Power, Noob)
  174. end
  175. end
  176. end
  177. end
  178. end
  179. end
  180.  
  181. function chatfunc(text,color)
  182. local chat = coroutine.wrap(function()
  183. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  184. Character:FindFirstChild("TalkingBillBoard"):destroy()
  185. end
  186. local naeeym2 = Instance.new("BillboardGui",Character)
  187. naeeym2.Size = UDim2.new(0,100,0,40)
  188. naeeym2.StudsOffset = Vector3.new(0,3,0)
  189. naeeym2.Adornee = Character.Head
  190. naeeym2.Name = "TalkingBillBoard"
  191. local tecks2 = Instance.new("TextLabel",naeeym2)
  192. tecks2.BackgroundTransparency = 1
  193. tecks2.BorderSizePixel = 0
  194. tecks2.Text = ""
  195. tecks2.Font = "SciFi"
  196. tecks2.TextSize = 30
  197. tecks2.TextStrokeTransparency = 0
  198. tecks2.TextColor3 = color
  199. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  200. tecks2.Size = UDim2.new(1,0,0.5,0)
  201. local tecks3 = Instance.new("TextLabel",naeeym2)
  202. tecks3.BackgroundTransparency = 1
  203. tecks3.BorderSizePixel = 0
  204. tecks3.Text = ""
  205. tecks3.Font = "SciFi"
  206. tecks3.TextSize = 30
  207. tecks3.TextStrokeTransparency = 0
  208. tecks3.TextColor3 = Color3.new(0,0,0)
  209. tecks3.TextStrokeColor3 = color
  210. tecks3.Size = UDim2.new(1,0,0.5,0)
  211. coroutine.resume(coroutine.create(function()
  212. while true do
  213. swait(1)
  214. plr.Character.wrecked.Volume = 0.3
  215. if chaosmode == true then
  216. tecks2.TextColor3 = BrickColor.random().Color
  217. tecks3.TextStrokeColor3 = BrickColor.random().Color
  218. end
  219. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  220. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  221. tecks2.Rotation = math.random(-5,5)
  222. tecks3.Rotation = math.random(-5,5)
  223. end
  224. end))
  225. for i = 1,string.len(text),1 do
  226. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  227. tecks2.Text = string.sub(text,1,i)
  228. tecks3.Text = string.sub(text,1,i)
  229. swait(1)
  230. end
  231. wait(1)
  232. local randomrot = math.random(1,2)
  233. if randomrot == 1 then
  234. for i = 1, 50 do
  235. swait()
  236. tecks2.Rotation = tecks2.Rotation - .75
  237. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  238. tecks2.TextTransparency = tecks2.TextTransparency + .04
  239. tecks3.Rotation = tecks2.Rotation + .75
  240. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  241. tecks3.TextTransparency = tecks2.TextTransparency + .04
  242. end
  243. elseif randomrot == 2 then
  244. for i = 1, 50 do
  245. swait()
  246. tecks2.Rotation = tecks2.Rotation + .75
  247. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  248. tecks2.TextTransparency = tecks2.TextTransparency + .04
  249. tecks3.Rotation = tecks2.Rotation - .75
  250. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  251. tecks3.TextTransparency = tecks2.TextTransparency + .04
  252. end
  253. end
  254. naeeym2:Destroy()
  255. end)
  256. chat()
  257. end
  258.  
  259.  
  260. local Create = LoadLibrary("RbxUtility").Create
  261.  
  262. CFuncs = {
  263. ["Part"] = {
  264. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  265. local Part = Create("Part"){
  266. Parent = Parent,
  267. Reflectance = Reflectance,
  268. Transparency = Transparency,
  269. CanCollide = false,
  270. Locked = true,
  271. BrickColor = BrickColor.new(tostring(BColor)),
  272. Name = Name,
  273. Size = Size,
  274. Material = Material,
  275. }
  276. RemoveOutlines(Part)
  277. return Part
  278. end;
  279. };
  280.  
  281. ["Mesh"] = {
  282. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  283. local Msh = Create(Mesh){
  284. Parent = Part,
  285. Offset = OffSet,
  286. Scale = Scale,
  287. }
  288. if Mesh == "SpecialMesh" then
  289. Msh.MeshType = MeshType
  290. Msh.MeshId = MeshId
  291. end
  292. return Msh
  293. end;
  294. };
  295.  
  296. ["Mesh"] = {
  297. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  298. local Msh = Create(Mesh){
  299. Parent = Part,
  300. Offset = OffSet,
  301. Scale = Scale,
  302. }
  303. if Mesh == "SpecialMesh" then
  304. Msh.MeshType = MeshType
  305. Msh.MeshId = MeshId
  306. end
  307. return Msh
  308. end;
  309. };
  310.  
  311. ["Weld"] = {
  312. Create = function(Parent, Part0, Part1, C0, C1)
  313. local Weld = Create("Weld"){
  314. Parent = Parent,
  315. Part0 = Part0,
  316. Part1 = Part1,
  317. C0 = C0,
  318. C1 = C1,
  319. }
  320. return Weld
  321. end;
  322. };
  323.  
  324. ["Sound"] = {
  325. Create = function(id, par, vol, pit)
  326. coroutine.resume(coroutine.create(function()
  327. local S = Create("Sound"){
  328. Volume = vol,
  329. Name = "EffectSoundo",
  330. Pitch = pit or 1,
  331. SoundId = id,
  332. Parent = par or workspace,
  333. }
  334. wait()
  335. S:play()
  336. game:GetService("Debris"):AddItem(S, 10)
  337. end))
  338. end;
  339. };
  340.  
  341. ["LongSound"] = {
  342. Create = function(id, par, vol, pit)
  343. coroutine.resume(coroutine.create(function()
  344. local S = Create("Sound"){
  345. Volume = vol,
  346. Pitch = pit or 1,
  347. SoundId = id,
  348. Parent = par or workspace,
  349. }
  350. wait()
  351. S:play()
  352. game:GetService("Debris"):AddItem(S, 30)
  353. end))
  354. end;
  355. };
  356.  
  357. ["ParticleEmitter"] = {
  358. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  359. local fp = Create("ParticleEmitter"){
  360. Parent = Parent,
  361. Color = ColorSequence.new(Color1, Color2),
  362. LightEmission = LightEmission,
  363. Size = Size,
  364. Texture = Texture,
  365. Transparency = Transparency,
  366. ZOffset = ZOffset,
  367. Acceleration = Accel,
  368. Drag = Drag,
  369. LockedToPart = LockedToPart,
  370. VelocityInheritance = VelocityInheritance,
  371. EmissionDirection = EmissionDirection,
  372. Enabled = Enabled,
  373. Lifetime = LifeTime,
  374. Rate = Rate,
  375. Rotation = Rotation,
  376. RotSpeed = RotSpeed,
  377. Speed = Speed,
  378. VelocitySpread = VelocitySpread,
  379. }
  380. return fp
  381. end;
  382. };
  383.  
  384. CreateTemplate = {
  385.  
  386. };
  387. }
  388.  
  389.  
  390.  
  391. New = function(Object, Parent, Name, Data)
  392. local Object = Instance.new(Object)
  393. for Index, Value in pairs(Data or {}) do
  394. Object[Index] = Value
  395. end
  396. Object.Parent = Parent
  397. Object.Name = Name
  398. return Object
  399. end
  400. local halocolor = BrickColor.new("Pastel light blue")
  401. local halocolor2 = BrickColor.new("Cool yellow")
  402. local starcolor = BrickColor.new("Bright yellow")
  403. local lunacolor = BrickColor.new("Navy blue")
  404. local lunacolor2 = BrickColor.new("Bright blue")
  405. local wepcolor = BrickColor.new("Really black")
  406. local maincolor = BrickColor.new("Really black")
  407. local m = Instance.new("Model",char)
  408. local m2 = Instance.new("Model",char)
  409. local m3 = Instance.new("Model",char)
  410. local mw1 = Instance.new("Model",char)
  411. local mw2 = Instance.new("Model",char)
  412.  
  413. local extrawingmod1 = Instance.new("Model",char)
  414. local extrawingmod2 = Instance.new("Model",char)
  415.  
  416. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  417. local p = Instance.new("Part")
  418. p.TopSurface = 0
  419. p.BottomSurface = 0
  420. p.Parent = parent
  421. p.Size = Vector3.new(0.1,0.1,0.1)
  422. p.Transparency = transparency
  423. p.Reflectance = reflectance
  424. p.CanCollide = false
  425. p.Locked = true
  426. p.BrickColor = brickcolor
  427. p.Material = material
  428. return p
  429. end
  430.  
  431. function CreateMesh(parent,meshtype,x1,y1,z1)
  432. local mesh = Instance.new("SpecialMesh",parent)
  433. mesh.MeshType = meshtype
  434. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  435. return mesh
  436. end
  437.  
  438. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  439. local mesh = Instance.new("SpecialMesh",parent)
  440. mesh.MeshType = "FileMesh"
  441. mesh.MeshId = meshid
  442. mesh.Scale = Vector3.new(x1,y1,z1)
  443. return mesh
  444. end
  445.  
  446.  
  447. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  448. local mesh = Instance.new("SpecialMesh",parent)
  449. mesh.MeshType = "FileMesh"
  450. mesh.MeshId = meshid
  451. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  452. mesh.Scale = Vector3.new(x1,y1,z1)
  453. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  454. return mesh
  455. end
  456.  
  457. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  458. local weld = Instance.new("Weld")
  459. weld.Parent = parent
  460. weld.Part0 = part0
  461. weld.Part1 = part1
  462. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  463. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  464. return weld
  465. end
  466.  
  467.  
  468. --------------
  469. local secondchar = Instance.new("Model",char)
  470. local GhostCol = BrickColor.new("Really red")
  471. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  472. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  473. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  474.  
  475. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  476. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  477. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  478.  
  479. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  480. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  481. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  482.  
  483. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  484. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  485. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  486.  
  487. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  488. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  489. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  490.  
  491. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  492. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  493. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  494. --------------
  495. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  496. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  497. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  498. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  499.  
  500. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  501. CreateMesh(handle,"Brick",0,0,0)
  502. 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))
  503. local valuaring = 10
  504. for i = 0, 49 do
  505. valuaring = valuaring + 10
  506. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  507. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  508. 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))
  509. end
  510.  
  511. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  512. CreateMesh(handle,"Brick",0,0,0)
  513. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  514. local valuaring = 10
  515. for i = 0, 49 do
  516. valuaring = valuaring + 10
  517. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  518. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  519. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  520. end
  521.  
  522.  
  523. local handle = CreateParta(m,1,1,"Neon",maincolor)
  524. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  525. 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))
  526.  
  527. --- Left wing.
  528.  
  529. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  530. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  531. 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))
  532.  
  533. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  534. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  535. 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))
  536. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  537. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  538. 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))
  539. A0 = Instance.new('Attachment',wed)
  540. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  541. CreateMesh(wed,"Wedge",0.05,0.5,3)
  542. 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))
  543. A1 = Instance.new('Attachment',wed)
  544. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  545. CreateMesh(wed,"Wedge",0.05,3,0.5)
  546. 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))
  547.  
  548. tl1 = Instance.new('Trail',wed)
  549. tl1.Attachment0 = A0
  550. tl1.Attachment1 = A1
  551. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  552. tl1.LightEmission = 1
  553. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  554. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  555. tl1.Lifetime = 0.6
  556.  
  557.  
  558. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  559. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  560. 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))
  561.  
  562. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  563. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  564. 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))
  565. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  566. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  567. 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))
  568. A0 = Instance.new('Attachment',wed)
  569. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  570. CreateMesh(wed,"Wedge",0.05,0.5,3)
  571. 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))
  572. A1 = Instance.new('Attachment',wed)
  573. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  574. CreateMesh(wed,"Wedge",0.05,3,0.5)
  575. 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))
  576.  
  577. tl2 = Instance.new('Trail',wed)
  578. tl2.Attachment0 = A0
  579. tl2.Attachment1 = A1
  580. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  581. tl2.LightEmission = 1
  582. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  583. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  584. tl2.Lifetime = 0.6
  585.  
  586. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  587. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  588. 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))
  589.  
  590. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  591. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  592. 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))
  593. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  594. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  595. 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))
  596. A0 = Instance.new('Attachment',wed)
  597. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  598. CreateMesh(wed,"Wedge",0.05,0.5,3)
  599. 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))
  600. A1 = Instance.new('Attachment',wed)
  601. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  602. CreateMesh(wed,"Wedge",0.05,3,0.5)
  603. 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))
  604.  
  605. tl3 = Instance.new('Trail',wed)
  606. tl3.Attachment0 = A0
  607. tl3.Attachment1 = A1
  608. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  609. tl3.LightEmission = 1
  610. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  611. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  612. tl3.Lifetime = 0.6
  613.  
  614. tl1.Enabled = false
  615. tl2.Enabled = false
  616. tl3.Enabled = false
  617. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  618. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  619. 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))
  620.  
  621. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  622. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  623. 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))
  624. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  625. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  626. 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))
  627. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  628. CreateMesh(wed,"Wedge",0.05,0.5,3)
  629. 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))
  630. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  631. CreateMesh(wed,"Wedge",0.05,3,0.5)
  632. 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))
  633.  
  634. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  635. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  636. 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))
  637.  
  638. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  639. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  640. 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))
  641. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  642. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  643. 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))
  644. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  645. CreateMesh(wed,"Wedge",0.05,0.5,3)
  646. 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))
  647. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  648. CreateMesh(wed,"Wedge",0.05,3,0.5)
  649. 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))
  650.  
  651. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  652. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  653. 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))
  654.  
  655. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  656. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  657. 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))
  658. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  659. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  660. 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))
  661. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  662. CreateMesh(wed,"Wedge",0.05,0.5,3)
  663. 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))
  664. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  665. CreateMesh(wed,"Wedge",0.05,3,0.5)
  666. 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))
  667.  
  668. -- Right wing.
  669.  
  670. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  671. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  672. 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))
  673.  
  674. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  675. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  676. 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))
  677. A0 = Instance.new('Attachment',wed)
  678. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  679. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  680. 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))
  681. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  682. CreateMesh(wed,"Wedge",0.05,0.5,3)
  683. 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))
  684. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  685. CreateMesh(wed,"Wedge",0.05,3,0.5)
  686. 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))
  687. A1 = Instance.new('Attachment',wed)
  688.  
  689. tr1 = Instance.new('Trail',wed)
  690. tr1.Attachment0 = A0
  691. tr1.Attachment1 = A1
  692. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  693. tr1.LightEmission = 1
  694. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  695. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  696. tr1.Lifetime = 0.6
  697.  
  698. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  699. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  700. 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))
  701.  
  702. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  703. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  704. 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))
  705. A0 = Instance.new('Attachment',wed)
  706. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  707. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  708. 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))
  709. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  710. CreateMesh(wed,"Wedge",0.05,0.5,3)
  711. 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))
  712. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  713. CreateMesh(wed,"Wedge",0.05,3,0.5)
  714. 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))
  715. A1 = Instance.new('Attachment',wed)
  716.  
  717. tr2 = Instance.new('Trail',wed)
  718. tr2.Attachment0 = A0
  719. tr2.Attachment1 = A1
  720. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  721. tr2.LightEmission = 1
  722. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  723. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  724. tr2.Lifetime = 0.6
  725.  
  726. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  727. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  728. 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))
  729.  
  730. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  731. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  732. 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))
  733. A0 = Instance.new('Attachment',wed)
  734. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  735. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  736. 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))
  737. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  738. CreateMesh(wed,"Wedge",0.05,0.5,3)
  739. 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))
  740. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  741. CreateMesh(wed,"Wedge",0.05,3,0.5)
  742. 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))
  743. A1 = Instance.new('Attachment',wed)
  744.  
  745. tr3 = Instance.new('Trail',wed)
  746. tr3.Attachment0 = A0
  747. tr3.Attachment1 = A1
  748. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  749. tr3.LightEmission = 1
  750. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  751. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  752. tr3.Lifetime = 0.6
  753.  
  754.  
  755. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  756. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  757. 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))
  758.  
  759. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  761. 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))
  762. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  763. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  764. 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))
  765. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  766. CreateMesh(wed,"Wedge",0.05,0.5,3)
  767. 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))
  768. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  769. CreateMesh(wed,"Wedge",0.05,3,0.5)
  770. 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))
  771.  
  772. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  773. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  774. 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))
  775.  
  776. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  777. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  778. 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))
  779. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  780. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  781. 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))
  782. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  783. CreateMesh(wed,"Wedge",0.05,0.5,3)
  784. 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))
  785. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  786. CreateMesh(wed,"Wedge",0.05,3,0.5)
  787. 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))
  788.  
  789. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  790. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  791. 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))
  792.  
  793. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  794. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  795. 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))
  796. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  797. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  798. 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))
  799. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,3)
  801. 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))
  802. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05,3,0.5)
  804. 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))
  805.  
  806. ---- HERES THE RING
  807.  
  808.  
  809. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  810. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  811. 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))
  812. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  813. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  814. 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))
  815. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  816. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  817. 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))
  818.  
  819.  
  820. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  821. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  822. 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))
  823.  
  824. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  825. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  826. 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))
  827.  
  828.  
  829.  
  830. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  831. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  832. 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))
  833.  
  834. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  835. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  836. 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))
  837.  
  838. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  839. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  840. 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))
  841.  
  842. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  843. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  844. 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))
  845. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  846. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  847. 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))
  848.  
  849. --- second ring
  850.  
  851. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  852. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  853. 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))
  854. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  855. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  856. 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))
  857. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  858. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  859. 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))
  860.  
  861. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  862. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  863. 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))
  864.  
  865. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  866. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  867. 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))
  868.  
  869.  
  870.  
  871. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  872. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  873. 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))
  874.  
  875. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  876. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  877. 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))
  878.  
  879. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  880. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  881. 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))
  882.  
  883. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  884. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  885. 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))
  886. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  887. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  888. 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))]]--
  889.  
  890.  
  891.  
  892. for i, v in pairs(m:GetChildren()) do
  893. if v:IsA("Part") then
  894. v.BrickColor = BrickColor.new("Really black")
  895. v.Material = "Glass"
  896. end
  897. end
  898. for i, v in pairs(m2:GetChildren()) do
  899. if v:IsA("Part") then
  900. v.BrickColor = BrickColor.new("Crimson")
  901. v.Material = "Granite"
  902. end
  903. end
  904. for i, v in pairs(m3:GetChildren()) do
  905. if v:IsA("Part") then
  906. v.BrickColor = BrickColor.new("Really red")
  907. v.Material = "Neon"
  908. end
  909. end
  910. for i, v in pairs(mw2:GetChildren()) do
  911. if v:IsA("Part") then
  912. v.BrickColor = BrickColor.new("Really red")
  913. v.Material = "Neon"
  914. end
  915. end
  916. for i, v in pairs(mw1:GetChildren()) do
  917. if v:IsA("Part") then
  918. v.Transparency = 1
  919. v.BrickColor = BrickColor.new("Really red")
  920. v.Material = "Neon"
  921. end
  922. end
  923. for i, v in pairs(extrawingmod1:GetChildren()) do
  924. if v:IsA("Part") then
  925. v.Transparency = 1
  926. v.BrickColor = BrickColor.new("White")
  927. v.Material = "Neon"
  928. end
  929. end
  930. for i, v in pairs(extrawingmod2:GetChildren()) do
  931. if v:IsA("Part") then
  932. v.Transparency = 1
  933. v.BrickColor = BrickColor.new("White")
  934. v.Material = "Neon"
  935. end
  936. end
  937. local MAINRUINCOLOR = BrickColor.new("Really red")
  938. ------
  939.  
  940.  
  941. function RemoveOutlines(part)
  942. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  943. end
  944. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  945. local Part = Create("Part")({
  946. Parent = Parent,
  947. Reflectance = Reflectance,
  948. Transparency = Transparency,
  949. CanCollide = false,
  950. Locked = true,
  951. BrickColor = BrickColor.new(tostring(BColor)),
  952. Name = Name,
  953. Size = Size,
  954. Material = Material
  955. })
  956. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  957. RemoveOutlines(Part)
  958. return Part
  959. end
  960. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  961. local Msh = Create(Mesh)({
  962. Parent = Part,
  963. Offset = OffSet,
  964. Scale = Scale
  965. })
  966. if Mesh == "SpecialMesh" then
  967. Msh.MeshType = MeshType
  968. Msh.MeshId = MeshId
  969. end
  970. return Msh
  971. end
  972. function CreateWeld(Parent, Part0, Part1, C0, C1)
  973. local Weld = Create("Weld")({
  974. Parent = Parent,
  975. Part0 = Part0,
  976. Part1 = Part1,
  977. C0 = C0,
  978. C1 = C1
  979. })
  980. return Weld
  981. end
  982.  
  983. Player=game:GetService("Players").LocalPlayer
  984. Character=Player.Character
  985. PlayerGui=Player.PlayerGui
  986. Backpack=Player.Backpack
  987. Torso=Character.Torso
  988. Head=Character.Head
  989. Humanoid=Character.Humanoid
  990. m=Instance.new('Model',Character)
  991. LeftArm=Character["Left Arm"]
  992. LeftLeg=Character["Left Leg"]
  993. RightArm=Character["Right Arm"]
  994. RightLeg=Character["Right Leg"]
  995. LS=Torso["Left Shoulder"]
  996. LH=Torso["Left Hip"]
  997. RS=Torso["Right Shoulder"]
  998. RH=Torso["Right Hip"]
  999. Face = Head.face
  1000. Neck=Torso.Neck
  1001. it=Instance.new
  1002. attacktype=1
  1003. vt=Vector3.new
  1004. cf=CFrame.new
  1005. euler=CFrame.fromEulerAnglesXYZ
  1006. angles=CFrame.Angles
  1007. cloaked=false
  1008. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1009. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1010. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1011. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1012. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1013. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1014. RootPart=Character.HumanoidRootPart
  1015. RootJoint=RootPart.RootJoint
  1016. RootCF=euler(-1.57,0,3.14)
  1017. attack = false
  1018. attackdebounce = false
  1019. deb=false
  1020. equipped=true
  1021. hand=false
  1022. MMouse=nil
  1023. combo=0
  1024. mana=0
  1025. trispeed=.2
  1026. attackmode='none'
  1027. local idle=0
  1028. local Anim="Idle"
  1029. local Effects={}
  1030. local gun=false
  1031. local shoot=false
  1032. local sine = 0
  1033. local change = 1
  1034. player=nil
  1035.  
  1036.  
  1037. local toggleTag = true
  1038. local txt = Instance.new("BillboardGui", Head)
  1039. txt.Adornee = nil
  1040. txt.Name = "NameDetect"
  1041. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1042. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1043. local text = Instance.new("TextLabel", txt)
  1044. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1045. text.FontSize = "Size8"
  1046. text.TextScaled = true
  1047. text.TextTransparency = 0
  1048. text.BackgroundTransparency = 1
  1049. text.TextTransparency = 0
  1050. text.TextStrokeTransparency = 0
  1051. text.Font = "Fantasy"
  1052. text.TextStrokeColor3 = Color3.new(1,0,0)
  1053. text.TextColor3 = Color3.new(0,0,0)
  1054. text.Text = "Mayhem"
  1055.  
  1056. function RecolorTextAndRename(name,col1,col2)
  1057. text.TextStrokeColor3 = col2
  1058. text.TextColor3 = col1
  1059. text.Text = name
  1060. end
  1061. mouse=Player:GetMouse()
  1062. --save shoulders
  1063. RSH, LSH=nil, nil
  1064. --welds
  1065. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1066. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1067. LH=Torso["Left Hip"]
  1068. RH=Torso["Right Hip"]
  1069. TorsoColor=Torso.BrickColor
  1070. function NoOutline(Part)
  1071. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1072. end
  1073. player=Player
  1074. ch=Character
  1075. RSH=ch.Torso["Right Shoulder"]
  1076. LSH=ch.Torso["Left Shoulder"]
  1077. --
  1078. RSH.Parent=nil
  1079. LSH.Parent=nil
  1080. --
  1081. RW.Name="Right Shoulder"
  1082. RW.Part0=ch.Torso
  1083. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1084. RW.C1=cf(0, 0.5, 0)
  1085. RW.Part1=ch["Right Arm"]
  1086. RW.Parent=ch.Torso
  1087. --
  1088. LW.Name="Left Shoulder"
  1089. LW.Part0=ch.Torso
  1090. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1091. LW.C1=cf(0, 0.5, 0)
  1092. LW.Part1=ch["Left Arm"]
  1093. LW.Parent=ch.Torso
  1094.  
  1095. local Stats=Instance.new("BoolValue")
  1096. Stats.Name="Stats"
  1097. Stats.Parent=Character
  1098. local Atk=Instance.new("NumberValue")
  1099. Atk.Name="Damage"
  1100. Atk.Parent=Stats
  1101. Atk.Value=1
  1102. local Def=Instance.new("NumberValue")
  1103. Def.Name="Defense"
  1104. Def.Parent=Stats
  1105. Def.Value=1
  1106. local Speed=Instance.new("NumberValue")
  1107. Speed.Name="Speed"
  1108. Speed.Parent=Stats
  1109. Speed.Value=1
  1110. local Mvmt=Instance.new("NumberValue")
  1111. Mvmt.Name="Movement"
  1112. Mvmt.Parent=Stats
  1113. Mvmt.Value=1
  1114.  
  1115. local donum=0
  1116.  
  1117.  
  1118. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1119. local fp=it("Part")
  1120. fp.formFactor=formfactor
  1121. fp.Parent=parent
  1122. fp.Reflectance=reflectance
  1123. fp.Transparency=transparency
  1124. fp.CanCollide=false
  1125. fp.Locked=true
  1126. fp.BrickColor=brickcolor
  1127. fp.Name=name
  1128. fp.Size=size
  1129. fp.Position=Torso.Position
  1130. NoOutline(fp)
  1131. fp.Material="SmoothPlastic"
  1132. fp:BreakJoints()
  1133. return fp
  1134. end
  1135.  
  1136. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1137. local mesh=it(Mesh)
  1138. mesh.Parent=part
  1139. if Mesh=="SpecialMesh" then
  1140. mesh.MeshType=meshtype
  1141. if meshid~="nil" then
  1142. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1143. end
  1144. end
  1145. mesh.Offset=offset
  1146. mesh.Scale=scale
  1147. return mesh
  1148. end
  1149.  
  1150. function weld(parent,part0,part1,c0)
  1151. local weld=it("Weld")
  1152. weld.Parent=parent
  1153. weld.Part0=part0
  1154. weld.Part1=part1
  1155. weld.C0=c0
  1156. return weld
  1157. end
  1158.  
  1159. local Color1=Torso.BrickColor
  1160.  
  1161. local bodvel=Instance.new("BodyVelocity")
  1162. local bg=Instance.new("BodyGyro")
  1163.  
  1164. function swait(num)
  1165. if num==0 or num==nil then
  1166. game:service'RunService'.Stepped:wait(0)
  1167. else
  1168. for i=0,num do
  1169. game:service'RunService'.Stepped:wait(0)
  1170. end
  1171. end
  1172. end
  1173.  
  1174. -------- RAINBOW LEAVE IT TO ME
  1175. local r = 255
  1176. local g = 0
  1177. local b = 0
  1178. coroutine.resume(coroutine.create(function()
  1179. while wait() do
  1180. for i = 0, 254/5 do
  1181. swait()
  1182. g = g + 5
  1183. end
  1184. for i = 0, 254/5 do
  1185. swait()
  1186. r = r - 5
  1187. end
  1188. for i = 0, 254/5 do
  1189. swait()
  1190. b = b + 5
  1191. end
  1192. for i = 0, 254/5 do
  1193. swait()
  1194. g = g - 5
  1195. end
  1196. for i = 0, 254/5 do
  1197. swait()
  1198. r = r + 5
  1199. end
  1200. for i = 0, 254/5 do
  1201. swait()
  1202. b = b - 5
  1203. end
  1204. end
  1205. end))
  1206.  
  1207.  
  1208. so = function(id,par,vol,pit)
  1209. coroutine.resume(coroutine.create(function()
  1210. local sou = Instance.new("Sound",par or workspace)
  1211. sou.Volume=vol
  1212. sou.Pitch=pit or 1
  1213. sou.SoundId=id
  1214. swait()
  1215. sou:play()
  1216. game:GetService("Debris"):AddItem(sou,6)
  1217. end))
  1218. end
  1219.  
  1220. function clerp(a,b,t)
  1221. local qa = {QuaternionFromCFrame(a)}
  1222. local qb = {QuaternionFromCFrame(b)}
  1223. local ax, ay, az = a.x, a.y, a.z
  1224. local bx, by, bz = b.x, b.y, b.z
  1225. local _t = 1-t
  1226. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1227. end
  1228.  
  1229. function QuaternionFromCFrame(cf)
  1230. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1231. local trace = m00 + m11 + m22
  1232. if trace > 0 then
  1233. local s = math.sqrt(1 + trace)
  1234. local recip = 0.5/s
  1235. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1236. else
  1237. local i = 0
  1238. if m11 > m00 then
  1239. i = 1
  1240. end
  1241. if m22 > (i == 0 and m00 or m11) then
  1242. i = 2
  1243. end
  1244. if i == 0 then
  1245. local s = math.sqrt(m00-m11-m22+1)
  1246. local recip = 0.5/s
  1247. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1248. elseif i == 1 then
  1249. local s = math.sqrt(m11-m22-m00+1)
  1250. local recip = 0.5/s
  1251. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1252. elseif i == 2 then
  1253. local s = math.sqrt(m22-m00-m11+1)
  1254. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1255. end
  1256. end
  1257. end
  1258.  
  1259. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1260. local xs, ys, zs = x + x, y + y, z + z
  1261. local wx, wy, wz = w*xs, w*ys, w*zs
  1262. local xx = x*xs
  1263. local xy = x*ys
  1264. local xz = x*zs
  1265. local yy = y*ys
  1266. local yz = y*zs
  1267. local zz = z*zs
  1268. 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))
  1269. end
  1270.  
  1271. function QuaternionSlerp(a, b, t)
  1272. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1273. local startInterp, finishInterp;
  1274. if cosTheta >= 0.0001 then
  1275. if (1 - cosTheta) > 0.0001 then
  1276. local theta = math.acos(cosTheta)
  1277. local invSinTheta = 1/math.sin(theta)
  1278. startInterp = math.sin((1-t)*theta)*invSinTheta
  1279. finishInterp = math.sin(t*theta)*invSinTheta
  1280. else
  1281. startInterp = 1-t
  1282. finishInterp = t
  1283. end
  1284. else
  1285. if (1+cosTheta) > 0.0001 then
  1286. local theta = math.acos(-cosTheta)
  1287. local invSinTheta = 1/math.sin(theta)
  1288. startInterp = math.sin((t-1)*theta)*invSinTheta
  1289. finishInterp = math.sin(t*theta)*invSinTheta
  1290. else
  1291. startInterp = t-1
  1292. finishInterp = t
  1293. end
  1294. end
  1295. 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
  1296. end
  1297.  
  1298. local function CFrameFromTopBack(at, top, back)
  1299. local right = top:Cross(back)
  1300. return CFrame.new(at.x, at.y, at.z,
  1301. right.x, top.x, back.x,
  1302. right.y, top.y, back.y,
  1303. right.z, top.z, back.z)
  1304. end
  1305.  
  1306. function Triangle(a, b, c)
  1307. local edg1 = (c-a):Dot((b-a).unit)
  1308. local edg2 = (a-b):Dot((c-b).unit)
  1309. local edg3 = (b-c):Dot((a-c).unit)
  1310. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1311. a, b, c = a, b, c
  1312. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1313. a, b, c = b, c, a
  1314. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1315. a, b, c = c, a, b
  1316. else
  1317. assert(false, "unreachable")
  1318. end
  1319.  
  1320. local len1 = (c-a):Dot((b-a).unit)
  1321. local len2 = (b-a).magnitude - len1
  1322. local width = (a + (b-a).unit*len1 - c).magnitude
  1323.  
  1324. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1325.  
  1326. local list = {}
  1327.  
  1328. if len1 > 0.01 then
  1329. local w1 = Instance.new('WedgePart', m)
  1330. game:GetService("Debris"):AddItem(w1,5)
  1331. w1.Material = "SmoothPlastic"
  1332. w1.FormFactor = 'Custom'
  1333. w1.BrickColor = BrickColor.new("Really red")
  1334. w1.Transparency = 0
  1335. w1.Reflectance = 0
  1336. w1.Material = "SmoothPlastic"
  1337. w1.CanCollide = false
  1338. local l1 = Instance.new("PointLight",w1)
  1339. l1.Color = Color3.new(170,0,0)
  1340. NoOutline(w1)
  1341. local sz = Vector3.new(0.2, width, len1)
  1342. w1.Size = sz
  1343. local sp = Instance.new("SpecialMesh",w1)
  1344. sp.MeshType = "Wedge"
  1345. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1346. w1:BreakJoints()
  1347. w1.Anchored = true
  1348. w1.Parent = workspace
  1349. w1.Transparency = 0.7
  1350. table.insert(Effects,{w1,"Disappear",.01})
  1351. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1352. table.insert(list,w1)
  1353. end
  1354.  
  1355. if len2 > 0.01 then
  1356. local w2 = Instance.new('WedgePart', m)
  1357. game:GetService("Debris"):AddItem(w2,5)
  1358. w2.Material = "SmoothPlastic"
  1359. w2.FormFactor = 'Custom'
  1360. w2.BrickColor = BrickColor.new("Really red")
  1361. w2.Transparency = 0
  1362. w2.Reflectance = 0
  1363. w2.Material = "SmoothPlastic"
  1364. w2.CanCollide = false
  1365. local l2 = Instance.new("PointLight",w2)
  1366. l2.Color = Color3.new(170,0,0)
  1367. NoOutline(w2)
  1368. local sz = Vector3.new(0.2, width, len2)
  1369. w2.Size = sz
  1370. local sp = Instance.new("SpecialMesh",w2)
  1371. sp.MeshType = "Wedge"
  1372. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1373. w2:BreakJoints()
  1374. w2.Anchored = true
  1375. w2.Parent = workspace
  1376. w2.Transparency = 0.7
  1377. table.insert(Effects,{w2,"Disappear",.01})
  1378. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1379. table.insert(list,w2)
  1380. end
  1381. return unpack(list)
  1382. end
  1383.  
  1384.  
  1385. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1386. if hit.Parent == nil then
  1387. return
  1388. end
  1389. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1390. for _, v in pairs(hit.Parent:children()) do
  1391. if v:IsA("Humanoid") then
  1392. h = v
  1393. end
  1394. end
  1395. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1396. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1397. return
  1398. end
  1399. local c = Create("ObjectValue")({
  1400. Name = "creator",
  1401. Value = game:service("Players").LocalPlayer,
  1402. Parent = h
  1403. })
  1404. game:GetService("Debris"):AddItem(c, 0.5)
  1405. if HitSound ~= nil and HitPitch ~= nil then
  1406. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1407. end
  1408. local Damage = math.random(minim, maxim)
  1409. local blocked = false
  1410. local block = hit.Parent:findFirstChild("Block")
  1411. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1412. blocked = true
  1413. block.Value = block.Value - 1
  1414. print(block.Value)
  1415. end
  1416. if blocked == false then
  1417. HitHealth = h.Health
  1418. h.Health = h.Health - Damage
  1419. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1420. print("gained kill")
  1421. end
  1422. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1423. else
  1424. h.Health = h.Health - Damage / 2
  1425. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1426. end
  1427. if Type == "Knockdown" then
  1428. local hum = hit.Parent.Humanoid
  1429. hum.PlatformStand = true
  1430. coroutine.resume(coroutine.create(function(HHumanoid)
  1431. swait(1)
  1432. HHumanoid.PlatformStand = false
  1433. end), hum)
  1434. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1435. local bodvol = Create("BodyVelocity")({
  1436. velocity = angle * knockback,
  1437. P = 5000,
  1438. maxForce = Vector3.new(8000, 8000, 8000),
  1439. Parent = hit
  1440. })
  1441. local rl = Create("BodyAngularVelocity")({
  1442. P = 3000,
  1443. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1444. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1445. Parent = hit
  1446. })
  1447. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1448. game:GetService("Debris"):AddItem(rl, 0.5)
  1449. elseif Type == "Normal" then
  1450. local vp = Create("BodyVelocity")({
  1451. P = 500,
  1452. maxForce = Vector3.new(math.huge, 0, math.huge),
  1453. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1454. })
  1455. if knockback > 0 then
  1456. vp.Parent = hit.Parent.Head
  1457. end
  1458. game:GetService("Debris"):AddItem(vp, 0.5)
  1459. elseif Type == "Up" then
  1460. local bodyVelocity = Create("BodyVelocity")({
  1461. velocity = Vector3.new(0, 20, 0),
  1462. P = 5000,
  1463. maxForce = Vector3.new(8000, 8000, 8000),
  1464. Parent = hit
  1465. })
  1466. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1467. local bodyVelocity = Create("BodyVelocity")({
  1468. velocity = Vector3.new(0, 20, 0),
  1469. P = 5000,
  1470. maxForce = Vector3.new(8000, 8000, 8000),
  1471. Parent = hit
  1472. })
  1473. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1474. elseif Type == "Leech" then
  1475. local hum = hit.Parent.Humanoid
  1476. if hum ~= nil then
  1477. for i = 0, 2 do
  1478. 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)
  1479. end
  1480. Humanoid.Health = Humanoid.Health + 10
  1481. end
  1482. elseif Type == "UpKnock" then
  1483. local hum = hit.Parent.Humanoid
  1484. hum.PlatformStand = true
  1485. if hum ~= nil then
  1486. hitr = true
  1487. end
  1488. coroutine.resume(coroutine.create(function(HHumanoid)
  1489. swait(5)
  1490. HHumanoid.PlatformStand = false
  1491. hitr = false
  1492. end), hum)
  1493. local bodyVelocity = Create("BodyVelocity")({
  1494. velocity = Vector3.new(0, 20, 0),
  1495. P = 5000,
  1496. maxForce = Vector3.new(8000, 8000, 8000),
  1497. Parent = hit
  1498. })
  1499. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1500. local bodyVelocity = Create("BodyVelocity")({
  1501. velocity = Vector3.new(0, 20, 0),
  1502. P = 5000,
  1503. maxForce = Vector3.new(8000, 8000, 8000),
  1504. Parent = hit
  1505. })
  1506. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1507. elseif Type == "Snare" then
  1508. local bp = Create("BodyPosition")({
  1509. P = 2000,
  1510. D = 100,
  1511. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1512. position = hit.Parent.Torso.Position,
  1513. Parent = hit.Parent.Torso
  1514. })
  1515. game:GetService("Debris"):AddItem(bp, 1)
  1516. elseif Type == "Slashnare" then
  1517. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1518. for i = 1, math.random(4, 5) do
  1519. 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)
  1520. end
  1521. local bp = Create("BodyPosition")({
  1522. P = 2000,
  1523. D = 100,
  1524. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1525. position = hit.Parent.Torso.Position,
  1526. Parent = hit.Parent.Torso
  1527. })
  1528. game:GetService("Debris"):AddItem(bp, 1)
  1529. elseif Type == "Spike" then
  1530. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1531. local bp = Create("BodyPosition")({
  1532. P = 2000,
  1533. D = 100,
  1534. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1535. position = hit.Parent.Torso.Position,
  1536. Parent = hit.Parent.Torso
  1537. })
  1538. game:GetService("Debris"):AddItem(bp, 1)
  1539. elseif Type == "Freeze" then
  1540. local BodPos = Create("BodyPosition")({
  1541. P = 50000,
  1542. D = 1000,
  1543. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1544. position = hit.Parent.Torso.Position,
  1545. Parent = hit.Parent.Torso
  1546. })
  1547. local BodGy = Create("BodyGyro")({
  1548. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1549. P = 20000,
  1550. Parent = hit.Parent.Torso,
  1551. cframe = hit.Parent.Torso.CFrame
  1552. })
  1553. hit.Parent.Torso.Anchored = true
  1554. coroutine.resume(coroutine.create(function(Part)
  1555. swait(1.5)
  1556. Part.Anchored = false
  1557. end), hit.Parent.Torso)
  1558. game:GetService("Debris"):AddItem(BodPos, 3)
  1559. game:GetService("Debris"):AddItem(BodGy, 3)
  1560. end
  1561. local debounce = Create("BoolValue")({
  1562. Name = "DebounceHit",
  1563. Parent = hit.Parent,
  1564. Value = true
  1565. })
  1566. game:GetService("Debris"):AddItem(debounce, Delay)
  1567. c = Instance.new("ObjectValue")
  1568. c.Name = "creator"
  1569. c.Value = Player
  1570. c.Parent = h
  1571. game:GetService("Debris"):AddItem(c, 0.5)
  1572. end
  1573. end
  1574. function ShowDamage(Pos, Text, Time, Color)
  1575. local Rate = 0.03333333333333333
  1576. local Pos = Pos or Vector3.new(0, 0, 0)
  1577. local Text = Text or ""
  1578. local Time = Time or 2
  1579. local Color = Color or Color3.new(1, 0, 1)
  1580. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1581. EffectPart.Anchored = true
  1582. local BillboardGui = Create("BillboardGui")({
  1583. Size = UDim2.new(3, 0, 3, 0),
  1584. Adornee = EffectPart,
  1585. Parent = EffectPart
  1586. })
  1587. local TextLabel = Create("TextLabel")({
  1588. BackgroundTransparency = 1,
  1589. Size = UDim2.new(1, 0, 1, 0),
  1590. Text = Text,
  1591. TextColor3 = Color,
  1592. TextScaled = true,
  1593. Font = Enum.Font.ArialBold,
  1594. Parent = BillboardGui
  1595. })
  1596. game.Debris:AddItem(EffectPart, Time + 0.1)
  1597. EffectPart.Parent = game:GetService("Workspace")
  1598. delay(0, function()
  1599. local Frames = Time / Rate
  1600. for Frame = 1, Frames do
  1601. wait(Rate)
  1602. local Percent = Frame / Frames
  1603. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1604. TextLabel.TextTransparency = Percent
  1605. end
  1606. if EffectPart and EffectPart.Parent then
  1607. EffectPart:Destroy()
  1608. end
  1609. end)
  1610. end
  1611. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1612. for _, c in pairs(workspace:children()) do
  1613. local hum = c:findFirstChildOfClass("Humanoid")
  1614. if hum ~= nil then
  1615. local head = c:findFirstChild("Head")
  1616. if head ~= nil then
  1617. local targ = head.Position - Part.Position
  1618. local mag = targ.magnitude
  1619. if magni >= mag and c.Name ~= Player.Name then
  1620. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1621. end
  1622. end
  1623. end
  1624. end
  1625. end
  1626.  
  1627. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1628. for _, c in pairs(workspace:children()) do
  1629. local hum = c:findFirstChild("Humanoid")
  1630. if hum ~= nil then
  1631. local head = c:findFirstChild("Torso")
  1632. if head ~= nil then
  1633. local targ = head.Position - Part.Position
  1634. local mag = targ.magnitude
  1635. if magni >= mag and c.Name ~= Player.Name then
  1636. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1637. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1638. end
  1639. end
  1640. end
  1641. end
  1642. end
  1643.  
  1644. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1645. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1646. end
  1647.  
  1648. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1649. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1650. prt.Anchored=true
  1651. prt.CFrame=cframe
  1652. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1653. --http://www.roblox.com/asset/?id=4770560
  1654. game:GetService("Debris"):AddItem(prt,2)
  1655. CF=prt.CFrame
  1656. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1657. for i=0,1,0.2 do
  1658. wait()
  1659. Part.CFrame=CF*cf(0,0,-0.4)
  1660. end
  1661. for i=0,1,delay do
  1662. wait()
  1663. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1664. Mesh.Scale=Mesh.Scale
  1665. end
  1666. for i=0,1,0.1 do
  1667. wait()
  1668. Part.Transparency=i
  1669. end
  1670. Part.Parent=nil
  1671. end),prt,msh,CF)
  1672. end
  1673.  
  1674. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1675. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1676. prt.Anchored=true
  1677. prt.Material = "Neon"
  1678. prt.CFrame=cframe
  1679. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1680. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1681. game:GetService("Debris"):AddItem(prt,5)
  1682. coroutine.resume(coroutine.create(function(Part,Mesh)
  1683. for i=0,1,delay do
  1684. swait()
  1685. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1686. Part.Transparency=i
  1687. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1688. end
  1689. Part.Parent=nil
  1690. end),prt,msh)
  1691. end
  1692.  
  1693. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1694. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1695. prt.Anchored=true
  1696. prt.Material = "Neon"
  1697. prt.CFrame=cframe
  1698. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1699. game:GetService("Debris"):AddItem(prt,5)
  1700. coroutine.resume(coroutine.create(function(Part,Mesh)
  1701. local rtype = rottype
  1702. for i=0,1,delay do
  1703. swait()
  1704. if rtype == 1 then
  1705. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1706. elseif rtype == 2 then
  1707. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1708. end
  1709. Part.Transparency=i
  1710. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1711. end
  1712. Part.Parent=nil
  1713. end),prt,msh)
  1714. end
  1715.  
  1716. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1717. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1718. prt.Anchored=true
  1719. prt.CFrame=cframe
  1720. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1721. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1722. game:GetService("Debris"):AddItem(prt,5)
  1723. coroutine.resume(coroutine.create(function(Part,Mesh)
  1724. for i=0,1,delay do
  1725. wait()
  1726. Part.Transparency=i
  1727. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1728. end
  1729. Part.Parent=nil
  1730. end),prt,msh)
  1731. end
  1732.  
  1733. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1734. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1735. prt.Anchored=true
  1736. prt.Material = "Neon"
  1737. prt.CFrame=cframe
  1738. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1739. game:GetService("Debris"):AddItem(prt,5)
  1740. coroutine.resume(coroutine.create(function(Part,Mesh)
  1741. local rtype = rottype
  1742. for i=0,1,delay do
  1743. swait()
  1744. if rtype == 1 then
  1745. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1746. elseif rtype == 2 then
  1747. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1748. end
  1749. Part.Transparency=i
  1750. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1751. end
  1752. Part.Parent=nil
  1753. end),prt,msh)
  1754. end
  1755.  
  1756. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1757. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1758. prt.Anchored=true
  1759. prt.Material = "Neon"
  1760. prt.CFrame=cframe
  1761. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1762. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1763. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1764. game:GetService("Debris"):AddItem(prt,5)
  1765. coroutine.resume(coroutine.create(function(Part,Mesh)
  1766. local rtype = rottype
  1767. for i=0,1,delay do
  1768. swait()
  1769. if rtype == 1 then
  1770. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1771. elseif rtype == 2 then
  1772. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1773. end
  1774. dec.Transparency=i
  1775. dec2.Transparency=i
  1776. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1777. end
  1778. Part.Parent=nil
  1779. end),prt,msh)
  1780. end
  1781.  
  1782. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1783. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1784. prt.Anchored=true
  1785. prt.Material = "Neon"
  1786. prt.CFrame=cframe
  1787. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1788. game:GetService("Debris"):AddItem(prt,5)
  1789. coroutine.resume(coroutine.create(function(Part,Mesh)
  1790. local rtype = rottype
  1791. for i=0,1,delay do
  1792. swait()
  1793. if rtype == 1 then
  1794. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1795. elseif rtype == 2 then
  1796. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1797. end
  1798. prt.Transparency=i
  1799. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1800. end
  1801. Part.Parent=nil
  1802. end),prt,msh)
  1803. end
  1804.  
  1805. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1806. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1807. prt.Anchored=true
  1808. prt.Material = "Neon"
  1809. prt.CFrame=cframe
  1810. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1811. game:GetService("Debris"):AddItem(prt,5)
  1812. coroutine.resume(coroutine.create(function(Part,Mesh)
  1813. local rtype = rottype
  1814. for i=0,1,delay do
  1815. swait()
  1816. if rtype == 1 then
  1817. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1818. elseif rtype == 2 then
  1819. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1820. end
  1821. prt.Transparency=i
  1822. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1823. end
  1824. Part.Parent=nil
  1825. end),prt,msh)
  1826. end
  1827.  
  1828. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1829. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1830. prt.Anchored=true
  1831. prt.Material = "Neon"
  1832. prt.CFrame=cframe
  1833. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1834. game:GetService("Debris"):AddItem(prt,5)
  1835. coroutine.resume(coroutine.create(function(Part,Mesh)
  1836. local rtype = rottype
  1837. for i=0,1,delay do
  1838. swait()
  1839. if rtype == 1 then
  1840. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1841. elseif rtype == 2 then
  1842. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1843. end
  1844. prt.Transparency=i
  1845. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1846. end
  1847. Part.Parent=nil
  1848. end),prt,msh)
  1849. end
  1850.  
  1851. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1852. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1853. prt.Anchored=true
  1854. prt.Material = "Neon"
  1855. prt.CFrame=cframe
  1856. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1857. game:GetService("Debris"):AddItem(prt,5)
  1858. coroutine.resume(coroutine.create(function(Part,Mesh)
  1859. local rtype = rottype
  1860. for i=0,1,delay do
  1861. swait()
  1862. if rtype == 1 then
  1863. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1864. elseif rtype == 2 then
  1865. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1866. end
  1867. prt.Transparency=i
  1868. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1869. end
  1870. Part.Parent=nil
  1871. end),prt,msh)
  1872. end
  1873.  
  1874. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1875. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1876. prt.Anchored=false
  1877. prt.CFrame=cframe
  1878. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1879. local wld=weld(prt,prt,Parent,cframe)
  1880. game:GetService("Debris"):AddItem(prt,5)
  1881. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1882. for i=0,1,delay do
  1883. wait()
  1884. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1885. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1886. Part.Transparency=i
  1887. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1888. end
  1889. Part.Parent=nil
  1890. end),prt,msh,wld)
  1891. end
  1892.  
  1893. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1894. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1895. prt.Anchored=false
  1896. prt.CFrame=cframe
  1897. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1898. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1899. game:GetService("Debris"):AddItem(prt,5)
  1900. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1901. for i=0,1,delay do
  1902. wait()
  1903. Weld.C0=euler(i*20,0,0)
  1904. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1905. Part.Transparency=i
  1906. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1907. end
  1908. Part.Parent=nil
  1909. end),prt,msh,wld)
  1910. end
  1911.  
  1912. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1913. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1914. prt.Anchored=true
  1915. prt.CFrame=cframe
  1916. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1917. game:GetService("Debris"):AddItem(prt,2)
  1918. coroutine.resume(coroutine.create(function(Part,Mesh)
  1919. for i=0,1,delay do
  1920. wait()
  1921. Part.CFrame=Part.CFrame
  1922. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1923. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1924. prt2.Anchored=true
  1925. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1926. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1927. game:GetService("Debris"):AddItem(prt2,2)
  1928. coroutine.resume(coroutine.create(function(Part,Mesh)
  1929. for i=0,1,0.1 do
  1930. wait()
  1931. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1932. end
  1933. Part.Parent=nil
  1934. end),prt2,msh2)
  1935. end
  1936. for i=0,1,delay*2 do
  1937. wait()
  1938. Part.CFrame=Part.CFrame
  1939. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1940. end
  1941. Part.Parent=nil
  1942. end),prt,msh)
  1943. end
  1944.  
  1945. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1946. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1947. prt.Anchored=true
  1948. prt.CFrame=cframe
  1949. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1950. game:GetService("Debris"):AddItem(prt,2)
  1951. coroutine.resume(coroutine.create(function(Part,Mesh)
  1952. for i=0,1,delay do
  1953. wait()
  1954. Part.CFrame=Part.CFrame
  1955. Part.Transparency=i
  1956. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1957. end
  1958. Part.Parent=nil
  1959. end),prt,msh)
  1960. end
  1961.  
  1962. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1963. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1964. prt.Anchored=true
  1965. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1966. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1967. game:GetService("Debris"):AddItem(prt,2)
  1968. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1969. CF=Part.CFrame
  1970. Numbb=0
  1971. randnumb=math.random()/10
  1972. rand1=math.random()/10
  1973. for i=0,1,rand1 do
  1974. wait()
  1975. CF=CF*cf(0,math.random()/2,0)
  1976. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1977. Part.CFrame=CF*euler(Numbb,0,0)
  1978. Part.Transparency=i
  1979. Numbb=Numbb+randnumb
  1980. end
  1981. Part.Parent=nil
  1982. end),prt,CF,Numbb,randnumb)
  1983. end
  1984.  
  1985. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1986. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1987. prt.Anchored=true
  1988. prt.CFrame=cframe
  1989. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1990. game:GetService("Debris"):AddItem(prt,5)
  1991. coroutine.resume(coroutine.create(function(Part,Mesh)
  1992. for i=0,1,delay do
  1993. wait()
  1994. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1995. Part.Transparency=i
  1996. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1997. end
  1998. Part.Parent=nil
  1999. end),prt,msh)
  2000. end
  2001.  
  2002. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2003. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2004. prt.Anchored=true
  2005. prt.CFrame=cframe
  2006. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2007. game:GetService("Debris"):AddItem(prt,2)
  2008. coroutine.resume(coroutine.create(function(Part,Mesh)
  2009. for i=0,1,delay do
  2010. wait()
  2011. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2012. Part.Transparency=i
  2013. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2014. end
  2015. Part.Parent=nil
  2016. end),prt,msh)
  2017. end
  2018.  
  2019. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2020. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2021. prt.Anchored=true
  2022. prt.CFrame=cframe*cf(x,y,z)
  2023. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2024. game:GetService("Debris"):AddItem(prt,5)
  2025. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2026. local num=math.random()
  2027. local num2=math.random(-3,2)+math.random()
  2028. local numm=0
  2029. for i=0,1,delay*2 do
  2030. swait()
  2031. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2032. Part.Transparency=i
  2033. numm=numm+0.01
  2034. end
  2035. Part.Parent=nil
  2036. Mesh.Parent=nil
  2037. end),prt,msh,x,y,z)
  2038. end
  2039.  
  2040. function dmgstart(dmg,what)
  2041. hitcon = what.Touched:connect(function(hit)
  2042. local hum = hit.Parent:FindFirstChild("Humanoid")
  2043. if hum and not hum:IsDescendantOf(Character) then
  2044. hum:TakeDamage(dmg)
  2045. end
  2046. end)
  2047. end
  2048.  
  2049. function dmgstop()
  2050. hitcon:disconnect()
  2051. end
  2052.  
  2053. function Cloak()
  2054. Face.Parent=nil
  2055. cloaked=true
  2056. for _,v in pairs(Torso.Parent:children()) do
  2057. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2058. coroutine.resume(coroutine.create(function()
  2059. for i=0,1,0.2 do
  2060. wait()
  2061. v.Transparency=i
  2062. end
  2063. v.Transparency=1
  2064. end))
  2065. end
  2066. if v.className=="Hat" then
  2067. hatp=v.Handle
  2068. coroutine.resume(coroutine.create(function(derp)
  2069. for i=0,1,0.2 do
  2070. wait()
  2071. derp.Transparency=i
  2072. end
  2073. derp.Transparency=1
  2074. end),hatp)
  2075. end
  2076. end
  2077. for _,v in pairs(m:children()) do
  2078. if v.className=="Part" then
  2079. coroutine.resume(coroutine.create(function()
  2080. for i=0,1,0.2 do
  2081. wait()
  2082. v.Transparency=i
  2083. end
  2084. v.Transparency=1
  2085. end))
  2086. end
  2087. end
  2088. end
  2089.  
  2090. function UnCloak()
  2091. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2092. Face.Parent=Head
  2093. cloaked=false
  2094. for _,v in pairs(Torso.Parent:children()) do
  2095. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2096. coroutine.resume(coroutine.create(function()
  2097. for i=0,1,0.1 do
  2098. wait()
  2099. v.Transparency=v.Transparency-0.1
  2100. end
  2101. v.Transparency=0
  2102. end))
  2103. end
  2104. if v.className=="Hat" then
  2105. hatp=v.Handle
  2106. coroutine.resume(coroutine.create(function(derp)
  2107. for i=0,1,0.1 do
  2108. wait()
  2109. derp.Transparency=derp.Transparency-0.1
  2110. end
  2111. derp.Transparency=0
  2112. end),hatp)
  2113. end
  2114. end
  2115. for _,v in pairs(m:children()) do
  2116. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2117. coroutine.resume(coroutine.create(function()
  2118. for i=0,1,0.1 do
  2119. wait()
  2120. v.Transparency=v.Transparency-0.1
  2121. end
  2122. v.Transparency=0
  2123. end))
  2124. v.Transparency=0
  2125. end
  2126. end
  2127. end
  2128.  
  2129. local origcolor = BrickColor.new("Pastel light blue")
  2130. ---- This section of explosions.
  2131. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2132. local expart = Instance.new("Part",char)
  2133. local expart2 = Instance.new("Part",char)
  2134. local rin = Instance.new("Part",char)
  2135. local rin2 = Instance.new("Part",char)
  2136. local partMesh = Instance.new("SpecialMesh",expart)
  2137. partMesh.MeshType = "Sphere"
  2138. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2139. partMesh2.MeshType = "Sphere"
  2140. local partMesh3 = Instance.new("SpecialMesh",rin)
  2141. partMesh3.MeshType = "Brick"
  2142. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2143. partMesh4.MeshType = "Brick"
  2144. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2145. partMesh.Scale = vt(rad,rad,rad)
  2146. expart.Size = vt(1,1,1)
  2147. expart.Transparency = 0
  2148. expart.Anchored = true
  2149. expart.Material = "Neon"
  2150. expart.BrickColor = bc("White")
  2151. expart.CFrame = par.CFrame
  2152. partMesh2.Scale = vt(rad,rad,rad)
  2153. expart2.Size = vt(1.15,1.15,1.15)
  2154. expart2.Transparency = 0.5
  2155. expart2.Anchored = true
  2156. expart2.Material = "Neon"
  2157. expart2.BrickColor = par.BrickColor
  2158. expart2.CFrame = par.CFrame
  2159. rin.Size = vt(1.15,1.15,1.15)
  2160. rin.Transparency = 1
  2161. rin.Anchored = true
  2162. rin.Material = "Neon"
  2163. rin.BrickColor = par.BrickColor
  2164. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2165. rin2.Size = vt(1.15,1.15,1.15)
  2166. rin2.Transparency = 1
  2167. rin2.Anchored = true
  2168. rin2.Material = "Neon"
  2169. rin2.BrickColor = par.BrickColor
  2170. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2171. partMesh3.Scale = vt(0,1,0)
  2172. partMesh4.Scale = vt(0,1,0)
  2173. local dec2 = Instance.new("Decal", rin)
  2174. dec2.Face = "Top"
  2175. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2176. dec2.Parent = rin
  2177. local dec2b = dec2:Clone()
  2178. dec2b.Face = "Bottom"
  2179. dec2b.Parent = rin
  2180.  
  2181. local dec2a = Instance.new("Decal", rin2)
  2182. dec2a.Face = "Top"
  2183. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2184. dec2a.Parent = rin2
  2185. local dec2ab = dec2a:Clone()
  2186. dec2ab.Face = "Bottom"
  2187. dec2ab.Parent = rin2
  2188. expart.CanCollide = false
  2189. expart2.CanCollide = false
  2190. rin.CanCollide = false
  2191. rin2.CanCollide = false
  2192. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2193. local value = 1*rad/6.5
  2194. for i = 0, 199 do
  2195. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2196. expart.CFrame = expart.CFrame
  2197. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2198. expart2.CFrame = expart.CFrame
  2199. value = value - 0.035*rad/30
  2200. if value < 7.5 then
  2201. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2202. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2203. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2204. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2205. end
  2206. if value < 0 then
  2207. dec2.Transparency = dec2.Transparency + 0.025
  2208. dec2a.Transparency = dec2a.Transparency + 0.025
  2209. dec2b.Transparency = dec2b.Transparency + 0.025
  2210. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2211. expart.Transparency = expart.Transparency + 0.025
  2212. expart2.Transparency = expart2.Transparency + 0.025
  2213. rin.Transparency = rin.Transparency + 0.025
  2214. rin2.Transparency = rin2.Transparency + 0.025
  2215. end
  2216. swait()
  2217. end
  2218. game:GetService("Debris"):AddItem(expart, 1)
  2219. game:GetService("Debris"):AddItem(expart2, 1)
  2220. game:GetService("Debris"):AddItem(rin, 1)
  2221. game:GetService("Debris"):AddItem(rin2, 1)
  2222. end
  2223.  
  2224. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2225. local expart = Instance.new("Part",char)
  2226. local expart2 = Instance.new("Part",char)
  2227. local partMesh = Instance.new("SpecialMesh",expart)
  2228. partMesh.MeshType = "Sphere"
  2229. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2230. partMesh2.MeshType = "Sphere"
  2231. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2232. partMesh.Scale = vt(rad,rad,rad)
  2233. expart.Size = vt(1,1,1)
  2234. expart.Transparency = 0
  2235. expart.Anchored = true
  2236. expart.Material = "Neon"
  2237. expart.BrickColor = bc("White")
  2238. expart.CFrame = par.CFrame
  2239. partMesh2.Scale = vt(rad,rad,rad)
  2240. expart2.Size = vt(1.15,1.15,1.15)
  2241. expart2.Transparency = 0.5
  2242. expart2.Anchored = true
  2243. expart2.Material = "Neon"
  2244. expart2.BrickColor = par.BrickColor
  2245. expart2.CFrame = par.CFrame
  2246. expart.CanCollide = false
  2247. expart2.CanCollide = false
  2248. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2249. local value = 1*rad/6.5
  2250. for i = 0, 75 do
  2251. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2252. expart.CFrame = expart.CFrame
  2253. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2254. expart2.CFrame = expart.CFrame
  2255. value = value - 0.035*rad/5
  2256. if value < 0 then
  2257. value = 0
  2258. expart.Transparency = expart.Transparency + 0.05
  2259. expart2.Transparency = expart2.Transparency + 0.05
  2260. end
  2261. swait()
  2262. end
  2263. game:GetService("Debris"):AddItem(expart, 1)
  2264. game:GetService("Debris"):AddItem(expart2, 1)
  2265. end
  2266.  
  2267. function AreaDanger(rad,par,mindam,maxdam)
  2268. local expart = Instance.new("Part",char)
  2269. local partMesh = Instance.new("SpecialMesh",expart)
  2270. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2271. partMesh.MeshType = "Sphere"
  2272. partMesh.Scale = vt(rad,rad,rad)
  2273. expart.Size = vt(1,1,1)
  2274. expart.Transparency = 0.5
  2275. expart.Anchored = true
  2276. expart.Material = "Neon"
  2277. expart.CanCollide = false
  2278. expart.BrickColor = par.BrickColor
  2279. expart.CFrame = par.CFrame
  2280. local value = 1*rad/5
  2281. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2282. for i = 0, 14 do
  2283. wait()
  2284. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2285. expart.CFrame = expart.CFrame
  2286. value = value - 0.035*rad
  2287. if value < 0 then
  2288. value = 0
  2289. end
  2290. end
  2291. wait(0.25)
  2292. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2293. wait(0.5)
  2294. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2295. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2296. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2297. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2298. for i = 0, 14 do
  2299. wait()
  2300. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2301. expart.CFrame = expart.CFrame
  2302. value = value - 0.035*rad/2
  2303. end
  2304. expart.Transparency = 1
  2305. game:GetService("Debris"):AddItem(expart, 5)
  2306. end
  2307.  
  2308. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2309. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2310. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2311. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2312. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2313. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2314. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2315. for i = 0, 24 do
  2316. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2317. end
  2318. for i = 0, 24 do
  2319. local expart = Instance.new("Part",char)
  2320. expart.Transparency = 1
  2321. expart.Anchored = true
  2322. expart.CanCollide = false
  2323. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2324. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2325. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2326. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2327. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2328. for i = 0, 9 do
  2329. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2330. end
  2331. game:GetService("Debris"):AddItem(expart, 2)
  2332. wait(0.1)
  2333. end
  2334. end
  2335.  
  2336. function EXterPlosion(par)
  2337. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2338. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2339. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2340. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2341. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2342. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2343. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2344. for i = 0, 24 do
  2345. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2346. end
  2347. for i = 0, 24 do
  2348. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2349. end
  2350. end
  2351. ----
  2352.  
  2353.  
  2354. function ring(type,pos,scale,value)
  2355. local type = type
  2356. local rng = Instance.new("Part", char)
  2357. rng.Anchored = true
  2358. rng.BrickColor = origcolor
  2359. rng.CanCollide = false
  2360. rng.FormFactor = 3
  2361. rng.Name = "Ring"
  2362. rng.Size = Vector3.new(1, 1, 1)
  2363. rng.Transparency = 0
  2364. rng.TopSurface = 0
  2365. rng.BottomSurface = 0
  2366. rng.CFrame = pos
  2367. local rngm = Instance.new("SpecialMesh", rng)
  2368. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2369. rngm.Scale = scale
  2370. local scaler2 = 1
  2371. if type == "Add" then
  2372. scaler2 = 1*value
  2373. elseif type == "Divide" then
  2374. scaler2 = 1/value
  2375. end
  2376. coroutine.resume(coroutine.create(function()
  2377. for i = 0,10,0.1 do
  2378. swait()
  2379. if type == "Add" then
  2380. scaler2 = scaler2 - 0.01*value
  2381. elseif type == "Divide" then
  2382. scaler2 = scaler2 - 0.01/value
  2383. end
  2384. rng.Transparency = rng.Transparency + 0.01
  2385. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2386. end
  2387. rng:Destroy()
  2388. end))
  2389. end
  2390.  
  2391.  
  2392. function wave(type,pos,scale,value)
  2393. local type = type
  2394. local rng = Instance.new("Part", char)
  2395. rng.Anchored = true
  2396. rng.BrickColor = origcolor
  2397. rng.CanCollide = false
  2398. rng.FormFactor = 3
  2399. rng.Name = "Ring"
  2400. rng.Size = Vector3.new(1, 1, 1)
  2401. rng.Transparency = 0
  2402. rng.TopSurface = 0
  2403. rng.BottomSurface = 0
  2404. rng.CFrame = pos
  2405. local rngm = Instance.new("SpecialMesh", rng)
  2406. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2407. rngm.Scale = scale
  2408. local scaler2 = 1
  2409. if type == "Add" then
  2410. scaler2 = 1*value
  2411. elseif type == "Divide" then
  2412. scaler2 = 1/value
  2413. end
  2414. coroutine.resume(coroutine.create(function()
  2415. for i = 0,10,0.1 do
  2416. swait()
  2417. if type == "Add" then
  2418. scaler2 = scaler2 - 0.01*value
  2419. elseif type == "Divide" then
  2420. scaler2 = scaler2 - 0.01/value
  2421. end
  2422. rng.Transparency = rng.Transparency + 0.01
  2423. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2424. end
  2425. rng:Destroy()
  2426. end))
  2427. end
  2428.  
  2429. function wind(type,pos,scale,value,speed)
  2430. local type = type
  2431. local rng = Instance.new("Part", char)
  2432. rng.Anchored = true
  2433. rng.BrickColor = origcolor
  2434. rng.CanCollide = false
  2435. rng.FormFactor = 3
  2436. rng.Name = "Ring"
  2437. rng.Size = Vector3.new(1, 1, 1)
  2438. rng.Transparency = 0
  2439. rng.TopSurface = 0
  2440. rng.BottomSurface = 0
  2441. rng.CFrame = pos
  2442. local rngm = Instance.new("SpecialMesh", rng)
  2443. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2444. rngm.Scale = scale
  2445. local scaler2 = 1
  2446. if type == "Add" then
  2447. scaler2 = 1*value
  2448. elseif type == "Divide" then
  2449. scaler2 = 1/value
  2450. end
  2451. coroutine.resume(coroutine.create(function()
  2452. for i = 0,10,0.1 do
  2453. swait()
  2454. if type == "Add" then
  2455. scaler2 = scaler2 - 0.01*value
  2456. elseif type == "Divide" then
  2457. scaler2 = scaler2 - 0.01/value
  2458. end
  2459. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2460. rng.Transparency = rng.Transparency + 0.01
  2461. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2462. end
  2463. rng:Destroy()
  2464. end))
  2465. end
  2466.  
  2467. function groundwind(type,pos,scale,value,speed)
  2468. local type = type
  2469. local rng = Instance.new("Part", char)
  2470. rng.Anchored = true
  2471. rng.BrickColor = origcolor
  2472. rng.CanCollide = false
  2473. rng.FormFactor = 3
  2474. rng.Name = "Ring"
  2475. rng.Size = Vector3.new(1, 1, 1)
  2476. rng.Transparency = 0
  2477. rng.TopSurface = 0
  2478. rng.BottomSurface = 0
  2479. rng.CFrame = pos
  2480. local rngm = Instance.new("SpecialMesh", rng)
  2481. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2482. rngm.Scale = scale
  2483. local scaler2 = 1
  2484. if type == "Add" then
  2485. scaler2 = 1*value
  2486. elseif type == "Divide" then
  2487. scaler2 = 1/value
  2488. end
  2489. coroutine.resume(coroutine.create(function()
  2490. for i = 0,10,0.1 do
  2491. swait()
  2492. if type == "Add" then
  2493. scaler2 = scaler2 - 0.01*value
  2494. elseif type == "Divide" then
  2495. scaler2 = scaler2 - 0.01/value
  2496. end
  2497. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2498. rng.Transparency = rng.Transparency + 0.01
  2499. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2500. end
  2501. rng:Destroy()
  2502. end))
  2503. end
  2504.  
  2505. function CameraManager()
  2506. if TwoD and not CamInterrupt then
  2507. if Humanoid.Health > 0 then
  2508. Camera.CameraSubject = Humanoid
  2509. Camera.CameraType = "Scriptable"
  2510. Humanoid.AutoRotate = false
  2511. if Booleans.GyroUse then
  2512. Directer.MaxTorque = Vec3(0, huge, 0)
  2513. else
  2514. Directer.MaxTorque = Vec3(0, 0, 0)
  2515. end
  2516. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2517. if Booleans.CamFollow then
  2518. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2519. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2520. else
  2521. CPart.Position = RootPart.Position
  2522. end
  2523. else
  2524. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2525. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2526. end
  2527. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2528. else
  2529. Camera.CameraSubject = Humanoid
  2530. Camera.CameraType = "Custom"
  2531. Controller.Disabled = false
  2532. end
  2533. end
  2534. end
  2535.  
  2536. function sphere(bonuspeed,type,pos,scale,value,color)
  2537. local type = type
  2538. local rng = Instance.new("Part", char)
  2539. rng.Anchored = true
  2540. rng.BrickColor = color
  2541. rng.CanCollide = false
  2542. rng.FormFactor = 3
  2543. rng.Name = "Ring"
  2544. rng.Material = "Neon"
  2545. rng.Size = Vector3.new(1, 1, 1)
  2546. rng.Transparency = 0
  2547. rng.TopSurface = 0
  2548. rng.BottomSurface = 0
  2549. rng.CFrame = pos
  2550. local rngm = Instance.new("SpecialMesh", rng)
  2551. rngm.MeshType = "Sphere"
  2552. rngm.Scale = scale
  2553. if rainbowmode == true then
  2554. rng.Color = Color3.new(r/255,g/255,b/255)
  2555. end
  2556. local scaler2 = 1
  2557. if type == "Add" then
  2558. scaler2 = 1*value
  2559. elseif type == "Divide" then
  2560. scaler2 = 1/value
  2561. end
  2562. coroutine.resume(coroutine.create(function()
  2563. for i = 0,10/bonuspeed,0.1 do
  2564. swait()
  2565. if rainbowmode == true then
  2566. rng.Color = Color3.new(r/255,g/255,b/255)
  2567. end
  2568. if type == "Add" then
  2569. scaler2 = scaler2 - 0.01*value/bonuspeed
  2570. elseif type == "Divide" then
  2571. scaler2 = scaler2 - 0.01/value*bonuspeed
  2572. end
  2573. if chaosmode == true then
  2574. rng.BrickColor = BrickColor.random()
  2575. end
  2576. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2577. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2578. end
  2579. rng:Destroy()
  2580. end))
  2581. end
  2582.  
  2583. function spherew(bonuspeed,type,pos,scale,value,color)
  2584. local type = type
  2585. local rng = Instance.new("Part", workspace)
  2586. rng.Anchored = true
  2587. rng.BrickColor = color
  2588. rng.CanCollide = false
  2589. rng.FormFactor = 3
  2590. rng.Name = "Ring"
  2591. rng.Material = "Neon"
  2592. rng.Size = Vector3.new(1, 1, 1)
  2593. rng.Transparency = 0
  2594. rng.TopSurface = 0
  2595. rng.BottomSurface = 0
  2596. rng.CFrame = pos
  2597. local rngm = Instance.new("SpecialMesh", rng)
  2598. rngm.MeshType = "Sphere"
  2599. rngm.Scale = scale
  2600. if rainbowmode == true then
  2601. rng.Color = Color3.new(r/255,g/255,b/255)
  2602. end
  2603. local scaler2 = 1
  2604. if type == "Add" then
  2605. scaler2 = 1*value
  2606. elseif type == "Divide" then
  2607. scaler2 = 1/value
  2608. end
  2609. coroutine.resume(coroutine.create(function()
  2610. for i = 0,10/bonuspeed,0.1 do
  2611. swait()
  2612. if rainbowmode == true then
  2613. rng.Color = Color3.new(r/255,g/255,b/255)
  2614. end
  2615. if type == "Add" then
  2616. scaler2 = scaler2 - 0.01*value/bonuspeed
  2617. elseif type == "Divide" then
  2618. scaler2 = scaler2 - 0.01/value*bonuspeed
  2619. end
  2620. if chaosmode == true then
  2621. rng.BrickColor = BrickColor.random()
  2622. end
  2623. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2624. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2625. end
  2626. rng:Destroy()
  2627. end))
  2628. end
  2629.  
  2630. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2631. local type = type
  2632. local rng = Instance.new("Part", char)
  2633. rng.Anchored = true
  2634. rng.BrickColor = color
  2635. rng.CanCollide = false
  2636. rng.FormFactor = 3
  2637. rng.Name = "Ring"
  2638. rng.Material = "Neon"
  2639. rng.Size = Vector3.new(1, 1, 1)
  2640. rng.Transparency = 0
  2641. rng.TopSurface = 0
  2642. rng.BottomSurface = 0
  2643. rng.CFrame = pos
  2644. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2645. local rngm = Instance.new("SpecialMesh", rng)
  2646. rngm.MeshType = "Brick"
  2647. rngm.Scale = vt(x1,y1,z1)
  2648. if rainbowmode == true then
  2649. rng.Color = Color3.new(r/255,g/255,b/255)
  2650. end
  2651. local scaler2 = 1
  2652. local speeder = FastSpeed/10
  2653. if type == "Add" then
  2654. scaler2 = 1*value
  2655. elseif type == "Divide" then
  2656. scaler2 = 1/value
  2657. end
  2658. coroutine.resume(coroutine.create(function()
  2659. for i = 0,10/bonuspeed,0.1 do
  2660. swait()
  2661. if rainbowmode == true then
  2662. rng.Color = Color3.new(r/255,g/255,b/255)
  2663. end
  2664. if type == "Add" then
  2665. scaler2 = scaler2 - 0.01*value/bonuspeed
  2666. elseif type == "Divide" then
  2667. scaler2 = scaler2 - 0.01/value*bonuspeed
  2668. end
  2669. if chaosmode == true then
  2670. rng.BrickColor = BrickColor.random()
  2671. end
  2672. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2673. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2674. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2675. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2676. end
  2677. rng:Destroy()
  2678. end))
  2679. end
  2680.  
  2681. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2682. local type = type
  2683. local rng = Instance.new("Part", char)
  2684. rng.Anchored = true
  2685. rng.BrickColor = color
  2686. rng.CanCollide = false
  2687. rng.FormFactor = 3
  2688. rng.Name = "Ring"
  2689. rng.Material = "Neon"
  2690. rng.Size = Vector3.new(1, 1, 1)
  2691. rng.Transparency = 0
  2692. rng.TopSurface = 0
  2693. rng.BottomSurface = 0
  2694. rng.CFrame = pos
  2695. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2696. local rngm = Instance.new("SpecialMesh", rng)
  2697. rngm.MeshType = "Brick"
  2698. rngm.Scale = vt(x1,y1,z1)
  2699. if rainbowmode == true then
  2700. rng.Color = Color3.new(r/255,g/255,b/255)
  2701. end
  2702. local scaler2 = 0
  2703. local speeder = FastSpeed/10
  2704. if type == "Add" then
  2705. scaler2 = 1*value
  2706. elseif type == "Divide" then
  2707. scaler2 = 1/value
  2708. end
  2709. coroutine.resume(coroutine.create(function()
  2710. for i = 0,10/bonuspeed,0.1 do
  2711. swait()
  2712. if rainbowmode == true then
  2713. rng.Color = Color3.new(r/255,g/255,b/255)
  2714. end
  2715. if type == "Add" then
  2716. scaler2 = scaler2 - 0.01*value/bonuspeed
  2717. elseif type == "Divide" then
  2718. scaler2 = scaler2 - 0.01/value*bonuspeed
  2719. end
  2720. if chaosmode == true then
  2721. rng.BrickColor = BrickColor.random()
  2722. end
  2723. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2724. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2725. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2726. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2727. end
  2728. rng:Destroy()
  2729. end))
  2730. end
  2731.  
  2732. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2733. local type = type
  2734. local rng = Instance.new("Part", workspace)
  2735. rng.Anchored = true
  2736. rng.BrickColor = color
  2737. rng.CanCollide = false
  2738. rng.FormFactor = 3
  2739. rng.Name = "Ring"
  2740. rng.Material = "Neon"
  2741. rng.Size = Vector3.new(1, 1, 1)
  2742. rng.Transparency = 0
  2743. rng.TopSurface = 0
  2744. rng.BottomSurface = 0
  2745. rng.CFrame = pos
  2746. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2747. local rngm = Instance.new("SpecialMesh", rng)
  2748. rngm.MeshType = "Sphere"
  2749. rngm.Scale = vt(x1,y1,z1)
  2750. if rainbowmode == true then
  2751. rng.Color = Color3.new(r/255,g/255,b/255)
  2752. end
  2753. local scaler2 = 1
  2754. local speeder = FastSpeed
  2755. if type == "Add" then
  2756. scaler2 = 1*value
  2757. elseif type == "Divide" then
  2758. scaler2 = 1/value
  2759. end
  2760. coroutine.resume(coroutine.create(function()
  2761. for i = 0,10/bonuspeed,0.1 do
  2762. swait()
  2763. if rainbowmode == true then
  2764. rng.Color = Color3.new(r/255,g/255,b/255)
  2765. end
  2766. if type == "Add" then
  2767. scaler2 = scaler2 - 0.01*value/bonuspeed
  2768. elseif type == "Divide" then
  2769. scaler2 = scaler2 - 0.01/value*bonuspeed
  2770. end
  2771. if chaosmode == true then
  2772. rng.BrickColor = BrickColor.random()
  2773. end
  2774. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2775. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2776. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2777. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2778. end
  2779. rng:Destroy()
  2780. end))
  2781. end
  2782. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2783. local type = type
  2784. local rng = Instance.new("Part", char)
  2785. rng.Anchored = true
  2786. rng.BrickColor = color
  2787. rng.CanCollide = false
  2788. rng.FormFactor = 3
  2789. rng.Name = "Ring"
  2790. rng.Material = "Neon"
  2791. rng.Size = Vector3.new(1, 1, 1)
  2792. rng.Transparency = 0
  2793. rng.TopSurface = 0
  2794. rng.BottomSurface = 0
  2795. rng.CFrame = pos
  2796. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2797. local rngm = Instance.new("SpecialMesh", rng)
  2798. rngm.MeshType = "Sphere"
  2799. rngm.Scale = vt(x1,y1,z1)
  2800. if rainbowmode == true then
  2801. rng.Color = Color3.new(r/255,g/255,b/255)
  2802. end
  2803. local scaler2 = 1
  2804. local speeder = FastSpeed
  2805. if type == "Add" then
  2806. scaler2 = 1*value
  2807. elseif type == "Divide" then
  2808. scaler2 = 1/value
  2809. end
  2810. coroutine.resume(coroutine.create(function()
  2811. for i = 0,10/bonuspeed,0.1 do
  2812. swait()
  2813. if rainbowmode == true then
  2814. rng.Color = Color3.new(r/255,g/255,b/255)
  2815. end
  2816. if type == "Add" then
  2817. scaler2 = scaler2 - 0.01*value/bonuspeed
  2818. elseif type == "Divide" then
  2819. scaler2 = scaler2 - 0.01/value*bonuspeed
  2820. end
  2821. if chaosmode == true then
  2822. rng.BrickColor = BrickColor.random()
  2823. end
  2824. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2825. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2826. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2827. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2828. end
  2829. rng:Destroy()
  2830. end))
  2831. end
  2832.  
  2833.  
  2834. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2835. local type = type
  2836. local rng = Instance.new("Part", char)
  2837. rng.Anchored = true
  2838. rng.BrickColor = color
  2839. rng.CanCollide = false
  2840. rng.FormFactor = 3
  2841. rng.Name = "Ring"
  2842. rng.Material = "Neon"
  2843. rng.Size = Vector3.new(1, 1, 1)
  2844. rng.Transparency = 1
  2845. rng.TopSurface = 0
  2846. rng.BottomSurface = 0
  2847. rng.CFrame = pos
  2848. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2849. local rngm = Instance.new("SpecialMesh", rng)
  2850. rngm.MeshType = "Sphere"
  2851. rngm.Scale = vt(x1,y1,z1)
  2852. if rainbowmode == true then
  2853. rng.Color = Color3.new(r/255,g/255,b/255)
  2854. end
  2855. local scaler2 = 1
  2856. local speeder = FastSpeed
  2857. if type == "Add" then
  2858. scaler2 = 1*value
  2859. elseif type == "Divide" then
  2860. scaler2 = 1/value
  2861. end
  2862. coroutine.resume(coroutine.create(function()
  2863. for i = 0,10/bonuspeed,0.1 do
  2864. swait()
  2865. if rainbowmode == true then
  2866. rng.Color = Color3.new(r/255,g/255,b/255)
  2867. end
  2868. if type == "Add" then
  2869. scaler2 = scaler2 - 0.01*value/bonuspeed
  2870. elseif type == "Divide" then
  2871. scaler2 = scaler2 - 0.01/value*bonuspeed
  2872. end
  2873. if chaosmode == true then
  2874. rng.BrickColor = BrickColor.random()
  2875. end
  2876. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2877. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2878. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2879. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2880. end
  2881. rng:Destroy()
  2882. end))
  2883. end
  2884.  
  2885. function dmg(dude)
  2886. if dude.Name ~= Character then
  2887. local bgf = Instance.new("BodyGyro",dude.Head)
  2888. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2889. local val = Instance.new("BoolValue",dude)
  2890. val.Name = "IsHit"
  2891. local ds = coroutine.wrap(function()
  2892. dude:WaitForChild("Head"):BreakJoints()
  2893. wait(0.5)
  2894. targetted = nil
  2895. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  2896. coroutine.resume(coroutine.create(function()
  2897. for i, v in pairs(dude:GetChildren()) do
  2898. if v:IsA("Accessory") then
  2899. v:Destroy()
  2900. end
  2901. if v:IsA("Humanoid") then
  2902. v:Destroy()
  2903. end
  2904. if v:IsA("CharacterMesh") then
  2905. v:Destroy()
  2906. end
  2907. if v:IsA("Model") then
  2908. v:Destroy()
  2909. end
  2910. if v:IsA("Part") or v:IsA("MeshPart") then
  2911. for x, o in pairs(v:GetChildren()) do
  2912. if o:IsA("Decal") then
  2913. o:Destroy()
  2914. end
  2915. end
  2916. coroutine.resume(coroutine.create(function()
  2917. v.Material = "Neon"
  2918. v.CanCollide = false
  2919. local bld = Instance.new("ParticleEmitter",v)
  2920. bld.LightEmission = 1
  2921. bld.Texture = "rbxassetid://284205403"
  2922. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  2923. bld.Rate = 50
  2924. bld.Lifetime = NumberRange.new(1)
  2925. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  2926. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  2927. bld.Speed = NumberRange.new(0,0)
  2928. bld.VelocitySpread = 50000
  2929. bld.Rotation = NumberRange.new(-500,500)
  2930. bld.RotSpeed = NumberRange.new(-500,500)
  2931. local sbs = Instance.new("BodyPosition", v)
  2932. sbs.P = 3000
  2933. sbs.D = 1000
  2934. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2935. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  2936. v.Color = Color3.new(1,1,1)
  2937. coroutine.resume(coroutine.create(function()
  2938. for i = 0, 49 do
  2939. swait(1)
  2940. v.Transparency = v.Transparency + 0.02
  2941. end
  2942. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  2943. bld.Speed = NumberRange.new(1,5)
  2944. bld.Acceleration = vt(0,10,0)
  2945. wait(0.5)
  2946. bld.Enabled = false
  2947. wait(3)
  2948. v:Destroy()
  2949. dude:Destroy()
  2950. end))
  2951. end))
  2952. end
  2953. end
  2954. end))
  2955. end)
  2956. ds()
  2957. end
  2958. end
  2959.  
  2960.  
  2961. function FindNearestHead(Position, Distance, SinglePlayer)
  2962. if SinglePlayer then
  2963. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2964. end
  2965. local List = {}
  2966. for i, v in pairs(workspace:GetChildren()) do
  2967. if v:IsA("Model") then
  2968. if v:findFirstChild("Head") then
  2969. if v ~= Character then
  2970. if (v.Head.Position - Position).magnitude <= Distance then
  2971. table.insert(List, v)
  2972. end
  2973. end
  2974. end
  2975. end
  2976. end
  2977. return List
  2978. end
  2979.  
  2980. function FaceMouse()
  2981. Cam = workspace.CurrentCamera
  2982. return {
  2983. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2984. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2985. }
  2986. end
  2987.  
  2988. function FaceMouse2()
  2989. Cam = workspace.CurrentCamera
  2990. return {
  2991. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2992. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2993. }
  2994. end
  2995.  
  2996. local ModeOfGlitch = 1
  2997. -- Functions are ready.
  2998. local storehumanoidWS = 16
  2999.  
  3000. function Blink()
  3001. for i = 0, 14 do
  3002. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3003. end
  3004. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3005. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3006. CameraEnshaking(2,10)
  3007. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3008. if v:FindFirstChild('Head') then
  3009. end
  3010. end
  3011. for i = 0, 14 do
  3012. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3013. end
  3014. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3015. end
  3016.  
  3017. function ExtinctiveHeartbreak()
  3018. local targetted = nil
  3019. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3020. targetted = mouse.Target.Parent
  3021. end
  3022. if targetted ~= nil then
  3023. attack = true
  3024. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3025. for i = 0, 9 do
  3026. 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 red"),0)
  3027. end
  3028. for i = 0, 24 do
  3029. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3030. end
  3031. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3032. local originalpos = root.CFrame
  3033. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3034. for i = 0, 9 do
  3035. 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 red"),0)
  3036. end
  3037. for i = 0, 24 do
  3038. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3039. end
  3040. hum.WalkSpeed = 0
  3041. targetted.Head.Anchored = true
  3042. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3043. for i = 0,2,0.1 do
  3044. swait()
  3045. 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)),.4)
  3046. 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)),.4)
  3047. 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)),.4)
  3048. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3049. 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)),.4)
  3050. 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)),.4)
  3051. end
  3052. coroutine.resume(coroutine.create(function()
  3053. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3054. bld.LightEmission = 0.1
  3055. bld.Texture = "rbxassetid://284205403"
  3056. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3057. bld.Rate = 500
  3058. bld.Lifetime = NumberRange.new(1)
  3059. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3060. bld.Acceleration = vt(0,-25,0)
  3061. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3062. bld.Speed = NumberRange.new(10,50)
  3063. bld.EmissionDirection = "Front"
  3064. bld.VelocitySpread = 25
  3065. bld.Rotation = NumberRange.new(-500,500)
  3066. bld.RotSpeed = NumberRange.new(-500,500)
  3067. end))
  3068. coroutine.resume(coroutine.create(function()
  3069. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3070. bld.LightEmission = 0.1
  3071. bld.Texture = "rbxassetid://284205403"
  3072. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3073. bld.Rate = 500
  3074. bld.Lifetime = NumberRange.new(1)
  3075. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3076. bld.Acceleration = vt(0,-25,0)
  3077. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3078. bld.Speed = NumberRange.new(10,50)
  3079. bld.EmissionDirection = "Front"
  3080. bld.VelocitySpread = 25
  3081. bld.Rotation = NumberRange.new(-500,500)
  3082. bld.RotSpeed = NumberRange.new(-500,500)
  3083. end))
  3084. CameraEnshaking(5,5)
  3085. game:GetService("Debris"):AddItem(bld,3)
  3086. dmg(targetted)
  3087. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3088. for i = 0,1,0.1 do
  3089. swait()
  3090. 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)),.8)
  3091. 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)),.8)
  3092. 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)),.8)
  3093. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3094. 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)),.8)
  3095. 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)),.8)
  3096. end
  3097. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3098. for i = 0, 9 do
  3099. 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 red"),0)
  3100. end
  3101. for i = 0, 24 do
  3102. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3103. end
  3104. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3105. root.CFrame = originalpos
  3106. for i = 0, 9 do
  3107. 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 red"),0)
  3108. end
  3109. for i = 0, 24 do
  3110. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3111. end
  3112. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3113. bld.Enabled = false
  3114. attack = false
  3115. hum.WalkSpeed = storehumanoidWS
  3116. end
  3117. end
  3118. function MeteorStrike()
  3119. attack = true
  3120. for i = 0, 2, 0.1 do
  3121. swait()
  3122. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3123. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3124. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3125. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3126. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3127. 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)),.1)
  3128. end
  3129. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3130. for i=1,20 do
  3131. sphereMKCharge(5,-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))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3132. swait()
  3133. end
  3134. swait(30)
  3135. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3136. for i =1,20 do
  3137. sphereMKw(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,MAINRUINCOLOR,0)
  3138. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3139. end
  3140. for i = 0,2,0.1 do
  3141. swait()
  3142. 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(-30)),.5)
  3143. 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(30)),.5)
  3144. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3145. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3146. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3147. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3148. end
  3149. for i =1,20 do
  3150. sphereMKw(1,1,"Add",Torso.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.05,MAINRUINCOLOR,0)
  3151. end
  3152. text.TextTransparency = 1
  3153. text.TextStrokeTransparency = 1
  3154. tr2.Enabled = false
  3155. tr1.Enabled = false
  3156. tr3.Enabled = false
  3157. tl1.Enabled = false
  3158. tl2.Enabled = false
  3159. tl3.Enabled = false
  3160. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3161. eff = false
  3162. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3163. local invtab = {}
  3164. local function search(targ)
  3165. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3166. table.insert(invtab,targ)
  3167. end
  3168. for i,v in pairs(targ:GetChildren()) do
  3169. search(v)
  3170. end
  3171. end
  3172. search(plr.Character)
  3173. local frm = 0
  3174. local frmcon
  3175. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3176. if frm < 10 then
  3177. for i,v in pairs(invtab) do
  3178. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3179. v.Transparency = v.Transparency + 0.1
  3180. end
  3181. end
  3182. frm = frm + 1
  3183. else
  3184. frmcon:disconnect()
  3185. end
  3186. end)
  3187. swait(200)
  3188. text.TextTransparency = 0
  3189. text.TextStrokeTransparency = 0
  3190. tr2.Enabled = false
  3191. tr1.Enabled = false
  3192. tr3.Enabled = false
  3193. tl1.Enabled = false
  3194. tl2.Enabled = false
  3195. tl3.Enabled = false
  3196. eff = true
  3197. for i =1,20 do
  3198. sphereMKw(1,1,"Add",Torso.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.05,MAINRUINCOLOR,0)
  3199. end
  3200. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3201. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3202. local invtab = {}
  3203. local function search(targ)
  3204. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3205. table.insert(invtab,targ)
  3206. end
  3207. for i,v in pairs(targ:GetChildren()) do
  3208. search(v)
  3209. end
  3210. end
  3211. search(plr.Character)
  3212. local frm = 0
  3213. local frmcon
  3214. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3215. if frm < 10 then
  3216. for i,v in pairs(invtab) do
  3217. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3218. v.Transparency = v.Transparency - 0.1
  3219. end
  3220. end
  3221. frm = frm + 1
  3222. else
  3223. frmcon:disconnect()
  3224. end
  3225. end)
  3226. swait(5)
  3227. for i = 0, 2, 0.1 do
  3228. swait()
  3229. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3230. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3231. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3232. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3233. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3234. 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)),.1)
  3235. end
  3236. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3237. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3238. MagniDamage(root, 30, 65,90, 0, "Normal")
  3239. for i =1,20 do
  3240. sphereMK(1,1,"Add",Torso.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.05,MAINRUINCOLOR,0)
  3241. end
  3242. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3243. for i =1,20 do
  3244. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3245. end
  3246. swait(20)
  3247. attack = false
  3248. tr2.Enabled = true
  3249. tr1.Enabled = true
  3250. tr3.Enabled = true
  3251. tl1.Enabled = true
  3252. tl2.Enabled = true
  3253. tl3.Enabled = true
  3254. end
  3255. function FinalCalam()
  3256. attack = true
  3257. hum.WalkSpeed = 0
  3258. local orb = Instance.new("Part", char)
  3259. orb.Anchored = true
  3260. orb.BrickColor = MAINRUINCOLOR
  3261. orb.CanCollide = false
  3262. orb.FormFactor = 3
  3263. orb.Name = "Ring"
  3264. orb.Material = "Neon"
  3265. orb.Size = Vector3.new(1, 1, 1)
  3266. orb.Transparency = 0
  3267. orb.TopSurface = 0
  3268. orb.BottomSurface = 0
  3269. local orbm = Instance.new("SpecialMesh", orb)
  3270. orbm.MeshType = "Sphere"
  3271. orbm.Name = "SizeMesh"
  3272. orbm.Scale = vt(0,0,0)
  3273. local scaled = 0.1
  3274. local posid = 0
  3275. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3276. for i = 0, 5, 0.1 do
  3277. swait()
  3278. scaled = scaled - 0.001
  3279. posid = posid - scaled
  3280. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3281. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3282. 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,MAINRUINCOLOR,10)
  3283. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3284. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3286. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3287. 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)),.1)
  3288. end
  3289. swait(60)
  3290. for i =1,3 do
  3291. swait(30)
  3292. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3293. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3294. end
  3295. swait(30)
  3296. for i = 0, 2, 0.1 do
  3297. swait()
  3298. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3299. 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))),.4)
  3300. 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)),.4)
  3301. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3302. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3303. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3304. 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)),.4)
  3305. end
  3306. swait(60)
  3307. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3308. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3309. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3310. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3311. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3312. if v:FindFirstChild('Head') then
  3313. dmg(v)
  3314. end
  3315. end
  3316. for i = 1,20 do
  3317. 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,MAINRUINCOLOR,0)
  3318. for i = 0, 10 do
  3319. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3320. end
  3321. end
  3322. orb:Remove()
  3323. attack = false
  3324. hum.WalkSpeed = storehumanoidWS
  3325. end
  3326. function PureBomb()
  3327. attack = true
  3328.  
  3329. local orb = Instance.new("Part", char)
  3330. orb.Anchored = true
  3331. orb.BrickColor = BrickColor.new("Toothpaste")
  3332. orb.CanCollide = false
  3333. orb.FormFactor = 3
  3334. orb.Name = "Ring"
  3335. orb.Material = "Neon"
  3336. orb.Size = Vector3.new(1, 1, 1)
  3337. orb.Transparency = 0
  3338. orb.TopSurface = 0
  3339. orb.BottomSurface = 0
  3340. local orbm = Instance.new("SpecialMesh", orb)
  3341. orbm.MeshType = "Sphere"
  3342. orbm.Name = "SizeMesh"
  3343. orbm.Scale = vt(0,0,0)
  3344. local scaled = 0.1
  3345. local posid = 0
  3346. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3347. for i = 0, 5, 0.1 do
  3348. swait()
  3349. scaled = scaled - 0.001
  3350. posid = posid - scaled
  3351. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3352. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3353. 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)
  3354. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3355. 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))),.1)
  3356. 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)),.1)
  3357. 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)),.1)
  3358. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3359. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3360. 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)),.1)
  3361. end
  3362. for i = 0, 2, 0.1 do
  3363. swait()
  3364. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3365. 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))),.4)
  3366. 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)),.4)
  3367. 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)),.4)
  3368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3369. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3370. 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)),.4)
  3371. end
  3372. coroutine.resume(coroutine.create(function()
  3373. orb.Anchored = false
  3374. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3375. local a = Instance.new("Part",workspace)
  3376. a.Name = "Direction"
  3377. a.Anchored = true
  3378. a.BrickColor = bc("Bright red")
  3379. a.Material = "Neon"
  3380. a.Transparency = 1
  3381. a.CanCollide = false
  3382. local ray = Ray.new(
  3383. orb.CFrame.p, -- origin
  3384. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3385. )
  3386. local ignore = orb
  3387. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3388. a.BottomSurface = 10
  3389. a.TopSurface = 10
  3390. local distance = (orb.CFrame.p - position).magnitude
  3391. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3392. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3393. orb.CFrame = a.CFrame
  3394. a:Destroy()
  3395. local bv = Instance.new("BodyVelocity")
  3396. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3397. bv.velocity = orb.CFrame.lookVector*125
  3398. bv.Parent = orb
  3399. local hitted = false
  3400. game:GetService("Debris"):AddItem(orb, 15)
  3401. wait()
  3402. local hit =orb.Touched:connect(function(hit)
  3403. if hitted == false then
  3404. hitted = true
  3405. CameraEnshaking(10,2.5)
  3406. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3407. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3408. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3409. for i = 0, 49 do
  3410. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3411. end
  3412. for i = 0, 9 do
  3413. 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)
  3414. 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)
  3415. end
  3416. orb.Anchored = true
  3417. orb.Transparency = 1
  3418. wait(8)
  3419. orb:Destroy()
  3420. end
  3421. end)
  3422. end))
  3423. for i = 0, 1, 0.1 do
  3424. swait()
  3425. 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))),.4)
  3426. 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)),.4)
  3427. 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)),.4)
  3428. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3429. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3430. 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)),.4)
  3431. end
  3432. attack = false
  3433. end
  3434.  
  3435. function ChaosGroundStrike()
  3436. attack = true
  3437. for i = 0, 2, 0.1 do
  3438. swait()
  3439. 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)),.2)
  3440. 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)),.2)
  3441. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3442. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3443. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3444. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3445. end
  3446. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3447. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3448. CameraEnshaking(4,12)
  3449. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3450. if v:FindFirstChild('Head') then
  3451. dmg(v)
  3452. end
  3453. end
  3454. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3455. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3456. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3457. for i = 0, 2, 0.1 do
  3458. swait()
  3459. 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)
  3460. 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)
  3461. 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)),.4)
  3462. 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)),.4)
  3463. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3464. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3465. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3466. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3467. end
  3468. attack = false
  3469. end
  3470.  
  3471. function Starfall()
  3472. attack = true
  3473. hum.WalkSpeed = 0
  3474. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3475. for i = 0, 5, 0.1 do
  3476. swait()
  3477. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3478. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3479. 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)),.1)
  3480. 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)),.1)
  3481. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3482. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3483. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3484. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3485. end
  3486. local Overed = false
  3487. CameraEnshaking(2,20)
  3488. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3489. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3490. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3491. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3492. local orb = Instance.new("Part", char)
  3493. orb.Anchored = true
  3494. orb.BrickColor = BrickColor.new("Toothpaste")
  3495. orb.CanCollide = false
  3496. orb.FormFactor = 3
  3497. orb.Name = "Remenant"
  3498. orb.Material = "Neon"
  3499. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3500. orb.Size = Vector3.new(1, 1, 1)
  3501. orb.Transparency = 1
  3502. orb.TopSurface = 0
  3503. orb.BottomSurface = 0
  3504. hum.WalkSpeed = storehumanoidWS
  3505. coroutine.resume(coroutine.create(function()
  3506. for i = 0, 9 do
  3507. swait(10)
  3508. local lb = Instance.new("Part")
  3509. lb.Color = MAINRUINCOLOR.Color
  3510. lb.CanCollide = false
  3511. lb.Material = "Neon"
  3512. lb.Anchored = true
  3513. lb.TopSurface = 0
  3514. lb.BottomSurface = 0
  3515. lb.Transparency = 0
  3516. lb.Size = vt(1,1,1)
  3517. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3518. lb.Anchored = false
  3519. lb.Parent = char
  3520. local thingery = Instance.new("SpecialMesh",lb)
  3521. thingery.MeshType = "Sphere"
  3522. thingery.Scale = vt(20,20,20)
  3523. game:GetService("Debris"):AddItem(lb, 10)
  3524. local bv = Instance.new("BodyVelocity")
  3525. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3526. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3527. bv.Parent = lb
  3528. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3529. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3530. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3531. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3532. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3533. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3534. local hitted = false
  3535. coroutine.resume(coroutine.create(function()
  3536. while true do
  3537. swait(1)
  3538. if lb.Parent ~= nil and hitted == false then
  3539. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3540. elseif lb.Parent == nil then
  3541. break
  3542. end
  3543. end
  3544. end))
  3545.  
  3546. game:GetService("Debris"):AddItem(a, 0.1)
  3547.  
  3548. coroutine.resume(coroutine.create(function()
  3549. swait(1)
  3550. lb.Touched:connect(function(hit)
  3551. if hitted == false then
  3552. hitted = true
  3553. lb.Transparency = 1
  3554. lb.Anchored = true
  3555. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3556. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3557. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3558. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3559. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3560. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3561. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3562. CameraEnshaking(1,5)
  3563. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3564. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3565. for i = 0, 9 do
  3566. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3567. end
  3568. for i = 0, 49 do
  3569. swait()
  3570. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3571. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3572. end
  3573. end
  3574. end)
  3575. end))
  3576. end
  3577. Overed = true
  3578. orb:Destroy()
  3579. end))
  3580.  
  3581. attack = false
  3582. end
  3583.  
  3584. function StarfallEX()
  3585. attack = true
  3586. hum.WalkSpeed = 0
  3587. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3588. for i = 0, 5, 0.1 do
  3589. swait()
  3590. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3591. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3592. 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)),.1)
  3593. 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)),.1)
  3594. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3597. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3598. end
  3599. local Overed = false
  3600. CameraEnshaking(2,20)
  3601. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3602. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3603. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3604. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3605. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3606. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3607. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3608. local orb = Instance.new("Part", char)
  3609. orb.Anchored = true
  3610. orb.BrickColor = BrickColor.new("Toothpaste")
  3611. orb.CanCollide = false
  3612. orb.FormFactor = 3
  3613. orb.Name = "Remenant"
  3614. orb.Material = "Neon"
  3615. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3616. orb.Size = Vector3.new(1, 1, 1)
  3617. orb.Transparency = 1
  3618. orb.TopSurface = 0
  3619. orb.BottomSurface = 0
  3620. hum.WalkSpeed = storehumanoidWS
  3621. coroutine.resume(coroutine.create(function()
  3622. for i = 0, 9 do
  3623. swait(10)
  3624. local lb = Instance.new("Part")
  3625. lb.Color = MAINRUINCOLOR.Color
  3626. lb.CanCollide = false
  3627. lb.Material = "Neon"
  3628. lb.Anchored = true
  3629. lb.TopSurface = 0
  3630. lb.BottomSurface = 0
  3631. lb.Transparency = 0
  3632. lb.Size = vt(1,1,1)
  3633. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3634. lb.Anchored = false
  3635. lb.Parent = char
  3636. local thingery = Instance.new("SpecialMesh",lb)
  3637. thingery.MeshType = "Sphere"
  3638. thingery.Scale = vt(20,20,20)
  3639. game:GetService("Debris"):AddItem(lb, 10)
  3640. local bv = Instance.new("BodyVelocity")
  3641. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3642. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3643. bv.Parent = lb
  3644. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3645. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3646. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3647. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3648. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3649. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3650. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3651. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3652. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3653. local hitted = false
  3654. coroutine.resume(coroutine.create(function()
  3655. while true do
  3656. swait(1)
  3657. if lb.Parent ~= nil and hitted == false then
  3658. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3659. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3660. elseif lb.Parent == nil then
  3661. break
  3662. end
  3663. end
  3664. end))
  3665.  
  3666. game:GetService("Debris"):AddItem(a, 0.1)
  3667.  
  3668. coroutine.resume(coroutine.create(function()
  3669. swait(1)
  3670. lb.Touched:connect(function(hit)
  3671. if hitted == false then
  3672. hitted = true
  3673. lb.Transparency = 1
  3674. lb.Anchored = true
  3675. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3676. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3677. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3678. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3679. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3680. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3681. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3682. CameraEnshaking(10,5)
  3683. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3684. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3685. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3686. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3687. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3688. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3689. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3690. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3691. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3692. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3693. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3694. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3695. for i = 0, 9 do
  3696. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3697. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3698. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3699. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3700. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3701. sphereMK(1,math.random(1,3),"Add",lb.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.1,MAINRUINCOLOR,0)
  3702. end
  3703. for i = 0, 49 do
  3704. swait()
  3705. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3706. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3707. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3708. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3709. end
  3710. end
  3711. end)
  3712. end))
  3713. end
  3714. Overed = true
  3715. orb:Destroy()
  3716. end))
  3717.  
  3718. attack = false
  3719. end
  3720.  
  3721. function StarDivision()
  3722. attack = true
  3723. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3724. for i = 0, 2, 0.1 do
  3725. swait()
  3726. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3727. 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)),.6)
  3728. 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)),.6)
  3729. 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(90)),.6)
  3730. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3731. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3732. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3733. end
  3734. local orb = Instance.new("Part", char)
  3735. orb.BrickColor = MAINRUINCOLOR
  3736. orb.CanCollide = false
  3737. orb.FormFactor = 3
  3738. orb.Name = "Ring"
  3739. orb.Material = "Neon"
  3740. orb.Size = Vector3.new(1, 1, 1)
  3741. orb.Transparency = 0
  3742. orb.TopSurface = 0
  3743. orb.BottomSurface = 0
  3744. local orbm = Instance.new("SpecialMesh", orb)
  3745. orbm.MeshType = "Sphere"
  3746. orbm.Name = "SizeMesh"
  3747. orbm.Scale = vt(2,2,2)
  3748. local a = Instance.new("Part",workspace)
  3749. a.Name = "Direction"
  3750. a.Anchored = true
  3751. a.BrickColor = bc("Bright red")
  3752. a.Material = "Neon"
  3753. a.Transparency = 1
  3754. a.CanCollide = false
  3755. local ray = Ray.new(
  3756. sorb.CFrame.p, -- origin
  3757. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3758. )
  3759. local ignore = sorb
  3760. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3761. a.BottomSurface = 10
  3762. a.TopSurface = 10
  3763. local distance = (sorb.CFrame.p - position).magnitude
  3764. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3765. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3766. orb.CFrame = a.CFrame
  3767. a:Destroy()
  3768. local bv = Instance.new("BodyVelocity")
  3769. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3770. bv.velocity = orb.CFrame.lookVector*100
  3771. bv.Parent = orb
  3772. local hitted = false
  3773. game:GetService("Debris"):AddItem(orb, 10)
  3774. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3775. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3776. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3777. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3778. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3779. coroutine.resume(coroutine.create(function()
  3780. while true do
  3781. swait(1)
  3782. if orb.Parent ~= nil and hitted == false then
  3783. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  3784. elseif orb.Parent == nil then
  3785. break
  3786. end
  3787. end
  3788. end))
  3789. coroutine.resume(coroutine.create(function()
  3790. swait(1)
  3791. orb.Touched:connect(function(hit)
  3792. if hitted == false then
  3793. hitted = true
  3794. game:GetService("Debris"):AddItem(orb, 5)
  3795. orb.Transparency = 1
  3796. orb.Anchored = true
  3797. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3798. elocacenter.Anchored = true
  3799. elocacenter.CFrame = orb.CFrame
  3800. elocacenter.Orientation = vt(0,0,0)
  3801. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3802. eloca1.Anchored = true
  3803. eloca1.CFrame = elocacenter.CFrame
  3804. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3805. eloca2.Anchored = true
  3806. eloca2.CFrame = elocacenter.CFrame
  3807. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3808. eloca3.Anchored = true
  3809. eloca3.CFrame = elocacenter.CFrame
  3810. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3811. eloca4.Anchored = true
  3812. eloca4.CFrame = elocacenter.CFrame
  3813. local lookavec = 0
  3814. local speeds = 0
  3815. CameraEnshaking(1,1)
  3816. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3817. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3818. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3819. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3820. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3821. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3822. for i = 0, 99 do
  3823. swait()
  3824. lookavec = lookavec + 1
  3825. speeds = speeds + 0.1
  3826. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3827. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3828. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3829.  
  3830. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3831. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3832.  
  3833. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3834. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3835.  
  3836. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3837. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3838. end
  3839.  
  3840. for i = 0, 149 do
  3841. swait()
  3842. speeds = speeds + 0.1
  3843. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3844. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3845. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3846.  
  3847. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3848. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3849.  
  3850. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3851. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3852.  
  3853. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3854. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3855. end
  3856. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3857. if v:FindFirstChild('Head') then
  3858. dmg(v)
  3859. end
  3860. end
  3861. CameraEnshaking(7,30)
  3862. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3863. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3864. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3865. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3866. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3867. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3868. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3869. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3870. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3871. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3872. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3873. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3874. for i = 0, 24 do
  3875. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  3876. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  3877. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  3878. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  3879. end
  3880. coroutine.resume(coroutine.create(function()
  3881. for i = 0, 499 do
  3882. swait(1)
  3883. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3884. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  3885. end
  3886. elocacenter:Destroy()
  3887. eloca1:Destroy()
  3888. eloca2:Destroy()
  3889. eloca3:Destroy()
  3890. eloca4:Destroy()
  3891. end))
  3892. end
  3893. end)
  3894. end))
  3895. attack = false
  3896. end
  3897.  
  3898.  
  3899. function UniversalCollapse()
  3900. attack = true
  3901. local speedearn = 0
  3902. hum.WalkSpeed = 0
  3903. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3904. for i = 0, 10, 0.1 do
  3905. swait()
  3906. speedearn = speedearn + 0.1
  3907. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3908. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3909. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3910. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3911. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3912. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  3913. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  3914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3916. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  3917. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  3918. end
  3919. CameraEnshaking(5,45)
  3920. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3921. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3922. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3923. if v:FindFirstChild('Head') then
  3924. dmg(v)
  3925. end
  3926. end
  3927. hum.WalkSpeed = storehumanoidWS
  3928. attack = false
  3929. end
  3930. function ChaosBegone()
  3931. attack = true
  3932. local speedearn = 0
  3933. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3934. for i = 0, 10, 0.1 do
  3935. swait()
  3936. speedearn = speedearn + 0.1
  3937. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3938. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3939. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3940. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3941. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  3942. 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)),.2)
  3943. 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)),.2)
  3944. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3945. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3947. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3948. end
  3949. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  3950. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  3951. CameraEnshaking(5,25)
  3952. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3953. if v:FindFirstChild('Head') then
  3954. dmg(v)
  3955. end
  3956. end
  3957. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  3958. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  3959. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  3960. for i = 0, 3, 0.1 do
  3961. swait()
  3962. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*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)
  3963. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*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)
  3964. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*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)
  3965. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*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)
  3966. 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)),.4)
  3967. 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)),.4)
  3968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3970. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3971. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3972. end
  3973. attack = false
  3974. end
  3975.  
  3976. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  3977. local orb = Instance.new("Part", char)
  3978. orb.Anchored = true
  3979. orb.BrickColor = color
  3980. orb.CanCollide = false
  3981. orb.FormFactor = 3
  3982. orb.Name = "Ring"
  3983. orb.Material = "Neon"
  3984. orb.Size = Vector3.new(1, 1, 1)
  3985. orb.Transparency = 0
  3986. orb.TopSurface = 0
  3987. orb.BottomSurface = 0
  3988. local orbm = Instance.new("SpecialMesh", orb)
  3989. orbm.MeshType = "Sphere"
  3990. orb.CFrame = positted
  3991. orbm.Name = "SizeMesh"
  3992. orbm.Scale = vt(1,1,1)
  3993. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  3994. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  3995. --[[for i = 0, 2 do
  3996. 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)
  3997. end]]--
  3998. coroutine.resume(coroutine.create(function()
  3999. wait(timer)
  4000. CameraEnshaking(3,ShakePower)
  4001. orb.Transparency = 1
  4002. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4003. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4004. --[[for i = 0, 4 do
  4005. sphereMK(5,0.15*MagniBoost,"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)
  4006. end]]--
  4007. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4008. wait(3)
  4009. orb:Destroy()
  4010. end))
  4011. end
  4012.  
  4013. function orb_spawn(positted,timer)
  4014. local randomcol = math.random(1,2)
  4015. local orb = Instance.new("Part", char)
  4016. orb.Anchored = true
  4017. if randomcol == 1 then
  4018. orb.BrickColor = BrickColor.new("White")
  4019. elseif randomcol == 2 then
  4020. orb.BrickColor = BrickColor.new("Really black")
  4021. end
  4022. orb.CanCollide = false
  4023. orb.FormFactor = 3
  4024. orb.Name = "Ring"
  4025. orb.Material = "Neon"
  4026. orb.Size = Vector3.new(1, 1, 1)
  4027. orb.Transparency = 0
  4028. orb.TopSurface = 0
  4029. orb.BottomSurface = 0
  4030. local orbm = Instance.new("SpecialMesh", orb)
  4031. orbm.MeshType = "Sphere"
  4032. orb.CFrame = positted
  4033. orbm.Name = "SizeMesh"
  4034. orbm.Scale = vt(1,1,1)
  4035. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4036. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4037. for i = 0, 2 do
  4038. 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)
  4039. end
  4040. coroutine.resume(coroutine.create(function()
  4041. wait(timer)
  4042. CameraEnshaking(3,2)
  4043. orb.Transparency = 1
  4044. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4045. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4046. for i = 0, 4 do
  4047. 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)
  4048. end
  4049. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4050. wait(3)
  4051. orb:Destroy()
  4052. end))
  4053. end
  4054.  
  4055. function scattercorrupt()
  4056. attack = true
  4057. local rot = 0
  4058. local randomrotations = math.random(1,2)
  4059. local lookv = 2.5
  4060. local power = 5
  4061. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4062. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4063. for i = 0, 9 do
  4064. 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)
  4065. end
  4066. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4067. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4068. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4069. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4070. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4071. local hite = Instance.new("Part", char)
  4072. hite.Anchored = true
  4073. hite.CanCollide = false
  4074. hite.FormFactor = 3
  4075. hite.Name = "Ring"
  4076. hite.Material = "Neon"
  4077. hite.Size = Vector3.new(1, 1, 1)
  4078. hite.Transparency = 1
  4079. hite.TopSurface = 0
  4080. hite.BottomSurface = 0
  4081. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4082. local rem = Instance.new("Part", char)
  4083. rem.Anchored = true
  4084. rem.CanCollide = false
  4085. rem.FormFactor = 3
  4086. rem.Name = "Ring"
  4087. rem.Material = "Neon"
  4088. rem.Size = Vector3.new(1, 1, 1)
  4089. rem.Transparency = 1
  4090. rem.TopSurface = 0
  4091. rem.BottomSurface = 0
  4092. rem.CFrame = hite.CFrame
  4093. local rem2 = rem:Clone()
  4094. rem2.Parent = char
  4095. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4096. local rem3 = rem:Clone()
  4097. rem3.Parent = char
  4098. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4099. local rem4 = rem:Clone()
  4100. rem4.Parent = char
  4101. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4102. hite:Destroy()
  4103. coroutine.resume(coroutine.create(function()
  4104. for i = 0, 24 do
  4105. swait(1)
  4106. if randomrotations == 1 then
  4107. rot = rot + 1
  4108. elseif randomrotations == 2 then
  4109. rot = rot - 1
  4110. end
  4111. power = power + 0.5
  4112. lookv = lookv + 7.5
  4113. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4114. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4115. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4116. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4117. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4118. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4119. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4120. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4121. end
  4122. end))
  4123. attack = false
  4124. end
  4125. function yinyangi()
  4126. attack = true
  4127. for i = 0, 2, 0.1 do
  4128. swait()
  4129. 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)),.2)
  4130. 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)),.2)
  4131. 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)),.2)
  4132. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4134. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4135. end
  4136. local bv = Instance.new("BodyVelocity")
  4137. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4138. bv.velocity = root.CFrame.lookVector*175
  4139. bv.Parent = root
  4140. for Rotations = 0, 9 do
  4141. for i = 0, 1, 0.5 do
  4142. swait()
  4143. bv.velocity = root.CFrame.lookVector*175
  4144. 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)),.5)
  4145. 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)),.5)
  4146. 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)),.5)
  4147. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4148. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4149. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4150. end
  4151. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4152. for i = 0, 1, 0.5 do
  4153. swait()
  4154. bv.velocity = root.CFrame.lookVector*175
  4155. 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)),.5)
  4156. 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)),.5)
  4157. 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)),.5)
  4158. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4160. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4161. end
  4162. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4163. for i = 0, 1, 0.5 do
  4164. swait()
  4165. bv.velocity = root.CFrame.lookVector*175
  4166. 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)),.5)
  4167. 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)),.5)
  4168. 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)),.5)
  4169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4170. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4171. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4172. end
  4173. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4174. for i = 0, 1, 0.5 do
  4175. swait()
  4176. bv.velocity = root.CFrame.lookVector*175
  4177. 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)),.5)
  4178. 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)),.5)
  4179. 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)),.5)
  4180. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4181. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4182. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4183. end
  4184. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4185. end
  4186. bv:Destroy()
  4187. attack = false
  4188. end
  4189.  
  4190. function Wip()
  4191. attack = true
  4192.  
  4193. local rngb = Instance.new("Part", char)
  4194. rngb.Anchored = true
  4195. rngb.BrickColor = origcolor
  4196. rngb.CanCollide = false
  4197. rngb.FormFactor = 3
  4198. rngb.Name = "Ring"
  4199. rngb.Material = "Neon"
  4200. rngb.Size = Vector3.new(1, 0.05, 1)
  4201. rngb.Transparency = 1
  4202. rngb.TopSurface = 0
  4203. rngb.BottomSurface = 0
  4204. local rngmb = Instance.new("SpecialMesh", rngb)
  4205. rngmb.MeshType = "Brick"
  4206. rngmb.Name = "SizeMesh"
  4207. rngmb.Scale = vt(0,1,0)
  4208.  
  4209. local orb = rngb:Clone()
  4210. orb.Parent = char
  4211. orb.Transparency = 0
  4212. orb.BrickColor = BrickColor.new("White")
  4213. orb.Size = vt(1,1,1)
  4214. local orbmish = orb.SizeMesh
  4215. orbmish.Scale = vt(0,0,0)
  4216. orbmish.MeshType = "Sphere"
  4217.  
  4218. local orbe = rngb:Clone()
  4219. orbe.Parent = char
  4220. orbe.Transparency = 0.5
  4221. orbe.BrickColor = BrickColor.new("New Yeller")
  4222. orbe.Size = vt(1,1,1)
  4223. local orbmish2 = orbe.SizeMesh
  4224. orbmish2.Scale = vt(0,0,0)
  4225. orbmish2.MeshType = "Sphere"
  4226. orbe.Color = Color3.new(r/255,g/255,b/255)
  4227.  
  4228. rngb:Destroy()
  4229. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4230. local scaled = 1
  4231. for i = 0,5,0.1 do
  4232. swait()
  4233. scaled = scaled - 0.02
  4234. if rainbowmode == true then
  4235. orbe.Color = Color3.new(r/255,g/255,b/255)
  4236. end
  4237. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4238. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4239. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4240. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4241. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  4242. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4243. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4244. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4245. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4246. 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)),.3)
  4247. 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)),.3)
  4248. RootPart.CFrame = FaceMouse()[1]
  4249. end]]--
  4250. for i = 0,5,0.1 do
  4251. swait()
  4252. if rainbowmode == true then
  4253. orbe.Color = Color3.new(r/255,g/255,b/255)
  4254. end
  4255. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4256. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4257. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4258. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4259. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4260. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4261. 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)),.3)
  4262. 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)),.3)
  4263. RootPart.CFrame = FaceMouse()[1]
  4264. end
  4265. orbe.Transparency = 1
  4266. orb.Transparency = 1
  4267. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4268. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4269. local a = Instance.new("Part",Character)
  4270. a.Name = "Direction"
  4271. a.Anchored = true
  4272. a.BrickColor = bc("White")
  4273. a.Material = "Neon"
  4274. a.Transparency = 0
  4275. a.Shape = "Cylinder"
  4276. a.CanCollide = false
  4277. local a2 = Instance.new("Part",Character)
  4278. a2.Name = "Direction"
  4279. a2.Anchored = true
  4280. a2.BrickColor = bc("New Yeller")
  4281. a2.Color = Color3.new(r/255,g/255,b/255)
  4282. a2.Material = "Neon"
  4283. a2.Transparency = 0.5
  4284. a2.Shape = "Cylinder"
  4285. a2.CanCollide = false
  4286. local ba = Instance.new("Part",Character)
  4287. ba.Name = "HitDirect"
  4288. ba.Anchored = true
  4289. ba.BrickColor = bc("Cool yellow")
  4290. ba.Material = "Neon"
  4291. ba.Transparency = 1
  4292. ba.CanCollide = false
  4293. local ray = Ray.new(
  4294. orb.CFrame.p, -- origin
  4295. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4296. )
  4297. local ignore = Character
  4298. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4299. a.BottomSurface = 10
  4300. a.TopSurface = 10
  4301. a2.BottomSurface = 10
  4302. a2.TopSurface = 10
  4303. local distance = (orb.CFrame.p - position).magnitude
  4304. a.Size = Vector3.new(distance, 1, 1)
  4305. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4306. a2.Size = Vector3.new(distance, 1, 1)
  4307. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4308. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4309. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4310. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4311. game:GetService("Debris"):AddItem(a, 20)
  4312. game:GetService("Debris"):AddItem(a2, 20)
  4313. game:GetService("Debris"):AddItem(ba, 20)
  4314. local msh = Instance.new("SpecialMesh",a)
  4315. msh.MeshType = "Cylinder"
  4316. msh.Scale = vt(1,5*5,5*5)
  4317. local msh2 = Instance.new("SpecialMesh",a2)
  4318. msh2.MeshType = "Cylinder"
  4319. msh2.Scale = vt(1,6*5,6*5)
  4320.  
  4321. for i = 0,10,0.1 do
  4322. swait()
  4323. CameraEnshaking(1,5)
  4324. a2.Color = Color3.new(r/255,g/255,b/255)
  4325. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4326. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4327. ray = Ray.new(
  4328. orb.CFrame.p, -- origin
  4329. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4330. )
  4331. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4332. distance = (orb.CFrame.p - position).magnitude
  4333. if typrot == 1 then
  4334. rotation = rotation + 2.5
  4335. elseif typrot == 2 then
  4336. rotation = rotation - 2.5
  4337. end
  4338. RootPart.CFrame = FaceMouse()[1]
  4339. a.Size = Vector3.new(distance, 1, 1)
  4340. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4341. a2.Size = Vector3.new(distance, 1, 1)
  4342. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4343. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4344. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4345. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4346. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4347. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4348. 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)
  4349. 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)
  4350. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4351. end
  4352. a:Destroy()
  4353. a2:Destroy()
  4354. ba:Destroy()
  4355. orb:Destroy()
  4356. orbe:Destroy()
  4357. attack = false
  4358. end
  4359. function HolyBarrier()
  4360. attack = true
  4361. shielding = true
  4362. for i = 0, 2, 0.1 do
  4363. swait()
  4364. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4365. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  4366. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4367. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4368. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4369. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4370. end
  4371. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4372. stash = Instance.new("Model",workspace)
  4373. local barrier = Instance.new("Part",stash)
  4374. barrier.Anchored = true
  4375. barrier.CanCollide = false
  4376. barrier.Size = Vector3.new(20,20,20)
  4377. barrier.CFrame = root.CFrame
  4378. barrier.Transparency = 0.6
  4379. barrier.BrickColor = MAINRUINCOLOR
  4380. barrier.Material = Enum.Material.Neon
  4381. barrier.Shape = Enum.PartType.Ball
  4382. barrier.CFrame = root.CFrame
  4383. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4384. Torso.Anchored = true
  4385. for i=1,50 do
  4386. local p = Instance.new("Part",stash)
  4387. p.Anchored = true
  4388. p.Transparency = 1
  4389. p.Size = Vector3.new(11,11,11)
  4390. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4391. end
  4392. repeat
  4393. swait(5)
  4394. 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("White"),0)
  4395. until shielding == false
  4396. stash:Remove()
  4397. Torso.Anchored = false
  4398. shielding = false
  4399. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4400. attack = false
  4401. end
  4402. function Judgement()
  4403. attack = true
  4404. judgement = true
  4405. hum.WalkSpeed = 0
  4406. local p = Instance.new("Part",root)
  4407. p.Anchored = true
  4408. p.CanCollide = false
  4409. p.BrickColor = MAINRUINCOLOR
  4410. p.Material = Enum.Material.Neon
  4411. p.Size = Vector3.new(1,1,1)
  4412. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4413. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4414. local m = Instance.new("SpecialMesh",p)
  4415. m.MeshType = "Cylinder"
  4416. m.Scale = Vector3.new(2000,2,2)
  4417. local targ = Instance.new("Part",root)
  4418. targ.Anchored = true
  4419. targ.Transparency = 1
  4420. targ.CanCollide = false
  4421. targ.Size = Vector3.new(1,1,1)
  4422. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4423. local s = Instance.new("Sound",targ)
  4424. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4425. s.Looped = true
  4426. s.Pitch = 1.2
  4427. s.Volume = 3
  4428. spawn(function()
  4429. swait(15)
  4430. s:Play()
  4431. end)
  4432. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4433. for i = 1,15 do
  4434. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4435. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4436. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4437. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4438. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4439. 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(-20)),.2)
  4440. 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(20)),.2)
  4441. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4442. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4443. m.Scale = m.Scale+Vector3.new(0,1,1)
  4444. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4445. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4446. swait()
  4447. end
  4448. sphereMK(3, 0.2, "Add", targ.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)
  4449. repeat
  4450. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4451. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4452. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4453. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4454. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4455. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4456. swait()
  4457. until judgement == false
  4458. for i =1,15 do
  4459. m.Scale = m.Scale-Vector3.new(1,1,1)
  4460. p.Transparency = i / 15
  4461. s.Pitch = s.Pitch - 0.4
  4462. swait()
  4463. end
  4464. p:Destroy()
  4465. hum.WalkSpeed = storehumanoidWS
  4466. attack = false
  4467. end
  4468.  
  4469. function UniversalSpark()
  4470. attack = true
  4471.  
  4472. local rngb = Instance.new("Part", char)
  4473. rngb.Anchored = true
  4474. rngb.BrickColor = origcolor
  4475. rngb.CanCollide = false
  4476. rngb.FormFactor = 3
  4477. rngb.Name = "Ring"
  4478. rngb.Material = "Neon"
  4479. rngb.Size = Vector3.new(1, 0.05, 1)
  4480. rngb.Transparency = 1
  4481. rngb.TopSurface = 0
  4482. rngb.BottomSurface = 0
  4483. local rngmb = Instance.new("SpecialMesh", rngb)
  4484. rngmb.MeshType = "Brick"
  4485. rngmb.Name = "SizeMesh"
  4486. rngmb.Scale = vt(0,1,0)
  4487.  
  4488. local orb = rngb:Clone()
  4489. orb.Parent = char
  4490. orb.Transparency = 0
  4491. orb.BrickColor = BrickColor.new("White")
  4492. orb.Size = vt(1,1,1)
  4493. local orbmish = orb.SizeMesh
  4494. orbmish.Scale = vt(0,0,0)
  4495. orbmish.MeshType = "Sphere"
  4496.  
  4497. local orbe = rngb:Clone()
  4498. orbe.Parent = char
  4499. orbe.Transparency = 0.5
  4500. orbe.BrickColor = BrickColor.new("New Yeller")
  4501. orbe.Size = vt(1,1,1)
  4502. local orbmish2 = orbe.SizeMesh
  4503. orbmish2.Scale = vt(0,0,0)
  4504. orbmish2.MeshType = "Sphere"
  4505. orbe.Color = Color3.new(r/255,g/255,b/255)
  4506.  
  4507. rngb:Destroy()
  4508. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4509. local scaled = 1
  4510. for i = 0,5,0.1 do
  4511. swait()
  4512. scaled = scaled - 0.02
  4513. if rainbowmode == true then
  4514. orbe.Color = Color3.new(r/255,g/255,b/255)
  4515. end
  4516. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4517. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4518. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4519. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4520. sphereMKCharge(2.5,-0.5,"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,MAINRUINCOLOR,25)
  4521. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4522. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4523. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4524. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4525. 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)),.3)
  4526. 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)),.3)
  4527. RootPart.CFrame = FaceMouse()[1]
  4528. end]]--
  4529. for i = 0,5,0.1 do
  4530. swait()
  4531. if rainbowmode == true then
  4532. orbe.Color = Color3.new(r/255,g/255,b/255)
  4533. end
  4534. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4535. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4536. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4537. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4538. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4539. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4540. 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)),.3)
  4541. 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)),.3)
  4542. RootPart.CFrame = FaceMouse()[1]
  4543. end
  4544. orbe.Transparency = 1
  4545. orb.Transparency = 1
  4546. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4547. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4548. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4549. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4550.  
  4551. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4552. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4553. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4554. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4555. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4556. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4557. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4558. local xd= Instance.new("Sound",char)
  4559. xd.SoundId = "rbxassetid://445796828"
  4560. xd.Pitch = 0.75
  4561. xd.Looped = true
  4562. xd.Volume = 1.25
  4563. xd:Play()
  4564. local a = Instance.new("Part",Character)
  4565. a.Name = "Direction"
  4566. a.Anchored = true
  4567. a.BrickColor = bc("Alder")
  4568. a.Color = MAINRUINCOLOR.Color
  4569. a.Material = "Neon"
  4570. a.Transparency = 0.5
  4571. a.Shape = "Cylinder"
  4572. a.CanCollide = false
  4573. local a2 = Instance.new("Part",Character)
  4574. a2.Name = "Direction"
  4575. a2.Anchored = true
  4576. a2.BrickColor = bc("New Yeller")
  4577. a2.Color = MAINRUINCOLOR.Color
  4578. a2.Material = "Neon"
  4579. a2.Transparency = 0.5
  4580. a2.Shape = "Cylinder"
  4581. a2.CanCollide = false
  4582. local ba = Instance.new("Part",Character)
  4583. ba.Name = "HitDirect"
  4584. ba.Anchored = true
  4585. ba.BrickColor = bc("Cool yellow")
  4586. ba.Material = "Neon"
  4587. ba.Transparency = 1
  4588. ba.CanCollide = false
  4589. local ray = Ray.new(
  4590. orb.CFrame.p, -- origin
  4591. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4592. )
  4593. local ignore = Character
  4594. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4595. a.BottomSurface = 10
  4596. a.TopSurface = 10
  4597. a2.BottomSurface = 10
  4598. a2.TopSurface = 10
  4599. local distance = (orb.CFrame.p - position).magnitude
  4600. a.Size = Vector3.new(distance, 1, 1)
  4601. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4602. a2.Size = Vector3.new(distance, 1, 1)
  4603. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4604. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4605. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4606. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4607. game:GetService("Debris"):AddItem(a, 60)
  4608. game:GetService("Debris"):AddItem(a2, 60)
  4609. game:GetService("Debris"):AddItem(ba, 60)
  4610. local outerscale = 0
  4611. local msh = Instance.new("SpecialMesh",a)
  4612. msh.MeshType = "Cylinder"
  4613. msh.Scale = vt(1,0,0)
  4614. local msh2 = Instance.new("SpecialMesh",a2)
  4615. msh2.MeshType = "Cylinder"
  4616. msh2.Scale = vt(1,0,0)
  4617. for i = 0,2,0.1 do
  4618. swait()
  4619. CameraEnshaking(1,1)
  4620. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4621. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4622. outerscale = outerscale - 0.015
  4623. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4624. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4625. ray = Ray.new(
  4626. orb.CFrame.p, -- origin
  4627. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4628. )
  4629. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4630. distance = (orb.CFrame.p - position).magnitude
  4631. if typrot == 1 then
  4632. rotation = rotation + 2.5
  4633. elseif typrot == 2 then
  4634. rotation = rotation - 2.5
  4635. end
  4636. RootPart.CFrame = FaceMouse()[1]
  4637. a.Size = Vector3.new(distance, 1, 1)
  4638. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4639. a2.Size = Vector3.new(distance, 1, 1)
  4640. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4641. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4642. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4643. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4644. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4645. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4646. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4647. end
  4648. for z = 0, 2 do
  4649. for i = 0,4,0.1 do
  4650. swait()
  4651. CameraEnshaking(1,1)
  4652. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4653. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4654. outerscale = outerscale + 0.015
  4655. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4656. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4657. ray = Ray.new(
  4658. orb.CFrame.p, -- origin
  4659. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4660. )
  4661. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4662. distance = (orb.CFrame.p - position).magnitude
  4663. if typrot == 1 then
  4664. rotation = rotation + 2.5
  4665. elseif typrot == 2 then
  4666. rotation = rotation - 2.5
  4667. end
  4668. RootPart.CFrame = FaceMouse()[1]
  4669. a.Size = Vector3.new(distance, 1, 1)
  4670. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4671. a2.Size = Vector3.new(distance, 1, 1)
  4672. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4673. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4674. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4675. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4676. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4677. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4678. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4679. end
  4680. for i = 0,4,0.1 do
  4681. swait()
  4682. CameraEnshaking(1,1)
  4683. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4684. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4685. outerscale = outerscale - 0.015
  4686. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4687. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4688. ray = Ray.new(
  4689. orb.CFrame.p, -- origin
  4690. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4691. )
  4692. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4693. distance = (orb.CFrame.p - position).magnitude
  4694. if typrot == 1 then
  4695. rotation = rotation + 2.5
  4696. elseif typrot == 2 then
  4697. rotation = rotation - 2.5
  4698. end
  4699. RootPart.CFrame = FaceMouse()[1]
  4700. a.Size = Vector3.new(distance, 1, 1)
  4701. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4702. a2.Size = Vector3.new(distance, 1, 1)
  4703. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4704. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4705. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4706. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4707. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4708. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4709. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4710. end
  4711. end
  4712. for i = 0,4,0.1 do
  4713. swait()
  4714. CameraEnshaking(1,1)
  4715. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4716. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4717. xd.Volume = xd.Volume - 0.025
  4718. a.Transparency = a.Transparency + 0.025
  4719. a2.Transparency = a2.Transparency + 0.025
  4720. outerscale = outerscale - 0.015
  4721. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4722. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4723. ray = Ray.new(
  4724. orb.CFrame.p, -- origin
  4725. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4726. )
  4727. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4728. distance = (orb.CFrame.p - position).magnitude
  4729. if typrot == 1 then
  4730. rotation = rotation + 2.5
  4731. elseif typrot == 2 then
  4732. rotation = rotation - 2.5
  4733. end
  4734. RootPart.CFrame = FaceMouse()[1]
  4735. a.Size = Vector3.new(distance, 1, 1)
  4736. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4737. a2.Size = Vector3.new(distance, 1, 1)
  4738. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4739. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4740. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4741. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4742. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4743. 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))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4744. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4745. end
  4746. xd:Destroy()
  4747. a:Destroy()
  4748. a2:Destroy()
  4749. ba:Destroy()
  4750. orb:Destroy()
  4751. orbe:Destroy()
  4752. attack = false
  4753. end
  4754.  
  4755.  
  4756. function resetmode()
  4757. rainbowmode = false
  4758. chaosmode = false
  4759. tl1.Enabled = false
  4760. tl2.Enabled = false
  4761. tl3.Enabled = false
  4762. ModeOfGlitch = 1
  4763. storehumanoidWS = 16
  4764. coroutine.resume(coroutine.create(function()
  4765. attack = true
  4766. hum.WalkSpeed = 0
  4767. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4768. for i = 0,4,0.1 do
  4769. swait()
  4770. sphereMK(2.5,-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))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  4771. 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(30)),.5)
  4772. 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(-30)),.5)
  4773. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  4774. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  4775. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4776. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4777. end
  4778. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4779. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4780. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4781. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4782. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4783. CameraEnshaking(5,2.5)
  4784. MAINRUINCOLOR = BrickColor.new("Really red")
  4785. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4786. for i = 0, 49 do
  4787. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  4788. end
  4789. for i = 0,3,0.1 do
  4790. sphereMK(2.5,-1,"Add",root.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,25,-0.025,MAINRUINCOLOR,0)
  4791. end
  4792. for i, v in pairs(mw2:GetChildren()) do
  4793. if v:IsA("Part") then
  4794. v.BrickColor = BrickColor.new("Really red")
  4795. v.Material = "Neon"
  4796. end
  4797. end
  4798. for i, v in pairs(mw1:GetChildren()) do
  4799. if v:IsA("Part") then
  4800. v.Transparency = 1
  4801. v.BrickColor = BrickColor.new("Really red")
  4802. v.Material = "Neon"
  4803. end
  4804. end
  4805. for i, v in pairs(m:GetChildren()) do
  4806. if v:IsA("Part") then
  4807. v.BrickColor = BrickColor.new("Really black")
  4808. v.Material = "Glass"
  4809. end
  4810. end
  4811. for i, v in pairs(m2:GetChildren()) do
  4812. if v:IsA("Part") then
  4813. v.BrickColor = BrickColor.new("Crimson")
  4814. v.Material = "Granite"
  4815. end
  4816. end
  4817. for i, v in pairs(m3:GetChildren()) do
  4818. if v:IsA("Part") then
  4819. v.BrickColor = BrickColor.new("Really red")
  4820. v.Material = "Neon"
  4821. end
  4822. end
  4823. for i, v in pairs(extrawingmod1:GetChildren()) do
  4824. if v:IsA("Part") then
  4825. v.Transparency = 1
  4826. v.BrickColor = BrickColor.new("White")
  4827. v.Material = "Neon"
  4828. end
  4829. end
  4830. for i, v in pairs(extrawingmod2:GetChildren()) do
  4831. if v:IsA("Part") then
  4832. v.Transparency = 1
  4833. v.BrickColor = BrickColor.new("White")
  4834. v.Material = "Neon"
  4835. end
  4836. end
  4837. for i = 0,2,0.1 do
  4838. swait()
  4839. 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(-30)),.5)
  4840. 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(30)),.5)
  4841. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  4843. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  4844. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  4845. end
  4846. hum.WalkSpeed = storehumanoidWS
  4847. attack = false
  4848. end))
  4849. newTheme("rbxassetid://614032233",48.6,1,0.3)
  4850. end
  4851.  
  4852. function attackone()
  4853. attack = true
  4854. for i = 0,1,0.1 do
  4855. swait()
  4856. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4857. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4858. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4859. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4860. 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)),.2)
  4861. 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)),.2)
  4862. end
  4863. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4864.  
  4865. local hitb = Instance.new("Part", char)
  4866. hitb.Anchored = true
  4867. hitb.CanCollide = false
  4868. hitb.FormFactor = 3
  4869. hitb.Name = "Ring"
  4870. hitb.Material = "Neon"
  4871. hitb.Size = Vector3.new(1, 1, 1)
  4872. hitb.Transparency = 1
  4873. hitb.TopSurface = 0
  4874. hitb.BottomSurface = 0
  4875. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4876. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4877. hitb:Destroy()
  4878. for i = 0,1,0.1 do
  4879. swait()
  4880. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  4881. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  4882. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4883. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4884. 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)),.4)
  4885. 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)),.4)
  4886. end
  4887.  
  4888. attack = false
  4889. end
  4890.  
  4891. function attacktwo()
  4892. attack = true
  4893. for i = 0,1,0.1 do
  4894. swait()
  4895. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  4896. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  4897. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4898. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4899. 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)),.2)
  4900. 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)),.2)
  4901. end
  4902. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  4903. local hitb = Instance.new("Part", char)
  4904. hitb.Anchored = true
  4905. hitb.CanCollide = false
  4906. hitb.FormFactor = 3
  4907. hitb.Name = "Ring"
  4908. hitb.Material = "Neon"
  4909. hitb.Size = Vector3.new(1, 1, 1)
  4910. hitb.Transparency = 1
  4911. hitb.TopSurface = 0
  4912. hitb.BottomSurface = 0
  4913. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  4914. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  4915. hitb:Destroy()
  4916. for i = 0,1,0.1 do
  4917. swait()
  4918. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  4919. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  4920. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4921. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4922. 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)),.4)
  4923. 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)),.4)
  4924. end
  4925. attack = false
  4926. end
  4927.  
  4928. function attackthree()
  4929. attack = true
  4930. for i = 0,1,0.1 do
  4931. swait()
  4932. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  4933. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  4934. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4935. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4936. 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)),.3)
  4937. 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)),.3)
  4938. end
  4939. local distlook = 5
  4940. for i = 0, 4 do
  4941. swait(2)
  4942. CameraEnshaking(2,3)
  4943. local hite = Instance.new("Part", char)
  4944. hite.Anchored = true
  4945. hite.CanCollide = false
  4946. hite.FormFactor = 3
  4947. hite.Name = "Ring"
  4948. hite.Material = "Neon"
  4949. hite.Size = Vector3.new(1, 1, 1)
  4950. hite.Transparency = 1
  4951. hite.TopSurface = 0
  4952. hite.BottomSurface = 0
  4953. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  4954. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  4955. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  4956. MagniDamage(hite, 10, 15,35, 0, "Normal")
  4957. for i = 0, 2 do
  4958. 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)
  4959. 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)
  4960. 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)
  4961. end
  4962. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  4963. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  4964. game:GetService("Debris"):AddItem(hite, 5)
  4965. distlook = distlook + 10
  4966. end
  4967. attack = false
  4968. end
  4969.  
  4970. local ActiveGia = false
  4971. function THEHELLITSTHATBIG()
  4972. ActiveGia = true
  4973. attack = true
  4974. hum.WalkSpeed = 0
  4975. for i = 0,2,0.1 do
  4976. swait()
  4977. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4978. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4979. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4980. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4981. 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(-20)),.2)
  4982. 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(20)),.2)
  4983. end
  4984. for i = 0,1,0.1 do
  4985. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  4986. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  4987. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  4988. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  4989. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  4990. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  4991. end
  4992. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  4993. secrleg.Transparency = 0.5
  4994. seclleg.Transparency = 0.5
  4995. secrarm.Transparency = 0.5
  4996. seclarm.Transparency = 0.5
  4997. seched.Transparency = 0.5
  4998. sectors.Transparency = 0.5
  4999. for i = 0,25,0.1 do
  5000. swait()
  5001. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5002. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5003. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5004. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5005. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5006. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5007. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5008. end
  5009. --[[secrleg.Transparency = 1
  5010. seclleg.Transparency = 1
  5011. secrarm.Transparency = 1
  5012. seclarm.Transparency = 1
  5013. seched.Transparency = 1
  5014. sectors.Transparency = 1]]--
  5015. torsweld.Part0 = root
  5016. hum.WalkSpeed = storehumanoidWS
  5017. attack = false
  5018. end
  5019.  
  5020. function removelol()
  5021. ActiveGia = false
  5022. attack = true
  5023. hum.WalkSpeed = 0
  5024. for i = 0,2,0.1 do
  5025. swait()
  5026. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5027. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5028. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5030. 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(-20)),.2)
  5031. 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(20)),.2)
  5032. end
  5033. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5034. for i = 0,25,0.1 do
  5035. swait()
  5036. secrleg.Transparency = secrleg.Transparency + 0.00225
  5037. seclleg.Transparency = secrleg.Transparency
  5038. secrarm.Transparency = secrleg.Transparency
  5039. seclarm.Transparency = secrleg.Transparency
  5040. seched.Transparency = secrleg.Transparency
  5041. sectors.Transparency = secrleg.Transparency
  5042. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5043. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5044. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5045. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5046. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5047. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5048. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5049. end
  5050. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5051. CFuncs["Sound"].Create("rbxassetid://165970390", char, 5, 1)
  5052. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5053. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5054. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5055. secrleg.Transparency = 1
  5056. seclleg.Transparency = 1
  5057. secrarm.Transparency = 1
  5058. seclarm.Transparency = 1
  5059. seched.Transparency = 1
  5060. sectors.Transparency = 1
  5061. torsweld.Part0 = root
  5062. hum.WalkSpeed = storehumanoidWS
  5063. attack = false
  5064. end
  5065.  
  5066. function FinalCalamity()
  5067. end
  5068.  
  5069. local attacktype = 1
  5070. mouse.Button1Down:connect(function()
  5071. if attack == false and attacktype == 1 then
  5072. attacktype = 2
  5073. attackone()
  5074. elseif attack == false and attacktype == 2 then
  5075. attacktype = 3
  5076. attacktwo()
  5077. elseif attack == false and attacktype == 3 then
  5078. attacktype = 1
  5079. attackthree()
  5080. elseif attack == false and attacktype == 4 then
  5081. attacktype = 1
  5082. --attackfour()
  5083. end
  5084. end)
  5085. mouse.KeyDown:connect(function(k)
  5086. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5087. ModeOfGlitch = 2
  5088. storehumanoidWS = 75
  5089. hum.WalkSpeed = 75
  5090. rainbowmode = false
  5091. chaosmode = false
  5092. tl1.Enabled = true
  5093. tl2.Enabled = true
  5094. tl3.Enabled = true
  5095. RecolorTextAndRename("Pure Miku",Color3.new(1,1,1),Color3.new(0,1,1))
  5096. newTheme("rbxassetid://1619103467",0,1,0.3)
  5097. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5098. for i, v in pairs(mw2:GetChildren()) do
  5099. if v:IsA("Part") then
  5100. v.BrickColor = MAINRUINCOLOR
  5101. v.Material = "Neon"
  5102. end
  5103. end
  5104. for i, v in pairs(mw1:GetChildren()) do
  5105. if v:IsA("Part") then
  5106. v.Transparency = 0
  5107. v.BrickColor = MAINRUINCOLOR
  5108. v.Material = "Neon"
  5109. end
  5110. end
  5111. for i, v in pairs(m:GetChildren()) do
  5112. if v:IsA("Part") then
  5113. v.BrickColor = BrickColor.new("toothpaste")
  5114. v.Material = "Ice"
  5115. end
  5116. end
  5117. for i, v in pairs(m2:GetChildren()) do
  5118. if v:IsA("Part") then
  5119. v.BrickColor = BrickColor.new("toothpaste")
  5120. v.Material = "Glass"
  5121. end
  5122. end
  5123. for i, v in pairs(m3:GetChildren()) do
  5124. if v:IsA("Part") then
  5125. v.BrickColor = BrickColor.new("Toothpaste")
  5126. v.Material = "Neon"
  5127. end
  5128. end
  5129. for i, v in pairs(extrawingmod1:GetChildren()) do
  5130. if v:IsA("Part") then
  5131. v.Transparency = 0
  5132. v.BrickColor = BrickColor.new("toothpaste")
  5133. v.Material = "Neon"
  5134. end
  5135. end
  5136. for i, v in pairs(extrawingmod2:GetChildren()) do
  5137. if v:IsA("Part") then
  5138. v.Transparency = 0
  5139. v.BrickColor = BrickColor.new("toothpaste")
  5140. v.Material = "Neon"
  5141. end
  5142. end
  5143. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5144. resetmode()
  5145. end
  5146. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5147. ModeOfGlitch = 3
  5148. storehumanoidWS = 75
  5149. hum.WalkSpeed = 75
  5150. rainbowmode = false
  5151. chaosmode = false
  5152. tl1.Enabled = true
  5153. tl2.Enabled = true
  5154. tl3.Enabled = true
  5155. RecolorTextAndRename("Angry Miku",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5156. newTheme("rbxassetid://381991270",58.15,1,1.25)
  5157. MAINRUINCOLOR = BrickColor.new("Crimson")
  5158. for i, v in pairs(mw2:GetChildren()) do
  5159. if v:IsA("Part") then
  5160. v.BrickColor = MAINRUINCOLOR
  5161. v.Material = "Neon"
  5162. end
  5163. end
  5164. for i, v in pairs(mw1:GetChildren()) do
  5165. if v:IsA("Part") then
  5166. v.Transparency = 0
  5167. v.BrickColor = MAINRUINCOLOR
  5168. v.Material = "Neon"
  5169. end
  5170. end
  5171. for i, v in pairs(m:GetChildren()) do
  5172. if v:IsA("Part") then
  5173. v.BrickColor = BrickColor.new("Really Red")
  5174. v.Material = "Ice"
  5175. end
  5176. end
  5177. for i, v in pairs(m2:GetChildren()) do
  5178. if v:IsA("Part") then
  5179. v.BrickColor = BrickColor.new("Really Black")
  5180. v.Material = "Glass"
  5181. end
  5182. end
  5183. for i, v in pairs(m3:GetChildren()) do
  5184. if v:IsA("Part") then
  5185. v.BrickColor = BrickColor.new("Really Red")
  5186. v.Material = "Neon"
  5187. end
  5188. end
  5189. for i, v in pairs(extrawingmod1:GetChildren()) do
  5190. if v:IsA("Part") then
  5191. v.Transparency = 0
  5192. v.BrickColor = BrickColor.new("Really Red")
  5193. v.Material = "Neon"
  5194. end
  5195. end
  5196. for i, v in pairs(extrawingmod2:GetChildren()) do
  5197. if v:IsA("Part") then
  5198. v.Transparency = 0
  5199. v.BrickColor = BrickColor.new("Really Red")
  5200. v.Material = "Neon"
  5201. end
  5202. end
  5203. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5204. resetmode()
  5205. end
  5206. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5207. ModeOfGlitch = 4
  5208. storehumanoidWS = 75
  5209. hum.WalkSpeed = 75
  5210. rainbowmode = false
  5211. chaosmode = true
  5212. tl1.Enabled = true
  5213. tl2.Enabled = true
  5214. tl3.Enabled = true
  5215. RecolorTextAndRename("Crazy Miku",Color3.new(0,0,0),BrickColor.random().Color)
  5216. newTheme("rbxassetid://163002997",0,1,1)
  5217. MAINRUINCOLOR = BrickColor.new("Black")
  5218. for i, v in pairs(mw2:GetChildren()) do
  5219. if v:IsA("Part") then
  5220. v.BrickColor = MAINRUINCOLOR
  5221. v.Material = "Neon"
  5222. end
  5223. end
  5224. for i, v in pairs(mw1:GetChildren()) do
  5225. if v:IsA("Part") then
  5226. v.Transparency = 0.75
  5227. v.BrickColor = BrickColor.random()
  5228. v.Material = "Neon"
  5229. end
  5230. end
  5231. for i, v in pairs(m:GetChildren()) do
  5232. if v:IsA("Part") then
  5233. v.BrickColor = BrickColor.new("Really Red")
  5234. v.Material = "Neon"
  5235. end
  5236. end
  5237. for i, v in pairs(m2:GetChildren()) do
  5238. if v:IsA("Part") then
  5239. v.BrickColor = BrickColor.random()
  5240. v.Material = "Neon"
  5241. end
  5242. end
  5243. for i, v in pairs(m3:GetChildren()) do
  5244. if v:IsA("Part") then
  5245. v.BrickColor = BrickColor.new("Really Red")
  5246. v.Material = "Neon"
  5247. end
  5248. end
  5249. for i, v in pairs(extrawingmod1:GetChildren()) do
  5250. if v:IsA("Part") then
  5251. v.Transparency = 1
  5252. v.BrickColor = BrickColor.new("White")
  5253. v.Material = "Neon"
  5254. end
  5255. end
  5256. for i, v in pairs(extrawingmod2:GetChildren()) do
  5257. if v:IsA("Part") then
  5258. v.Transparency = 1
  5259. v.BrickColor = BrickColor.new("White")
  5260. v.Material = "Neon"
  5261. end
  5262. end
  5263. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5264. resetmode()
  5265. end
  5266. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5267. ModeOfGlitch = 5
  5268. storehumanoidWS = 75
  5269. hum.WalkSpeed = 75
  5270. rainbowmode = false
  5271. chaosmode = false
  5272. tl1.Enabled = true
  5273. tl2.Enabled = true
  5274. tl3.Enabled = true
  5275. RecolorTextAndRename("Loving Miku",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5276. newTheme("rbxassetid://165063332",0,1.02,1)
  5277. MAINRUINCOLOR = BrickColor.new("Pink")
  5278. for i, v in pairs(mw2:GetChildren()) do
  5279. if v:IsA("Part") then
  5280. v.BrickColor = MAINRUINCOLOR
  5281. v.Material = "Neon"
  5282. end
  5283. end
  5284. for i, v in pairs(mw1:GetChildren()) do
  5285. if v:IsA("Part") then
  5286. v.Transparency = 0
  5287. v.BrickColor = MAINRUINCOLOR
  5288. v.Material = "Neon"
  5289. end
  5290. end
  5291. for i, v in pairs(m:GetChildren()) do
  5292. if v:IsA("Part") then
  5293. v.BrickColor = BrickColor.new("Black")
  5294. v.Material = "Ice"
  5295. end
  5296. end
  5297. for i, v in pairs(m2:GetChildren()) do
  5298. if v:IsA("Part") then
  5299. v.BrickColor = BrickColor.new("Bright yellow")
  5300. v.Material = "Ice"
  5301. end
  5302. end
  5303. for i, v in pairs(m3:GetChildren()) do
  5304. if v:IsA("Part") then
  5305. v.BrickColor = BrickColor.new("Bright yellow")
  5306. v.Material = "Neon"
  5307. end
  5308. end
  5309. for i, v in pairs(extrawingmod1:GetChildren()) do
  5310. if v:IsA("Part") then
  5311. v.Transparency = 1
  5312. v.BrickColor = BrickColor.new("White")
  5313. v.Material = "Neon"
  5314. end
  5315. end
  5316. for i, v in pairs(extrawingmod2:GetChildren()) do
  5317. if v:IsA("Part") then
  5318. v.Transparency = 1
  5319. v.BrickColor = BrickColor.new("White")
  5320. v.Material = "Neon"
  5321. end
  5322. end
  5323. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5324. resetmode()
  5325. end
  5326. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5327. ModeOfGlitch = 6
  5328. storehumanoidWS = 75
  5329. hum.WalkSpeed = 75
  5330. rainbowmode = false
  5331. chaosmode = false
  5332. tl1.Enabled = true
  5333. tl2.Enabled = true
  5334. tl3.Enabled = true
  5335. RecolorTextAndRename("Flying Miku",Color3.new(0,0,0),Color3.new(1,1,1))
  5336. newTheme("rbxassetid://666201072",0,1,1)
  5337. MAINRUINCOLOR = BrickColor.random()
  5338. for i, v in pairs(mw2:GetChildren()) do
  5339. if v:IsA("Part") then
  5340. v.BrickColor = MAINRUINCOLOR
  5341. v.Material = "Neon"
  5342. end
  5343. end
  5344. for i, v in pairs(mw1:GetChildren()) do
  5345. if v:IsA("Part") then
  5346. v.Transparency = 0
  5347. v.BrickColor = MAINRUINCOLOR
  5348. v.Material = "Neon"
  5349. end
  5350. end
  5351. for i, v in pairs(m:GetChildren()) do
  5352. if v:IsA("Part") then
  5353. v.BrickColor = BrickColor.new("Really Black")
  5354. v.Material = "Ice"
  5355. end
  5356. end
  5357. for i, v in pairs(m2:GetChildren()) do
  5358. if v:IsA("Part") then
  5359. v.BrickColor = BrickColor.random()
  5360. v.Material = "Ice"
  5361. end
  5362. end
  5363. for i, v in pairs(m3:GetChildren()) do
  5364. if v:IsA("Part") then
  5365. v.BrickColor = BrickColor.new("Really Black")
  5366. v.Material = "Neon"
  5367. end
  5368. end
  5369. for i, v in pairs(extrawingmod1:GetChildren()) do
  5370. if v:IsA("Part") then
  5371. v.Transparency = 1
  5372. v.BrickColor = BrickColor.random()
  5373. v.Material = "Neon"
  5374. end
  5375. end
  5376. for i, v in pairs(extrawingmod2:GetChildren()) do
  5377. if v:IsA("Part") then
  5378. v.Transparency = 1
  5379. v.BrickColor = BrickColor.new("Blue")
  5380. v.Material = "Neon"
  5381. end
  5382. end
  5383. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5384. resetmode()
  5385. end
  5386. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5387. ModeOfGlitch = 6127843
  5388. storehumanoidWS = 75
  5389. hum.WalkSpeed = 75
  5390. rainbowmode = true
  5391. chaosmode = false
  5392. tl1.Enabled = true
  5393. tl2.Enabled = true
  5394. tl3.Enabled = true
  5395. RecolorTextAndRename("Rainbow Miku",Color3.new(1,1,1),Color3.new(1,1,1))
  5396. newTheme("rbxassetid://1564992814",0,1,1)
  5397. MAINRUINCOLOR = BrickColor.new("Red")
  5398. for i, v in pairs(mw2:GetChildren()) do
  5399. if v:IsA("Part") then
  5400. v.BrickColor = MAINRUINCOLOR
  5401. v.Material = "Neon"
  5402. end
  5403. end
  5404. for i, v in pairs(mw1:GetChildren()) do
  5405. if v:IsA("Part") then
  5406. v.Transparency = 0
  5407. v.BrickColor = MAINRUINCOLOR
  5408. v.Material = "Neon"
  5409. end
  5410. end
  5411. for i, v in pairs(m:GetChildren()) do
  5412. if v:IsA("Part") then
  5413. v.BrickColor = BrickColor.new("Red")
  5414. v.Material = "Neon"
  5415. end
  5416. end
  5417. for i, v in pairs(m2:GetChildren()) do
  5418. if v:IsA("Part") then
  5419. v.BrickColor = BrickColor.new("Red")
  5420. v.Material = "Neon"
  5421. end
  5422. end
  5423. for i, v in pairs(m3:GetChildren()) do
  5424. if v:IsA("Part") then
  5425. v.BrickColor = BrickColor.new("Red")
  5426. v.Material = "Neon"
  5427. end
  5428. end
  5429. for i, v in pairs(extrawingmod1:GetChildren()) do
  5430. if v:IsA("Part") then
  5431. v.Transparency = 1
  5432. v.BrickColor = BrickColor.new("Red")
  5433. v.Material = "Neon"
  5434. end
  5435. end
  5436. for i, v in pairs(extrawingmod2:GetChildren()) do
  5437. if v:IsA("Part") then
  5438. v.Transparency = 1
  5439. v.BrickColor = BrickColor.new("Red")
  5440. v.Material = "Neon"
  5441. end
  5442. end
  5443. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5444. resetmode()
  5445. end
  5446. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5447. ModeOfGlitch = 1000000
  5448. storehumanoidWS = 100
  5449. hum.WalkSpeed = 100
  5450. rainbowmode = false
  5451. chaosmode = false
  5452. tl1.Enabled = true
  5453. tl2.Enabled = true
  5454. tl3.Enabled = true
  5455. RecolorTextAndRename("Chaos Miku",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5456. newTheme("rbxassetid://582877668",0,1,1)
  5457. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5458. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5459. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5460. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5461. for i, v in pairs(mw2:GetChildren()) do
  5462. if v:IsA("Part") then
  5463. v.BrickColor = MAINRUINCOLOR
  5464. v.Material = "Neon"
  5465. end
  5466. end
  5467. for i, v in pairs(mw1:GetChildren()) do
  5468. if v:IsA("Part") then
  5469. v.Transparency = 0
  5470. v.BrickColor = MAINRUINCOLOR
  5471. v.Material = "Neon"
  5472. end
  5473. end
  5474. for i, v in pairs(m:GetChildren()) do
  5475. if v:IsA("Part") then
  5476. v.Color = Color3.new(0.5,0,1)
  5477. v.Material = "Neon"
  5478. end
  5479. end
  5480. for i, v in pairs(m2:GetChildren()) do
  5481. if v:IsA("Part") then
  5482. v.Color = Color3.new(0.25,0,1)
  5483. v.Material = "Neon"
  5484. end
  5485. end
  5486. for i, v in pairs(m3:GetChildren()) do
  5487. if v:IsA("Part") then
  5488. v.Color = Color3.new(0.45,0,1)
  5489. v.Material = "Neon"
  5490. end
  5491. end
  5492. for i, v in pairs(extrawingmod1:GetChildren()) do
  5493. if v:IsA("Part") then
  5494. v.Transparency = 0.75
  5495. v.Color = Color3.new(0.25,0,1)
  5496. v.Material = "Neon"
  5497. end
  5498. end
  5499. for i, v in pairs(extrawingmod2:GetChildren()) do
  5500. if v:IsA("Part") then
  5501. v.Transparency = 0.75
  5502. v.Color = Color3.new(0.5,0,1)
  5503. v.Material = "Neon"
  5504. end
  5505. end
  5506. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5507. resetmode()
  5508. end
  5509. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5510. newThemeCust("rbxassetid://798014630",0,1,1)
  5511. attack = true
  5512. hum.WalkSpeed = 0
  5513. MAINRUINCOLOR = BrickColor.new("Really Red")
  5514. for i = 0, 24, 0.1 do
  5515. swait()
  5516. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  5517. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5518. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5519. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5521. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5522. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5523. end
  5524. CameraEnshaking(1,1)
  5525. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5526. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5527. wait(0.55)
  5528. CameraEnshaking(1,2)
  5529. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5530. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5531. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5532. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5533. wait(0.55)
  5534. CameraEnshaking(1,3)
  5535. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5536. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5537. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5538. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5539. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5540. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5541. wait(0.55)
  5542. CameraEnshaking(10,5)
  5543. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5544. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5545. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5546. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5547. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5548. CFuncs["Sound"].Create("rbxassetid://165970390", char, 5, 1)
  5549. CFuncs["Sound"].Create("rbxassetid://278707142", char, 10, 1)
  5550. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5551. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5552. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5553. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5554. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5555. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5556. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5557. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5558. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5559. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5560. for i = 0, 49 do
  5561. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5562. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5563. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5564. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5565. end
  5566. ModeOfGlitch = 12345678987654321
  5567. storehumanoidWS = 200
  5568. hum.WalkSpeed = 200
  5569. rainbowmode = false
  5570. chaosmode = false
  5571. tl1.Enabled = true
  5572. tl2.Enabled = true
  5573. tl3.Enabled = true
  5574. RecolorTextAndRename("Ascended Miku",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5575. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5576. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5577. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5578. for i, v in pairs(mw2:GetChildren()) do
  5579. if v:IsA("Part") then
  5580. v.BrickColor = MAINRUINCOLOR
  5581. v.Material = "Neon"
  5582. end
  5583. end
  5584. for i, v in pairs(mw1:GetChildren()) do
  5585. if v:IsA("Part") then
  5586. v.Transparency = 0
  5587. v.BrickColor = MAINRUINCOLOR
  5588. v.Material = "Neon"
  5589. end
  5590. end
  5591. for i, v in pairs(m:GetChildren()) do
  5592. if v:IsA("Part") then
  5593. v.Color = Color3.new(0.5,0,1)
  5594. v.Material = "Neon"
  5595. end
  5596. end
  5597. for i, v in pairs(m2:GetChildren()) do
  5598. if v:IsA("Part") then
  5599. v.Color = Color3.new(0.5,0,1)
  5600. v.Material = "Neon"
  5601. end
  5602. end
  5603. for i, v in pairs(m3:GetChildren()) do
  5604. if v:IsA("Part") then
  5605. v.Color = Color3.new(0.5,0,1)
  5606. v.Material = "Neon"
  5607. end
  5608. end
  5609. for i, v in pairs(extrawingmod1:GetChildren()) do
  5610. if v:IsA("Part") then
  5611. v.Transparency = 0
  5612. v.Color = Color3.new(0.5,0,1)
  5613. v.Material = "Neon"
  5614. end
  5615. end
  5616. for i, v in pairs(extrawingmod2:GetChildren()) do
  5617. if v:IsA("Part") then
  5618. v.Transparency = 0
  5619. v.Color = Color3.new(0.5,0,1)
  5620. v.Material = "Neon"
  5621. end
  5622. attack = false
  5623. end
  5624. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5625. resetmode()
  5626. end
  5627. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5628. newThemeCust("rbxassetid://184046263",0,1,1)
  5629. attack = true
  5630. hum.WalkSpeed = 0
  5631. MAINRUINCOLOR = BrickColor.new("Crimson")
  5632. for i = 0, 24, 0.1 do
  5633. swait()
  5634. sphereMK(1,-2,"Add",tors.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,MAINRUINCOLOR,100)
  5635. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5636. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5637. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5638. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5639. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5640. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5641. end
  5642. CameraEnshaking(1,1)
  5643. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5644. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5645. wait(0.55)
  5646. CameraEnshaking(1,2)
  5647. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5648. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5649. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5650. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5651. wait(0.55)
  5652. CameraEnshaking(1,3)
  5653. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5654. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5655. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5656. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5657. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5658. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5659. wait(0.55)
  5660. CameraEnshaking(10,5)
  5661. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5662. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5663. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5664. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5665. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5666. CFuncs["Sound"].Create("rbxassetid://165970390", char, 5, 1)
  5667. CFuncs["Sound"].Create("rbxassetid://563031863", char, 7, 1)
  5668. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5669. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5670. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5671. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5672. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5673. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5674. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5675. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5676. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5677. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5678. for i = 0, 49 do
  5679. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5680. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5681. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5682. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5683. end
  5684. ModeOfGlitch = 666
  5685. storehumanoidWS = 175
  5686. hum.WalkSpeed = 175
  5687. rainbowmode = false
  5688. chaosmode = false
  5689. tl1.Enabled = true
  5690. tl2.Enabled = true
  5691. tl3.Enabled = true
  5692. RecolorTextAndRename("Destructive Miku",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5693. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5694. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5695. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5696. for i, v in pairs(mw2:GetChildren()) do
  5697. if v:IsA("Part") then
  5698. v.BrickColor = MAINRUINCOLOR
  5699. v.Material = "Neon"
  5700. end
  5701. end
  5702. for i, v in pairs(mw1:GetChildren()) do
  5703. if v:IsA("Part") then
  5704. v.Transparency = 0
  5705. v.BrickColor = MAINRUINCOLOR
  5706. v.Material = "Neon"
  5707. end
  5708. end
  5709. for i, v in pairs(m:GetChildren()) do
  5710. if v:IsA("Part") then
  5711. v.Color = Color3.new(1,0,0)
  5712. v.Material = "Neon"
  5713. end
  5714. end
  5715. for i, v in pairs(m2:GetChildren()) do
  5716. if v:IsA("Part") then
  5717. v.Color = Color3.new(1,0,0)
  5718. v.Material = "Neon"
  5719. end
  5720. end
  5721. for i, v in pairs(m3:GetChildren()) do
  5722. if v:IsA("Part") then
  5723. v.Color = Color3.new(1,0,0)
  5724. v.Material = "Neon"
  5725. end
  5726. end
  5727. for i, v in pairs(extrawingmod1:GetChildren()) do
  5728. if v:IsA("Part") then
  5729. v.Transparency = 0
  5730. v.Color = Color3.new(1,0,0)
  5731. v.Material = "Neon"
  5732. end
  5733. end
  5734. for i, v in pairs(extrawingmod2:GetChildren()) do
  5735. if v:IsA("Part") then
  5736. v.Transparency = 0
  5737. v.Color = Color3.new(1,0,0)
  5738. v.Material = "Neon"
  5739. end
  5740. attack = false
  5741. end
  5742. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5743. resetmode()
  5744. end
  5745. if k == "l" and toggleTag == false then
  5746. toggleTag = true
  5747. text.TextTransparency = 0
  5748. text.TextStrokeTransparency = 0
  5749. elseif k == "l" and toggleTag == true then
  5750. toggleTag = false
  5751. text.TextTransparency = 1
  5752. text.TextStrokeTransparency = 1
  5753. end
  5754. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5755. ExtinctiveHeartbreak()
  5756. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5757. PureBomb()
  5758. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5759. scattercorrupt()
  5760. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5761. ChaosGroundStrike()
  5762. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5763. Judgement()
  5764. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5765. HolyBarrier()
  5766. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5767. Starfall()
  5768. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5769. yinyangi()
  5770. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5771. MeteorStrike()
  5772. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5773. Wip()
  5774. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5775. StarfallEX()
  5776. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5777. FinalCalam()
  5778. end
  5779. if k == "n" and attack == false then
  5780. Blink()
  5781. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5782. StarDivision()
  5783. end
  5784. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5785. UniversalCollapse()
  5786. end
  5787. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5788. hum.WalkSpeed = 16 + 184
  5789. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5790. hum.WalkSpeed = 200 - 184
  5791. end
  5792. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5793. UniversalSpark()
  5794. end
  5795. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5796. StarDivision()
  5797. end
  5798. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5799. Starfall()
  5800. end
  5801. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5802. ChaosBegone()
  5803. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5804. THEHELLITSTHATBIG()
  5805. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5806. removelol()
  5807. end
  5808. end)
  5809. mouse.KeyUp:connect(function(k)
  5810. if k == "f" and ModeOfGlitch == 5 then
  5811. shielding = false
  5812. end
  5813. if k == "z" and ModeOfGlitch == 5 then
  5814. judgement = false
  5815. end
  5816. end)
  5817. coroutine.resume(coroutine.create(function()
  5818. while true do
  5819. swait(2)
  5820. if rainbowmode == true or ModeOfGlitch == 6 then
  5821. if eff == true then
  5822. 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)
  5823. end
  5824. end
  5825. end
  5826. end))
  5827. coroutine.resume(coroutine.create(function()
  5828. while true do
  5829. swait(2)
  5830. if shielding == true then
  5831. end
  5832. end
  5833. end))
  5834.  
  5835.  
  5836. coroutine.resume(coroutine.create(function()
  5837. while true do
  5838. if ModeOfGlitch == 1000000 then
  5839. swait(0.5)
  5840. end
  5841. swait()
  5842. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5843. 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)
  5844. end
  5845. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5846. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  5847. end
  5848. end
  5849. end))
  5850.  
  5851.  
  5852. coroutine.resume(coroutine.create(function()
  5853. while true do
  5854. swait(2)
  5855. if chaosmode == true then
  5856. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5857. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5858. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5859. RecolorTextAndRename("Edgy",Color3.new(0,0,0),BrickColor.random().Color)
  5860. for i, v in pairs(mw1:GetChildren()) do
  5861. if v:IsA("Part") then
  5862. v.Transparency = 0.75
  5863. v.BrickColor = BrickColor.random()
  5864. v.Material = "Neon"
  5865. end
  5866. end
  5867. for i, v in pairs(m2:GetChildren()) do
  5868. if v:IsA("Part") then
  5869. v.BrickColor = BrickColor.random()
  5870. v.Material = "Neon"
  5871. end
  5872. end
  5873. for i, v in pairs(secondchar:GetChildren()) do
  5874. if v:IsA("Part") then
  5875. v.BrickColor = BrickColor.random()
  5876. v.Material = "Neon"
  5877. end
  5878. end
  5879. end
  5880. end
  5881. end))
  5882. Humanoid.Name = "STARGLITCHER"
  5883. Humanoid.MaxHealth = math.huge
  5884. Humanoid.Health = math.huge
  5885. Instance.new("ForceField",char).Visible = false
  5886. Humanoid.Animator.Parent = nil
  5887. idleanim=.4
  5888. while true do
  5889. if rainbowmode == false then
  5890. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5891. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5892. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5893. for i, v in pairs(secondchar:GetChildren()) do
  5894. if v:IsA("Part") then
  5895. v.BrickColor = MAINRUINCOLOR
  5896. v.Material = "Neon"
  5897. end
  5898. end
  5899. if chaosmode == false then
  5900. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5901. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5902. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5903. for i, v in pairs(secondchar:GetChildren()) do
  5904. if v:IsA("Part") then
  5905. v.BrickColor = MAINRUINCOLOR
  5906. v.Material = "Neon"
  5907. end
  5908. end
  5909. end
  5910. end
  5911. if rainbowmode == true then
  5912. RecolorTextAndRename("Angered Rainbow",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  5913. MAINRUINCOLOR = BrickColor.new("White")
  5914. for i, v in pairs(m:GetChildren()) do
  5915. if v:IsA("Part") then
  5916. v.Color = Color3.new(r/255,g/255,b/255)
  5917. end
  5918. end
  5919. for i, v in pairs(m2:GetChildren()) do
  5920. if v:IsA("Part") then
  5921. v.Color = Color3.new(r/255,g/255,b/255)
  5922. end
  5923. end
  5924. for i, v in pairs(secondchar:GetChildren()) do
  5925. if v:IsA("Part") then
  5926. v.Color = Color3.new(r/255,g/255,b/255)
  5927. v.Material = "Neon"
  5928. end
  5929. end
  5930. for i, v in pairs(m3:GetChildren()) do
  5931. if v:IsA("Part") then
  5932. v.Color = Color3.new(r/255,g/255,b/255)
  5933. end
  5934. end
  5935. for i, v in pairs(mw1:GetChildren()) do
  5936. if v:IsA("Part") then
  5937. v.Color = Color3.new(r/255,g/255,b/255)
  5938. v.Material = "Neon"
  5939. end
  5940. end
  5941. for i, v in pairs(mw2:GetChildren()) do
  5942. if v:IsA("Part") then
  5943. v.Color = Color3.new(r/255,g/255,b/255)
  5944. v.Material = "Neon"
  5945. end
  5946. end
  5947. end
  5948. CameraManager()
  5949. swait()
  5950. 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))),.3)
  5951. 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))),.3)
  5952. 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))),.3)
  5953. 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))),.3)
  5954. 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))),.3)
  5955. 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))),.3)
  5956.  
  5957. if attack == false and ActiveGia == false then
  5958. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5959. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5960. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5961. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5962. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5963. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5964. elseif attack == false and ActiveGia == true then
  5965. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  5966. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5967. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  5968. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  5969. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5970. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5971. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  5972. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5973. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  5974. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  5975. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  5976. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  5977. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  5978. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  5979. end
  5980. end
  5981.  
  5982. 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))),.3)
  5983. 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))),.3)
  5984. 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))),.3)
  5985. 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))),.3)
  5986. 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))),.3)
  5987. 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))),.3)
  5988. sine = sine + change
  5989. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  5990. local velderp=RootPart.Velocity.y
  5991. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5992. if equipped==true or equipped==false then
  5993. if attack==false then
  5994. idle=idle+1
  5995. else
  5996. idle=0
  5997. end
  5998. if idle>=500 then
  5999. if attack==false then
  6000. --Sheath()
  6001. end
  6002. end
  6003. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6004. Anim="Jump"
  6005. if attack==false then
  6006. 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)),.1)
  6007. 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)),.1)
  6008. 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)),.1)
  6009. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6010. 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)),.1)
  6011. 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)),.1)
  6012. end
  6013. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6014. Anim="Fall"
  6015. if attack==false then
  6016. 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)),.1)
  6017. 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)),.1)
  6018. 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)),.1)
  6019. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6020. 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)),.1)
  6021. 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)),.1)
  6022. end
  6023. elseif torvel<1 and hitfloor~=nil then
  6024. Anim="Idle"
  6025. if attack==false then
  6026. if ModeOfGlitch == 1 then
  6027. 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)),.1)
  6028. 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))),.1)
  6029. 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)),.1)
  6030. 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))),.1)
  6031. 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))),.1)
  6032. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6033.  
  6034. elseif ModeOfGlitch == 666 then
  6035. 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)),.1)
  6036. 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))),.1)
  6037. 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)),.1)
  6038. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6039. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  6040. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  6041.  
  6042. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6043. 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))),.1)
  6044. 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))),.1)
  6045. 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)),.1)
  6046. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6047. 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))),.1)
  6048. 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))),.1)
  6049.  
  6050. elseif ModeOfGlitch == 3 then
  6051. 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))),.1)
  6052. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6053. 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)),.1)
  6054. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  6055. 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))),.1)
  6056. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6057.  
  6058. elseif ModeOfGlitch == 4 then
  6059. 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)),.1)
  6060. 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)),.1)
  6061. 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)),.1)
  6062. 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))),.1)
  6063. 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))),.1)
  6064. 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))),.1)
  6065.  
  6066. elseif ModeOfGlitch == 5 then
  6067. 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))),.1)
  6068. 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))),.1)
  6069. 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)),.1)
  6070. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6071. 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)),.1)
  6072. 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)),.1)
  6073.  
  6074. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6075. 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)),.1)
  6076. 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)),.1)
  6077. 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)),.1)
  6078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6079. 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))),.1)
  6080. 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))),.1)
  6081.  
  6082. elseif ModeOfGlitch == 12345678987654321 then
  6083. 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)),.1)
  6084. 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)),.1)
  6085. 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(-40)),.1)
  6086. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6087. 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))),.1)
  6088. 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))),.1)
  6089. end
  6090. end
  6091. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6092. Anim="Walk"
  6093. if attack==false then
  6094. if ModeOfGlitch == 1 then
  6095. 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))),.1)
  6096. 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))),.1)
  6097. 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))),.1)
  6098. 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))),.1)
  6099. 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))),.1)
  6100. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6101.  
  6102. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6103. 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))),.1)
  6104. 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))),.1)
  6105. 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))),.1)
  6106. 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))),.1)
  6107. 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))),.1)
  6108. 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))),.1)
  6109.  
  6110. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 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))),.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))),.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))),.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))),.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))),.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))),.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 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 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))),.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))),.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))),.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))),.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))),.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))),.1)
  6129. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 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)),.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)),.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)),.2)
  6133. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(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))),.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))),.2)
  6136. end
  6137. end
  6138. end
  6139. end
  6140. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement