Advertisement
Guest User

Untitled

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