Advertisement
joe201501

backup galaxy

Sep 17th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 213.14 KB | None | 0 0
  1.  
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. local RealPlayer = Player
  6. do print("FE Compatibility code by tc")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
  7.  
  8. warn([[Galaxy Glitcher Loaded.
  9. The third glitcher, once as the core is now new.
  10.  
  11. Created by N00byGamezI2
  12. ]])
  13.  
  14.  
  15.  
  16. ---------Wielder list as of OCs:---------
  17. -- ??? (Nothing such as this yet, but wields all the Glitchers. What you're asking it's the creator.)
  18. -- Void Emily (OC of mine, can lead to any modes and mainly leading to LOVE and HARMONY, she's obviously shy sometimes.)
  19. -- Lunaria Floodio (Second OC, can lead to any modes.)
  20. -- Gacharix (Third OC, can lead to any modes and mainly leading to AZURE X, very corrupted person.)
  21. -----------------------------------------
  22.  
  23. print([[Icons:
  24. ! = New
  25. ? = Spoilers
  26. * = Exclusivity
  27. C = Changes
  28.  
  29. ]])
  30. warn([[V 3.2 Update Log:
  31. C - Huge revamp of wings.
  32. C - Walk and running are now tiltable on where you go on a side.
  33. C - Huge slight changes on all of the mode's idles.
  34. C - Even more effect changes.
  35. !C* - Love mode has been added.
  36. !C* - Love mode's transformation added..
  37. !* - Love mode's taunt added... (why.. ;~;)
  38. C - Death effect has been improved.
  39. C - Binary's Z is imporvably changed
  40. ? - Nothing seems to be new yet..
  41. ? - Some modes will have moves sooner.
  42.  
  43. Commands for visualiser mode: play/, vol/, pitch/, skipto/, telltime/]])
  44. ---- IMPORTANT READING:
  45. ---- Sources and functions might be taken from others
  46. plr = owner
  47.  
  48.  
  49. script.Parent = workspace.CurrentCamera
  50. plr.CharacterAdded:connect(function()
  51. script.Disabled = true
  52. script:destroy()
  53. end)
  54.  
  55. char = plr.Character
  56. hum = char.Humanoid
  57. local cam = game.Workspace.CurrentCamera
  58.  
  59. Camera = cam
  60. local CamInterrupt = false
  61. local TwoD = false
  62. local TargetInfo = {nil, nil}
  63. cam.CameraType = "Custom"
  64. t = char.Torso
  65. h = char.Head
  66. ra = char["Right Arm"]
  67. la = char["Left Arm"]
  68. rl = char["Right Leg"]
  69. ll = char["Left Leg"]
  70. tors = char.Torso
  71. lleg = char["Left Leg"]
  72. root = char.HumanoidRootPart
  73. hed = char.Head
  74. rleg = char["Right Leg"]
  75. rarm = char["Right Arm"]
  76. larm = char["Left Arm"]
  77. radian = math.rad
  78. random = math.random
  79. Vec3 = Vector3.new
  80. Inst = Instance.new
  81. cFrame = CFrame.new
  82. Euler = CFrame.fromEulerAnglesXYZ
  83. vt = Vector3.new
  84. bc = BrickColor.new
  85. br = BrickColor.random
  86. it = Instance.new
  87. cf = CFrame.new
  88.  
  89.  
  90. local Booleans = {
  91. CamFollow = true,
  92. GyroUse = true
  93. }
  94.  
  95. function lerp(object, newCFrame, alpha)
  96. return object:lerp(newCFrame, alpha)
  97. end
  98.  
  99. local Directer = Inst("BodyGyro", root)
  100. Directer.MaxTorque = Vec3(0, 0, 0)
  101. Directer.P = 600000
  102. local CPart = Inst("Part")
  103. CPart.Anchored = true
  104. CPart.CanCollide = false
  105. CPart.Locked = true
  106. CPart.Transparency = 1
  107.  
  108. local rainbowmode = false
  109. local chaosmode = false
  110. local duringend = false
  111. local ModeOfGlitch = 1
  112.  
  113. local kan = Instance.new("Sound",char)
  114. kan.Volume = 1.25
  115. kan.TimePosition = 0
  116. kan.PlaybackSpeed = 1
  117. kan.Pitch = 1.01
  118. kan.SoundId = "rbxassetid://435773595"
  119. kan.Name = "wreckeda"
  120. kan.Looped = true
  121. kan:Play()
  122.  
  123. local currentThemePlaying = kan.SoundId
  124. local currentPitch = kan.Pitch
  125. local currentVol = kan.Volume
  126. function newTheme(ID,timepos,pitch,vol)
  127. local kanz = kan
  128. --kanz:Stop()
  129. kanz.Volume = vol
  130. --kanz.TimePosition = timepos
  131. kanz.PlaybackSpeed = pitch
  132. kanz.Pitch = pitch
  133. kanz.SoundId = ID
  134. kanz.Name = "wrecked"
  135. kanz.Looped = true
  136. currentThemePlaying = kanz.SoundId
  137. currentVol = kanz.Volume
  138. currentPitch = kanz.Pitch
  139. --kanz:Play()
  140. --coroutine.resume(coroutine.create(function()
  141. --wait(0.05)
  142. --end))
  143. end
  144.  
  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. currentThemePlaying = kanz.SoundId
  157. currentVol = kanz.Volume
  158. currentPitch = kanz.Pitch
  159. kanz:Play()
  160. coroutine.resume(coroutine.create(function()
  161. wait(0.05)
  162. end))
  163. end
  164.  
  165. local mutedtog = false
  166.  
  167. function CameraEnshaking(Length,Intensity)
  168. coroutine.resume(coroutine.create(function()
  169. local intensity = 1*Intensity
  170. local rotM = 0.01*Intensity
  171. for i = 0, Length, 0.1 do
  172. swait()
  173. intensity = intensity - 0.05*Intensity/Length
  174. rotM = rotM - 0.0005*Intensity/Length
  175. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  176. 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)
  177. end
  178. Humanoid.CameraOffset = Vec3(0, 0, 0)
  179. end))
  180. end
  181. CamShake=function(Part,Distan,Power,Times)
  182. local de=Part.Position
  183. for i,v in pairs(workspace:children()) do
  184. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  185. for _,c in pairs(v:children()) do
  186. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  187. local Noob=v.Humanoid
  188. if Noob~=nil then
  189. coroutine.resume(coroutine.create(function()
  190. FV = Instance.new("BoolValue", Noob)
  191. FV.Name = "CameraShake"
  192. for ShakeNum=1,Times do
  193. swait()
  194. local ef=Power
  195. if ef>=1 then
  196. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  197. else
  198. ef=Power*10
  199. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  200. end
  201. end
  202. Humanoid.CameraOffset = Vector3.new(0,0,0)
  203. FV:Destroy()
  204. end))
  205. CameraShake(Times, Power, Noob)
  206. end
  207. end
  208. end
  209. end
  210. end
  211. end
  212.  
  213. local toggleTag = true
  214. local bilguit = Instance.new("BillboardGui", hed)
  215. bilguit.Adornee = nil
  216. bilguit.Name = "ModeName"
  217. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  218. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  219. local modet = Instance.new("TextLabel", bilguit)
  220. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  221. modet.FontSize = "Size8"
  222. modet.TextScaled = true
  223. modet.TextTransparency = 0
  224. modet.BackgroundTransparency = 1
  225. modet.TextTransparency = 0
  226. modet.TextStrokeTransparency = 0
  227. modet.Font = "Code"
  228. modet.TextStrokeColor3 = Color3.new(0,0,0)
  229. modet.TextColor3 = Color3.new(1,1,1)
  230. modet.Text = "Extracted"
  231.  
  232.  
  233. function chatfunc(text,color,typet,font,timeex)
  234. local chat = coroutine.wrap(function()
  235. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  236. Character:FindFirstChild("TalkingBillBoard"):destroy()
  237. end
  238. local naeeym2 = Instance.new("BillboardGui",Character)
  239. naeeym2.Size = UDim2.new(0,100,0,40)
  240. naeeym2.StudsOffset = Vector3.new(0,3,0)
  241. naeeym2.Adornee = Character.Head
  242. naeeym2.Name = "TalkingBillBoard"
  243. local tecks2 = Instance.new("TextLabel",naeeym2)
  244. tecks2.BackgroundTransparency = 1
  245. tecks2.BorderSizePixel = 0
  246. tecks2.Text = ""
  247. tecks2.Font = font
  248. tecks2.TextSize = 30
  249. tecks2.TextStrokeTransparency = 0
  250. tecks2.TextColor3 = color
  251. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  252. tecks2.Size = UDim2.new(1,0,0.5,0)
  253. local tecks3 = Instance.new("TextLabel",naeeym2)
  254. tecks3.BackgroundTransparency = 1
  255. tecks3.BorderSizePixel = 0
  256. tecks3.Text = ""
  257. tecks3.Font = font
  258. tecks3.TextSize = 30
  259. tecks3.TextStrokeTransparency = 0
  260. if typet == "Inverted" then
  261. tecks3.TextColor3 = Color3.new(0,0,0)
  262. tecks3.TextStrokeColor3 = color
  263. elseif typet == "Normal" then
  264. tecks3.TextColor3 = color
  265. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  266. end
  267. tecks3.Size = UDim2.new(1,0,0.5,0)
  268. coroutine.resume(coroutine.create(function()
  269. while true do
  270. swait(1)
  271. if chaosmode == true then
  272. tecks2.TextColor3 = BrickColor.random().Color
  273. tecks3.TextStrokeColor3 = BrickColor.random().Color
  274. end
  275. end
  276. end))
  277. modet.TextTransparency = modet.TextTransparency + 1
  278. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  279. for i = 0, 74*timeex do
  280. swait()
  281. modet.TextTransparency = 1
  282. modet.TextStrokeTransparency = 1
  283. tecks2.Text = text
  284. tecks3.Text = text
  285. end
  286. local randomrot = math.random(1,2)
  287. if randomrot == 1 then
  288. for i = 1, 50 do
  289. swait()
  290. tecks2.Text = text
  291. tecks3.Text = text
  292. modet.TextTransparency = modet.TextTransparency - .02
  293. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  294. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  295. tecks2.TextTransparency = tecks2.TextTransparency + .04
  296. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  297. tecks3.TextTransparency = tecks2.TextTransparency + .04
  298. end
  299. elseif randomrot == 2 then
  300. for i = 1, 50 do
  301. swait()
  302. tecks2.Text = text
  303. tecks3.Text = text
  304. modet.TextTransparency = modet.TextTransparency - .02
  305. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  306. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  307. tecks2.TextTransparency = tecks2.TextTransparency + .04
  308. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  309. tecks3.TextTransparency = tecks2.TextTransparency + .04
  310. end
  311. end
  312. modet.TextTransparency = 0
  313. modet.TextStrokeTransparency = 0
  314. if toggleTag == false then
  315. modet.TextTransparency = 1
  316. modet.TextStrokeTransparency = 1
  317. end
  318. naeeym2:Destroy()
  319. end)
  320. chat()
  321. end
  322.  
  323.  
  324. local Create = LoadLibrary("RbxUtility").Create
  325.  
  326. CFuncs = {
  327. ["Part"] = {
  328. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  329. local Part = Create("Part"){
  330. Parent = Parent,
  331. Reflectance = Reflectance,
  332. Transparency = Transparency,
  333. CanCollide = false,
  334. Locked = true,
  335. BrickColor = BrickColor.new(tostring(BColor)),
  336. Name = Name,
  337. Size = Size,
  338. Material = Material,
  339. }
  340. RemoveOutlines(Part)
  341. return Part
  342. end;
  343. };
  344.  
  345. ["Mesh"] = {
  346. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  347. local Msh = Create(Mesh){
  348. Parent = Part,
  349. Offset = OffSet,
  350. Scale = Scale,
  351. }
  352. if Mesh == "SpecialMesh" then
  353. Msh.MeshType = MeshType
  354. Msh.MeshId = MeshId
  355. end
  356. return Msh
  357. end;
  358. };
  359.  
  360. ["Mesh"] = {
  361. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  362. local Msh = Create(Mesh){
  363. Parent = Part,
  364. Offset = OffSet,
  365. Scale = Scale,
  366. }
  367. if Mesh == "SpecialMesh" then
  368. Msh.MeshType = MeshType
  369. Msh.MeshId = MeshId
  370. end
  371. return Msh
  372. end;
  373. };
  374.  
  375. ["Weld"] = {
  376. Create = function(Parent, Part0, Part1, C0, C1)
  377. local Weld = Create("Weld"){
  378. Parent = Parent,
  379. Part0 = Part0,
  380. Part1 = Part1,
  381. C0 = C0,
  382. C1 = C1,
  383. }
  384. return Weld
  385. end;
  386. };
  387.  
  388. ["Sound"] = {
  389. Create = function(id, par, vol, pit)
  390. coroutine.resume(coroutine.create(function()
  391. local S = Create("Sound"){
  392. Volume = vol,
  393. Name = "EffectSoundo",
  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, 10)
  401. end))
  402. end;
  403. };
  404.  
  405. ["LongSound"] = {
  406. Create = function(id, par, vol, pit)
  407. coroutine.resume(coroutine.create(function()
  408. local S = Create("Sound"){
  409. Volume = vol,
  410. Pitch = pit or 1,
  411. SoundId = id,
  412. Parent = par or workspace,
  413. }
  414. wait()
  415. S:play()
  416. game:GetService("Debris"):AddItem(S, 60)
  417. end))
  418. end;
  419. };
  420.  
  421. ["ParticleEmitter"] = {
  422. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  423. local fp = Create("ParticleEmitter"){
  424. Parent = Parent,
  425. Color = ColorSequence.new(Color1, Color2),
  426. LightEmission = LightEmission,
  427. Size = Size,
  428. Texture = Texture,
  429. Transparency = Transparency,
  430. ZOffset = ZOffset,
  431. Acceleration = Accel,
  432. Drag = Drag,
  433. LockedToPart = LockedToPart,
  434. VelocityInheritance = VelocityInheritance,
  435. EmissionDirection = EmissionDirection,
  436. Enabled = Enabled,
  437. Lifetime = LifeTime,
  438. Rate = Rate,
  439. Rotation = Rotation,
  440. RotSpeed = RotSpeed,
  441. Speed = Speed,
  442. VelocitySpread = VelocitySpread,
  443. }
  444. return fp
  445. end;
  446. };
  447.  
  448. CreateTemplate = {
  449.  
  450. };
  451. }
  452.  
  453.  
  454.  
  455. New = function(Object, Parent, Name, Data)
  456. local Object = Instance.new(Object)
  457. for Index, Value in pairs(Data or {}) do
  458. Object[Index] = Value
  459. end
  460. Object.Parent = Parent
  461. Object.Name = Name
  462. return Object
  463. end
  464. local halocolor = BrickColor.new("Pastel light blue")
  465. local halocolor2 = BrickColor.new("Cool yellow")
  466. local starcolor = BrickColor.new("Bright yellow")
  467. local lunacolor = BrickColor.new("Navy blue")
  468. local lunacolor2 = BrickColor.new("Bright blue")
  469. local wepcolor = BrickColor.new("Really black")
  470. local maincolor = BrickColor.new("Really black")
  471. local m = Instance.new("Model",char)
  472. local m2 = Instance.new("Model",char)
  473. local m3 = Instance.new("Model",char)
  474. local mw1 = Instance.new("Model",char)
  475. local mw2 = Instance.new("Model",char)
  476.  
  477.  
  478. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  479. local gui = it(GuiType)
  480. gui.Parent = parent
  481. gui.Text = text
  482. gui.BackgroundTransparency = backtrans
  483. gui.BackgroundColor3 = backcol
  484. gui.SizeConstraint = "RelativeXY"
  485. gui.TextXAlignment = "Center"
  486. gui.TextYAlignment = "Center"
  487. gui.Position = pos
  488. gui.Size = size
  489. gui.Font = "SourceSans"
  490. gui.FontSize = "Size14"
  491. gui.TextWrapped = false
  492. gui.TextStrokeTransparency = 0
  493. gui.TextColor = BrickColor.new("White")
  494. return gui
  495. end
  496. ---- GUI set
  497. local basgui = it("GuiMain")
  498. basgui.Parent = plr.PlayerGui
  499. basgui.Name = "Killcounter GUI"
  500. local basframe = it("Frame")
  501. basframe.Parent = basgui
  502. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  503. basframe.BackgroundTransparency = 1
  504. basframe.BorderColor3 = Color3.new(17, 17, 17)
  505. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  506. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  507. local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0))
  508. uhh.ZIndex = 2
  509.  
  510.  
  511. uhh.Font = "Bodoni"
  512. uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  513. uhh.TextColor3 = Color3.new(1,1,1)
  514. uhh.BackgroundTransparency = 0.25
  515. uhh.BorderSizePixel = 2
  516. uhh.BorderColor3 = Color3.new(0,0,0)
  517. uhh.TextScaled = true
  518. uhh.TextXAlignment = "Left"
  519. uhh.Text = "SWITCH MODE: Q-P, J-L"
  520. uhh.TextSize = 64
  521. local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0))
  522. modeteller.ZIndex = 2
  523. modeteller.Font = "Bodoni"
  524. modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  525. modeteller.TextColor3 = Color3.new(1,1,1)
  526. modeteller.BackgroundTransparency = 0.25
  527. modeteller.BorderSizePixel = 2
  528. modeteller.BorderColor3 = Color3.new(0,0,0)
  529. modeteller.TextScaled = true
  530. modeteller.TextXAlignment = "Right"
  531. modeteller.Text = "MAYHEM"
  532. modeteller.TextSize = 64
  533.  
  534. local extrawingmod1 = Instance.new("Model",char)
  535. local extrawingmod2 = Instance.new("Model",char)
  536.  
  537. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  538. local p = Instance.new("Part")
  539. p.TopSurface = 0
  540. p.BottomSurface = 0
  541. p.Parent = parent
  542. p.Size = Vector3.new(0.1,0.1,0.1)
  543. p.Transparency = transparency
  544. p.Reflectance = reflectance
  545. p.CanCollide = false
  546. p.Locked = true
  547. p.BrickColor = brickcolor
  548. p.Material = material
  549. return p
  550. end
  551.  
  552. function CreateMesh(parent,meshtype,x1,y1,z1)
  553. local mesh = Instance.new("SpecialMesh",parent)
  554. mesh.MeshType = meshtype
  555. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  556. return mesh
  557. end
  558.  
  559. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  560. local mesh = Instance.new("SpecialMesh",parent)
  561. mesh.MeshType = "FileMesh"
  562. mesh.MeshId = meshid
  563. mesh.Scale = Vector3.new(x1,y1,z1)
  564. return mesh
  565. end
  566.  
  567.  
  568. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  569. local mesh = Instance.new("SpecialMesh",parent)
  570. mesh.MeshType = "FileMesh"
  571. mesh.MeshId = meshid
  572. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  573. mesh.Scale = Vector3.new(x1,y1,z1)
  574. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  575. return mesh
  576. end
  577.  
  578. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  579. local weld = Instance.new("Weld")
  580. weld.Parent = parent
  581. weld.Part0 = part0
  582. weld.Part1 = part1
  583. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  584. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  585. return weld
  586. end
  587.  
  588.  
  589. --------------
  590. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  591. 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))
  592. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  593. 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))
  594.  
  595. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  596. CreateMesh(handle,"Brick",0,0,0)
  597. 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))
  598. local valuaring = 10
  599.  
  600. local refec = Instance.new("ParticleEmitter",handlex)
  601. refec.Texture = "rbxassetid://284205403"
  602. refec.LightEmission = 0.95
  603. refec.Color = ColorSequence.new(BrickColor.new("White").Color)
  604. refec.Rate = 50
  605. refec.Lifetime = NumberRange.new(0.5)
  606. refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  607. refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  608. refec.Speed = NumberRange.new(0,2)
  609. refec.Drag = 5
  610. refec.LockedToPart = true
  611. refec.Rotation = NumberRange.new(-500,500)
  612. refec.VelocitySpread = 9000
  613. refec.RotSpeed = NumberRange.new(-500,500)
  614. local refec2 = refec:Clone()
  615. refec2.LightEmission = 0.75
  616. refec2.Texture = "rbxassetid://254287058"
  617. refec2.Parent = handlex
  618. refec2.Rate = 25
  619. refec2.Lifetime = NumberRange.new(0.75)
  620. refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  621. refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  622. refec2.Speed = NumberRange.new(0)
  623. local refec3 = refec:Clone()
  624. refec3.LightEmission = 0.75
  625. refec3.Texture = "rbxassetid://363275192"
  626. refec3.Parent = handlex
  627. refec3.Rate = 25
  628. refec3.Lifetime = NumberRange.new(1)
  629. refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)})
  630. refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  631. refec3.Speed = NumberRange.new(0)
  632. refec3.RotSpeed = NumberRange.new(-50,50)
  633.  
  634. for i = 0, 35 do
  635. valuaring = valuaring + 10
  636. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  637. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  638. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  639. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  640. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  641. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  642. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  643. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  644. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  645. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  646. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  647. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  648. end
  649.  
  650.  
  651. local handle = CreateParta(m,1,1,"Neon",maincolor)
  652. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  653. 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))
  654.  
  655. --- Left wing.
  656.  
  657. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  658. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  659. 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))
  660.  
  661. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  662. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  663. 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))
  664. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  665. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  666. 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))
  667. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  668. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  669. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  670. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  671. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  672. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  673. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  674. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  675. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  676. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  677. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  678. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  679. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  680. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  681. 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))
  682. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  683. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  684. 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))
  685. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  686. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  687. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  688. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  689. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  690. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691.  
  692.  
  693. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  694. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  695. 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))
  696.  
  697. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  698. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  699. 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))
  700. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  701. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  702. 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))
  703. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  704. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  705. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  706. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  707. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  708. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  709. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  710. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  711. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  712. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  713. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  714. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  715. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  716. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  717. 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))
  718. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  719. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  720. 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))
  721. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  722. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  723. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  724. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  725. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  726. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  727.  
  728. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  729. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  730. 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))
  731.  
  732. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  733. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  734. 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))
  735. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  737. 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))
  738. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  740. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  741. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  742. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  743. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  744. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  745. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  746. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  747. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  748. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  749. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  750. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  751. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  752. 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))
  753. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  754. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  755. 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))
  756. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  757. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  758. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  759. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  761. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  762.  
  763. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  764. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  765. 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))
  766.  
  767. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  768. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  769. 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))
  770. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  771. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  772. 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))
  773. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  774. CreateMesh(wed,"Wedge",0.05,0.5,3)
  775. 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))
  776. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  777. CreateMesh(wed,"Wedge",0.05,3,0.5)
  778. 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))
  779.  
  780. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  781. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  782. 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))
  783.  
  784. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  785. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  786. 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))
  787. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  788. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  789. 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))
  790. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  791. CreateMesh(wed,"Wedge",0.05,0.5,3)
  792. 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))
  793. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  794. CreateMesh(wed,"Wedge",0.05,3,0.5)
  795. 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))
  796.  
  797. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  798. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  799. 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))
  800.  
  801. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  802. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  803. 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))
  804. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  805. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  806. 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))
  807. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  808. CreateMesh(wed,"Wedge",0.05,0.5,3)
  809. 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))
  810. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  811. CreateMesh(wed,"Wedge",0.05,3,0.5)
  812. 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))
  813.  
  814. -- Right wing.
  815.  
  816. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  817. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  818. 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))
  819.  
  820. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  821. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  822. 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))
  823. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  824. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  825. 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))
  826. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  827. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  828. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  829. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  830. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  831. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  832. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  833. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  834. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  835. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  836. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  837. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  838. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  839. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  840. 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))
  841. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  842. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  843. 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))
  844. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  845. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  846. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  847. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  848. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  849. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  850.  
  851. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  852. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  853. 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))
  854.  
  855. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  857. 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))
  858. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  859. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  860. 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))
  861. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  869. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  872. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  873. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  875. 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))
  876. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  878. 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))
  879. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  881. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  882. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  883. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  884. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  885.  
  886. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  887. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  888. 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))
  889.  
  890.  
  891. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  893. 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))
  894. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  896. 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))
  897. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  899. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  900. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  902. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  903. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  905. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  908. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  911. 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))
  912. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  913. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  914. 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))
  915. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  917. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  918. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  919. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  920. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  921.  
  922.  
  923. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  924. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  925. 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))
  926.  
  927. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  929. 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))
  930. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  932. 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))
  933. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  934. CreateMesh(wed,"Wedge",0.05,0.5,3)
  935. 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))
  936. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  937. CreateMesh(wed,"Wedge",0.05,3,0.5)
  938. 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))
  939.  
  940. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  941. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  942. 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))
  943.  
  944. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  946. 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))
  947. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. 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))
  950. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,3)
  952. 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))
  953. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,3,0.5)
  955. 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))
  956.  
  957. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  958. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  959. 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))
  960.  
  961. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  962. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  963. 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))
  964. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  965. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  966. 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))
  967. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  968. CreateMesh(wed,"Wedge",0.05,0.5,3)
  969. 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))
  970. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,3,0.5)
  972. 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))
  973.  
  974.  
  975. ---- HERES THE RING
  976.  
  977.  
  978. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  979. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  980. 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))
  981. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  982. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  983. 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))
  984. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  985. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  986. 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))
  987.  
  988.  
  989. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  990. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  991. 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))
  992.  
  993. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  994. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  995. 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))
  996.  
  997.  
  998.  
  999. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1000. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1001. 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))
  1002.  
  1003. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1004. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1005. 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))
  1006.  
  1007. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1008. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1009. 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))
  1010.  
  1011. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1012. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1013. 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))
  1014. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1015. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1016. 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))
  1017.  
  1018. --- second ring
  1019.  
  1020. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1021. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1022. 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))
  1023. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1024. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1025. 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))
  1026. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1027. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1028. 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))
  1029.  
  1030. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1031. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1032. 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))
  1033.  
  1034. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1035. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1036. 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))
  1037.  
  1038.  
  1039.  
  1040. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1041. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1042. 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))
  1043.  
  1044. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1045. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1046. 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))
  1047.  
  1048. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1049. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1050. 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))
  1051.  
  1052. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1053. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1054. 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))
  1055. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1056. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1057. 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))]]--
  1058.  
  1059. ------------- Trails
  1060. local A0 = Instance.new("Attachment",lwing1)
  1061. A0.Position = Vector3.new(0,-0.7,0)
  1062. local A1 = Instance.new("Attachment",lwing1)
  1063. A1.Position = Vector3.new(0,-3.5,0)
  1064. tl1 = Instance.new('Trail',lwing1)
  1065. tl1.Attachment0 = A0
  1066. tl1.Attachment1 = A1
  1067. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1068. tl1.LightEmission = 1
  1069. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1070. tl1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1071. tl1.Lifetime = 0.6
  1072.  
  1073. local A0 = Instance.new("Attachment",lwing2)
  1074. A0.Position = Vector3.new(0,-0.7,0)
  1075. local A1 = Instance.new("Attachment",lwing2)
  1076. A1.Position = Vector3.new(0,-3.5,0)
  1077. tl2 = Instance.new('Trail',lwing2)
  1078. tl2.Attachment0 = A0
  1079. tl2.Attachment1 = A1
  1080. tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1081. tl2.LightEmission = 1
  1082. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1083. tl2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1084. tl2.Lifetime = 0.6
  1085.  
  1086. local A0 = Instance.new("Attachment",lwing3)
  1087. A0.Position = Vector3.new(0,-0.7,0)
  1088. local A1 = Instance.new("Attachment",lwing3)
  1089. A1.Position = Vector3.new(0,-3.5,0)
  1090. tl3 = Instance.new('Trail',lwing3)
  1091. tl3.Attachment0 = A0
  1092. tl3.Attachment1 = A1
  1093. tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1094. tl3.LightEmission = 1
  1095. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1096. tl3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1097. tl3.Lifetime = 0.6
  1098.  
  1099. local A0 = Instance.new("Attachment",rwing1)
  1100. A0.Position = Vector3.new(0,-0.7,0)
  1101. local A1 = Instance.new("Attachment",rwing1)
  1102. A1.Position = Vector3.new(0,-3.5,0)
  1103. tr1 = Instance.new('Trail',rwing1)
  1104. tr1.Attachment0 = A0
  1105. tr1.Attachment1 = A1
  1106. tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1107. tr1.LightEmission = 1
  1108. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1109. tr1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1110. tr1.Lifetime = 0.6
  1111.  
  1112. local A0 = Instance.new("Attachment",rwing2)
  1113. A0.Position = Vector3.new(0,-0.7,0)
  1114. local A1 = Instance.new("Attachment",rwing2)
  1115. A1.Position = Vector3.new(0,-3.5,0)
  1116. tr2 = Instance.new('Trail',rwing2)
  1117. tr2.Attachment0 = A0
  1118. tr2.Attachment1 = A1
  1119. tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1120. tr2.LightEmission = 1
  1121. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1122. tr2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1123. tr2.Lifetime = 0.6
  1124.  
  1125. local A0 = Instance.new("Attachment",rwing3)
  1126. A0.Position = Vector3.new(0,-0.7,0)
  1127. local A1 = Instance.new("Attachment",rwing3)
  1128. A1.Position = Vector3.new(0,-3.5,0)
  1129. tr3 = Instance.new('Trail',rwing3)
  1130. tr3.Attachment0 = A0
  1131. tr3.Attachment1 = A1
  1132. tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1133. tr3.LightEmission = 1
  1134. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1135. tr3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1136. tr3.Lifetime = 0.6
  1137. --------------
  1138.  
  1139. for i, v in pairs(mw2:GetChildren()) do
  1140. if v:IsA("Part") then
  1141. v.BrickColor = BrickColor.new("White")
  1142. v.Material = "Neon"
  1143. end
  1144. end
  1145. for i, v in pairs(mw1:GetChildren()) do
  1146. if v:IsA("Part") then
  1147. v.Transparency = 0
  1148. v.BrickColor = BrickColor.new("White")
  1149. v.Material = "Neon"
  1150. end
  1151. end
  1152. for i, v in pairs(extrawingmod1:GetChildren()) do
  1153. if v:IsA("Part") then
  1154. v.Transparency = 1
  1155. v.BrickColor = BrickColor.new("White")
  1156. v.Material = "Neon"
  1157. end
  1158. end
  1159. for i, v in pairs(extrawingmod2:GetChildren()) do
  1160. if v:IsA("Part") then
  1161. v.Transparency = 1
  1162. v.BrickColor = BrickColor.new("White")
  1163. v.Material = "Neon"
  1164. end
  1165. end
  1166. local MAINRUINCOLOR = BrickColor.new("White")
  1167. ------
  1168.  
  1169.  
  1170. function RemoveOutlines(part)
  1171. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1172. end
  1173. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1174. local Part = Create("Part")({
  1175. Parent = Parent,
  1176. Reflectance = Reflectance,
  1177. Transparency = Transparency,
  1178. CanCollide = false,
  1179. Locked = true,
  1180. BrickColor = BrickColor.new(tostring(BColor)),
  1181. Name = Name,
  1182. Size = Size,
  1183. Material = Material
  1184. })
  1185. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1186. RemoveOutlines(Part)
  1187. return Part
  1188. end
  1189. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1190. local Msh = Create(Mesh)({
  1191. Parent = Part,
  1192. Offset = OffSet,
  1193. Scale = Scale
  1194. })
  1195. if Mesh == "SpecialMesh" then
  1196. Msh.MeshType = MeshType
  1197. Msh.MeshId = MeshId
  1198. end
  1199. return Msh
  1200. end
  1201. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1202. local Weld = Create("Weld")({
  1203. Parent = Parent,
  1204. Part0 = Part0,
  1205. Part1 = Part1,
  1206. C0 = C0,
  1207. C1 = C1
  1208. })
  1209. return Weld
  1210. end
  1211.  
  1212. Player=game:GetService("Players").LocalPlayer
  1213. Character=Player.Character
  1214. PlayerGui=Player.PlayerGui
  1215. Backpack=Player.Backpack
  1216. Torso=Character.Torso
  1217. Head=Character.Head
  1218. Humanoid=Character.Humanoid
  1219. m=Instance.new('Model',Character)
  1220. LeftArm=Character["Left Arm"]
  1221. LeftLeg=Character["Left Leg"]
  1222. RightArm=Character["Right Arm"]
  1223. RightLeg=Character["Right Leg"]
  1224. LS=Torso["Left Shoulder"]
  1225. LH=Torso["Left Hip"]
  1226. RS=Torso["Right Shoulder"]
  1227. RH=Torso["Right Hip"]
  1228. Face = Head.face
  1229. Neck=Torso.Neck
  1230. it=Instance.new
  1231. attacktype=1
  1232. vt=Vector3.new
  1233. cf=CFrame.new
  1234. euler=CFrame.fromEulerAnglesXYZ
  1235. angles=CFrame.Angles
  1236. cloaked=false
  1237. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1238. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1239. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1240. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1241. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1242. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1243. RootPart=Character.HumanoidRootPart
  1244. RootJoint=RootPart.RootJoint
  1245. RootCF=euler(-1.57,0,3.14)
  1246. attack = false
  1247. attackdebounce = false
  1248. deb=false
  1249. equipped=true
  1250. hand=false
  1251. MMouse=nil
  1252. combo=0
  1253. mana=0
  1254. trispeed=.2
  1255. attackmode='none'
  1256. local idle=0
  1257. local Anim="Idle"
  1258. local Effects={}
  1259. local gun=false
  1260. local shoot=false
  1261. local sine = 0
  1262. local change = 1
  1263. player=nil
  1264.  
  1265. function RecolorTextAndRename(name,col1,col2,font)
  1266. modet.TextStrokeColor3 = col2
  1267. modet.TextColor3 = col1
  1268. modet.Font = font
  1269. modet.Text = name
  1270. end
  1271. mouse=Player:GetMouse()
  1272. --save shoulders
  1273. RSH, LSH=nil, nil
  1274. --welds
  1275. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1276. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1277. LH=Torso["Left Hip"]
  1278. RH=Torso["Right Hip"]
  1279. TorsoColor=Torso.BrickColor
  1280. function NoOutline(Part)
  1281. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1282. end
  1283. player=Player
  1284. ch=Character
  1285. RSH=ch.Torso["Right Shoulder"]
  1286. LSH=ch.Torso["Left Shoulder"]
  1287. --
  1288. RSH.Parent=nil
  1289. LSH.Parent=nil
  1290. --
  1291. RW.Name="Right Shoulder"
  1292. RW.Part0=ch.Torso
  1293. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1294. RW.C1=cf(0, 0.5, 0)
  1295. RW.Part1=ch["Right Arm"]
  1296. RW.Parent=ch.Torso
  1297. --
  1298. LW.Name="Left Shoulder"
  1299. LW.Part0=ch.Torso
  1300. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1301. LW.C1=cf(0, 0.5, 0)
  1302. LW.Part1=ch["Left Arm"]
  1303. LW.Parent=ch.Torso
  1304.  
  1305. local Stats=Instance.new("BoolValue")
  1306. Stats.Name="Stats"
  1307. Stats.Parent=Character
  1308. local Atk=Instance.new("NumberValue")
  1309. Atk.Name="Damage"
  1310. Atk.Parent=Stats
  1311. Atk.Value=1
  1312. local Def=Instance.new("NumberValue")
  1313. Def.Name="Defense"
  1314. Def.Parent=Stats
  1315. Def.Value=1
  1316. local Speed=Instance.new("NumberValue")
  1317. Speed.Name="Speed"
  1318. Speed.Parent=Stats
  1319. Speed.Value=1
  1320. local Mvmt=Instance.new("NumberValue")
  1321. Mvmt.Name="Movement"
  1322. Mvmt.Parent=Stats
  1323. Mvmt.Value=1
  1324.  
  1325. local donum=0
  1326.  
  1327.  
  1328. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1329. local fp=it("Part")
  1330. fp.formFactor=formfactor
  1331. fp.Parent=parent
  1332. fp.Reflectance=reflectance
  1333. fp.Transparency=transparency
  1334. fp.CanCollide=false
  1335. fp.Locked=true
  1336. fp.BrickColor=brickcolor
  1337. fp.Name=name
  1338. fp.Size=size
  1339. fp.Position=Torso.Position
  1340. NoOutline(fp)
  1341. fp.Material="SmoothPlastic"
  1342. fp:BreakJoints()
  1343. return fp
  1344. end
  1345.  
  1346. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1347. local mesh=it(Mesh)
  1348. mesh.Parent=part
  1349. if Mesh=="SpecialMesh" then
  1350. mesh.MeshType=meshtype
  1351. if meshid~="nil" then
  1352. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1353. end
  1354. end
  1355. mesh.Offset=offset
  1356. mesh.Scale=scale
  1357. return mesh
  1358. end
  1359.  
  1360. function weld(parent,part0,part1,c0)
  1361. local weld=it("Weld")
  1362. weld.Parent=parent
  1363. weld.Part0=part0
  1364. weld.Part1=part1
  1365. weld.C0=c0
  1366. return weld
  1367. end
  1368.  
  1369. local Color1=Torso.BrickColor
  1370.  
  1371. local bodvel=Instance.new("BodyVelocity")
  1372. local bg=Instance.new("BodyGyro")
  1373.  
  1374. function swait(num)
  1375. if num==0 or num==nil then
  1376. game:service'RunService'.Stepped:wait(0)
  1377. else
  1378. for i=0,num do
  1379. game:service'RunService'.Stepped:wait(0)
  1380. end
  1381. end
  1382. end
  1383.  
  1384. -------- RAINBOW LEAVE IT TO ME
  1385. local r = 255
  1386. local g = 0
  1387. local b = 0
  1388. coroutine.resume(coroutine.create(function()
  1389. while wait() do
  1390. for i = 0, 254/5 do
  1391. swait()
  1392. g = g + 5
  1393. end
  1394. for i = 0, 254/5 do
  1395. swait()
  1396. r = r - 5
  1397. end
  1398. for i = 0, 254/5 do
  1399. swait()
  1400. b = b + 5
  1401. end
  1402. for i = 0, 254/5 do
  1403. swait()
  1404. g = g - 5
  1405. end
  1406. for i = 0, 254/5 do
  1407. swait()
  1408. r = r + 5
  1409. end
  1410. for i = 0, 254/5 do
  1411. swait()
  1412. b = b - 5
  1413. end
  1414. end
  1415. end))
  1416.  
  1417.  
  1418. so = function(id,par,vol,pit)
  1419. coroutine.resume(coroutine.create(function()
  1420. local sou = Instance.new("Sound",par or workspace)
  1421. sou.Volume=vol
  1422. sou.Pitch=pit or 1
  1423. sou.SoundId=id
  1424. swait()
  1425. sou:play()
  1426. game:GetService("Debris"):AddItem(sou,6)
  1427. end))
  1428. end
  1429.  
  1430. function clerp(a,b,t)
  1431. local qa = {QuaternionFromCFrame(a)}
  1432. local qb = {QuaternionFromCFrame(b)}
  1433. local ax, ay, az = a.x, a.y, a.z
  1434. local bx, by, bz = b.x, b.y, b.z
  1435. local _t = 1-t
  1436. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1437. end
  1438.  
  1439. function QuaternionFromCFrame(cf)
  1440. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1441. local trace = m00 + m11 + m22
  1442. if trace > 0 then
  1443. local s = math.sqrt(1 + trace)
  1444. local recip = 0.5/s
  1445. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1446. else
  1447. local i = 0
  1448. if m11 > m00 then
  1449. i = 1
  1450. end
  1451. if m22 > (i == 0 and m00 or m11) then
  1452. i = 2
  1453. end
  1454. if i == 0 then
  1455. local s = math.sqrt(m00-m11-m22+1)
  1456. local recip = 0.5/s
  1457. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1458. elseif i == 1 then
  1459. local s = math.sqrt(m11-m22-m00+1)
  1460. local recip = 0.5/s
  1461. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1462. elseif i == 2 then
  1463. local s = math.sqrt(m22-m00-m11+1)
  1464. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1465. end
  1466. end
  1467. end
  1468.  
  1469. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1470. local xs, ys, zs = x + x, y + y, z + z
  1471. local wx, wy, wz = w*xs, w*ys, w*zs
  1472. local xx = x*xs
  1473. local xy = x*ys
  1474. local xz = x*zs
  1475. local yy = y*ys
  1476. local yz = y*zs
  1477. local zz = z*zs
  1478. 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))
  1479. end
  1480.  
  1481. function QuaternionSlerp(a, b, t)
  1482. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1483. local startInterp, finishInterp;
  1484. if cosTheta >= 0.0001 then
  1485. if (1 - cosTheta) > 0.0001 then
  1486. local theta = math.acos(cosTheta)
  1487. local invSinTheta = 1/math.sin(theta)
  1488. startInterp = math.sin((1-t)*theta)*invSinTheta
  1489. finishInterp = math.sin(t*theta)*invSinTheta
  1490. else
  1491. startInterp = 1-t
  1492. finishInterp = t
  1493. end
  1494. else
  1495. if (1+cosTheta) > 0.0001 then
  1496. local theta = math.acos(-cosTheta)
  1497. local invSinTheta = 1/math.sin(theta)
  1498. startInterp = math.sin((t-1)*theta)*invSinTheta
  1499. finishInterp = math.sin(t*theta)*invSinTheta
  1500. else
  1501. startInterp = t-1
  1502. finishInterp = t
  1503. end
  1504. end
  1505. 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
  1506. end
  1507.  
  1508. local function CFrameFromTopBack(at, top, back)
  1509. local right = top:Cross(back)
  1510. return CFrame.new(at.x, at.y, at.z,
  1511. right.x, top.x, back.x,
  1512. right.y, top.y, back.y,
  1513. right.z, top.z, back.z)
  1514. end
  1515.  
  1516. function Triangle(a, b, c)
  1517. local edg1 = (c-a):Dot((b-a).unit)
  1518. local edg2 = (a-b):Dot((c-b).unit)
  1519. local edg3 = (b-c):Dot((a-c).unit)
  1520. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1521. a, b, c = a, b, c
  1522. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1523. a, b, c = b, c, a
  1524. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1525. a, b, c = c, a, b
  1526. else
  1527. assert(false, "unreachable")
  1528. end
  1529.  
  1530. local len1 = (c-a):Dot((b-a).unit)
  1531. local len2 = (b-a).magnitude - len1
  1532. local width = (a + (b-a).unit*len1 - c).magnitude
  1533.  
  1534. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1535.  
  1536. local list = {}
  1537.  
  1538. if len1 > 0.01 then
  1539. local w1 = Instance.new('WedgePart', m)
  1540. game:GetService("Debris"):AddItem(w1,5)
  1541. w1.Material = "SmoothPlastic"
  1542. w1.FormFactor = 'Custom'
  1543. w1.BrickColor = BrickColor.new("Really red")
  1544. w1.Transparency = 0
  1545. w1.Reflectance = 0
  1546. w1.Material = "SmoothPlastic"
  1547. w1.CanCollide = false
  1548. local l1 = Instance.new("PointLight",w1)
  1549. l1.Color = Color3.new(170,0,0)
  1550. NoOutline(w1)
  1551. local sz = Vector3.new(0.2, width, len1)
  1552. w1.Size = sz
  1553. local sp = Instance.new("SpecialMesh",w1)
  1554. sp.MeshType = "Wedge"
  1555. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1556. w1:BreakJoints()
  1557. w1.Anchored = true
  1558. w1.Parent = workspace
  1559. w1.Transparency = 0.7
  1560. table.insert(Effects,{w1,"Disappear",.01})
  1561. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1562. table.insert(list,w1)
  1563. end
  1564.  
  1565. if len2 > 0.01 then
  1566. local w2 = Instance.new('WedgePart', m)
  1567. game:GetService("Debris"):AddItem(w2,5)
  1568. w2.Material = "SmoothPlastic"
  1569. w2.FormFactor = 'Custom'
  1570. w2.BrickColor = BrickColor.new("Really red")
  1571. w2.Transparency = 0
  1572. w2.Reflectance = 0
  1573. w2.Material = "SmoothPlastic"
  1574. w2.CanCollide = false
  1575. local l2 = Instance.new("PointLight",w2)
  1576. l2.Color = Color3.new(170,0,0)
  1577. NoOutline(w2)
  1578. local sz = Vector3.new(0.2, width, len2)
  1579. w2.Size = sz
  1580. local sp = Instance.new("SpecialMesh",w2)
  1581. sp.MeshType = "Wedge"
  1582. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1583. w2:BreakJoints()
  1584. w2.Anchored = true
  1585. w2.Parent = workspace
  1586. w2.Transparency = 0.7
  1587. table.insert(Effects,{w2,"Disappear",.01})
  1588. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1589. table.insert(list,w2)
  1590. end
  1591. return unpack(list)
  1592. end
  1593.  
  1594.  
  1595. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1596. if hit.Parent == nil then
  1597. return
  1598. end
  1599. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1600. for _, v in pairs(hit.Parent:children()) do
  1601. if v:IsA("Humanoid") then
  1602. h = v
  1603. end
  1604. end
  1605. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1606. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1607. return
  1608. end
  1609. local c = Create("ObjectValue")({
  1610. Name = "creator",
  1611. Value = game:service("Players").LocalPlayer,
  1612. Parent = h
  1613. })
  1614. game:GetService("Debris"):AddItem(c, 0.5)
  1615. if HitSound ~= nil and HitPitch ~= nil then
  1616. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1617. end
  1618. local Damage = math.random(minim, maxim)
  1619. local blocked = false
  1620. local block = hit.Parent:findFirstChild("Block")
  1621. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1622. blocked = true
  1623. block.Value = block.Value - 1
  1624. print(block.Value)
  1625. end
  1626. if blocked == false then
  1627. HitHealth = h.Health
  1628. h.Health = h.Health - Damage
  1629. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1630. print("gained kill")
  1631. end
  1632. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1633. else
  1634. h.Health = h.Health - Damage / 2
  1635. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1636. end
  1637. if Type == "Knockdown" then
  1638. local hum = hit.Parent.Humanoid
  1639. hum.PlatformStand = true
  1640. coroutine.resume(coroutine.create(function(HHumanoid)
  1641. swait(1)
  1642. HHumanoid.PlatformStand = false
  1643. end), hum)
  1644. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1645. local bodvol = Create("BodyVelocity")({
  1646. velocity = angle * knockback,
  1647. P = 5000,
  1648. maxForce = Vector3.new(8000, 8000, 8000),
  1649. Parent = hit
  1650. })
  1651. local rl = Create("BodyAngularVelocity")({
  1652. P = 3000,
  1653. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1654. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1655. Parent = hit
  1656. })
  1657. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1658. game:GetService("Debris"):AddItem(rl, 0.5)
  1659. elseif Type == "Normal" then
  1660. local vp = Create("BodyVelocity")({
  1661. P = 500,
  1662. maxForce = Vector3.new(math.huge, 0, math.huge),
  1663. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1664. })
  1665. if knockback > 0 then
  1666. vp.Parent = hit.Parent.Head
  1667. end
  1668. game:GetService("Debris"):AddItem(vp, 0.5)
  1669. elseif Type == "Up" then
  1670. local bodyVelocity = Create("BodyVelocity")({
  1671. velocity = Vector3.new(0, 20, 0),
  1672. P = 5000,
  1673. maxForce = Vector3.new(8000, 8000, 8000),
  1674. Parent = hit
  1675. })
  1676. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1677. local bodyVelocity = Create("BodyVelocity")({
  1678. velocity = Vector3.new(0, 20, 0),
  1679. P = 5000,
  1680. maxForce = Vector3.new(8000, 8000, 8000),
  1681. Parent = hit
  1682. })
  1683. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1684. elseif Type == "Leech" then
  1685. local hum = hit.Parent.Humanoid
  1686. if hum ~= nil then
  1687. for i = 0, 2 do
  1688. 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)
  1689. end
  1690. Humanoid.Health = Humanoid.Health + 10
  1691. end
  1692. elseif Type == "UpKnock" then
  1693. local hum = hit.Parent.Humanoid
  1694. hum.PlatformStand = true
  1695. if hum ~= nil then
  1696. hitr = true
  1697. end
  1698. coroutine.resume(coroutine.create(function(HHumanoid)
  1699. swait(5)
  1700. HHumanoid.PlatformStand = false
  1701. hitr = false
  1702. end), hum)
  1703. local bodyVelocity = Create("BodyVelocity")({
  1704. velocity = Vector3.new(0, 20, 0),
  1705. P = 5000,
  1706. maxForce = Vector3.new(8000, 8000, 8000),
  1707. Parent = hit
  1708. })
  1709. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1710. local bodyVelocity = Create("BodyVelocity")({
  1711. velocity = Vector3.new(0, 20, 0),
  1712. P = 5000,
  1713. maxForce = Vector3.new(8000, 8000, 8000),
  1714. Parent = hit
  1715. })
  1716. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1717. elseif Type == "Snare" then
  1718. local bp = Create("BodyPosition")({
  1719. P = 2000,
  1720. D = 100,
  1721. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1722. position = hit.Parent.Torso.Position,
  1723. Parent = hit.Parent.Torso
  1724. })
  1725. game:GetService("Debris"):AddItem(bp, 1)
  1726. elseif Type == "Slashnare" then
  1727. 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)
  1728. for i = 1, math.random(4, 5) do
  1729. 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)
  1730. end
  1731. local bp = Create("BodyPosition")({
  1732. P = 2000,
  1733. D = 100,
  1734. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1735. position = hit.Parent.Torso.Position,
  1736. Parent = hit.Parent.Torso
  1737. })
  1738. game:GetService("Debris"):AddItem(bp, 1)
  1739. elseif Type == "Spike" then
  1740. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1741. local bp = Create("BodyPosition")({
  1742. P = 2000,
  1743. D = 100,
  1744. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1745. position = hit.Parent.Torso.Position,
  1746. Parent = hit.Parent.Torso
  1747. })
  1748. game:GetService("Debris"):AddItem(bp, 1)
  1749. elseif Type == "Freeze" then
  1750. local BodPos = Create("BodyPosition")({
  1751. P = 50000,
  1752. D = 1000,
  1753. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1754. position = hit.Parent.Torso.Position,
  1755. Parent = hit.Parent.Torso
  1756. })
  1757. local BodGy = Create("BodyGyro")({
  1758. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1759. P = 20000,
  1760. Parent = hit.Parent.Torso,
  1761. cframe = hit.Parent.Torso.CFrame
  1762. })
  1763. hit.Parent.Torso.Anchored = true
  1764. coroutine.resume(coroutine.create(function(Part)
  1765. swait(1.5)
  1766. Part.Anchored = false
  1767. end), hit.Parent.Torso)
  1768. game:GetService("Debris"):AddItem(BodPos, 3)
  1769. game:GetService("Debris"):AddItem(BodGy, 3)
  1770. end
  1771. local debounce = Create("BoolValue")({
  1772. Name = "DebounceHit",
  1773. Parent = hit.Parent,
  1774. Value = true
  1775. })
  1776. game:GetService("Debris"):AddItem(debounce, Delay)
  1777. c = Instance.new("ObjectValue")
  1778. c.Name = "creator"
  1779. c.Value = Player
  1780. c.Parent = h
  1781. game:GetService("Debris"):AddItem(c, 0.5)
  1782. end
  1783. end
  1784. function ShowDamage(Pos, Text, Time, Color)
  1785. local Rate = 0.03333333333333333
  1786. local Pos = Pos or Vector3.new(0, 0, 0)
  1787. local Text = Text or ""
  1788. local Time = Time or 2
  1789. local Color = Color or Color3.new(1, 0, 1)
  1790. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1791. EffectPart.Anchored = true
  1792. local BillboardGui = Create("BillboardGui")({
  1793. Size = UDim2.new(3, 0, 3, 0),
  1794. Adornee = EffectPart,
  1795. Parent = EffectPart
  1796. })
  1797. local TextLabel = Create("TextLabel")({
  1798. BackgroundTransparency = 1,
  1799. Size = UDim2.new(1, 0, 1, 0),
  1800. Text = Text,
  1801. TextColor3 = Color,
  1802. TextScaled = true,
  1803. Font = Enum.Font.ArialBold,
  1804. Parent = BillboardGui
  1805. })
  1806. game.Debris:AddItem(EffectPart, Time + 0.1)
  1807. EffectPart.Parent = game:GetService("Workspace")
  1808. delay(0, function()
  1809. local Frames = Time / Rate
  1810. for Frame = 1, Frames do
  1811. wait(Rate)
  1812. local Percent = Frame / Frames
  1813. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1814. TextLabel.TextTransparency = Percent
  1815. end
  1816. if EffectPart and EffectPart.Parent then
  1817. EffectPart:Destroy()
  1818. end
  1819. end)
  1820. end
  1821. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1822. for _, c in pairs(workspace:children()) do
  1823. local hum = c:findFirstChildOfClass("Humanoid")
  1824. if hum ~= nil then
  1825. local head = c:findFirstChild("Head")
  1826. if head ~= nil then
  1827. local targ = head.Position - Part.Position
  1828. local mag = targ.magnitude
  1829. if magni >= mag and c.Name ~= Player.Name then
  1830. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1831. end
  1832. end
  1833. end
  1834. end
  1835. end
  1836.  
  1837. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1838. for _, c in pairs(workspace:children()) do
  1839. local hum = c:findFirstChild("Humanoid")
  1840. if hum ~= nil then
  1841. local head = c:findFirstChild("Torso")
  1842. if head ~= nil then
  1843. local targ = head.Position - Part.Position
  1844. local mag = targ.magnitude
  1845. if magni >= mag and c.Name ~= Player.Name then
  1846. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1847. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1848. end
  1849. end
  1850. end
  1851. end
  1852. end
  1853.  
  1854. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1855. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1856. end
  1857.  
  1858. local origcolor = BrickColor.new("Pastel light blue")
  1859. ---- This section of explosions.
  1860.  
  1861. ----
  1862.  
  1863.  
  1864. function ring(type,pos,scale,value)
  1865. local type = type
  1866. local rng = Instance.new("Part", char)
  1867. rng.Anchored = true
  1868. rng.BrickColor = origcolor
  1869. rng.CanCollide = false
  1870. rng.FormFactor = 3
  1871. rng.Name = "Ring"
  1872. rng.Size = Vector3.new(1, 1, 1)
  1873. rng.Transparency = 0
  1874. rng.TopSurface = 0
  1875. rng.BottomSurface = 0
  1876. rng.CFrame = pos
  1877. local rngm = Instance.new("SpecialMesh", rng)
  1878. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1879. rngm.Scale = scale
  1880. local scaler2 = 1
  1881. if type == "Add" then
  1882. scaler2 = 1*value
  1883. elseif type == "Divide" then
  1884. scaler2 = 1/value
  1885. end
  1886. coroutine.resume(coroutine.create(function()
  1887. for i = 0,10,0.1 do
  1888. swait()
  1889. if type == "Add" then
  1890. scaler2 = scaler2 - 0.01*value
  1891. elseif type == "Divide" then
  1892. scaler2 = scaler2 - 0.01/value
  1893. end
  1894. rng.Transparency = rng.Transparency + 0.01
  1895. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1896. end
  1897. rng:Destroy()
  1898. end))
  1899. end
  1900.  
  1901.  
  1902. function wave(type,pos,scale,value)
  1903. local type = type
  1904. local rng = Instance.new("Part", char)
  1905. rng.Anchored = true
  1906. rng.BrickColor = origcolor
  1907. rng.CanCollide = false
  1908. rng.FormFactor = 3
  1909. rng.Name = "Ring"
  1910. rng.Size = Vector3.new(1, 1, 1)
  1911. rng.Transparency = 0
  1912. rng.TopSurface = 0
  1913. rng.BottomSurface = 0
  1914. rng.CFrame = pos
  1915. local rngm = Instance.new("SpecialMesh", rng)
  1916. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1917. rngm.Scale = scale
  1918. local scaler2 = 1
  1919. if type == "Add" then
  1920. scaler2 = 1*value
  1921. elseif type == "Divide" then
  1922. scaler2 = 1/value
  1923. end
  1924. coroutine.resume(coroutine.create(function()
  1925. for i = 0,10,0.1 do
  1926. swait()
  1927. if type == "Add" then
  1928. scaler2 = scaler2 - 0.01*value
  1929. elseif type == "Divide" then
  1930. scaler2 = scaler2 - 0.01/value
  1931. end
  1932. rng.Transparency = rng.Transparency + 0.01
  1933. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1934. end
  1935. rng:Destroy()
  1936. end))
  1937. end
  1938.  
  1939. function sphere(bonuspeed,type,pos,scale,value,color)
  1940. local type = type
  1941. local rng = Instance.new("Part", char)
  1942. rng.Anchored = true
  1943. if ModeOfGlitch ~= 9 then
  1944. rng.BrickColor = color
  1945. elseif ModeOfGlitch == 9 then
  1946. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1947. end
  1948. rng.CanCollide = false
  1949. rng.FormFactor = 3
  1950. rng.Name = "Ring"
  1951. rng.Material = "Neon"
  1952. rng.Size = Vector3.new(1, 1, 1)
  1953. rng.Transparency = 0
  1954. rng.TopSurface = 0
  1955. rng.BottomSurface = 0
  1956. rng.CFrame = pos
  1957. local rngm = Instance.new("SpecialMesh", rng)
  1958. rngm.MeshType = "Sphere"
  1959. rngm.Scale = scale
  1960. if rainbowmode == true then
  1961. rng.Color = Color3.new(r/255,g/255,b/255)
  1962. end
  1963. if ModeOfGlitch == 9 then
  1964. coroutine.resume(coroutine.create(function()
  1965. while true do
  1966. swait()
  1967. if rng.Parent ~= nil then
  1968. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1969. else
  1970. break
  1971. end
  1972. end
  1973. end))
  1974. end
  1975. local scaler2 = 1
  1976. if type == "Add" then
  1977. scaler2 = 1*value
  1978. elseif type == "Divide" then
  1979. scaler2 = 1/value
  1980. end
  1981. coroutine.resume(coroutine.create(function()
  1982. for i = 0,10/bonuspeed,0.1 do
  1983. swait()
  1984. if rainbowmode == true then
  1985. rng.Color = Color3.new(r/255,g/255,b/255)
  1986. end
  1987. if type == "Add" then
  1988. scaler2 = scaler2 - 0.01*value/bonuspeed
  1989. elseif type == "Divide" then
  1990. scaler2 = scaler2 - 0.01/value*bonuspeed
  1991. end
  1992. if chaosmode == true then
  1993. rng.BrickColor = BrickColor.random()
  1994. end
  1995. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1996. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1997. end
  1998. rng:Destroy()
  1999. end))
  2000. end
  2001.  
  2002. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2003. local type = type
  2004. local rng = Instance.new("Part", char)
  2005. rng.Anchored = true
  2006. if ModeOfGlitch ~= 9 then
  2007. rng.BrickColor = color
  2008. elseif ModeOfGlitch == 9 then
  2009. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2010. end
  2011. rng.CanCollide = false
  2012. rng.FormFactor = 3
  2013. rng.Name = "Ring"
  2014. rng.Material = "Neon"
  2015. rng.Size = Vector3.new(1, 1, 1)
  2016. rng.Transparency = 0
  2017. rng.TopSurface = 0
  2018. rng.BottomSurface = 0
  2019. rng.CFrame = pos
  2020. local rngm = Instance.new("SpecialMesh", rng)
  2021. rngm.MeshType = "Sphere"
  2022. rngm.Scale = scale
  2023. local scaler2 = 1
  2024. local scaler2b = 1
  2025. local scaler2c = 1
  2026. if type == "Add" then
  2027. scaler2 = 1*value
  2028. scaler2b = 1*value2
  2029. scaler2c = 1*value3
  2030. elseif type == "Divide" then
  2031. scaler2 = 1/value
  2032. scaler2b = 1/value2
  2033. scaler2c = 1/value3
  2034. end
  2035. if ModeOfGlitch == 9 then
  2036. coroutine.resume(coroutine.create(function()
  2037. while true do
  2038. swait()
  2039. if rng.Parent ~= nil then
  2040. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2041. else
  2042. break
  2043. end
  2044. end
  2045. end))
  2046. end
  2047. coroutine.resume(coroutine.create(function()
  2048. for i = 0,10/bonuspeed,0.1 do
  2049. swait()
  2050. if type == "Add" then
  2051. scaler2 = scaler2 - 0.01*value/bonuspeed
  2052. scaler2b = scaler2b - 0.01*value/bonuspeed
  2053. scaler2c = scaler2c - 0.01*value/bonuspeed
  2054. elseif type == "Divide" then
  2055. scaler2 = scaler2 - 0.01/value*bonuspeed
  2056. scaler2b = scaler2b - 0.01/value*bonuspeed
  2057. scaler2c = scaler2c - 0.01/value*bonuspeed
  2058. end
  2059. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2060. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2061. end
  2062. rng:Destroy()
  2063. end))
  2064. end
  2065.  
  2066. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2067. local type = type
  2068. local rng = Instance.new("Part", char)
  2069. rng.Anchored = true
  2070. rng.BrickColor = color
  2071. rng.CanCollide = false
  2072. rng.FormFactor = 3
  2073. rng.Name = "Ring"
  2074. rng.Material = "Neon"
  2075. rng.Size = Vector3.new(1, 1, 1)
  2076. rng.Transparency = 0
  2077. rng.TopSurface = 0
  2078. rng.BottomSurface = 0
  2079. rng.CFrame = pos
  2080. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2081. local rngm = Instance.new("SpecialMesh", rng)
  2082. rngm.MeshType = "Brick"
  2083. rngm.Scale = vt(x1,y1,z1)
  2084. if rainbowmode == true then
  2085. rng.Color = Color3.new(r/255,g/255,b/255)
  2086. end
  2087. local scaler2 = 1
  2088. local speeder = FastSpeed/10
  2089. if type == "Add" then
  2090. scaler2 = 1*value
  2091. elseif type == "Divide" then
  2092. scaler2 = 1/value
  2093. end
  2094. coroutine.resume(coroutine.create(function()
  2095. for i = 0,10/bonuspeed,0.1 do
  2096. swait()
  2097. if rainbowmode == true then
  2098. rng.Color = Color3.new(r/255,g/255,b/255)
  2099. end
  2100. if type == "Add" then
  2101. scaler2 = scaler2 - 0.01*value/bonuspeed
  2102. elseif type == "Divide" then
  2103. scaler2 = scaler2 - 0.01/value*bonuspeed
  2104. end
  2105. if chaosmode == true then
  2106. rng.BrickColor = BrickColor.random()
  2107. end
  2108. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2109. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2110. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2111. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2112. end
  2113. rng:Destroy()
  2114. end))
  2115. end
  2116.  
  2117. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2118. local type = type
  2119. local rng = Instance.new("Part", char)
  2120. rng.Anchored = true
  2121. rng.BrickColor = color
  2122. rng.CanCollide = false
  2123. rng.FormFactor = 3
  2124. rng.Name = "Ring"
  2125. rng.Material = "Neon"
  2126. rng.Size = Vector3.new(1, 1, 1)
  2127. rng.Transparency = 0
  2128. rng.TopSurface = 0
  2129. rng.BottomSurface = 0
  2130. rng.CFrame = pos
  2131. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2132. local rngm = Instance.new("SpecialMesh", rng)
  2133. rngm.MeshType = "Brick"
  2134. rngm.Scale = vt(x1,y1,z1)
  2135. if rainbowmode == true then
  2136. rng.Color = Color3.new(r/255,g/255,b/255)
  2137. end
  2138. local scaler2 = 1
  2139. local speeder = FastSpeed/10
  2140. if type == "Add" then
  2141. scaler2 = 1*value
  2142. elseif type == "Divide" then
  2143. scaler2 = 1/value
  2144. end
  2145. coroutine.resume(coroutine.create(function()
  2146. for i = 0,10/bonuspeed,0.1 do
  2147. swait()
  2148. if rainbowmode == true then
  2149. rng.Color = Color3.new(r/255,g/255,b/255)
  2150. end
  2151. if type == "Add" then
  2152. scaler2 = scaler2 - 0.01*value/bonuspeed
  2153. elseif type == "Divide" then
  2154. scaler2 = scaler2 - 0.01/value*bonuspeed
  2155. end
  2156. if chaosmode == true then
  2157. rng.BrickColor = BrickColor.random()
  2158. end
  2159. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2160. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2161. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2162. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2163. end
  2164. rng:Destroy()
  2165. end))
  2166. end
  2167.  
  2168. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2169. local type = type
  2170. local rng = Instance.new("Part", char)
  2171. rng.Anchored = true
  2172. rng.BrickColor = color
  2173. rng.CanCollide = false
  2174. rng.FormFactor = 3
  2175. rng.Name = "Ring"
  2176. rng.Material = "Neon"
  2177. rng.Size = Vector3.new(1, 1, 1)
  2178. rng.Transparency = 0
  2179. rng.TopSurface = 0
  2180. rng.BottomSurface = 0
  2181. rng.CFrame = pos
  2182. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2183. local rngm = Instance.new("SpecialMesh", rng)
  2184. rngm.MeshType = "Brick"
  2185. rngm.Scale = vt(x1,y1,z1)
  2186. if rainbowmode == true then
  2187. rng.Color = Color3.new(r/255,g/255,b/255)
  2188. end
  2189. local scaler2 = 0
  2190. local speeder = FastSpeed/10
  2191. if type == "Add" then
  2192. scaler2 = 1*value
  2193. elseif type == "Divide" then
  2194. scaler2 = 1/value
  2195. end
  2196. coroutine.resume(coroutine.create(function()
  2197. for i = 0,10/bonuspeed,0.1 do
  2198. swait()
  2199. if rainbowmode == true then
  2200. rng.Color = Color3.new(r/255,g/255,b/255)
  2201. end
  2202. if type == "Add" then
  2203. scaler2 = scaler2 - 0.01*value/bonuspeed
  2204. elseif type == "Divide" then
  2205. scaler2 = scaler2 - 0.01/value*bonuspeed
  2206. end
  2207. if chaosmode == true then
  2208. rng.BrickColor = BrickColor.random()
  2209. end
  2210. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2211. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2212. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2213. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2214. end
  2215. rng:Destroy()
  2216. end))
  2217. end
  2218.  
  2219. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2220. local type = type
  2221. local rng = Instance.new("Part", char)
  2222. rng.Anchored = true
  2223. if ModeOfGlitch ~= 9 then
  2224. rng.BrickColor = color
  2225. elseif ModeOfGlitch == 9 then
  2226. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2227. end
  2228. rng.CanCollide = false
  2229. rng.FormFactor = 3
  2230. rng.Name = "Ring"
  2231. rng.Material = "Neon"
  2232. rng.Size = Vector3.new(1, 1, 1)
  2233. rng.Transparency = 0
  2234. rng.TopSurface = 0
  2235. rng.BottomSurface = 0
  2236. rng.CFrame = pos
  2237. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2238. local rngm = Instance.new("SpecialMesh", rng)
  2239. rngm.MeshType = "Sphere"
  2240. rngm.Scale = vt(x1,y1,z1)
  2241. if rainbowmode == true then
  2242. rng.Color = Color3.new(r/255,g/255,b/255)
  2243. end
  2244. if ModeOfGlitch == 9 then
  2245. coroutine.resume(coroutine.create(function()
  2246. while true do
  2247. swait()
  2248. if rng.Parent ~= nil then
  2249. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2250. else
  2251. break
  2252. end
  2253. end
  2254. end))
  2255. end
  2256. local scaler2 = 1
  2257. local speeder = FastSpeed
  2258. if type == "Add" then
  2259. scaler2 = 1*value
  2260. elseif type == "Divide" then
  2261. scaler2 = 1/value
  2262. end
  2263. coroutine.resume(coroutine.create(function()
  2264. for i = 0,10/bonuspeed,0.1 do
  2265. swait()
  2266. if rainbowmode == true then
  2267. rng.Color = Color3.new(r/255,g/255,b/255)
  2268. end
  2269. if type == "Add" then
  2270. scaler2 = scaler2 - 0.01*value/bonuspeed
  2271. elseif type == "Divide" then
  2272. scaler2 = scaler2 - 0.01/value*bonuspeed
  2273. end
  2274. if chaosmode == true then
  2275. rng.BrickColor = BrickColor.random()
  2276. end
  2277. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2278. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2279. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2280. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2281. end
  2282. rng:Destroy()
  2283. end))
  2284. end
  2285.  
  2286.  
  2287. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2288. local type = type
  2289. local rng = Instance.new("Part", char)
  2290. rng.Anchored = true
  2291. if ModeOfGlitch ~= 9 then
  2292. rng.BrickColor = color
  2293. elseif ModeOfGlitch == 9 then
  2294. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2295. end
  2296. rng.CanCollide = false
  2297. rng.FormFactor = 3
  2298. rng.Name = "Ring"
  2299. rng.Material = "Neon"
  2300. rng.Size = Vector3.new(1, 1, 1)
  2301. rng.Transparency = 1
  2302. rng.TopSurface = 0
  2303. rng.BottomSurface = 0
  2304. rng.CFrame = pos
  2305. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2306. local rngm = Instance.new("SpecialMesh", rng)
  2307. rngm.MeshType = "Sphere"
  2308. rngm.Scale = vt(x1,y1,z1)
  2309. if rainbowmode == true then
  2310. rng.Color = Color3.new(r/255,g/255,b/255)
  2311. end
  2312. if ModeOfGlitch == 9 then
  2313. coroutine.resume(coroutine.create(function()
  2314. while true do
  2315. swait()
  2316. if rng.Parent ~= nil then
  2317. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2318. else
  2319. break
  2320. end
  2321. end
  2322. end))
  2323. end
  2324. local scaler2 = 1
  2325. local speeder = FastSpeed
  2326. if type == "Add" then
  2327. scaler2 = 1*value
  2328. elseif type == "Divide" then
  2329. scaler2 = 1/value
  2330. end
  2331. coroutine.resume(coroutine.create(function()
  2332. for i = 0,10/bonuspeed,0.1 do
  2333. swait()
  2334. if rainbowmode == true then
  2335. rng.Color = Color3.new(r/255,g/255,b/255)
  2336. end
  2337. if type == "Add" then
  2338. scaler2 = scaler2 - 0.01*value/bonuspeed
  2339. elseif type == "Divide" then
  2340. scaler2 = scaler2 - 0.01/value*bonuspeed
  2341. end
  2342. if chaosmode == true then
  2343. rng.BrickColor = BrickColor.random()
  2344. end
  2345. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2346. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2347. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2348. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2349. end
  2350. rng:Destroy()
  2351. end))
  2352. end
  2353.  
  2354. function dmg(dude)
  2355. if dude.Name ~= Character then
  2356. local keptcolor = MAINRUINCOLOR
  2357. local bgf = Instance.new("BodyGyro",dude.Head)
  2358. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2359. --[[local val = Instance.new("BoolValue",dude)
  2360. val.Name = "IsHit"]]--
  2361. local ds = coroutine.wrap(function()
  2362. dude:WaitForChild("Head"):BreakJoints()
  2363. for i, v in pairs(dude:GetChildren()) do
  2364. if v:IsA("Part") or v:IsA("MeshPart") then
  2365. v.Name = "DEMINISHED"
  2366. end
  2367. end
  2368. wait(0.5)
  2369. targetted = nil
  2370. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2371. coroutine.resume(coroutine.create(function()
  2372. for i, v in pairs(dude:GetChildren()) do
  2373. if v:IsA("Accessory") then
  2374. v:Destroy()
  2375. end
  2376. if v:IsA("Humanoid") then
  2377. v:Destroy()
  2378. end
  2379. if v:IsA("CharacterMesh") then
  2380. v:Destroy()
  2381. end
  2382. if v:IsA("Model") then
  2383. v:Destroy()
  2384. end
  2385. if v:IsA("Part") or v:IsA("MeshPart") then
  2386. for x, o in pairs(v:GetChildren()) do
  2387. if o:IsA("Decal") then
  2388. o:Destroy()
  2389. end
  2390. end
  2391. coroutine.resume(coroutine.create(function()
  2392. v.Material = "Neon"
  2393. v.CanCollide = false
  2394. v.Anchored = false
  2395. local bld = Instance.new("ParticleEmitter",v)
  2396. bld.LightEmission = 0.75
  2397. bld.Texture = "rbxassetid://363275192" ---284205403
  2398. bld.Color = ColorSequence.new(keptcolor.Color)
  2399. bld.Rate = 500
  2400. bld.Lifetime = NumberRange.new(1)
  2401. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2402. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2403. bld.Speed = NumberRange.new(2,5)
  2404. bld.VelocitySpread = 50000
  2405. bld.Rotation = NumberRange.new(-500,500)
  2406. bld.RotSpeed = NumberRange.new(-500,500)
  2407. local sbs = Instance.new("BodyPosition", v)
  2408. sbs.P = 3000
  2409. sbs.D = 1000
  2410. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2411. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2412. v.Color = keptcolor.Color
  2413. coroutine.resume(coroutine.create(function()
  2414. for i = 0, 49 do
  2415. swait(1)
  2416. v:BreakJoints()
  2417. v.Transparency = v.Transparency + 0.02
  2418. end
  2419. v:BreakJoints()
  2420. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2421. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2422. bld.Speed = NumberRange.new(10,25)
  2423. bld.Drag = 5
  2424. bld.Acceleration = vt(0,2,0)
  2425. wait(0.5)
  2426. bld.Enabled = false
  2427. wait(8)
  2428. v:Destroy()
  2429. dude:Destroy()
  2430. end))
  2431. end))
  2432. end
  2433. end
  2434. end))
  2435. end)
  2436. ds()
  2437. end
  2438. end
  2439.  
  2440.  
  2441. function FindNearestHead(Position, Distance, SinglePlayer)
  2442. if SinglePlayer then
  2443. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2444. end
  2445. local List = {}
  2446. for i, v in pairs(workspace:GetChildren()) do
  2447. if v:IsA("Model") then
  2448. if v:findFirstChild("Head") then
  2449. if v ~= Character then
  2450. if (v.Head.Position - Position).magnitude <= Distance then
  2451. table.insert(List, v)
  2452. end
  2453. end
  2454. end
  2455. end
  2456. end
  2457. return List
  2458. end
  2459.  
  2460. function FaceMouse()
  2461. Cam = workspace.CurrentCamera
  2462. return {
  2463. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2464. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2465. }
  2466. end
  2467.  
  2468. function FaceMouse2()
  2469. Cam = workspace.CurrentCamera
  2470. return {
  2471. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2472. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2473. }
  2474. end
  2475.  
  2476. -- Functions are ready.
  2477. local storehumanoidWS = 16
  2478.  
  2479. function resetmode()
  2480. ModeOfGlitch = 1
  2481. storehumanoidWS = 16
  2482. hum.WalkSpeed = 16
  2483. rainbowmode = false
  2484. chaosmode = false
  2485. RecolorTextAndRename("Extracted",Color3.new(0,0,0),Color3.new(0,0,0),"Code")
  2486. newTheme("rbxassetid://435773595",0,1.01,1.25)
  2487. MAINRUINCOLOR = BrickColor.new("Black")
  2488. for i, v in pairs(mw2:GetChildren()) do
  2489. if v:IsA("Part") then
  2490. v.BrickColor = MAINRUINCOLOR
  2491. v.Material = "Neon"
  2492. end
  2493. end
  2494. refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2495. refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2496. refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2497. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2498. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2499. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2500. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2501. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2502. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2503. for i, v in pairs(mw1:GetChildren()) do
  2504. if v:IsA("Part") then
  2505. v.Transparency = 0
  2506. v.BrickColor = MAINRUINCOLOR
  2507. v.Material = "Neon"
  2508. end
  2509. end
  2510. for i, v in pairs(m:GetChildren()) do
  2511. if v:IsA("Part") then
  2512. v.BrickColor = BrickColor.new("White")
  2513. v.Material = "Ice"
  2514. end
  2515. end
  2516. for i, v in pairs(m2:GetChildren()) do
  2517. if v:IsA("Part") then
  2518. v.BrickColor = BrickColor.new("White")
  2519. v.Material = "Ice"
  2520. end
  2521. end
  2522. for i, v in pairs(m3:GetChildren()) do
  2523. if v:IsA("Part") then
  2524. v.BrickColor = BrickColor.new("White")
  2525. v.Material = "Neon"
  2526. end
  2527. end
  2528. for i, v in pairs(extrawingmod1:GetChildren()) do
  2529. if v:IsA("Part") then
  2530. v.Transparency = 1
  2531. v.BrickColor = BrickColor.new("White")
  2532. v.Material = "Neon"
  2533. end
  2534. end
  2535. for i, v in pairs(extrawingmod2:GetChildren()) do
  2536. if v:IsA("Part") then
  2537. v.Transparency = 1
  2538. v.BrickColor = BrickColor.new("White")
  2539. v.Material = "Neon"
  2540. end
  2541. end
  2542. end
  2543.  
  2544. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo)
  2545. for i, v in pairs(mw2:GetChildren()) do
  2546. if v:IsA("Part") then
  2547. v.BrickColor = one
  2548. v.Material = "Neon"
  2549. end
  2550. end
  2551. refec.Color = ColorSequence.new(one.Color)
  2552. refec2.Color = ColorSequence.new(one.Color)
  2553. refec3.Color = ColorSequence.new(one.Color)
  2554. tr1.Color = ColorSequence.new(one.Color)
  2555. tr2.Color = ColorSequence.new(one.Color)
  2556. tr3.Color = ColorSequence.new(one.Color)
  2557. for i, v in pairs(mw1:GetChildren()) do
  2558. if v:IsA("Part") then
  2559. v.Transparency = 0
  2560. v.BrickColor = two
  2561. v.Material = "Neon"
  2562. end
  2563. end
  2564. tl1.Color = ColorSequence.new(two.Color)
  2565. tl2.Color = ColorSequence.new(two.Color)
  2566. tl3.Color = ColorSequence.new(two.Color)
  2567. for i, v in pairs(m:GetChildren()) do
  2568. if v:IsA("Part") then
  2569. v.BrickColor = three
  2570. v.Material = "Ice"
  2571. end
  2572. end
  2573. for i, v in pairs(m2:GetChildren()) do
  2574. if v:IsA("Part") then
  2575. v.BrickColor = four
  2576. v.Material = "Ice"
  2577. end
  2578. end
  2579. for i, v in pairs(m3:GetChildren()) do
  2580. if v:IsA("Part") then
  2581. v.BrickColor = five
  2582. v.Material = "Neon"
  2583. end
  2584. end
  2585. for i, v in pairs(extrawingmod1:GetChildren()) do
  2586. if v:IsA("Part") then
  2587. v.Transparency = exonetran
  2588. v.BrickColor = exone
  2589. v.Material = "Neon"
  2590. end
  2591. end
  2592. for i, v in pairs(extrawingmod2:GetChildren()) do
  2593. if v:IsA("Part") then
  2594. v.Transparency = extwotran
  2595. v.BrickColor = extwo
  2596. v.Material = "Neon"
  2597. end
  2598. end
  2599. end
  2600.  
  2601. function attackone()
  2602. attack = true
  2603. local keptcolor = MAINRUINCOLOR
  2604. for i = 0,1,0.1 do
  2605. swait()
  2606. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  2607. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  2608. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  2609. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2610. 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(-15),math.rad(0),math.rad(0)),.3)
  2611. 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(0),math.rad(0)),.3)
  2612. end
  2613. local distlook = 5
  2614. coroutine.resume(coroutine.create(function()
  2615. for i = 0, 4 do
  2616. swait(2)
  2617. CameraEnshaking(2,3)
  2618. local hite = Instance.new("Part", char)
  2619. hite.Anchored = true
  2620. hite.CanCollide = false
  2621. hite.FormFactor = 3
  2622. hite.Name = "Ring"
  2623. hite.Material = "Neon"
  2624. hite.Size = Vector3.new(1, 1, 1)
  2625. hite.Transparency = 1
  2626. hite.TopSurface = 0
  2627. hite.BottomSurface = 0
  2628. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  2629. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  2630. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  2631. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  2632. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  2633. MagniDamage(hite, 9, 10,25, 0, "Normal")
  2634. for i = 0, 14 do
  2635. local rsiz = math.random(5,20)
  2636. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2637. end
  2638. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  2639. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  2640. game:GetService("Debris"):AddItem(hite, 5)
  2641. distlook = distlook + 10
  2642. end
  2643. end))
  2644. for i = 0,1,0.1 do
  2645. swait()
  2646. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  2647. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  2648. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  2649. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  2650. 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(-10)),.5)
  2651. 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(0),math.rad(-10)),.5)
  2652. end
  2653. attack = false
  2654. end
  2655.  
  2656. function attacktwo()
  2657. attack = true
  2658. for i = 0,1,0.1 do
  2659. swait()
  2660. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2661. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2662. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  2663. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  2664. 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(-1.5),math.rad(0),math.rad(10)),.3)
  2665. 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(0),math.rad(-10)),.3)
  2666. end
  2667. CameraEnshaking(3,4)
  2668. MagniDamage(root, 12, 15,30, 0, "Normal")
  2669. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2670. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2671. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2672. coroutine.resume(coroutine.create(function()
  2673. local eff = Instance.new("ParticleEmitter",root)
  2674. eff.Texture = "rbxassetid://363275192"
  2675. eff.LightEmission = 0.95
  2676. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2677. eff.Rate = 10000
  2678. eff.Lifetime = NumberRange.new(1)
  2679. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2680. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2681. eff.Speed = NumberRange.new(10,125)
  2682. eff.Drag = 5
  2683. eff.Rotation = NumberRange.new(-500,500)
  2684. eff.VelocitySpread = 9000
  2685. eff.RotSpeed = NumberRange.new(-50,50)
  2686. local eff2 = eff:Clone()
  2687. eff2.Parent = root
  2688. eff2.Texture = "rbxassetid://284205403"
  2689. eff2.Rate = 10000
  2690. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2691. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2692. eff2.Drag = 5
  2693. eff2.Speed = NumberRange.new(10,50)
  2694. eff2.Rotation = NumberRange.new(-500,500)
  2695. eff2.VelocitySpread = 9000
  2696. wait(0.25)
  2697. eff2.Enabled = false
  2698. eff.Enabled = false
  2699. wait(3)
  2700. eff2:Destroy()
  2701. eff:Destroy()
  2702. end))
  2703. for i = 0, 9 do
  2704. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  2705. end
  2706. for i = 0, 24 do
  2707. local rsiz = math.random(5,20)
  2708. sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  2709. end
  2710. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  2711. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  2712. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  2713. for i = 0,2,0.1 do
  2714. swait()
  2715. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2716. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2717. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  2718. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  2719. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  2720. 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(0),math.rad(10)),.3)
  2721. end
  2722. attack = false
  2723. end
  2724.  
  2725. function attackthree()
  2726. attack = true
  2727. local keptcolor = MAINRUINCOLOR
  2728. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  2729. for i = 0,1,0.1 do
  2730. swait()
  2731. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  2732. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2733. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  2734. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  2735. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  2736. 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(-1.5),math.rad(0),math.rad(0)),.5)
  2737. 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(0),math.rad(0)),.5)
  2738. end
  2739. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  2740. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  2741. local angle = -25
  2742. coroutine.resume(coroutine.create(function()
  2743. for i = 0, 2 do
  2744. local orb = Instance.new("Part", char)
  2745. orb.BrickColor = MAINRUINCOLOR
  2746. orb.CanCollide = false
  2747. orb.FormFactor = 3
  2748. orb.Name = "Ring"
  2749. orb.Material = "Neon"
  2750. orb.Size = Vector3.new(1, 1, 1)
  2751. orb.Transparency = 0.5
  2752. orb.TopSurface = 0
  2753. orb.BottomSurface = 0
  2754. local orbm = Instance.new("SpecialMesh", orb)
  2755. orbm.MeshType = "Sphere"
  2756. orbm.Name = "SizeMesh"
  2757. orbm.Scale = vt(3,3,3)
  2758. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  2759. local bv = Instance.new("BodyVelocity")
  2760. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2761. bv.velocity = orb.CFrame.lookVector*100
  2762. bv.Parent = orb
  2763. game:GetService("Debris"):AddItem(orb, 10)
  2764. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2765. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2766. coroutine.resume(coroutine.create(function()
  2767. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2768. for i = 0, 7 do
  2769. swait(2.5)
  2770. CameraEnshaking(1,2)
  2771. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2772. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  2773. for i = 0, 4 do
  2774. local rsiz = math.random(5,10)
  2775. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  2776. sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2777. end
  2778. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2779. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2780. end
  2781. orb.Transparency = 1
  2782. orb.Anchored = false
  2783. wait(10)
  2784. orb:Destroy()
  2785. end))
  2786. angle = angle + 25
  2787. end
  2788. end))
  2789. for i = 0,1,0.1 do
  2790. swait()
  2791. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2792. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2793. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  2794. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  2795. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  2796. 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(0),math.rad(10)),.3)
  2797. end
  2798. attack = false
  2799. end
  2800.  
  2801. ------------------------------------- Abilities ---------------------------------------------------------
  2802. function Fireball()
  2803. attack = true
  2804. hum.WalkSpeed = 0
  2805. local keptcolor = MAINRUINCOLOR
  2806. for i = 0,2,0.1 do
  2807. swait()
  2808. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  2809. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  2810. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3)
  2811. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3)
  2812. 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(-1.5),math.rad(0),math.rad(0)),.3)
  2813. 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(-1),math.rad(0),math.rad(0)),.3)
  2814. end
  2815. local orb = Instance.new("Part", char)
  2816. orb.BrickColor = keptcolor
  2817. orb.CanCollide = false
  2818. orb.FormFactor = 3
  2819. orb.Name = "Ring"
  2820. orb.Material = "Neon"
  2821. orb.Size = Vector3.new(1, 1, 1)
  2822. orb.Transparency = 0
  2823. orb.TopSurface = 0
  2824. orb.BottomSurface = 0
  2825. local orbm = Instance.new("SpecialMesh", orb)
  2826. orbm.MeshType = "Sphere"
  2827. orbm.Name = "SizeMesh"
  2828. orbm.Scale = vt(4,4,4)
  2829. orb.CFrame = root.CFrame + root.CFrame.lookVector*3
  2830. local eff = Instance.new("ParticleEmitter",orb)
  2831. eff.Texture = "rbxassetid://296874871"
  2832. eff.LightEmission = 0.95
  2833. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2834. eff.Rate = 10000
  2835. eff.Lifetime = NumberRange.new(1.5)
  2836. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2837. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2838. eff.Speed = NumberRange.new(25)
  2839. eff.Drag = 5
  2840. eff.Rotation = NumberRange.new(-500,500)
  2841. eff.VelocitySpread = 9000
  2842. eff.RotSpeed = NumberRange.new(-500,500)
  2843. local a = Instance.new("Part",workspace)
  2844. a.Name = "Direction"
  2845. a.Anchored = true
  2846. a.BrickColor = bc("Bright red")
  2847. a.Material = "Neon"
  2848. a.Transparency = 1
  2849. a.CanCollide = false
  2850. local ray = Ray.new(
  2851. orb.CFrame.p, -- origin
  2852. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2853. )
  2854. local ignore = orb
  2855. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2856. a.BottomSurface = 10
  2857. a.TopSurface = 10
  2858. local distance = (orb.CFrame.p - position).magnitude
  2859. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2860. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2861. orb.CFrame = a.CFrame
  2862. a:Destroy()
  2863. CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
  2864. local bv = Instance.new("BodyVelocity")
  2865. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2866. bv.velocity = orb.CFrame.lookVector*75
  2867. bv.Parent = orb
  2868. game:GetService("Debris"):AddItem(orb, 10)
  2869. local hitted = false
  2870. coroutine.resume(coroutine.create(function()
  2871. while true do
  2872. swait()
  2873. if orb.Parent ~= nil and hitted == false then
  2874. sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor)
  2875. elseif orb.Parent == nil and hitted == true then
  2876. break
  2877. end
  2878. end
  2879. end))
  2880. local hit =orb.Touched:connect(function(hit)
  2881. if hitted == false and hit.Parent ~= char then
  2882. hitted = true
  2883. eff.Enabled = false
  2884. CameraEnshaking(4,4)
  2885. CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
  2886. CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
  2887. MagniDamage(orb, 25, 20,30, 0, "Normal")
  2888. sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2889. sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2890. sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2891. for i = 0, 9 do
  2892. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor)
  2893. end
  2894. for i = 0, 49 do
  2895. local rsiz = math.random(10,30)
  2896. sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2897. end
  2898. local eff = Instance.new("ParticleEmitter",orb)
  2899. eff.Texture = "rbxassetid://296874871"
  2900. eff.LightEmission = 0.95
  2901. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2902. eff.Rate = 10000
  2903. eff.Lifetime = NumberRange.new(1.5)
  2904. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2905. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2906. eff.Speed = NumberRange.new(150)
  2907. eff.Drag = 5
  2908. eff.Rotation = NumberRange.new(-500,500)
  2909. eff.VelocitySpread = 9000
  2910. eff.RotSpeed = NumberRange.new(-500,500)
  2911. coroutine.resume(coroutine.create(function()
  2912. wait(0.25)
  2913. eff.Enabled = false
  2914. end))
  2915. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2916. orb.Anchored = true
  2917. orb.Transparency = 1
  2918. coroutine.resume(coroutine.create(function()
  2919. if hfr ~= nil then
  2920. orb.Size = vt(50,1,50)
  2921. orb.Orientation = vt(0,0,0)
  2922. orb.CFrame = orb.CFrame*CFrame.new(0,-5,0)
  2923. orbm:Destroy()
  2924. local firef = eff:Clone()
  2925. firef.Parent = orb
  2926. firef.VelocitySpread = 50
  2927. firef.Rate = 500
  2928. firef.Drag = 3
  2929. firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2930. firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2931. firef.Speed = NumberRange.new(10,30)
  2932. for i = 0, 24 do
  2933. wait(0.25)
  2934. MagniDamage(orb, 25, 3,6, 0, "Normal")
  2935. end
  2936. firef.Enabled = false
  2937. end
  2938. end))
  2939. wait(10)
  2940. orb:Destroy()
  2941. end
  2942. end)
  2943. for i = 0,1,0.1 do
  2944. swait()
  2945. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5)
  2946. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  2947. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5)
  2948. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5)
  2949. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  2950. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  2951. end
  2952. hum.WalkSpeed = storehumanoidWS
  2953. attack = false
  2954. end
  2955.  
  2956. function BeamOfDeath()
  2957. attack = true
  2958. hum.WalkSpeed = 0
  2959. local keptcolor = MAINRUINCOLOR
  2960. local orb = Instance.new("Part", char)
  2961. orb.BrickColor = keptcolor
  2962. orb.CanCollide = false
  2963. orb.FormFactor = 3
  2964. orb.Name = "Ring"
  2965. orb.Material = "Neon"
  2966. orb.Size = Vector3.new(1, 1, 1)
  2967. orb.Transparency = 1
  2968. orb.TopSurface = 0
  2969. orb.BottomSurface = 0
  2970. local orbm = Instance.new("SpecialMesh", orb)
  2971. orbm.MeshType = "Sphere"
  2972. orbm.Name = "SizeMesh"
  2973. orbm.Scale = vt(22.5,10000,22.5)
  2974. orb.CFrame = mouse.Hit
  2975. orb.Anchored = true
  2976. orb.Orientation = vt(0,0,0)
  2977. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  2978. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  2979. coroutine.resume(coroutine.create(function()
  2980. coroutine.resume(coroutine.create(function()
  2981. for i = 0, 399 do
  2982. swait()
  2983. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  2984. orb.Transparency = orb.Transparency - 0.0025
  2985. end
  2986. end))
  2987. wait(9)
  2988. coroutine.resume(coroutine.create(function()
  2989. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2990. if hfr ~= nil then
  2991. for i = 0, 49 do
  2992. local deb = Instance.new("Part", char)
  2993. deb.Anchored = true
  2994. deb.CanCollide = false
  2995. deb.FormFactor = 3
  2996. deb.Name = "Ring"
  2997. deb.Material = hitfloor.Material
  2998. deb.Color = hitfloor.Color
  2999. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  3000. deb.Transparency = 0
  3001. deb.TopSurface = 0
  3002. deb.BottomSurface = 0
  3003. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3004. local deb2 = Instance.new("Part", char)
  3005. deb2.CanCollide = false
  3006. deb2.FormFactor = 3
  3007. deb2.Name = "Ring"
  3008. deb2.Material = hitfloor.Material
  3009. deb2.Color = hitfloor.Color
  3010. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  3011. deb2.Transparency = 0
  3012. deb2.TopSurface = 0
  3013. deb2.BottomSurface = 0
  3014. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  3015. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3016. local eff = Instance.new("ParticleEmitter",deb)
  3017. eff.Texture = "rbxassetid://363275192"
  3018. eff.LightEmission = 0.95
  3019. eff.Color = ColorSequence.new(keptcolor.Color)
  3020. eff.Rate = 100
  3021. eff.Lifetime = NumberRange.new(1)
  3022. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  3023. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3024. eff.Speed = NumberRange.new(0,5)
  3025. eff.Rotation = NumberRange.new(-500,500)
  3026. eff.VelocitySpread = 9000
  3027. eff.RotSpeed = NumberRange.new(-10,10)
  3028. local at1 = Instance.new('Attachment',deb2)
  3029. at1.Position = vt(0,15,0)
  3030. local at2 = Instance.new('Attachment',deb2)
  3031. at2.Position = vt(0,-15,0)
  3032. local tl = Instance.new('Trail',deb2)
  3033. tl.Attachment0 = at1
  3034. tl.Attachment1 = at2
  3035. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3036. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  3037. tl.Lifetime = 1
  3038. game:GetService("Debris"):AddItem(deb,30)
  3039. game:GetService("Debris"):AddItem(deb2,30)
  3040. coroutine.resume(coroutine.create(function()
  3041. wait(15)
  3042. eff.Enabled = false
  3043. for i = 0, 49 do
  3044. swait()
  3045. deb.Transparency = deb.Transparency + 0.02
  3046. end
  3047. wait(1)
  3048. deb:Destroy()
  3049. end))
  3050. end
  3051. end
  3052. end))
  3053. for i = 0, 199 do
  3054. swait(1.5)
  3055. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  3056. if v:FindFirstChild('Head') then
  3057. dmg(v)
  3058. end
  3059. end
  3060. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  3061. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  3062. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  3063. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  3064. end
  3065. orb:Destroy()
  3066. end))
  3067. hum.WalkSpeed = storehumanoidWS
  3068. attack = false
  3069. end
  3070.  
  3071.  
  3072. function Beams()
  3073. attack = true
  3074. hum.WalkSpeed = 0
  3075. local keptcolor = MAINRUINCOLOR
  3076. coroutine.resume(coroutine.create(function()
  3077. for i = 0, 24 do
  3078. swait(5)
  3079. local orb = Instance.new("Part", char)
  3080. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3081. orb.BrickColor = keptcolor
  3082. orb.CanCollide = false
  3083. orb.FormFactor = 3
  3084. orb.Name = "Ring"
  3085. orb.Material = "Neon"
  3086. orb.Size = Vector3.new(1, 1, 1)
  3087. orb.Transparency = 0
  3088. orb.TopSurface = 0
  3089. orb.BottomSurface = 0
  3090. orb.Anchored = true
  3091. local orbm = Instance.new("SpecialMesh", orb)
  3092. orbm.MeshType = "Sphere"
  3093. orbm.Name = "SizeMesh"
  3094. orbm.Scale = vt(1.25,1.25,1.25)
  3095. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  3096. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3097. coroutine.resume(coroutine.create(function()
  3098. wait(0.5)
  3099. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  3100. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3101. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3102. orb.Transparency = 1
  3103. local a = Instance.new("Part",char)
  3104. a.Name = "Direction"
  3105. a.Anchored = true
  3106. a.BrickColor = keptcolor
  3107. a.Material = "Neon"
  3108. a.Transparency = 0.25
  3109. a.Shape = "Cylinder"
  3110. local ht = Instance.new("Part",char)
  3111. ht.Name = "DirectionHit"
  3112. ht.Anchored = true
  3113. ht.BrickColor = keptcolor
  3114. ht.CanCollide = false
  3115. ht.Transparency = 1
  3116. ht.Size = vt(0.1,0.1,0.1)
  3117. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2)
  3118. a.CanCollide = false
  3119. local ray = Ray.new(
  3120. orb.CFrame.p, -- origin
  3121. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3122. )
  3123. local ignore = char
  3124. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3125. a.BottomSurface = 10
  3126. a.TopSurface = 10
  3127. local distance = (orb.CFrame.p - position).magnitude
  3128. a.Size = Vector3.new(distance,1,1)
  3129. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3130. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3131. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3132. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3133. MagniDamage(ht, 9, 10,15, 0, "Normal")
  3134. coroutine.resume(coroutine.create(function()
  3135. local eff = Instance.new("ParticleEmitter",ht)
  3136. eff.Texture = "rbxassetid://284205403"
  3137. eff.LightEmission = 0.95
  3138. eff.Color = ColorSequence.new(keptcolor.Color)
  3139. eff.Rate = 500
  3140. eff.Lifetime = NumberRange.new(0.5)
  3141. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3142. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3143. eff.Speed = NumberRange.new(10,50)
  3144. eff.Drag = 5
  3145. eff.Rotation = NumberRange.new(-500,500)
  3146. eff.VelocitySpread = 9000
  3147. eff.RotSpeed = NumberRange.new(-500,500)
  3148. wait(0.25)
  3149. eff.Enabled = false
  3150. end))
  3151. for i = 0, 4 do
  3152. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  3153. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  3154. local rsiz = math.random(10,30)
  3155. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3156. end
  3157. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3158. local msh = Instance.new("SpecialMesh",a)
  3159. msh.MeshType = "Cylinder"
  3160. msh.Scale = vt(1,1,1)
  3161. for i = 0, 49 do
  3162. swait()
  3163. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  3164. a.Transparency = a.Transparency + 0.02
  3165. end
  3166. orb:Destroy()
  3167. a:Destroy()
  3168. ht:Destroy()
  3169. end))
  3170. game:GetService("Debris"):AddItem(orb, 10)
  3171. end
  3172. end))
  3173. for i = 0,12,0.1 do
  3174. swait()
  3175. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  3176. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  3177. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  3178. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  3179. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  3180. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.3)
  3181. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3)
  3182. end
  3183. hum.WalkSpeed = storehumanoidWS
  3184. attack = false
  3185. end
  3186.  
  3187. function smiter()
  3188. local targetted = nil
  3189. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3190. targetted = mouse.Target.Parent
  3191. end
  3192. if targetted ~= nil then
  3193. RootPart.CFrame = FaceMouse()[1]
  3194. attack = true
  3195. hum.WalkSpeed = 0
  3196. coroutine.resume(coroutine.create(function()
  3197. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3198. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3199. local vel = Instance.new("BodyPosition", targetted.Head)
  3200. vel.P = 12500
  3201. vel.D = 1000
  3202. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3203. vel.position = targetted.Head.CFrame.p
  3204. end))
  3205. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  3206. for i = 0,4,0.1 do
  3207. swait()
  3208. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR)
  3209. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3210. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3211. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3212. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3213. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2)
  3214. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2)
  3215. end
  3216. coroutine.resume(coroutine.create(function()
  3217. CameraEnshaking(6,5)
  3218. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3219. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  3220. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  3221. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  3222. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3223. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3224. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3225. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3226. coroutine.resume(coroutine.create(function()
  3227. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3228. eff.Texture = "rbxassetid://363275192"
  3229. eff.LightEmission = 0.95
  3230. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3231. eff.Rate = 10000
  3232. eff.Lifetime = NumberRange.new(1.5)
  3233. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3234. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3235. eff.Speed = NumberRange.new(25,150)
  3236. eff.Drag = 5
  3237. eff.Rotation = NumberRange.new(-500,500)
  3238. eff.VelocitySpread = 9000
  3239. eff.RotSpeed = NumberRange.new(-50,50)
  3240. local eff2 = eff:Clone()
  3241. eff2.Parent = targetted.Head
  3242. eff2.Texture = "rbxassetid://284205403"
  3243. eff2.Rate = 10000
  3244. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3245. eff2.Drag = 5
  3246. eff2.Rotation = NumberRange.new(-500,500)
  3247. eff2.VelocitySpread = 9000
  3248. wait(0.5)
  3249. eff2.Enabled = false
  3250. eff.Enabled = false
  3251. end))
  3252. for i = 0, 9 do
  3253. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3254. end
  3255. for i = 0, 49 do
  3256. local rsiz = math.random(10,50)
  3257. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3258. end
  3259. game:GetService("Debris"):AddItem(vel,1)
  3260. dmg(targetted)
  3261. end))
  3262. for i = 0,1,0.1 do
  3263. swait()
  3264. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  3265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  3266. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3267. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5)
  3268. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  3269. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.5)
  3270. end
  3271. attack = false
  3272. hum.WalkSpeed = storehumanoidWS
  3273. end
  3274. end
  3275.  
  3276. function supsmiter()
  3277. local targetted = nil
  3278. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3279. targetted = mouse.Target.Parent
  3280. end
  3281. if targetted ~= nil then
  3282. RootPart.CFrame = FaceMouse()[1]
  3283. attack = true
  3284. hum.WalkSpeed = 0
  3285. coroutine.resume(coroutine.create(function()
  3286. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3287. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3288. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR)
  3289. local vel = Instance.new("BodyPosition", targetted.Head)
  3290. vel.P = 12500
  3291. vel.D = 1000
  3292. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3293. vel.position = targetted.Head.CFrame.p
  3294. end))
  3295. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25)
  3296. for i = 0,14,0.1 do
  3297. swait()
  3298. rsiz = math.random(5,15)
  3299. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  3300. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR)
  3301. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3302. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3303. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3304. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3305. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3306. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3307. end
  3308. coroutine.resume(coroutine.create(function()
  3309. CameraEnshaking(6,5)
  3310. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3311. MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal")
  3312. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8)
  3313. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8)
  3314. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8)
  3315. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3316. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3317. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3318. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3319. coroutine.resume(coroutine.create(function()
  3320. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3321. eff.Texture = "rbxassetid://363275192"
  3322. eff.LightEmission = 0.95
  3323. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3324. eff.Rate = 10000
  3325. eff.Lifetime = NumberRange.new(1.5)
  3326. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3327. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3328. eff.Speed = NumberRange.new(25,150)
  3329. eff.Drag = 5
  3330. eff.Rotation = NumberRange.new(-500,500)
  3331. eff.VelocitySpread = 9000
  3332. eff.RotSpeed = NumberRange.new(-50,50)
  3333. local eff2 = eff:Clone()
  3334. eff2.Parent = targetted.Head
  3335. eff2.Texture = "rbxassetid://284205403"
  3336. eff2.Rate = 10000
  3337. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3338. eff2.Drag = 5
  3339. eff2.Rotation = NumberRange.new(-500,500)
  3340. eff2.VelocitySpread = 9000
  3341. wait(0.5)
  3342. eff2.Enabled = false
  3343. eff.Enabled = false
  3344. end))
  3345. for i = 0, 9 do
  3346. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3347. end
  3348. for i = 0, 49 do
  3349. local rsiz = math.random(10,50)
  3350. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3351. end
  3352. wait(0.75)
  3353. CameraEnshaking(6,6)
  3354. MagniDamage(targetted.Head, 20, 25,40, 0, "Normal")
  3355. MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal")
  3356. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7)
  3357. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7)
  3358. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7)
  3359. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3360. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3361. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3362. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3363. coroutine.resume(coroutine.create(function()
  3364. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3365. eff.Texture = "rbxassetid://363275192"
  3366. eff.LightEmission = 0.95
  3367. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3368. eff.Rate = 10000
  3369. eff.Lifetime = NumberRange.new(1.5)
  3370. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)})
  3371. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3372. eff.Speed = NumberRange.new(25,250)
  3373. eff.Drag = 5
  3374. eff.Rotation = NumberRange.new(-500,500)
  3375. eff.VelocitySpread = 9000
  3376. eff.RotSpeed = NumberRange.new(-50,50)
  3377. local eff2 = eff:Clone()
  3378. eff2.Parent = targetted.Head
  3379. eff2.Texture = "rbxassetid://284205403"
  3380. eff2.Rate = 10000
  3381. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3382. eff2.Drag = 5
  3383. eff2.Rotation = NumberRange.new(-500,500)
  3384. eff2.VelocitySpread = 9000
  3385. wait(0.5)
  3386. eff2.Enabled = false
  3387. eff.Enabled = false
  3388. end))
  3389. for i = 0, 9 do
  3390. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR)
  3391. end
  3392. for i = 0, 49 do
  3393. local rsiz = math.random(15,55)
  3394. sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3395. end
  3396. wait(0.75)
  3397. CameraEnshaking(6,7)
  3398. MagniDamage(targetted.Head, 23, 40,80, 0, "Normal")
  3399. MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal")
  3400. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6)
  3401. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6)
  3402. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6)
  3403. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3404. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3405. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3406. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3407. coroutine.resume(coroutine.create(function()
  3408. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3409. eff.Texture = "rbxassetid://363275192"
  3410. eff.LightEmission = 0.95
  3411. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3412. eff.Rate = 10000
  3413. eff.Lifetime = NumberRange.new(1.5)
  3414. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  3415. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3416. eff.Speed = NumberRange.new(50,450)
  3417. eff.Drag = 5
  3418. eff.Rotation = NumberRange.new(-500,500)
  3419. eff.VelocitySpread = 9000
  3420. eff.RotSpeed = NumberRange.new(-50,50)
  3421. local eff2 = eff:Clone()
  3422. eff2.Parent = targetted.Head
  3423. eff2.Texture = "rbxassetid://284205403"
  3424. eff2.Rate = 10000
  3425. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3426. eff2.Drag = 5
  3427. eff2.Rotation = NumberRange.new(-500,500)
  3428. eff2.VelocitySpread = 9000
  3429. wait(0.5)
  3430. eff2.Enabled = false
  3431. eff.Enabled = false
  3432. end))
  3433. for i = 0, 9 do
  3434. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR)
  3435. end
  3436. for i = 0, 49 do
  3437. local rsiz = math.random(20,60)
  3438. sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3439. end
  3440. dmg(targetted)
  3441. game:GetService("Debris"):AddItem(vel,1)
  3442. end))
  3443. for i = 0,7,0.1 do
  3444. swait()
  3445. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3446. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  3447. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3448. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5)
  3449. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5)
  3450. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.5)
  3451. end
  3452. attack = false
  3453. hum.WalkSpeed = storehumanoidWS
  3454. end
  3455. end
  3456.  
  3457. function BinaryBLINK()
  3458. for i = 0, 9 do
  3459. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3460. end
  3461. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3462. coroutine.resume(coroutine.create(function()
  3463. local eff = Instance.new("ParticleEmitter",root)
  3464. eff.Texture = "rbxassetid://1175838406"
  3465. eff.LightEmission = 0.95
  3466. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3467. eff.Rate = 10000
  3468. eff.Lifetime = NumberRange.new(1)
  3469. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  3470. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3471. eff.Speed = NumberRange.new(30,160)
  3472. eff.Drag = 5
  3473. eff.Rotation = NumberRange.new(-500,500)
  3474. eff.VelocitySpread = 100000
  3475. wait(0.25)
  3476. eff.Enabled = false
  3477. wait(4)
  3478. eff:Destroy()
  3479. end))
  3480. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3481. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3482. CameraEnshaking(2,10)
  3483. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  3484. if v:FindFirstChild('Head') then
  3485. dmg(v)
  3486. end
  3487. end
  3488. for i = 0, 9 do
  3489. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3490. end
  3491. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3492. end
  3493.  
  3494. function BinaryE()
  3495. local posit = -2
  3496. attack = true
  3497. hum.WalkSpeed = 5
  3498. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  3499. for i = 0,2,0.1 do
  3500. swait()
  3501. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3502. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  3503. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  3504. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3505. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  3506. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3507. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3508. end
  3509. for i = 0, 2 do
  3510. CameraEnshaking(1,2)
  3511. local hite = Instance.new("Part", char)
  3512. hite.Anchored = true
  3513. hite.CanCollide = false
  3514. hite.FormFactor = 3
  3515. hite.Name = "Ring"
  3516. hite.Material = "Neon"
  3517. hite.Size = Vector3.new(1, 1, 1)
  3518. hite.Transparency = 1
  3519. hite.TopSurface = 0
  3520. hite.BottomSurface = 0
  3521. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  3522. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  3523. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  3524. coroutine.resume(coroutine.create(function()
  3525. local eff = Instance.new("ParticleEmitter",hite)
  3526. eff.Texture = "rbxassetid://1175838406"
  3527. eff.LightEmission = 0.95
  3528. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3529. eff.Rate = 1000
  3530. eff.Lifetime = NumberRange.new(1)
  3531. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3532. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3533. eff.Speed = NumberRange.new(10,50)
  3534. eff.Drag = 5
  3535. eff.Rotation = NumberRange.new(-500,500)
  3536. eff.VelocitySpread = 100000
  3537. wait(0.25)
  3538. eff.Enabled = false
  3539. end))
  3540. coroutine.resume(coroutine.create(function()
  3541. for i = 0, 1 do
  3542. swait()
  3543. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3544. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3545. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3546. end
  3547. end))
  3548. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  3549. MagniDamage(hite, 3, 30,40, 0, "Normal")
  3550. game:GetService("Debris"):AddItem(hite, 5)
  3551. posit = posit + 2
  3552. end
  3553. for i = 0,1,0.1 do
  3554. swait()
  3555. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3556. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3557. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  3558. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3559. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  3560. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3561. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3562. end
  3563. for i = 0,1,0.1 do
  3564. swait()
  3565. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3566. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  3567. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  3568. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  3569. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  3570. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5)
  3571. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5)
  3572. end
  3573. posit = -6
  3574. for i = 0, 6 do
  3575. CameraEnshaking(1,3)
  3576. local hite = Instance.new("Part", char)
  3577. hite.Anchored = true
  3578. hite.CanCollide = false
  3579. hite.FormFactor = 3
  3580. hite.Name = "Ring"
  3581. hite.Material = "Neon"
  3582. hite.Size = Vector3.new(1, 1, 1)
  3583. hite.Transparency = 1
  3584. hite.TopSurface = 0
  3585. hite.BottomSurface = 0
  3586. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  3587. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  3588. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  3589. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  3590. coroutine.resume(coroutine.create(function()
  3591. local eff = Instance.new("ParticleEmitter",hite)
  3592. eff.Texture = "rbxassetid://1175838406"
  3593. eff.LightEmission = 0.95
  3594. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3595. eff.Rate = 1000
  3596. eff.Lifetime = NumberRange.new(1)
  3597. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3598. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3599. eff.Speed = NumberRange.new(20,70)
  3600. eff.Drag = 5
  3601. eff.Rotation = NumberRange.new(-500,500)
  3602. eff.VelocitySpread = 100000
  3603. wait(0.25)
  3604. eff.Enabled = false
  3605. end))
  3606. coroutine.resume(coroutine.create(function()
  3607. for i = 0, 2 do
  3608. swait()
  3609. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3610. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3611. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3612. end
  3613. end))
  3614. MagniDamage(hite, 5, 40,70, 0, "Normal")
  3615. game:GetService("Debris"):AddItem(hite, 5)
  3616. posit = posit + 2
  3617. end
  3618. for i = 0,1,0.1 do
  3619. swait()
  3620. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3621. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  3622. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  3623. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  3624. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  3625. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  3626. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  3627. end
  3628. hum.WalkSpeed = storehumanoidWS
  3629. attack = false
  3630. end
  3631.  
  3632. function AZUREFINALE()
  3633. attack = true
  3634. duringend = true
  3635. hum.WalkSpeed = 0
  3636. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  3637. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  3638. local hite = Instance.new("Part", char)
  3639. hite.Anchored = true
  3640. hite.CanCollide = false
  3641. hite.FormFactor = 3
  3642. hite.Name = "Ring"
  3643. hite.Material = "Neon"
  3644. hite.Size = Vector3.new(1, 1, 1)
  3645. hite.Transparency = 0
  3646. hite.TopSurface = 0
  3647. hite.BottomSurface = 0
  3648. hite.BrickColor = MAINRUINCOLOR
  3649. local orbm = Instance.new("SpecialMesh", hite)
  3650. orbm.MeshType = "Sphere"
  3651. orbm.Name = "SizeMesh"
  3652. orbm.Scale = vt(0,0,0)
  3653. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  3654. for i = 0,70,0.1 do
  3655. swait()
  3656. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  3657. rsiz = math.random(10,45)
  3658. kan.Volume = kan.Volume + 0.01
  3659. kan.Pitch = kan.Pitch - 0.00135
  3660. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  3661. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  3662. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3663. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3664. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3665. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3666. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3667. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3668. end
  3669. kan.Pitch = 0.1
  3670. hite.Transparency = 1
  3671. for i = 0,2 do
  3672. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  3673. end
  3674. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  3675. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  3676. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  3677. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  3678. coroutine.resume(coroutine.create(function()
  3679. local eff = Instance.new("ParticleEmitter",hite)
  3680. eff.Texture = "rbxassetid://284205403"
  3681. eff.LightEmission = 0.95
  3682. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3683. eff.Rate = 10000
  3684. eff.Lifetime = NumberRange.new(5)
  3685. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  3686. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3687. eff.Speed = NumberRange.new(600,1250)
  3688. eff.Drag = 5
  3689. eff.Rotation = NumberRange.new(-500,500)
  3690. eff.VelocitySpread = 9000
  3691. eff.RotSpeed = NumberRange.new(-500,500)
  3692. wait(1)
  3693. eff.Enabled = false
  3694. end))
  3695. for i = 0,5,0.1 do
  3696. swait()
  3697. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3698. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3699. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3700. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3701. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3702. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3703. end
  3704. local adsc = 0
  3705. local radiatezone = 0
  3706. for i = 0,20,0.1 do
  3707. swait()
  3708. adsc = adsc + 0.025
  3709. radiatezone = radiatezone + 1.25
  3710. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3711. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3712. if v:FindFirstChild('Head') then
  3713. dmg(v)
  3714. end
  3715. end
  3716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3717. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3718. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3719. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3720. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3721. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3722. end
  3723. for i = 0,2 do
  3724. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  3725. end
  3726. for i = 0,40,0.1 do
  3727. swait()
  3728. adsc = adsc + 0.05
  3729. radiatezone = radiatezone + 2.5
  3730. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3731. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3732. if v:FindFirstChild('Head') then
  3733. dmg(v)
  3734. end
  3735. end
  3736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3737. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3738. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3739. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3740. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3741. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3742. end
  3743. for i = 0,4 do
  3744. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  3745. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  3746. end
  3747. for i = 0,80,0.1 do
  3748. swait()
  3749. adsc = adsc + 0.075
  3750. radiatezone = radiatezone + 3.75
  3751. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3752. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3753. if v:FindFirstChild('Head') then
  3754. dmg(v)
  3755. end
  3756. end
  3757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3758. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3759. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3760. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3761. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3762. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3763. end
  3764. hite:Destroy()
  3765. duringend = false
  3766. hum.WalkSpeed = storehumanoidWS
  3767. attack = false
  3768. end
  3769.  
  3770. function GalacticalBeams()
  3771. attack = true
  3772. local keptcolor = MAINRUINCOLOR
  3773. coroutine.resume(coroutine.create(function()
  3774. for i = 0, 0 do
  3775. swait(10)
  3776. local orb = Instance.new("Part", char)
  3777. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3778. orb.BrickColor = keptcolor
  3779. orb.CanCollide = false
  3780. orb.FormFactor = 3
  3781. orb.Name = "Ring"
  3782. orb.Material = "Neon"
  3783. orb.Size = Vector3.new(1, 1, 1)
  3784. orb.Transparency = 1
  3785. orb.TopSurface = 0
  3786. orb.BottomSurface = 0
  3787. orb.Anchored = true
  3788. local orbm = Instance.new("SpecialMesh", orb)
  3789. orbm.MeshType = "Sphere"
  3790. orbm.Name = "SizeMesh"
  3791. orbm.Scale = vt(1.25,1.25,1.25)
  3792. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  3793. coroutine.resume(coroutine.create(function()
  3794. orb.Transparency = 1
  3795. local a = Instance.new("Part",char)
  3796. a.Name = "Direction"
  3797. a.Anchored = true
  3798. a.BrickColor = keptcolor
  3799. a.Material = "Neon"
  3800. a.Transparency = 1
  3801. a.Shape = "Cylinder"
  3802. local x = Instance.new("Part",char)
  3803. x.Name = "Direction"
  3804. x.Anchored = true
  3805. x.BrickColor = keptcolor
  3806. x.Material = "Neon"
  3807. x.Transparency = 1
  3808. x.Shape = "Cylinder"
  3809. local ht = Instance.new("Part",char)
  3810. ht.Name = "DirectionHit"
  3811. ht.Anchored = true
  3812. ht.BrickColor = keptcolor
  3813. ht.CanCollide = false
  3814. ht.Transparency = 1
  3815. ht.Size = vt(0.1,0.1,0.1)
  3816. a.CanCollide = false
  3817. local ray = Ray.new(
  3818. orb.CFrame.p, -- origin
  3819. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  3820. )
  3821. local ignore = char
  3822. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3823. a.BottomSurface = 10
  3824. a.TopSurface = 10
  3825. local distance = (orb.CFrame.p - position).magnitude
  3826. a.Size = Vector3.new(distance,1,1)
  3827. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3828. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3829. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3830. local poste = 0
  3831. local rotation = 0
  3832. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  3833. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  3834. CameraEnshaking(2,2)
  3835. for i = 0, 49 do
  3836. swait()
  3837. rotation = rotation + 5
  3838. poste = poste + 1
  3839. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3840. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3841. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3842. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3843. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3844. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3845. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3846. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3847. end
  3848. local A1 = Instance.new("Attachment",x)
  3849. local A2 = Instance.new("Attachment",ht)
  3850. local Beem = Instance.new("Beam",ht)
  3851. Beem.Attachment0 = A1
  3852. Beem.Attachment1 = A2
  3853. Beem.LightEmission = 1
  3854. Beem.FaceCamera = true
  3855. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  3856. Beem.Width0 = 125
  3857. Beem.Width1 = 125
  3858. Beem.Texture = "rbxassetid://1134824633"
  3859. Beem.TextureMode = "Wrap"
  3860. Beem.TextureLength = 200
  3861. Beem.TextureSpeed = 1.5
  3862. Beem.Color = ColorSequence.new(keptcolor.Color)
  3863. CameraEnshaking(3,6)
  3864. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  3865. a.Transparency = 0.25
  3866. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3867. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3868. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3869. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3870. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3871. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3872. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3873. local eff = Instance.new("ParticleEmitter",ht)
  3874. eff.Texture = "rbxassetid://284205403"
  3875. eff.LightEmission = 0.95
  3876. eff.Color = ColorSequence.new(keptcolor.Color)
  3877. eff.Rate = 500
  3878. eff.Lifetime = NumberRange.new(1)
  3879. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3880. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3881. eff.Speed = NumberRange.new(80,500)
  3882. eff.Drag = 5
  3883. eff.Rotation = NumberRange.new(-500,500)
  3884. eff.VelocitySpread = 9000
  3885. eff.RotSpeed = NumberRange.new(-500,500)
  3886. for i = 0, 24 do
  3887. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3888. local rsiz = math.random(10,50)
  3889. sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3890. end
  3891. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3892. local msh = Instance.new("SpecialMesh",a)
  3893. msh.MeshType = "Cylinder"
  3894. msh.Scale = vt(1,15,15)
  3895. for i = 0, 49 do
  3896. swait()
  3897. CameraEnshaking(1,4)
  3898. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3899. rotation = rotation + 5
  3900. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3901. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3902. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  3903. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3904. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3905. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3906. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3907. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3908. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3909. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3910. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3911. for i = 0, 2 do
  3912. local rsiz = math.random(50,250)
  3913. sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3914. end
  3915. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  3916. end
  3917. eff.Enabled = false
  3918. local visibility = 0
  3919. for i = 0, 49 do
  3920. swait()
  3921. visibility = visibility + 0.02
  3922. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  3923. rotation = rotation + 5
  3924. poste = poste - 1
  3925. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3926. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3927. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3928. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3929. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3930. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3931. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3932. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3933. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  3934. a.Transparency = a.Transparency + 0.02
  3935. end
  3936. wait(1)
  3937. orb:Destroy()
  3938. a:Destroy()
  3939. ht:Destroy()
  3940. end))
  3941. game:GetService("Debris"):AddItem(orb, 10)
  3942. end
  3943. end))
  3944. hum.WalkSpeed = storehumanoidWS
  3945. attack = false
  3946. end
  3947.  
  3948.  
  3949. function WarpedDash()
  3950. attack = true
  3951. hum.WalkSpeed = 0
  3952. hum.JumpPower = 0
  3953. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  3954. local poste = 3
  3955. local rotation = 0
  3956. local rate = 0
  3957. for i = 0, 124 do
  3958. swait()
  3959. rotation = rotation + rate
  3960. poste = poste + 0.1
  3961. rate = rate + 0.1
  3962. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  3963. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  3964. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3965. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3966. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3967. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3968. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  3969. 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)),.5)
  3970. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  3971. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  3972. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  3973. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  3974. end
  3975. CameraEnshaking(3,7)
  3976. local loc = Instance.new("Part", char)
  3977. loc.BrickColor = MAINRUINCOLOR
  3978. loc.CanCollide = false
  3979. loc.FormFactor = 3
  3980. loc.Name = "Ring"
  3981. loc.Material = "Neon"
  3982. loc.Size = Vector3.new(1, 1, 1)
  3983. loc.Transparency = 1
  3984. loc.TopSurface = 0
  3985. loc.BottomSurface = 0
  3986. loc.Anchored = true
  3987. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  3988. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  3989. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  3990. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  3991. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  3992. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3993. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3994. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3995. coroutine.resume(coroutine.create(function()
  3996. local eff = Instance.new("ParticleEmitter",loc)
  3997. eff.Texture = "rbxassetid://363275192"
  3998. eff.LightEmission = 0.95
  3999. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4000. eff.Rate = 10000
  4001. eff.Lifetime = NumberRange.new(1)
  4002. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  4003. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4004. eff.Speed = NumberRange.new(100,500)
  4005. eff.Drag = 5
  4006. eff.Rotation = NumberRange.new(-500,500)
  4007. eff.VelocitySpread = 9000
  4008. eff.RotSpeed = NumberRange.new(-50,50)
  4009. wait(0.5)
  4010. eff.Enabled = false
  4011. end))
  4012. for i = 0, 49 do
  4013. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4014. end
  4015. for i = 0, 9 do
  4016. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4017. end
  4018. game:GetService("Debris"):AddItem(loc, 5)
  4019. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  4020. hum.WalkSpeed = storehumanoidWS
  4021. hum.JumpPower = 50
  4022. attack = false
  4023. end
  4024.  
  4025. ------------------------------------
  4026. function harmonytaunty()
  4027. attack = true
  4028. hum.WalkSpeed = 0
  4029. CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15)
  4030. for i = 0,7,0.1 do
  4031. swait()
  4032. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2)
  4033. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2)
  4034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2)
  4035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2)
  4036. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2)
  4037. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2)
  4038. end
  4039. hum.WalkSpeed = storehumanoidWS
  4040. attack = false
  4041. end
  4042.  
  4043. function vistaunty()
  4044. attack = true
  4045. hum.WalkSpeed = 0
  4046. local rd = math.random(1,5)
  4047. if rd == 1 then
  4048. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4049. elseif rd == 2 then
  4050. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4051. elseif rd == 3 then
  4052. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4053. elseif rd == 4 then
  4054. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4055. elseif rd == 5 then
  4056. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4057. end
  4058. for i = 0, 8, 0.1 do
  4059. swait()
  4060. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4061. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4062. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  4063. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  4064. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  4065. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4066. end
  4067. hum.WalkSpeed = storehumanoidWS
  4068. attack = false
  4069. end
  4070.  
  4071. function shytaunty()
  4072. attack = true
  4073. hum.WalkSpeed = 0
  4074. CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1)
  4075. local blush = Instance.new("Decal",hed)
  4076. blush.Texture = "rbxassetid://898404027"
  4077. blush.Face = "Front"
  4078. for i = 0, 13, 0.1 do
  4079. swait()
  4080. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4081. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4082. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4083. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  4084. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  4085. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  4086. end
  4087. coroutine.resume(coroutine.create(function()
  4088. for i = 0, 49 do
  4089. swait()
  4090. blush.Transparency = blush.Transparency + 0.02
  4091. end
  4092. blush:Destroy()
  4093. end))
  4094. hum.WalkSpeed = storehumanoidWS
  4095. attack = false
  4096. end
  4097. ------------------------------------ Mode Ascendances
  4098. function UnknownA()
  4099. ModeOfGlitch = 6000000000
  4100. storehumanoidWS = 300
  4101. hum.WalkSpeed = 300
  4102. rainbowmode = false
  4103. chaosmode = false
  4104. RecolorTextAndRename("HARMONY",BrickColor.new("Toothpaste").Color,BrickColor.new("Cool yellow").Color,"Highway")
  4105. newThemeCust("rbxassetid://170020261",0,1.005,1.5)
  4106. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  4107. end
  4108.  
  4109. function loveydovey()
  4110. attack = true
  4111. local keptcolor = MAINRUINCOLOR
  4112. hum.WalkSpeed = 0
  4113. ModeOfGlitch = 9600000000
  4114. MAINRUINCOLOR = BrickColor.new("Cyan")
  4115. storehumanoidWS = 20
  4116. rainbowmode = false
  4117. chaosmode = false
  4118. CameraEnshaking(9,14)
  4119. sphere2(4,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Cyan"))
  4120. sphere2(4,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Cyan"))
  4121. sphere2(9,"Add",root.CFrame,vt(5,5,5),3,3,3,MAINRUINCOLOR)
  4122. sphere2(9,"Add",root.CFrame,vt(5,5,5),4,4,4,MAINRUINCOLOR)
  4123. CFuncs["Sound"].Create("rbxassetid://518783002", char, 1,111111111)
  4124. CFuncs["Sound"].Create("rbxassetid://518783002", char, 1, 111111111111111)
  4125. CFuncs["Sound"].Create("rbxassetid://518783002", char, 1, 11111111)
  4126. coroutine.resume(coroutine.create(function()
  4127. local eff = Instance.new("ParticleEmitter",root)
  4128. eff.Texture = "rbxassetid://668095286"
  4129. eff.LightEmission = 1
  4130. eff.Color = ColorSequence.new(BrickColor.new("White").Color)
  4131. eff.Rate = 50000
  4132. eff.Lifetime = NumberRange.new(5)
  4133. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,60,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4134. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4135. eff.Speed = NumberRange.new(250,1000)
  4136. eff.Drag = 5
  4137. eff.Rotation = NumberRange.new(-50,50)
  4138. eff.VelocitySpread = 9000
  4139. eff.RotSpeed = NumberRange.new(-50,50)
  4140. wait(0.5)
  4141. eff.Enabled = false
  4142. wait(5)
  4143. eff:Destroy()
  4144. end))
  4145. newTheme("rbxassetid://1761780565",0,1,222222)
  4146. RecolorTextAndRename("Sig",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Cartoon")
  4147. RecolorThing(MAINRUINCOLOR,BrickColor.new("Toothpaste"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4148. hum.WalkSpeed = 100
  4149. attack = false
  4150. end
  4151. -------------------------------------
  4152.  
  4153. Humanoid.Animator.Parent = nil
  4154.  
  4155. -------------------------------------
  4156.  
  4157. local attacktype = 1
  4158. mouse.Button1Down:connect(function()
  4159. if attack == false and ataaatacktype == 1 then
  4160. attacktype = 2
  4161. attackone()
  4162. elseif attack == false and attacktype == 2 then
  4163. attacktype = 3
  4164. attacktwo()
  4165. elseif attack == false and attacktype == 3 then
  4166. attacktype = 1
  4167. attackthree()
  4168. elseif attack == false and attacktype == 4 then
  4169. attacktype = 1
  4170. --attackfour()
  4171. end
  4172. end)
  4173.  
  4174. local OVMID = 1702473314
  4175. local OVMPIT = 1
  4176. local OVMVOL = 1
  4177. local PartyMode = false
  4178. function ModeTwo2()
  4179. ModeOfGlitch = 2
  4180. storehumanoidWS = 16
  4181. hum.WalkSpeed = 16
  4182. rainbowmode = false
  4183. chaosmode = false
  4184. PartyMode = false
  4185. RecolorTextAndRename("Mystery",Color3.new(108, 40, 186),BrickColor.new("Bright violet").Color,"Code")
  4186. newTheme("rbxassetid://1003121377",0,1.02,1.25)
  4187. MAINRUINCOLOR = BrickColor.new("Bright reddish violet")
  4188. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4189. function ModeThree3()
  4190. print("fuck")
  4191. end
  4192. end
  4193. function ModeFour4()
  4194. ModeOfGlitch = 4
  4195. storehumanoidWS = 16
  4196. hum.WalkSpeed = 16
  4197. rainbowmode = false
  4198. chaosmode = false
  4199. PartyMode = false
  4200. RecolorTextAndRename("Calm",Color3.new(61, 165, 162),BrickColor.new("Bright yellow").Color,"SourceSansBold")
  4201. newTheme("rbxassetid://1837447230",0,1.02,1.25)
  4202. MAINRUINCOLOR = BrickColor.new("Sand blue metallic")
  4203. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4204. end
  4205. function ModeFive5()
  4206. ModeOfGlitch = 5
  4207. storehumanoidWS = 16
  4208. hum.WalkSpeed = 16
  4209. rainbowmode = false
  4210. PartyMode = false
  4211. chaosmode = false
  4212. RecolorTextAndRename("Burn",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy")
  4213. newTheme("rbxassetid://143475050",0,1.01,1.25)
  4214. MAINRUINCOLOR = BrickColor.new("Deep orange")
  4215. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4216. end
  4217. function ModeSix6()
  4218. ModeOfGlitch = 6
  4219. storehumanoidWS = 100
  4220. hum.WalkSpeed = 100
  4221. rainbowmode = false
  4222. PartyMode = false
  4223. chaosmode = false
  4224. RecolorTextAndRename("GALAXY",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy")
  4225. newTheme("rbxassetid://1275149182",0,1,1.25)
  4226. MAINRUINCOLOR = BrickColor.new("Electric blue")
  4227. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4228. end
  4229. function ModeSeven7()
  4230. ModeOfGlitch = 7
  4231. storehumanoidWS = 175
  4232. hum.WalkSpeed = 175
  4233. rainbowmode = false
  4234. PartyMode = false
  4235. chaosmode = false
  4236. RecolorTextAndRename("Speedster",BrickColor.new("Turquoise").Color,BrickColor.new("Toothpaste").Color,"Arcade")
  4237. newTheme("rbxassetid://468017577",0,1.01,1.25)
  4238. MAINRUINCOLOR = BrickColor.new("Turquoise")
  4239. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4240. end
  4241. function ModeEught8()
  4242. ModeOfGlitch = 8
  4243. storehumanoidWS = 100
  4244. hum.WalkSpeed = 100
  4245. rainbowmode = false
  4246. PartyMode = false
  4247. chaosmode = false
  4248. RecolorTextAndRename("MADNESS",BrickColor.new("Really red").Color,BrickColor.new("Bright red").Color,"Antique")
  4249. newTheme("rbxassetid://1230880483",0,1.01,1.65)
  4250. MAINRUINCOLOR = BrickColor.new("Crimson")
  4251. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4252. end
  4253. function ModeNine9()
  4254. ModeOfGlitch = 9
  4255. storehumanoidWS = 135
  4256. hum.WalkSpeed = 135
  4257. rainbowmode = false
  4258. chaosmode = false
  4259. PartyMode = false
  4260. RecolorTextAndRename("Visualiser",BrickColor.new("Medium stone grey").Color,BrickColor.new("Black").Color,"Arcade")
  4261. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4262. MAINRUINCOLOR = BrickColor.new("Medium stone grey")
  4263. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4264. end
  4265. function ModeZero0()
  4266. ModeOfGlitch = 10
  4267. storehumanoidWS = 12
  4268. hum.WalkSpeed = 12
  4269. rainbowmode = false
  4270. PartyMode = false
  4271. chaosmode = false
  4272. RecolorTextAndRename("Imagine",BrickColor.new(" 187, 179, 178-").Color,BrickColor.new("Black").Color,"Garamond")
  4273. newTheme("rbxassetid://1367367158",0,1.01,1.65)
  4274. MAINRUINCOLOR = BrickColor.new("Burgundy")
  4275. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4276. end
  4277. function ModeAzurioz()
  4278. ModeOfGlitch = 2000000000
  4279. storehumanoidWS = 200
  4280. hum.WalkSpeed = 200
  4281. rainbowmode = false
  4282. PartyMode = false
  4283. chaosmode = false
  4284. RecolorTextAndRename("INSTITUTIONAL",BrickColor.new("Dark indigo").Color,BrickColor.new("Magenta").Color,"Antique")
  4285. newThemeCust("rbxassetid://949706199",2.9,1.02,1.5)
  4286. MAINRUINCOLOR = BrickColor.new("Flame reddish orange")
  4287. RecolorThing(MAINRUINCOLOR,BrickColor.new("Tr. Red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4288. end
  4289. function PartyTimeIsAmazing()
  4290. ModeOfGlitch = 69096
  4291. storehumanoidWS = 200
  4292. hum.WalkSpeed = 200
  4293. rainbowmode = false
  4294. PartyMode = true
  4295. chaosmode = false
  4296. RecolorTextAndRename("Party Time",BrickColor.new("Really black").Color,BrickColor.new("White").Color,"SciFi")
  4297. newThemeCust("rbxassetid://1130617379",2.9,1.02,1.5)
  4298. MAINRUINCOLOR = BrickColor.new("Really black")
  4299. RecolorThing(BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Institutional white"))
  4300. end
  4301. function iNSaNITY()
  4302. ModeOfGlitch = 666666
  4303. storehumanoidWS = 9
  4304. hum.WalkSpeed = 9
  4305. rainbowmode = false
  4306. PartyMode = false
  4307. chaosmode = true
  4308. RecolorTextAndRename("INSANE",BrickColor.Random().Color,BrickColor.Random().Color,"Antique")
  4309. newThemeCust("rbxassetid://1275251078",2.9,0.9,1.5)
  4310. MAINRUINCOLOR = BrickColor.new("Really black")
  4311. RecolorThing(BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Institutional white"))
  4312. end
  4313.  
  4314. coroutine.resume(coroutine.create(function()
  4315. while true do
  4316. swait()
  4317. if chaosmode == true then
  4318. lolwut = {"InSANITY","iNSANITY","INsANITY","INSaNITY","INSAnITY","INSANiTY","INSANItY","INSANITy",}
  4319. Sanicz = lolwut[math.random(1,#lolwut)]
  4320. RecolorTextAndRename(Sanicz,BrickColor.Random().Color,BrickColor.Random().Color,"Antique")
  4321. MAINRUINCOLOR = BrickColor.Random()
  4322. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4323. end
  4324. end
  4325. end))
  4326.  
  4327. coroutine.resume(coroutine.create(function()
  4328. while true do
  4329. if math.random(1,10) == 1 and PartyMode == true then
  4330. PartyMode = false
  4331. elseif math.random(1,10) == 10 and PartyMode == true then
  4332. PartyMode = true
  4333. end
  4334.  
  4335.  
  4336. swait()
  4337. if PartyMode == true then
  4338. RecolorThing(BrickColor.new("Dark stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Dark stone grey"))
  4339. wait()
  4340. RecolorThing(BrickColor.new("Institutional white"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Institutional white"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Really black"))
  4341. wait()
  4342. RecolorThing(BrickColor.new("Dark stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Dark stone grey"))
  4343. wait()
  4344. RecolorThing(BrickColor.new("Really black"),BrickColor.new("Really black"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Institutional white"))
  4345. wait()
  4346. end
  4347. end
  4348. end))
  4349. mouse.KeyDown:connect(function(k)
  4350. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  4351. resetmode()
  4352. end
  4353. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  4354. ModeTwo2()
  4355. end
  4356. if k == "o" and attack == false and ModeOfGlitch ~= 0666666 then
  4357. iNSaNITY()
  4358. end
  4359. if k == "f" and attack == false and ModeOfGlitch ~= 69096 then
  4360. PartyTimeIsAmazing()
  4361. end
  4362. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  4363. ModeOfGlitch = 3
  4364. storehumanoidWS = 16
  4365. hum.WalkSpeed = 16
  4366. rainbowmode = false
  4367. PartyMode = false
  4368. chaosmode = false
  4369. RecolorTextAndRename("Technology",Color3.new(24, 137, 219),Color3.new(0,1,0),"SciFi")
  4370. newTheme("rbxassetid://158964012",0,1.01,1.25)
  4371. MAINRUINCOLOR = BrickColor.new("Bright blue")
  4372. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4373. end
  4374. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  4375. ModeFour4()
  4376. end
  4377. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  4378. ModeFive5()
  4379. end
  4380. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  4381. ModeSix6()
  4382. end
  4383. if k == "p" and attack == false and ModeOfGlitch ~= 7 then
  4384. ModeSeven7()
  4385. end
  4386. if k == "l" and attack == false and ModeOfGlitch ~= 8 then
  4387. ModeEught8()
  4388. end
  4389. if k == "k" and attack == false and ModeOfGlitch ~= 9 then
  4390. ModeNine9()
  4391. end
  4392. if k == "j" and attack == false and ModeOfGlitch ~= 10 then
  4393. ModeZero0()
  4394. end
  4395. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then
  4396. ModeAzurioz()
  4397. end
  4398. if k == "h" and attack == false and ModeOfGlitch ~= 9600000000 then
  4399. loveydovey()
  4400. end
  4401. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then
  4402. UnknownA()
  4403. end
  4404. if k == "g" and ModeOfGlitch == 6000000000 and attack == false then
  4405. harmonytaunty()
  4406. elseif k == "g" and ModeOfGlitch == 9 and attack == false then
  4407. vistaunty()
  4408. elseif k == "g" and ModeOfGlitch == 9600000000 and attack == false then
  4409. shytaunty()
  4410. end
  4411. if k == "z" and ModeOfGlitch == 1 and attack == false then
  4412. Beams()
  4413. elseif k == "z" and ModeOfGlitch == 2 and attack == false then
  4414. smiter()
  4415. elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false then
  4416. supsmiter()
  4417. elseif k == "z" and ModeOfGlitch == 3 and attack == false then
  4418. BinaryE()
  4419. elseif k == "z" and ModeOfGlitch == 4 and attack == false then
  4420. elseif k == "z" and ModeOfGlitch == 5 and attack == false then
  4421. Fireball()
  4422. elseif k == "z" and ModeOfGlitch == 6 and attack == false then
  4423. GalacticalBeams()
  4424. elseif k == "z" and ModeOfGlitch == 7 and attack == false then
  4425. WarpedDash()
  4426. elseif k == "z" and ModeOfGlitch == 8 and attack == false then
  4427. BeamOfDeath()
  4428. elseif k == "z" and ModeOfGlitch == 9 and attack == false then
  4429. end
  4430. if k == "x" and ModeOfGlitch == 3 and attack == false then
  4431. BinaryBLINK()
  4432. end
  4433. if k == "v" and ModeOfGlitch == 2000000000 and attack == false then
  4434. AZUREFINALE()
  4435. end
  4436. if k == "l" and mutedtog == false then
  4437. mutedtog = true
  4438. kan.Volume = 0
  4439. elseif k == "l" and mutedtog == true then
  4440. mutedtog = false
  4441. kan.Volume = 1.25
  4442. end
  4443. if k == "p" and toggleTag == false then
  4444. toggleTag = true
  4445. modet.TextTransparency = 0
  4446. modet.TextStrokeTransparency = 0
  4447. elseif k == "p" and toggleTag == true then
  4448. toggleTag = false
  4449. modet.TextTransparency = 1
  4450. modet.TextStrokeTransparency = 1
  4451. end
  4452. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4453. end
  4454. end)
  4455.  
  4456. plr.Chatted:connect(function(message)
  4457. if ModeOfGlitch == 9 then
  4458. if message:sub(1,5) == "play/" then
  4459. OVMID = message:sub(6)
  4460. newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4461. elseif message:sub(1,6) == "pitch/" then
  4462. OVMPIT = message:sub(7)
  4463. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4464. elseif message:sub(1,4) == "vol/" then
  4465. OVMVOL = message:sub(5)
  4466. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4467. elseif message:sub(1,7) == "skipto/" then
  4468. chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4469. newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL)
  4470. elseif message:sub(1,9) == "telltime/" then
  4471. chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4472. end
  4473. end
  4474. end)
  4475. local rotperm = 0
  4476. coroutine.resume(coroutine.create(function()
  4477. while true do
  4478. swait()
  4479. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then
  4480. swait(0.5)
  4481. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0)
  4482. elseif ModeOfGlitch == 5 then
  4483. swait(0.5)
  4484. local rsiz = math.random(1,3)
  4485. sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  4486. sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0)
  4487. elseif ModeOfGlitch == 9600000000 then
  4488. swait(0.25)
  4489. sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,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))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  4490. elseif ModeOfGlitch == 6000000000 then
  4491. coroutine.resume(coroutine.create(function()
  4492. swait(5)
  4493. sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0)
  4494. end))
  4495. swait(1)
  4496. rotperm = rotperm + 12
  4497. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR)
  4498. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow"))
  4499. elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then
  4500. swait(25 - kan.PlaybackLoudness/80)
  4501. sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR)
  4502. if kan.PlaybackLoudness >= 300 then
  4503. CameraEnshaking(1,3)
  4504. for i = 0, 4 do
  4505. sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0)
  4506. end
  4507. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR)
  4508. end
  4509. local notsp = Instance.new("Part", char)
  4510. notsp.CanCollide = false
  4511. notsp.FormFactor = 3
  4512. notsp.Name = "Ring"
  4513. notsp.Material = "Neon"
  4514. notsp.Size = Vector3.new(10, 1, 10)
  4515. if kan.PlaybackLoudness >= 300 then
  4516. notsp.Size = Vector3.new(25, 1, 25)
  4517. end
  4518. notsp.Transparency = 1
  4519. notsp.TopSurface = 0
  4520. notsp.BottomSurface = 0
  4521. notsp.Anchored = true
  4522. notsp.CFrame = root.CFrame*CFrame.new(0,-3,0)
  4523. coroutine.resume(coroutine.create(function()
  4524. local eff = Instance.new("ParticleEmitter",notsp)
  4525. eff.Texture = "rbxassetid://288898235"
  4526. eff.LightEmission = 0.5
  4527. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4528. eff.Rate = 300
  4529. eff.Lifetime = NumberRange.new(1)
  4530. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)})
  4531. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4532. eff.Speed = NumberRange.new(20,40)
  4533. eff.Acceleration = vt(0,-75,0)
  4534. eff.Drag = 1
  4535. eff.Rotation = NumberRange.new(-10,10)
  4536. eff.VelocitySpread = 20
  4537. eff.RotSpeed = NumberRange.new(-1,1)
  4538. coroutine.resume(coroutine.create(function()
  4539. while true do
  4540. swait()
  4541. if eff.Parent ~= nil then
  4542. if ModeOfGlitch == 9 then
  4543. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4544. elseif ModeOfGlitch ~= 9 then
  4545. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4546. end
  4547. else
  4548. break
  4549. end
  4550. end
  4551. end))
  4552. wait(0.1)
  4553. eff.Enabled = false
  4554. end))
  4555. game:GetService("Debris"):AddItem(notsp, 5)
  4556. end
  4557. end
  4558. end))
  4559.  
  4560.  
  4561. Humanoid.Name = "GGLITCHER"
  4562. Humanoid.MaxHealth = math.huge
  4563. Humanoid.Health = math.huge
  4564. Instance.new("ForceField",char).Visible = false
  4565.  
  4566. idleanim=.4
  4567. while true do
  4568. Humanoid.MaxHealth = math.huge
  4569. Humanoid.Health = math.huge
  4570. if mutedtog == false and duringend == false then
  4571. kan.Volume = currentVol
  4572. elseif mutedtog == true and duringend == false then
  4573. kan.Volume = 0
  4574. end
  4575. if duringend == false then
  4576. kan.PlaybackSpeed = currentPitch
  4577. kan.Pitch = currentPitch
  4578. end
  4579. kan.SoundId = currentThemePlaying
  4580. kan.Looped = true
  4581. kan.Parent = char
  4582. kan:Resume()
  4583. end
  4584.  
  4585. modeteller.Text = string.upper(modet.Text)
  4586. modeteller.TextColor3 = MAINRUINCOLOR.Color
  4587.  
  4588. swait()
  4589. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  4590.  
  4591. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3)
  4592. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3)
  4593. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3)
  4594. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3)
  4595. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3)
  4596. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3)
  4597. --------------- Visualiser Zone
  4598. if ModeOfGlitch == 9 then
  4599. modet.TextColor3 = Color3.new(kanz.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4600. for i, v in pairs(mw2:GetChildren()) do
  4601. if v:IsA("Part") then
  4602. v.Color = Color3.new(kanz.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4603. v.Material = "Neon"
  4604. end
  4605. end
  4606. for i, v in pairs(mw1:GetChildren()) do
  4607. if v:IsA("Part") then
  4608. v.Transparency = 0
  4609. v.Color = Color3.new(kanz.PlaybackLoudness/1000,kanz.PlaybackLoudness/1000,kanz.PlaybackLoudness/1000)
  4610. v.Material = "Neon"
  4611. end
  4612. end
  4613. end
  4614. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  4615. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  4616. ---------------
  4617. sine = sine + change
  4618. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4619. local velderp=RootPart.Velocity.y
  4620. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4621. if equipped==true or equipped==false then
  4622. if attack==false then
  4623. idle=idle+1
  4624. else
  4625. idle=0
  4626. end
  4627. if idle>=500 then
  4628. if attack==false then
  4629. --Sheath()
  4630. end
  4631. end
  4632. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4633. Anim="Jump"
  4634. if attack==false then
  4635. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  4636. 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)
  4637. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4638. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4639. 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)
  4640. 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)
  4641. end
  4642. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4643. Anim="Fall"
  4644. if attack==false then
  4645. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  4646. 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)
  4647. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4648. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  4649. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  4650. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  4651. end
  4652. elseif torvel<1 and hitfloor~=nil then
  4653. Anim="Idle"
  4654. if attack==false then
  4655. if ModeOfGlitch == 1 then
  4656. 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(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4657. 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(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4658. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  4659. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  4660. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  4661. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  4662. elseif ModeOfGlitch == 666666 then
  4663. 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)
  4664. 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)
  4665. 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)
  4666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4667. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4668. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4669. elseif ModeOfGlitch == 2 then
  4670. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4671. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  4673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  4674. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  4675. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  4676. elseif ModeOfGlitch == 10 then
  4677. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4678. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  4679. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15)
  4680. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15)
  4681. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4682. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4683. elseif ModeOfGlitch == 3 then
  4684. 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(-5 - 2 * math.cos(sine / 34))),.1)
  4685. 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(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4686. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 72))),.1)
  4687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 + 4 * math.cos(sine / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1)
  4688. RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1)
  4689. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1)
  4690. elseif ModeOfGlitch == 4 then
  4691. 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(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1)
  4692. 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(-1.5),math.rad(0),math.rad(10 + 3 * math.cos(sine / 34))),.1)
  4693. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1)
  4694. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1)
  4695. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1)
  4696. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1)
  4697. elseif ModeOfGlitch == 5 then
  4698. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4699. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4700. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1)
  4701. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1)
  4702. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1)
  4703. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1)
  4704. elseif ModeOfGlitch == 6 or ModeOfGlitch == 9600000000 then
  4705. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1)
  4706. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1)
  4707. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1)
  4708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1)
  4709. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1)
  4710. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1)
  4711. elseif ModeOfGlitch == 7 then
  4712. 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(1),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  4713. 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(5),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4715. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1)
  4716. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1)
  4717. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1)
  4718. elseif ModeOfGlitch == 8 then
  4719. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4720. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  4721. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  4722. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  4723. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  4724. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  4725. elseif ModeOfGlitch == 9 then
  4726. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kanz.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.zPlaybackLoudness/450)),.4)
  4727. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kanz.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kanz.PlaybackLoudness/500)),.4)
  4728. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kanz.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(30)),.4)
  4729. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kanz.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-30)),.4)
  4730. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + kanz.PlaybackLoudness/7.5),math.rad(0),math.rad(28 - 2 * math.cos(sine / 38))),.4)
  4731. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4732. elseif ModeOfGlitch == 2000000000 then
  4733. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4734. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 3 * math.cos(sine / 34))),.1)
  4735. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(2 + 3 * math.cos(sine / 34)),math.rad(0),math.rad(34 - 3 * math.cos(sine / 54))),.1)
  4736. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 4 * math.cos(sine / 28)),math.rad(0 - 1 * math.cos(sine / 44)),math.rad(-34 + 3 * math.cos(sine / 54))),.1)
  4737. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(12 + 5 * math.cos(sine / 62)),math.rad(30 + 5 * math.cos(sine / 48)),math.rad(19 + 6 * math.cos(sine / 36))),.1)
  4738. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 65)),math.rad(6 + 3 * math.cos(sine / 57)),math.rad(-20 - 7 * math.cos(sine / 36))),.1)
  4739. elseif ModeOfGlitch == 6000000000 then
  4740. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1)
  4741. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(7.5 - 4 * math.cos(sine / 47))),.1)
  4742. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1)
  4743. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1)
  4744. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1)
  4745. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1)
  4746. elseif ModeOfGlitch == 69096 then
  4747. Animation_Speed = 10
  4748. local RIGHTSHOULDERC0 = cf(-0.5, -0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  4749. local LEFTSHOULDERC0 = cf(0.5, -0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  4750. RootJoint.C0 = clerp(RootJoint.C0,RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(0), math.rad(40)), 1 / Animation_Speed)
  4751. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0 + ((1) - 1)) * angles(math.rad(0 - 2.5 * math.sin(sine / 12)), math.rad(0), math.rad(-40)), 1 / Animation_Speed)
  4752. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, -0.45) * angles(math.rad(110), math.rad(0), math.rad(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4753. LW.C0 = clerp(LW.C0, cf(-1.1, 0.15, -0.45) * angles(math.rad(80), math.rad(0), math.rad(80)) * angles(math.rad(0), math.rad(45), math.rad(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4754. RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 12), -0.01) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1 / Animation_Speed)
  4755. LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 12), -0.01) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1 / Animation_Speed)
  4756. end
  4757. end
  4758. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4759. Anim="Walk"
  4760. if attack==false then
  4761. if ModeOfGlitch == 10 then
  4762. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15)
  4763. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4764. RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4765. LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4766. RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4767. LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4768. elseif ModeOfGlitch == 666666 then
  4769. RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/10))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1)
  4770. LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/10))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1)
  4771. 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)
  4772. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4773. RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4774. LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
  4775.  
  4776. elseif torvel>=22 and hitfloor~=nil then
  4777. Anim="Run"
  4778. if attack==false then
  4779. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 or ModeOfGlitch ~= 9600000000 then
  4780. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4781. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4782. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
  4783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
  4784. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
  4785. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
  4786. if ModeOfGlitch == 7 then
  4787. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  4788. sphereMK(3,0,"Add",root.CFrame*CFrame.new(0,0,8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,5,20,-0.0075,MAINRUINCOLOR,0)
  4789. end
  4790. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 or ModeOfGlitch == 9600000000 then
  4791. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  4792. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  4793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  4794. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  4795. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  4796. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  4797. end
  4798. end
  4799. end
  4800. end
  4801. end
  4802. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement