Advertisement
bmrx13

Untitled

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