Advertisement
Goo345

Untitled

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