Advertisement
memberhero

Untitled

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