Advertisement
Vintage-Furry

Guest Glitcher -WORKINPROGRESS

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