Advertisement
Prozanity

Untitled

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