Advertisement
Guest User

Untitled

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