Advertisement
Otsakuseed

LOLOLOLOL

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