Advertisement
ItzInfern

star glitcher

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