Advertisement
plytalent

Galaxy Glitcher

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