Advertisement
Goo345

Untitled

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