Advertisement
bmrx13

glitch

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