lafur

Untitled

Nov 8th, 2020
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 90.71 KB | None | 0 0
  1. local Player = game.Players:WaitForChild(_G.target)
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Character
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput_Event"
  8. Event.Parent = Player.Character
  9. local fakeEvent = function()
  10. local t = {_fakeEvent=true}
  11. t.Connect = function(self,f)self.Function=f end
  12. t.connect = t.Connect
  13. return t
  14. end
  15. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17. function CAS:BindAction(name,fun,touch,...)
  18. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19. end
  20. function CAS:UnbindAction(name)
  21. CAS.Actions[name] = nil
  22. end
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent and t.Function then
  26. t.Function(...)
  27. end
  28. end
  29. m.TrigEvent = te
  30. UIS.TrigEvent = te
  31. Event.OnServerEvent:Connect(function(plr,io)
  32. if plr~=Player then return end
  33. if io.isMouse then
  34. m.Target = io.Target
  35. m.Hit = io.Hit
  36. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37. if io.UserInputState == Enum.UserInputState.Begin then
  38. m:TrigEvent("Button1Down")
  39. else
  40. m:TrigEvent("Button1Up")
  41. end
  42. else
  43. for n,t in pairs(CAS.Actions) do
  44. for _,k in pairs(t.Keys) do
  45. if k==io.KeyCode then
  46. t.Function(t.Name,io.UserInputState,io)
  47. end
  48. end
  49. end
  50. if io.UserInputState == Enum.UserInputState.Begin then
  51. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52. UIS:TrigEvent("InputBegan",io,false)
  53. else
  54. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputEnded",io,false)
  56. end
  57. end
  58. end)
  59. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60. end
  61.  
  62. script:WaitForChild("LoadLibrary")
  63. script.LoadLibrary.Parent = game:GetService("ReplicatedStorage")
  64.  
  65.  
  66. local RbxUtility = require(game.ReplicatedStorage:WaitForChild("LoadLibrary").RbxUtility)
  67. local RbxStamper = require(game.ReplicatedStorage:WaitForChild("LoadLibrary").RbxStamper)
  68. local RbxGui = require(game.ReplicatedStorage:WaitForChild("LoadLibrary").RbxGui)
  69. local Create = require(game:GetService("ReplicatedStorage"):WaitForChild("LoadLibrary"):WaitForChild("RbxUtility")).Create
  70.  
  71.  
  72. local loudnesses={}
  73.  
  74. local Func = Instance.new("RemoteFunction")
  75. Func.Name = "GetClientProperty"
  76. Func.Parent = Player.Character
  77.  
  78.  
  79.  
  80. function GetClientProperty(inst,prop)
  81. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  82. return loudnesses[inst]
  83. elseif(prop == 'PlaybackLoudness')then
  84. end
  85. end
  86.  
  87.  
  88. -- Change all localplayer/username with Player
  89. -- Remove all getmouse()
  90. -- Paste script here
  91. -- __________________
  92.  
  93.  
  94.  
  95. Player = Player
  96.  
  97. local Song = script.Song
  98. Song.Parent = Player.Character
  99. Song:Play()
  100. Character = Player.Character
  101. Character.Humanoid.WalkSpeed = 20
  102. Character.Humanoid.Animator.Parent = nil
  103.  
  104.  
  105. local char = Character
  106. local hum = char:FindFirstChildOfClass'Humanoid'
  107. local hed = char.Head
  108. local root = char:FindFirstChild'HumanoidRootPart'
  109. local rootj = root.RootJoint
  110. local tors = char.Torso
  111. local ra = char["Right Arm"]
  112. local la = char["Left Arm"]
  113. local rl = char["Right Leg"]
  114. local ll = char["Left Leg"]
  115. local neck = tors["Neck"]
  116. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  117. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  118. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  119. local maincolor = BrickColor.new("Institutional white")
  120. local Mode = "Neutral"
  121. cam = game.Workspace.CurrentCamera
  122. CF = CFrame.new
  123. angles = CFrame.Angles
  124. local attack = Instance.new("BoolValue",char)
  125. attack.Name = "attack"
  126. attack.Value = false
  127. Euler = CFrame.fromEulerAnglesXYZ
  128. Rad = math.rad
  129. IT = Instance.new
  130. BrickC = BrickColor.new
  131. Cos = math.cos
  132. Acos = math.acos
  133. Sin = math.sin
  134. Asin = math.asin
  135. Abs = math.abs
  136. Mrandom = math.random
  137. Floor = math.floor
  138.  
  139.  
  140.  
  141. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  142. RSH, LSH = nil, nil
  143. RW = Instance.new("Weld")
  144. LW = Instance.new("Weld")
  145. RH = tors["Right Hip"]
  146. LH = tors["Left Hip"]
  147. RSH = tors["Right Shoulder"]
  148. LSH = tors["Left Shoulder"]
  149. RSH.Parent = nil
  150. LSH.Parent = nil
  151. RW.Name = "RW"
  152. RW.Part0 = tors
  153. RW.C0 = CF(1.5, 0.5, 0)
  154. RW.C1 = CF(0, 0.5, 0)
  155. RW.Part1 = ra
  156. RW.Parent = tors
  157. LW.Name = "LW"
  158. LW.Part0 = tors
  159. LW.C0 = CF(-1.5, 0.5, 0)
  160. LW.C1 = CF(0, 0.5, 0)
  161. LW.Part1 = la
  162. LW.Parent = tors
  163. Effects = {}
  164. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  165. local wld = Instance.new("Weld", wp1)
  166. wld.Part0 = wp0
  167. wld.Part1 = wp1
  168. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  169. end
  170. newWeld(tors, ll, -0.5, -1, 0)
  171. ll.Weld.C1 = CFrame.new(0, 1, 0)
  172. newWeld(tors, rl, 0.5, -1, 0)
  173. rl.Weld.C1 = CFrame.new(0, 1, 0)
  174.  
  175.  
  176.  
  177. New = function(Object, Parent, Name, Data)
  178. local Object = Instance.new(Object)
  179. for Index, Value in pairs(Data or {}) do
  180. Object[Index] = Value
  181. end
  182. Object.Parent = Parent
  183. Object.Name = Name
  184. return Object
  185. end
  186. local halocolor = BrickColor.new("Pastel light blue")
  187. local halocolor2 = BrickColor.new("Cool yellow")
  188. local starcolor = BrickColor.new("Bright yellow")
  189. local lunacolor = BrickColor.new("Navy blue")
  190. local lunacolor2 = BrickColor.new("Bright blue")
  191. local wepcolor = BrickColor.new("Really black")
  192. local maincolor = BrickColor.new("Really black")
  193. local m = Instance.new("Model",char)
  194. m.Name = "m"
  195. local m2 = Instance.new("Model",char)
  196. local m3 = Instance.new("Model",char)
  197. local mw1 = Instance.new("Model",char)
  198. mw1.Name = "mw1"
  199. local mw2 = Instance.new("Model",char)
  200. mw2.Name = "mw2"
  201. local extrawingmod1 = Instance.new("Model",char)
  202. local extrawingmod2 = Instance.new("Model",char)
  203.  
  204.  
  205.  
  206. remote = Instance.new("RemoteEvent",char)
  207. remote.Name = "KeyRemote"
  208.  
  209. -- Server --
  210. remote.OnServerEvent:Connect(function(player, key)
  211. remote:FireAllClients(key)
  212. end)
  213.  
  214.  
  215.  
  216. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  217. local p = Instance.new("Part")
  218. p.TopSurface = 0
  219. p.BottomSurface = 0
  220. p.Parent = parent
  221. p.Size = Vector3.new(0.1,0.1,0.1)
  222. p.Transparency = transparency
  223. p.Reflectance = reflectance
  224. p.CanCollide = false
  225. p.Locked = true
  226. p.BrickColor = brickcolor
  227. p.Material = material
  228. return p
  229. end
  230.  
  231. function CreateMesh(parent,meshtype,x1,y1,z1)
  232. local mesh = Instance.new("SpecialMesh",parent)
  233. mesh.MeshType = meshtype
  234. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  235. return mesh
  236. end
  237.  
  238. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  239. local mesh = Instance.new("SpecialMesh",parent)
  240. mesh.MeshType = "FileMesh"
  241. mesh.MeshId = meshid
  242. mesh.Scale = Vector3.new(x1,y1,z1)
  243. return mesh
  244. end
  245.  
  246.  
  247. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  248. local mesh = Instance.new("SpecialMesh",parent)
  249. mesh.MeshType = "FileMesh"
  250. mesh.MeshId = meshid
  251. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  252. mesh.Scale = Vector3.new(x1,y1,z1)
  253. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  254. return mesh
  255. end
  256.  
  257. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  258. local weld = Instance.new("Weld")
  259. weld.Parent = parent
  260. weld.Part0 = part0
  261. weld.Part1 = part1
  262. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  263. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  264. return weld
  265. end
  266.  
  267. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  268. local NEWWELD = IT(TYPE)
  269. NEWWELD.Part0 = PART0
  270. NEWWELD.Part1 = PART1
  271. NEWWELD.C0 = C0
  272. NEWWELD.C1 = C1
  273. NEWWELD.Parent = PARENT
  274. return NEWWELD
  275. end
  276.  
  277. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  278. local NEWPART = IT("Part")
  279. NEWPART.formFactor = FORMFACTOR
  280. NEWPART.Reflectance = REFLECTANCE
  281. NEWPART.Transparency = TRANSPARENCY
  282. NEWPART.CanCollide = false
  283. NEWPART.Locked = true
  284. NEWPART.Anchored = true
  285. if ANCHOR == false then
  286. NEWPART.Anchored = false
  287. end
  288. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  289. NEWPART.Name = NAME
  290. NEWPART.Size = SIZE
  291. NEWPART.Position = tors.Position
  292. NEWPART.Material = MATERIAL
  293. NEWPART:BreakJoints()
  294. NEWPART.Parent = PARENT
  295. return NEWPART
  296. end
  297.  
  298. function WWeld(a, b, acf)
  299. local we = Instance.new("Weld", a)
  300. we.Part0 = a
  301. we.Part1 = b
  302. we.C0 = acf
  303. end
  304.  
  305. FirstModeWings = script.ModeOfGlitch1
  306. FirstModeWings.Name = "FirstModeWings"
  307. FirstModeWings.Parent = char
  308. local FirstModeWingWeld1 = Instance.new("Weld",char)
  309. FirstModeWingWeld1.Name = "FirstModeWingWeld1"
  310. FirstModeWingWeld1.Part1 = FirstModeWings.WeldA
  311. FirstModeWingWeld1.Part0 = tors
  312.  
  313. local Ring1Weld = Instance.new("Weld",char)
  314. Ring1Weld.Part1 = FirstModeWings.WeldA
  315. Ring1Weld.Part0 = script.Ring1
  316. Ring1Weld.C0 = CFrame.new(0,2,-1.5) * CFrame.Angles(math.rad(90),math.rad(0),0)
  317. local Ring2Weld = Instance.new("Weld",char)
  318. Ring2Weld.Part1 = FirstModeWings.WeldA
  319. Ring2Weld.Part0 = script.Ring2
  320. Ring2Weld.C0 = CFrame.new(0,2,-1.5) * CFrame.Angles(math.rad(90),math.rad(0),0)
  321.  
  322. script.Ring1.Parent = char
  323. script.Ring2.Parent = char
  324.  
  325.  
  326.  
  327. warn([[
  328.  
  329. For Anyone Who Even Reads These, Calamity Glitcher Has Loaded.
  330.  
  331. Changelog:
  332.  
  333. All modes done, for now, and f has its first main attack.
  334.  
  335. ]])
  336.  
  337. plr = Player
  338. char = plr.Character
  339. for i,v in pairs(char:GetChildren())do
  340. if v.Name == "Ring" or v.Name == "Effect" then
  341. v:Destroy()
  342. end
  343. end
  344. hum = char.Humanoid
  345. local cam = game.Workspace.CurrentCamera
  346. Camera = cam
  347. local CamInterrupt = false
  348. local TwoD = false
  349. local TargetInfo = {nil, nil}
  350. cam.CameraType = "Custom"
  351. t = char.Torso
  352. h = char.Head
  353. ra = char["Right Arm"]
  354. la = char["Left Arm"]
  355. rl = char["Right Leg"]
  356. ll = char["Left Leg"]
  357. tors = char.Torso
  358. lleg = char["Left Leg"]
  359. root = char.HumanoidRootPart
  360. hed = char.Head
  361. rleg = char["Right Leg"]
  362. rarm = char["Right Arm"]
  363. larm = char["Left Arm"]
  364. radian = math.rad
  365. random = math.random
  366. Vec3 = Vector3.new
  367. Inst = Instance.new
  368. cFrame = CFrame.new
  369. Euler = CFrame.fromEulerAnglesXYZ
  370. vt = Vector3.new
  371. bc = BrickColor.new
  372. br = BrickColor.random
  373. it = Instance.new
  374. cf = CFrame.new
  375. ModeOfGlitch = 1
  376. local rootj = root.RootJoint
  377. local neck = tors["Neck"]
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384. RW = tors:WaitForChild("RW")
  385. LW = tors:WaitForChild("LW")
  386. kan = char:WaitForChild("Song")
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. --------- SazEreno's Artificial HB --------------
  394. ArtificialHB = Instance.new("BindableEvent", script)
  395. ArtificialHB.Name = "ArtificialHB"
  396.  
  397. script:WaitForChild("ArtificialHB")
  398. Frame_Speed = 1 / 60
  399. frame = Frame_Speed
  400. tf = 0
  401. allowframeloss = false
  402. tossremainder = false
  403. lastframe = tick()
  404. script.ArtificialHB:Fire()
  405.  
  406. game:GetService("RunService").Heartbeat:connect(function(s, p)
  407. tf = tf + s
  408. if tf >= frame then
  409. if allowframeloss then
  410. script.ArtificialHB:Fire()
  411. lastframe = tick()
  412. else
  413. for i = 1, math.floor(tf / frame) do
  414. script.ArtificialHB:Fire()
  415. end
  416. lastframe = tick()
  417. end
  418. if tossremainder then
  419. tf = 0
  420. else
  421. tf = tf - frame * math.floor(tf / frame)
  422. end
  423. end
  424. end)
  425.  
  426. ------------------
  427. function swait(num)
  428. if num == 0 or num == nil then
  429. ArtificialHB.Event:wait()
  430. else
  431. for i = 1, num do
  432. ArtificialHB.Event:wait()
  433. end
  434. end
  435. end
  436.  
  437.  
  438. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  439. local type = type
  440. local rng = Instance.new("Part", char)
  441. rng.Anchored = true
  442. if ModeOfGlitch ~= 9 then
  443. rng.Color = color
  444. elseif ModeOfGlitch == 9 then
  445. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  446. end
  447. rng.CanCollide = false
  448. rng.FormFactor = 3
  449. rng.Name = "Ring"
  450. rng.Material = "Neon"
  451. rng.Size = Vector3.new(1, 1, 1)
  452. rng.Transparency = 0
  453. rng.TopSurface = 0
  454. rng.BottomSurface = 0
  455. rng.CFrame = pos
  456. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  457. local rngm = Instance.new("SpecialMesh", rng)
  458. rngm.MeshType = "Sphere"
  459. rngm.Scale = vt(x1,y1,z1)
  460. if ModeOfGlitch == 9 then
  461. coroutine.resume(coroutine.create(function()
  462. while true do
  463. swait()
  464. if rng.Parent ~= nil then
  465. else
  466. break
  467. end
  468. end
  469. end))
  470. end
  471. local scaler2 = 1
  472. local speeder = FastSpeed
  473. if type == "Add" then
  474. scaler2 = 1*value
  475. elseif type == "Divide" then
  476. scaler2 = 1/value
  477. end
  478. coroutine.resume(coroutine.create(function()
  479. for i = 0,10/bonuspeed,0.1 do
  480. swait()
  481. if type == "Add" then
  482. scaler2 = scaler2 - 0.01*value/bonuspeed
  483. elseif type == "Divide" then
  484. scaler2 = scaler2 - 0.01/value*bonuspeed
  485. end
  486. speeder = speeder - 0.01*FastSpeed*bonuspeed
  487. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  488. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  489. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  490. end
  491. rng:Destroy()
  492. end))
  493. end
  494.  
  495.  
  496.  
  497. function HeartEffect(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  498. local type = type
  499. local rng = script.CreateHeart:Clone()
  500. rng.Parent = char
  501. rng.Anchored = true
  502. if ModeOfGlitch ~= 9 then
  503. rng.Color = color
  504. elseif ModeOfGlitch == 9 then
  505. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  506. end
  507. rng.CanCollide = false
  508. rng.Name = "Ring"
  509. rng.Material = "Neon"
  510. rng.Size = Vector3.new(1, 1, 1)
  511. rng.Transparency = 0
  512. rng.TopSurface = 0
  513. rng.BottomSurface = 0
  514. rng.CFrame = pos
  515. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  516.  
  517. rng.Size = vt(x1,y1,z1)
  518. if ModeOfGlitch == 9 then
  519. coroutine.resume(coroutine.create(function()
  520. while true do
  521. swait()
  522. if rng.Parent ~= nil then
  523. else
  524. break
  525. end
  526. end
  527. end))
  528. end
  529. local scaler2 = 1
  530. local speeder = FastSpeed
  531. if type == "Add" then
  532. scaler2 = 1*value
  533. elseif type == "Divide" then
  534. scaler2 = 1/value
  535. end
  536. coroutine.resume(coroutine.create(function()
  537. for i = 0,10/bonuspeed,0.1 do
  538. swait()
  539. if type == "Add" then
  540. scaler2 = scaler2 - 0.01*value/bonuspeed
  541. elseif type == "Divide" then
  542. scaler2 = scaler2 - 0.01/value*bonuspeed
  543. end
  544. speeder = speeder - 0.01*FastSpeed*bonuspeed
  545. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  546. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  547. rng.Size = rng.Size + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  548. end
  549. rng:Destroy()
  550. end))
  551. end
  552.  
  553.  
  554. MAINRUINCOLOR = BrickColor.new("Alder")
  555. Sin = math.sin
  556. function clerp(a, b, t)
  557. local qa = {
  558. QuaternionFromCFrame(a)
  559. }
  560. local qb = {
  561. QuaternionFromCFrame(b)
  562. }
  563. local ax, ay, az = a.x, a.y, a.z
  564. local bx, by, bz = b.x, b.y, b.z
  565. local _t = 1 - t
  566. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  567. end
  568. function QuaternionFromCFrame(cf)
  569. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  570. local trace = m00 + m11 + m22
  571. if trace > 0 then
  572. local s = math.sqrt(1 + trace)
  573. local recip = 0.5 / s
  574. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  575. else
  576. local i = 0
  577. if m00 < m11 then
  578. i = 1
  579. end
  580. if m22 > (i == 0 and m00 or m11) then
  581. i = 2
  582. end
  583. if i == 0 then
  584. local s = math.sqrt(m00 - m11 - m22 + 1)
  585. local recip = 0.5 / s
  586. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  587. elseif i == 1 then
  588. local s = math.sqrt(m11 - m22 - m00 + 1)
  589. local recip = 0.5 / s
  590. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  591. elseif i == 2 then
  592. local s = math.sqrt(m22 - m00 - m11 + 1)
  593. local recip = 0.5 / s
  594. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  595. end
  596. end
  597. end
  598. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  599. local xs, ys, zs = x + x, y + y, z + z
  600. local wx, wy, wz = w * xs, w * ys, w * zs
  601. local xx = x * xs
  602. local xy = x * ys
  603. local xz = x * zs
  604. local yy = y * ys
  605. local yz = y * zs
  606. local zz = z * zs
  607. 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))
  608. end
  609. function QuaternionSlerp(a, b, t)
  610. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  611. local startInterp, finishInterp
  612. if cosTheta >= 1.0E-4 then
  613. if 1 - cosTheta > 1.0E-4 then
  614. local theta = math.acos(cosTheta)
  615. local invSinTheta = 1 / Sin(theta)
  616. startInterp = Sin((1 - t) * theta) * invSinTheta
  617. finishInterp = Sin(t * theta) * invSinTheta
  618. else
  619. startInterp = 1 - t
  620. finishInterp = t
  621. end
  622. elseif 1 + cosTheta > 1.0E-4 then
  623. local theta = math.acos(-cosTheta)
  624. local invSinTheta = 1 / Sin(theta)
  625. startInterp = Sin((t - 1) * theta) * invSinTheta
  626. finishInterp = Sin(t * theta) * invSinTheta
  627. else
  628. startInterp = t - 1
  629. finishInterp = t
  630. end
  631. 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
  632. end
  633. function rayCast(Position, Direction, Range, Ignore)
  634. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  635. end
  636. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  637. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  638. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  639. CF = CFrame.new
  640. Player_Size = 1
  641. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  642. CF = CFrame.new
  643. angles = CFrame.Angles
  644. local tempattack = char:WaitForChild("attack")
  645. Euler = CFrame.fromEulerAnglesXYZ
  646. Rad = math.rad
  647. IT = Instance.new
  648. BrickC = BrickColor.new
  649. Cos = math.cos
  650. Acos = math.acos
  651. Sin = math.sin
  652. Asin = math.asin
  653. Abs = math.abs
  654. Mrandom = math.random
  655. Floor = math.floor
  656. sine = 0
  657. change = 1
  658. m = char:WaitForChild("m")
  659. mw1 = char:WaitForChild("mw1")
  660.  
  661.  
  662.  
  663.  
  664. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  665.  
  666. local type = type
  667. local rng = Instance.new("Part", char)
  668. rng.Anchored = true
  669. if ModeOfGlitch ~= 9 then
  670.  
  671. rng.BrickColor = color
  672. elseif ModeOfGlitch == 9 then
  673. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  674. end
  675. rng.CanCollide = false
  676. rng.FormFactor = 3
  677. rng.Name = "Ring"
  678. rng.Material = "Neon"
  679. rng.Size = Vector3.new(1, 1, 1)
  680. rng.Transparency = 0
  681. rng.TopSurface = 0
  682. rng.BottomSurface = 0
  683. rng.CFrame = pos
  684. local rngm = Instance.new("SpecialMesh", rng)
  685. rngm.MeshType = "Sphere"
  686. rngm.Scale = scale
  687. local scaler2 = 1
  688. local scaler2b = 1
  689. local scaler2c = 1
  690. if type == "Add" then
  691. scaler2 = 1*value
  692. scaler2b = 1*value2
  693. scaler2c = 1*value3
  694. elseif type == "Divide" then
  695. scaler2 = 1/value
  696. scaler2b = 1/value2
  697. scaler2c = 1/value3
  698. end
  699. if ModeOfGlitch == 9 then
  700. coroutine.resume(coroutine.create(function()
  701. while true do
  702. swait()
  703. if rng.Parent ~= nil then
  704. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  705. else
  706. break
  707. end
  708. end
  709. end))
  710. end
  711. coroutine.resume(coroutine.create(function()
  712. for i = 0,10/bonuspeed,0.1 do
  713. swait()
  714. if type == "Add" then
  715. scaler2 = scaler2 - 0.01*value/bonuspeed
  716. scaler2b = scaler2b - 0.01*value/bonuspeed
  717. scaler2c = scaler2c - 0.01*value/bonuspeed
  718. elseif type == "Divide" then
  719. scaler2 = scaler2 - 0.01/value*bonuspeed
  720. scaler2b = scaler2b - 0.01/value*bonuspeed
  721. scaler2c = scaler2c - 0.01/value*bonuspeed
  722. end
  723. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  724. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  725. end
  726. rng:Destroy()
  727. end))
  728. end
  729.  
  730. function sphere3(bonuspeed,type,pos,scale,value,value2,value3,color)
  731.  
  732. local type = type
  733. local rng = Instance.new("Part", char)
  734. rng.Anchored = true
  735. if ModeOfGlitch ~= 9 then
  736.  
  737. rng.Color = color
  738. elseif ModeOfGlitch == 9 then
  739. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  740. end
  741. rng.CanCollide = false
  742. rng.FormFactor = 3
  743. rng.Name = "Ring"
  744. rng.Material = "Neon"
  745. rng.Size = Vector3.new(1, 1, 1)
  746. rng.Transparency = 0
  747. rng.TopSurface = 0
  748. rng.BottomSurface = 0
  749. rng.CFrame = pos
  750. local rngm = Instance.new("SpecialMesh", rng)
  751. rngm.MeshType = "Sphere"
  752. rngm.Scale = scale
  753. local scaler2 = 1
  754. local scaler2b = 1
  755. local scaler2c = 1
  756. if type == "Add" then
  757. scaler2 = 1*value
  758. scaler2b = 1*value2
  759. scaler2c = 1*value3
  760. elseif type == "Divide" then
  761. scaler2 = 1/value
  762. scaler2b = 1/value2
  763. scaler2c = 1/value3
  764. end
  765. if ModeOfGlitch == 9 then
  766. coroutine.resume(coroutine.create(function()
  767. while true do
  768. swait()
  769. if rng.Parent ~= nil then
  770. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  771. else
  772. break
  773. end
  774. end
  775. end))
  776. end
  777. coroutine.resume(coroutine.create(function()
  778. for i = 0,10/bonuspeed,0.1 do
  779. swait()
  780. if type == "Add" then
  781. scaler2 = scaler2 - 0.01*value/bonuspeed
  782. scaler2b = scaler2b - 0.01*value/bonuspeed
  783. scaler2c = scaler2c - 0.01*value/bonuspeed
  784. elseif type == "Divide" then
  785. scaler2 = scaler2 - 0.01/value*bonuspeed
  786. scaler2b = scaler2b - 0.01/value*bonuspeed
  787. scaler2c = scaler2c - 0.01/value*bonuspeed
  788. end
  789. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  790. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  791. end
  792. rng:Destroy()
  793. end))
  794. end
  795.  
  796. function CameraEnshaking(Length,Intensity)
  797. coroutine.resume(coroutine.create(function()
  798. local intensity = 1*Intensity
  799. local rotM = 0.01*Intensity
  800. for i = 0, Length, 0.1 do
  801. swait()
  802. intensity = intensity - 0.05*Intensity/Length
  803. rotM = rotM - 0.0005*Intensity/Length
  804. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  805. 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)
  806. end
  807. hum.CameraOffset = Vec3(0, 0, 0)
  808. end))
  809. end
  810.  
  811. local Anim="Idle"
  812.  
  813. local sunval = 0.01
  814.  
  815.  
  816.  
  817.  
  818. CFuncs = {
  819. ["Part"] = {
  820. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  821. local Part = Create("Part"){
  822. Parent = Parent,
  823. Reflectance = Reflectance,
  824. Transparency = Transparency,
  825. CanCollide = false,
  826. Locked = true,
  827. BrickColor = BrickColor.new(tostring(BColor)),
  828. Name = Name,
  829. Size = Size,
  830. Material = Material,
  831. }
  832. return Part
  833. end;
  834. };
  835.  
  836. ["Mesh"] = {
  837. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  838. local Msh = Create(Mesh){
  839. Parent = Part,
  840. Offset = OffSet,
  841. Scale = Scale,
  842. }
  843. if Mesh == "SpecialMesh" then
  844. Msh.MeshType = MeshType
  845. Msh.MeshId = MeshId
  846. end
  847. return Msh
  848. end;
  849. };
  850.  
  851. ["Mesh"] = {
  852. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  853. local Msh = Create(Mesh){
  854. Parent = Part,
  855. Offset = OffSet,
  856. Scale = Scale,
  857. }
  858. if Mesh == "SpecialMesh" then
  859. Msh.MeshType = MeshType
  860. Msh.MeshId = MeshId
  861. end
  862. return Msh
  863. end;
  864. };
  865.  
  866. ["Weld"] = {
  867. Create = function(Parent, Part0, Part1, C0, C1)
  868. local Weld = Create("Weld"){
  869. Parent = Parent,
  870. Part0 = Part0,
  871. Part1 = Part1,
  872. C0 = C0,
  873. C1 = C1,
  874. }
  875. return Weld
  876. end;
  877. };
  878.  
  879. ["Sound"] = {
  880. Create = function(id, par, vol, pit)
  881. coroutine.resume(coroutine.create(function()
  882. local S = Create("Sound"){
  883. Volume = vol,
  884. Name = "EffectSoundo",
  885. Pitch = pit or 1,
  886. SoundId = id,
  887. Parent = par or workspace,
  888. }
  889. wait()
  890. S:play()
  891. game:GetService("Debris"):AddItem(S, 10)
  892. end))
  893. end;
  894. };
  895.  
  896. ["LongSound"] = {
  897. Create = function(id, par, vol, pit)
  898. coroutine.resume(coroutine.create(function()
  899. local S = Create("Sound"){
  900. Volume = vol,
  901. Pitch = pit or 1,
  902. SoundId = id,
  903. Parent = par or workspace,
  904. }
  905. wait()
  906. S:play()
  907. game:GetService("Debris"):AddItem(S, 60)
  908. end))
  909. end;
  910. };
  911.  
  912. ["ParticleEmitter"] = {
  913. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  914. local fp = Create("ParticleEmitter"){
  915. Parent = Parent,
  916. Color = ColorSequence.new(Color1, Color2),
  917. LightEmission = LightEmission,
  918. Size = Size,
  919. Texture = Texture,
  920. Transparency = Transparency,
  921. ZOffset = ZOffset,
  922. Acceleration = Accel,
  923. Drag = Drag,
  924. LockedToPart = LockedToPart,
  925. VelocityInheritance = VelocityInheritance,
  926. EmissionDirection = EmissionDirection,
  927. Enabled = Enabled,
  928. Lifetime = LifeTime,
  929. Rate = Rate,
  930. Rotation = Rotation,
  931. RotSpeed = RotSpeed,
  932. Speed = Speed,
  933. VelocitySpread = VelocitySpread,
  934. }
  935. return fp
  936. end;
  937. };
  938.  
  939. CreateTemplate = {
  940.  
  941. };
  942. }
  943.  
  944.  
  945. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  946. if hit.Parent == nil then
  947. return
  948. end
  949. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  950. for _, v in pairs(hit.Parent:children()) do
  951. if v:IsA("Humanoid") then
  952. h = v
  953. end
  954. end
  955. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  956. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  957. return
  958. end
  959. local c = Create("ObjectValue")({
  960. Name = "creator",
  961. Value = Player,
  962. Parent = h
  963. })
  964. game:GetService("Debris"):AddItem(c, 0.5)
  965. if HitSound ~= nil and HitPitch ~= nil then
  966. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  967. end
  968. local Damage = math.random(minim, maxim)
  969. local blocked = false
  970. local block = hit.Parent:findFirstChild("Block")
  971. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  972. blocked = true
  973. block.Value = block.Value - 1
  974. print(block.Value)
  975. end
  976. if blocked == false then
  977. HitHealth = h.Health
  978. h.MaxHealth = 100
  979. h.Health = h.Health - Damage
  980. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  981. print("gained kill")
  982. dmg(h.Parent)
  983. end
  984. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  985. else
  986. h.Health = h.Health - Damage / 2
  987. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  988. end
  989. if Type == "Knockdown" then
  990. local hum = hit.Parent.Humanoid
  991. hum.PlatformStand = true
  992. coroutine.resume(coroutine.create(function(HHumanoid)
  993. swait(1)
  994. HHumanoid.PlatformStand = false
  995. end), hum)
  996. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  997. local bodvol = Create("BodyVelocity")({
  998. velocity = angle * knockback,
  999. P = 5000,
  1000. maxForce = Vector3.new(8000, 8000, 8000),
  1001. Parent = hit
  1002. })
  1003. local rl = Create("BodyAngularVelocity")({
  1004. P = 3000,
  1005. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1006. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1007. Parent = hit
  1008. })
  1009. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1010. game:GetService("Debris"):AddItem(rl, 0.5)
  1011. elseif Type == "Normal" then
  1012. local vp = Create("BodyVelocity")({
  1013. P = 500,
  1014. maxForce = Vector3.new(math.huge, 0, math.huge),
  1015. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1016. })
  1017. if knockback > 0 then
  1018. vp.Parent = hit.Parent.Head
  1019. end
  1020. game:GetService("Debris"):AddItem(vp, 0.5)
  1021. elseif Type == "Up" then
  1022. local bodyVelocity = Create("BodyVelocity")({
  1023. velocity = Vector3.new(0, 20, 0),
  1024. P = 5000,
  1025. maxForce = Vector3.new(8000, 8000, 8000),
  1026. Parent = hit
  1027. })
  1028. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1029. local bodyVelocity = Create("BodyVelocity")({
  1030. velocity = Vector3.new(0, 20, 0),
  1031. P = 5000,
  1032. maxForce = Vector3.new(8000, 8000, 8000),
  1033. Parent = hit
  1034. })
  1035. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1036. elseif Type == "Leech" then
  1037. local hum = hit.Parent.Humanoid
  1038. if hum ~= nil then
  1039. for i = 0, 2 do
  1040. 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)
  1041. end
  1042. Humanoid.Health = Humanoid.Health + 10
  1043. end
  1044. elseif Type == "UpKnock" then
  1045. local hum = hit.Parent.Humanoid
  1046. hum.PlatformStand = true
  1047. if hum ~= nil then
  1048. hitr = true
  1049. end
  1050. coroutine.resume(coroutine.create(function(HHumanoid)
  1051. swait(5)
  1052. HHumanoid.PlatformStand = false
  1053. hitr = false
  1054. end), hum)
  1055. local bodyVelocity = Create("BodyVelocity")({
  1056. velocity = Vector3.new(0, 20, 0),
  1057. P = 5000,
  1058. maxForce = Vector3.new(8000, 8000, 8000),
  1059. Parent = hit
  1060. })
  1061. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1062. local bodyVelocity = Create("BodyVelocity")({
  1063. velocity = Vector3.new(0, 20, 0),
  1064. P = 5000,
  1065. maxForce = Vector3.new(8000, 8000, 8000),
  1066. Parent = hit
  1067. })
  1068. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1069. elseif Type == "Snare" then
  1070. local bp = Create("BodyPosition")({
  1071. P = 2000,
  1072. D = 100,
  1073. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1074. position = hit.Parent.Torso.Position,
  1075. Parent = hit.Parent.Torso
  1076. })
  1077. game:GetService("Debris"):AddItem(bp, 1)
  1078. elseif Type == "Slashnare" then
  1079. 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)
  1080. for i = 1, math.random(4, 5) do
  1081. 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)
  1082. end
  1083. local bp = Create("BodyPosition")({
  1084. P = 2000,
  1085. D = 100,
  1086. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1087. position = hit.Parent.Torso.Position,
  1088. Parent = hit.Parent.Torso
  1089. })
  1090. game:GetService("Debris"):AddItem(bp, 1)
  1091. elseif Type == "Spike" then
  1092. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1093. local bp = Create("BodyPosition")({
  1094. P = 2000,
  1095. D = 100,
  1096. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1097. position = hit.Parent.Torso.Position,
  1098. Parent = hit.Parent.Torso
  1099. })
  1100. game:GetService("Debris"):AddItem(bp, 1)
  1101. elseif Type == "Freeze" then
  1102. local BodPos = Create("BodyPosition")({
  1103. P = 50000,
  1104. D = 1000,
  1105. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1106. position = hit.Parent.Torso.Position,
  1107. Parent = hit.Parent.Torso
  1108. })
  1109. local BodGy = Create("BodyGyro")({
  1110. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1111. P = 20000,
  1112. Parent = hit.Parent.Torso,
  1113. cframe = hit.Parent.Torso.CFrame
  1114. })
  1115. hit.Parent.Torso.Anchored = true
  1116. coroutine.resume(coroutine.create(function(Part)
  1117. swait(1.5)
  1118. Part.Anchored = false
  1119. end), hit.Parent.Torso)
  1120. game:GetService("Debris"):AddItem(BodPos, 3)
  1121. game:GetService("Debris"):AddItem(BodGy, 3)
  1122. end
  1123. local debounce = Create("BoolValue")({
  1124. Name = "DebounceHit",
  1125. Parent = hit.Parent,
  1126. Value = true
  1127. })
  1128. game:GetService("Debris"):AddItem(debounce, Delay)
  1129. c = Instance.new("ObjectValue")
  1130. c.Name = "creator"
  1131. c.Value = plr
  1132. c.Parent = h
  1133. game:GetService("Debris"):AddItem(c, 0.5)
  1134. end
  1135. end
  1136. function ShowDamage(Pos, Text, Time, Color)
  1137. local Rate = 0.03333333333333333
  1138. local Pos = Pos or Vector3.new(0, 0, 0)
  1139. local Text = Text or ""
  1140. local Time = Time or 2
  1141. local Color = Color or Color3.new(1, 0, 1)
  1142. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1143. EffectPart.Anchored = true
  1144. local BillboardGui = Create("BillboardGui")({
  1145. Size = UDim2.new(3, 0, 3, 0),
  1146. Adornee = EffectPart,
  1147. Parent = EffectPart
  1148. })
  1149. local TextLabel = Create("TextLabel")({
  1150. BackgroundTransparency = 1,
  1151. Size = UDim2.new(1, 0, 1, 0),
  1152. Text = Text,
  1153. TextColor3 = Color,
  1154. TextScaled = true,
  1155. Font = Enum.Font.ArialBold,
  1156. Parent = BillboardGui
  1157. })
  1158. game.Debris:AddItem(EffectPart, Time + 0.1)
  1159. EffectPart.Parent = game:GetService("Workspace")
  1160. delay(0, function()
  1161. local Frames = Time / Rate
  1162. for Frame = 1, Frames do
  1163. wait(Rate)
  1164. local Percent = Frame / Frames
  1165. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1166. TextLabel.TextTransparency = Percent
  1167. end
  1168. if EffectPart and EffectPart.Parent then
  1169. EffectPart:Destroy()
  1170. end
  1171. end)
  1172. end
  1173. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1174. for _, c in pairs(workspace:children()) do
  1175. local hum = c:findFirstChildOfClass("Humanoid")
  1176. if hum ~= nil then
  1177. local head = c:findFirstChild("Head")
  1178. if head ~= nil then
  1179. local targ = head.Position - Part.Position
  1180. local mag = targ.magnitude
  1181. if magni >= mag and c.Name ~= plr.Name then
  1182. Damagefunc(head, head, mindam, maxdam, knock, Type, root, 0.1, "rbxassetid://231917784", 1)
  1183. end
  1184. end
  1185. end
  1186. end
  1187. end
  1188.  
  1189. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1190. for _, c in pairs(workspace:children()) do
  1191. local hum = c:findFirstChild("Humanoid")
  1192. if hum ~= nil then
  1193. local head = c:findFirstChild("Torso")
  1194. if head ~= nil then
  1195. local targ = head.Position - Part.Position
  1196. local mag = targ.magnitude
  1197. if magni >= mag and c.Name ~= Player.Name then
  1198. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1199. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1200. end
  1201. end
  1202. end
  1203. end
  1204. end
  1205.  
  1206. IT = Instance.new
  1207. CF = CFrame.new
  1208. VT = Vector3.new
  1209. RAD = math.rad
  1210. C3 = Color3.new
  1211. UD2 = UDim2.new
  1212. BRICKC = BrickColor.new
  1213. ANGLES = CFrame.Angles
  1214. EULER = CFrame.fromEulerAnglesXYZ
  1215. COS = math.cos
  1216. ACOS = math.acos
  1217. SIN = math.sin
  1218. ASIN = math.asin
  1219. ABS = math.abs
  1220. MRANDOM = math.random
  1221. FLOOR = math.floor
  1222. local RCHOICE = MRANDOM(1,7)
  1223. local Hue = 0;
  1224.  
  1225. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1226. local NEWMESH = IT(MESH)
  1227. if MESH == "SpecialMesh" then
  1228. NEWMESH.MeshType = MESHTYPE
  1229. if MESHID ~= "nil" and MESHID ~= "" then
  1230. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1231. end
  1232. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1233. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1234. end
  1235. end
  1236. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1237. NEWMESH.Scale = SCALE
  1238. NEWMESH.Parent = PARENT
  1239. return NEWMESH
  1240. end
  1241.  
  1242. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1243. local NEWPART = IT("Part")
  1244. NEWPART.formFactor = FORMFACTOR
  1245. NEWPART.Reflectance = REFLECTANCE
  1246. NEWPART.Transparency = TRANSPARENCY
  1247. NEWPART.CanCollide = false
  1248. NEWPART.Locked = true
  1249. NEWPART.Anchored = true
  1250. if ANCHOR == false then
  1251. NEWPART.Anchored = false
  1252. end
  1253. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1254. NEWPART.Name = NAME
  1255. NEWPART.Size = SIZE
  1256. NEWPART.Position = tors.Position
  1257. NEWPART.Material = MATERIAL
  1258. NEWPART:BreakJoints()
  1259. NEWPART.Parent = PARENT
  1260. return NEWPART
  1261. end
  1262.  
  1263. local S = IT("Sound")
  1264. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1265. local NEWSOUND = nil
  1266. coroutine.resume(coroutine.create(function()
  1267. NEWSOUND = S:Clone()
  1268. NEWSOUND.Parent = PARENT
  1269. NEWSOUND.Volume = VOLUME
  1270. NEWSOUND.Pitch = PITCH
  1271. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1272. NEWSOUND:play()
  1273. if DOESLOOP == true then
  1274. NEWSOUND.Looped = true
  1275. else
  1276. repeat wait(1) until NEWSOUND.Playing == false
  1277. NEWSOUND:remove()
  1278. end
  1279. end))
  1280. return NEWSOUND
  1281. end
  1282.  
  1283.  
  1284. function WACKYEFFECT(Table)
  1285. local TYPE = (Table.EffectType or "Sphere")
  1286. local SIZE = (Table.Size or VT(1,1,1))
  1287. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1288. local TRANSPARENCY = (Table.Transparency or 0)
  1289. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1290. local CFRAME = (Table.CFrame or tors.CFrame)
  1291. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1292. local ROTATION1 = (Table.RotationX or 0)
  1293. local ROTATION2 = (Table.RotationY or 0)
  1294. local ROTATION3 = (Table.RotationZ or 0)
  1295. local MATERIAL = (Table.Material or "Neon")
  1296. local COLOR = (Table.Color or C3(1,1,1))
  1297. local TIME = (Table.Time or 45)
  1298. local SOUNDID = (Table.SoundID or nil)
  1299. local SOUNDPITCH = (Table.SoundPitch or nil)
  1300. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1301. coroutine.resume(coroutine.create(function()
  1302. local PLAYSSOUND = false
  1303. local SOUND = nil
  1304. local EFFECT = CreatePart(3, char, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1305. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1306. PLAYSSOUND = true
  1307. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1308. end
  1309. EFFECT.Color = COLOR
  1310. local MSH = nil
  1311. if TYPE == "Sphere" then
  1312. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1313. elseif TYPE == "Block" or TYPE == "Box" then
  1314. MSH = IT("BlockMesh",EFFECT)
  1315. MSH.Scale = SIZE
  1316. elseif TYPE == "Wave" then
  1317. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1318. elseif TYPE == "Ring" then
  1319. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1320. elseif TYPE == "Slash" then
  1321. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1322. elseif TYPE == "Round Slash" then
  1323. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1324. elseif TYPE == "Swirl" then
  1325. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1326. elseif TYPE == "Skull" then
  1327. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1328. elseif TYPE == "Crystal" then
  1329. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1330. end
  1331. if MSH ~= nil then
  1332. local MOVESPEED = nil
  1333. if MOVEDIRECTION ~= nil then
  1334. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1335. end
  1336. local GROWTH = SIZE - ENDSIZE
  1337. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1338. if TYPE == "Block" then
  1339. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1340. else
  1341. EFFECT.CFrame = CFRAME
  1342. end
  1343. for LOOP = 1, TIME+1 do
  1344. swait()
  1345. MSH.Scale = MSH.Scale - GROWTH/TIME
  1346. if TYPE == "Wave" then
  1347. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1348. end
  1349. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1350. if TYPE == "Block" then
  1351. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1352. else
  1353. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1354. end
  1355. if MOVEDIRECTION ~= nil then
  1356. local ORI = EFFECT.Orientation
  1357. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1358. EFFECT.Orientation = ORI
  1359. end
  1360. end
  1361. if PLAYSSOUND == false then
  1362. EFFECT:remove()
  1363. else
  1364. repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1365. EFFECT:remove()
  1366. end
  1367. else
  1368. if PLAYSSOUND == false then
  1369. EFFECT:remove()
  1370. else
  1371. repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  1372. EFFECT:remove()
  1373. end
  1374. end
  1375. end))
  1376. end
  1377.  
  1378. NewInstance = function(instance,parent,properties)
  1379. local inst = Instance.new(instance)
  1380. inst.Parent = parent
  1381. if(properties)then
  1382. for i,v in next, properties do
  1383. pcall(function() inst[i] = v end)
  1384. end
  1385. end
  1386. return inst;
  1387. end
  1388.  
  1389. function Chat(text,color)
  1390. coroutine.wrap(function()
  1391. if(char:FindFirstChild'ChatGUI')then char.ChatGUI:destroy() end
  1392. local BBG = NewInstance("BillboardGui",char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=Vector3.new(0,3,0),Adornee=hed})
  1393. local offset = 0;
  1394. local xsize = 0;
  1395. for i = 1, #text do
  1396. offset = offset - 16
  1397. xsize = xsize + 32
  1398. delay(i/25, function()
  1399. local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,0,0,300),BackgroundTransparency=1,TextColor3=(typeof(color) == 'string' and color:lower() == 'rainbow' and C3.HSV(Hue/360,1,1)) or color,BorderSizePixel=0,Font=Enum.Font.Arcade,TextSize=40,TextStrokeTransparency=0,Size=UDim2.new(1,0,.5,0)})
  1400. coroutine.resume(coroutine.create(function()
  1401. while true do
  1402. swait()
  1403. Txt.TextColor3 = MAINRUINCOLOR.Color
  1404. end
  1405. end))
  1406. offset = offset + 32
  1407. if(Txt.Parent)then Txt:TweenPosition(UDim2.new(0,offset,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic,1) end
  1408. end)
  1409. end
  1410. BBG.Size = UDim2.new(0,xsize,0,40)
  1411. delay((#text/25)+3, function()
  1412. for _,v in next, BBG:children() do
  1413. v:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Linear,1)
  1414. end
  1415. wait(1.15)
  1416. BBG:destroy()
  1417. end)
  1418. end)()
  1419. end
  1420.  
  1421.  
  1422. function onChatted(msg)
  1423. Chat(msg,MAINRUINCOLOR.Color)
  1424. end
  1425.  
  1426. plr.Chatted:connect(onChatted)
  1427.  
  1428.  
  1429.  
  1430. local FirstModeWings = char:WaitForChild("FirstModeWings")
  1431. for i,v in pairs(FirstModeWings:GetChildren())do
  1432. v.CanCollide = false
  1433. end
  1434. FirstModeWingWeld1 = char:WaitForChild("FirstModeWings").WeldA.Weld1
  1435. FirstModeWingWeld2 = char:WaitForChild("FirstModeWings").WeldA.Weld2
  1436. FirstModeWingWeld3 = char:WaitForChild("FirstModeWings").WeldA.Weld3
  1437. FirstModeWingWeld4 = char:WaitForChild("FirstModeWings").WeldA.Weld4
  1438. FirstModeWingWeld5 = char:WaitForChild("FirstModeWings").WeldA.Weld5
  1439. FirstModeWingWeld6 = char:WaitForChild("FirstModeWings").WeldA.Weld6
  1440.  
  1441. function RecolorThingWithBrickColor(Color1,Color2,ColorThree,Color4,Color5,Color6)
  1442. if ModeOfGlitch == 7 then
  1443. char.Ring1.Transparency = 1
  1444. char.Ring2.Transparency = 1
  1445. elseif ModeOfGlitch ~= 7 then
  1446. char.Ring1.Transparency = 0
  1447. char.Ring2.Transparency = 0
  1448. end
  1449. MAINRUINCOLOR = Color1
  1450. char.Ring1.BrickColor = Color1
  1451. char.Ring2.BrickColor = Color2
  1452. FirstModeWings.WingOne.BrickColor = Color1
  1453. FirstModeWings.WingTwo.BrickColor = Color2
  1454. FirstModeWings.WingThree.BrickColor = ColorThree
  1455. FirstModeWings.WingFour.BrickColor = Color4
  1456. FirstModeWings.WingFive.BrickColor = Color5
  1457. FirstModeWings.WingSix.BrickColor = Color6
  1458. end
  1459.  
  1460. function RecolorThingWithColor(Color1,Color2,ColorThree,Color4,Color5,Color6)
  1461. if ModeOfGlitch == 7 then
  1462. char.Ring1.Transparency = 1
  1463. char.Ring2.Transparency = 1
  1464. elseif ModeOfGlitch ~= 7 then
  1465. char.Ring1.Transparency = 0
  1466. char.Ring2.Transparency = 0
  1467. end
  1468. char.Ring1.Color = Color1
  1469. char.Ring2.Color = Color2
  1470. FirstModeWings.WingOne.Color = Color1
  1471. MAINRUINCOLOR = FirstModeWings.WingOne.BrickColor
  1472. FirstModeWings.WingTwo.Color = Color2
  1473. FirstModeWings.WingThree.Color = ColorThree
  1474. FirstModeWings.WingFour.Color = Color4
  1475. FirstModeWings.WingFive.Color = Color5
  1476. FirstModeWings.WingSix.Color = Color6
  1477. end
  1478. --sphereMK(1,1,"Add",tors.CFrame,5,5,5,0.5,MAINRUINCOLOR.Color,0)
  1479. function ResetCrap()
  1480. ModeOfGlitch = 1
  1481. hum.WalkSpeed = 20
  1482. kan.SoundId = "rbxassetid://923445685"
  1483. kan:Play()
  1484. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1485. RecolorThingWithBrickColor(BrickColor.new("Alder"),BrickColor.new("Pastel light blue"),BrickColor.new("Alder"),BrickColor.new("Pastel light blue"),BrickColor.new("Alder"),BrickColor.new("Pastel light blue"))
  1486. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1487. end
  1488.  
  1489. local Red = 255
  1490. local Green = 0
  1491. local Blue = 0
  1492.  
  1493. coroutine.resume(coroutine.create(function()
  1494. while wait() do
  1495. for i = 0, 254/5 do
  1496. swait()
  1497. Green = Green + 5
  1498. end
  1499. for i = 0, 254/5 do
  1500. swait()
  1501. Red = Red - 5
  1502. end
  1503. for i = 0, 254/5 do
  1504. swait()
  1505. Blue = Blue + 5
  1506. end
  1507. for i = 0, 254/5 do
  1508. swait()
  1509. Green = Green - 5
  1510. end
  1511. for i = 0, 254/5 do
  1512. swait()
  1513. Red = Red + 5
  1514. end
  1515. for i = 0, 254/5 do
  1516. swait()
  1517. Blue = Blue - 5
  1518. end
  1519. end
  1520. end))
  1521.  
  1522. plr = Player
  1523. lplr = game:GetService("Players").Player
  1524. remote = char:WaitForChild("KeyRemote")
  1525.  
  1526.  
  1527. mouse.KeyDown:Connect(function(key)
  1528. if lplr == plr then
  1529. remote:FireServer(key)
  1530. end
  1531. end)
  1532.  
  1533. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  1534. local type = type
  1535. local rotenable = rotatingop
  1536. local rng = Instance.new("Part", char)
  1537. rng.Anchored = true
  1538. rng.BrickColor = color
  1539. rng.CanCollide = false
  1540. rng.FormFactor = 3
  1541. rng.Name = "Ring"
  1542. rng.Material = "Neon"
  1543. rng.Size = Vector3.new(1, 1, 1)
  1544. rng.Transparency = 0
  1545. if typeoftrans == "In" then
  1546. rng.Transparency = 1
  1547. end
  1548. rng.TopSurface = 0
  1549. rng.BottomSurface = 0
  1550. rng.CFrame = pos
  1551. local rngm = Instance.new("SpecialMesh", rng)
  1552. rngm.MeshType = "FileMesh"
  1553. if typeofshape == "Normal" then
  1554. rngm.MeshId = "rbxassetid://662586858"
  1555. elseif typeofshape == "Round" then
  1556. rngm.MeshId = "rbxassetid://662585058"
  1557. end
  1558. rngm.Scale = scale
  1559. local scaler2 = 1/10
  1560. if type == "Add" then
  1561. scaler2 = 1*value/10
  1562. elseif type == "Divide" then
  1563. scaler2 = 1/value/10
  1564. end
  1565. local randomrot = math.random(1,2)
  1566. coroutine.resume(coroutine.create(function()
  1567. for i = 0,10/bonuspeed,0.1 do
  1568. swait()
  1569. if type == "Add" then
  1570. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  1571. elseif type == "Divide" then
  1572. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  1573. end
  1574. if rotenable == true then
  1575. if randomrot == 1 then
  1576. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  1577. elseif randomrot == 2 then
  1578. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  1579. end
  1580. end
  1581. if typeoftrans == "Out" then
  1582. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1583. elseif typeoftrans == "In" then
  1584. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  1585. end
  1586. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  1587. end
  1588. rng:Destroy()
  1589. end))
  1590. end
  1591.  
  1592.  
  1593.  
  1594. function placeholderFunction()
  1595. warn("wat")
  1596. end
  1597. remote.OnServerEvent:Connect(function(k)
  1598. if k == "q" and tempattack.Value == false and ModeOfGlitch ~= 1 then
  1599. ResetCrap()
  1600. end
  1601. if k == "e" and tempattack.Value == false and ModeOfGlitch ~= 2 then
  1602. ModeOfGlitch = 2
  1603. kan.SoundId = "rbxassetid://2475400182"
  1604. hum.WalkSpeed = 40
  1605. kan:Play()
  1606. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1607. RecolorThingWithBrickColor(BrickColor.new("Crimson"),BrickColor.new("Black"),BrickColor.new("Crimson"),BrickColor.new("Black"),BrickColor.new("Crimson"),BrickColor.new("Black"))
  1608. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1609. end
  1610. if k == "r" and tempattack.Value == false and ModeOfGlitch ~= 3 then
  1611. ModeOfGlitch = 3
  1612. kan.SoundId = "rbxassetid://894718134"
  1613. hum.WalkSpeed = 20
  1614. kan:Play()
  1615. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1616. RecolorThingWithBrickColor(BrickColor.new("Carnation pink"),BrickColor.new("Hot pink"),BrickColor.new("Carnation pink"),BrickColor.new("Hot pink"),BrickColor.new("Carnation pink"),BrickColor.new("Hot pink"))
  1617. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1618. end
  1619. if k == "t" and tempattack.Value == false and ModeOfGlitch ~= 4 then
  1620. ModeOfGlitch = 4
  1621. kan.SoundId = "rbxassetid://982687613"
  1622. hum.WalkSpeed = 60
  1623. kan:Play()
  1624. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1625. RecolorThingWithColor(Color3.fromRGB(245, 205, 48),Color3.fromRGB(217, 248, 59),Color3.fromRGB(245, 205, 48),Color3.fromRGB(217, 248, 59),Color3.fromRGB(245, 205, 48),Color3.fromRGB(217, 248, 59))
  1626. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1627. end
  1628. if k == "y" and tempattack.Value == false and ModeOfGlitch ~= 5 then
  1629. ModeOfGlitch = 5
  1630. kan.SoundId = "rbxassetid://544291208"
  1631. hum.WalkSpeed = 40
  1632. kan:Play()
  1633. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1634. RecolorThingWithColor(Color3.fromRGB(98, 37, 209),Color3.fromRGB(0,0,0),Color3.fromRGB(98, 37, 209),Color3.fromRGB(0,0,0),Color3.fromRGB(98, 37, 209),Color3.fromRGB(0,0,0))
  1635. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1636. end
  1637. if k == "u" and tempattack.Value == false and ModeOfGlitch ~= 6 then
  1638. ModeOfGlitch = 6
  1639. kan.SoundId = "rbxassetid://1076836481"
  1640. hum.WalkSpeed = 70
  1641. kan:Play()
  1642. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1643. RecolorThingWithColor(Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500))
  1644. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1645. coroutine.resume(coroutine.create(function()
  1646. repeat
  1647. swait()
  1648. if ModeOfGlitch == 6 then
  1649. RecolorThingWithColor(Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500))
  1650. end
  1651. until ModeOfGlitch ~= 6
  1652. end))
  1653. end
  1654. if k == "p" and tempattack.Value == false and ModeOfGlitch ~= 7 then
  1655. ModeOfGlitch = 7
  1656. kan.SoundId = "rbxassetid://2404024634"
  1657. hum.WalkSpeed = 20
  1658. kan:Play()
  1659. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1660. RecolorThingWithBrickColor(BrickColor.new("Electric blue"),BrickColor.new("Deep blue"),BrickColor.new("Electric blue"),BrickColor.new("Deep blue"),BrickColor.new("Electric blue"),BrickColor.new("Deep blue"))
  1661. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1662. end
  1663. if k == "f" and tempattack.Value == false and ModeOfGlitch ~= 8 then
  1664. ModeOfGlitch = 8
  1665. kan.SoundId = "rbxassetid://1093686785"
  1666. hum.WalkSpeed = 20
  1667. kan:Play()
  1668. CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
  1669. RecolorThingWithBrickColor(BrickColor.new("Persimmon"),BrickColor.new("Sunrise"),BrickColor.new("Persimmon"),BrickColor.new("Sunrise"),BrickColor.new("Persimmon"),BrickColor.new("Sunrise"))
  1670. sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
  1671. end
  1672. if k == "z" and tempattack.Value == false then
  1673. AttackOne()
  1674. end
  1675. if k == "x" and tempattack.Value == false then
  1676. AttackTwo()
  1677. end
  1678. if k == "c" and tempattack.Value == false then
  1679. AttackThree()
  1680. end
  1681. end)
  1682.  
  1683. function AttackOne()
  1684. if ModeOfGlitch == 1 then
  1685. tempattack.Value = true
  1686. hum.WalkSpeed = 0
  1687. local Sphere = Instance.new("Part",char)
  1688. Sphere.Name = "Sphere"
  1689. Sphere.Shape = "Ball"
  1690. Sphere.Size = Vector3.new(0.5,0.5,0.5)
  1691. Sphere.Material = Enum.Material.Neon
  1692. Sphere.CanCollide = false
  1693. Sphere.BrickColor = MAINRUINCOLOR
  1694. Sphere.Anchored = true
  1695. local absval = 0
  1696. for i = 0,20 do
  1697. swait()
  1698. Sphere.CFrame = ra.CFrame * CFrame.new(0,-1.5 + -i/2,0)
  1699. absval = absval + 0.005
  1700. sphere2(8,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(i/100,i/100,i/100),0,0,0,MAINRUINCOLOR,MAINRUINCOLOR)
  1701.  
  1702. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  1703. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  1704. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1705. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  1706. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(200), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-0 - 5 * math.cos(sine / 30))), 0.4)
  1707. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-0), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(0 + 5 * math.cos(sine / 32))), 0.1)
  1708.  
  1709. end
  1710.  
  1711. CFuncs.Sound.Create("rbxassetid://862198133",char,3,1.3)
  1712.  
  1713. coroutine.resume(coroutine.create(function()
  1714. hed.face.Transparency = 1
  1715. for i,v in pairs(char:GetChildren())do
  1716. if v:IsA("BasePart") then
  1717. coroutine.resume(coroutine.create(function()
  1718. for i = 1,25 do
  1719. swait()
  1720. v.Transparency = v.Transparency + 0.1
  1721. end
  1722. end))
  1723. end
  1724. coroutine.resume(coroutine.create(function()
  1725. if v:IsA("Accessory") then
  1726. for i = 1,25 do
  1727. swait()
  1728. v.Handle.Transparency = v.Handle.Transparency + 0.1
  1729. end
  1730. end
  1731. end))
  1732. end
  1733. for i,v in pairs(char.FirstModeWings:GetChildren())do
  1734. coroutine.resume(coroutine.create(function()
  1735. for i = 1,25 do
  1736. swait()
  1737. v.Transparency = v.Transparency + 0.1
  1738. end
  1739. end))
  1740. end
  1741. end))
  1742. for i = 0,50 do
  1743. swait()
  1744. Sphere.CFrame = Sphere.CFrame * CFrame.new(0,-i/20,0)
  1745. Sphere.Size = Vector3.new(i/100,i/100,i/100)
  1746. sphere2(8,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(i/100,i/100,i/100),-0.01 + i/200,0.05 + i/200,-0.01 + i/200,MAINRUINCOLOR,MAINRUINCOLOR)
  1747. sphere2(4,"Add",Sphere.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),absval*2.5,absval*2.5,absval*2.5,MAINRUINCOLOR)
  1748. sphere2(4,"Add",Sphere.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),absval*5,absval*5,absval*5,MAINRUINCOLOR)
  1749.  
  1750. end
  1751.  
  1752. for i = 0,400 do
  1753. swait()
  1754. kan.PlaybackSpeed = 1 - i/1000
  1755. sphere2(4,"Add",Sphere.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Sphere.Size,0.1,0.1,0.1,MAINRUINCOLOR)
  1756. sphere2(4,"Add",Sphere.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Sphere.Size,0.1,0.1,0.1,MAINRUINCOLOR)
  1757. sphere2(8,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(i/100,i/100,i/100),-0.01 + i/200,0.05 + i/200,-0.01 + i/200,MAINRUINCOLOR,MAINRUINCOLOR)
  1758. end
  1759. Sphere.Size = Vector3.new(400,400,400)
  1760. Sphere.Transparency = 1
  1761.  
  1762. for i = 0, 4 do
  1763. slash(math.random(10,50)/10,5,true,"Round","Add","Out",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(absval/2,0.01,absval/2),math.random(50,5000)/100,BrickColor.new("Really black"))
  1764. end
  1765. Sphere:Destroy()
  1766.  
  1767. CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.25)
  1768. CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.5)
  1769. CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.75)
  1770. CFuncs["Sound"].Create("rbxassetid://1368637781", char, 7.5, 1)
  1771. CFuncs["Sound"].Create("rbxassetid://1368605755", char, 7.5, 1)
  1772. CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.5)
  1773. CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.25)
  1774. CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 1)
  1775. CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 0.75)
  1776. CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.5)
  1777. CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.25)
  1778.  
  1779. kan.PlaybackSpeed = 1
  1780.  
  1781. coroutine.resume(coroutine.create(function()
  1782. hed.face.Transparency = 0
  1783. for i,v in pairs(char:GetChildren())do
  1784. if v:IsA("BasePart") then
  1785. coroutine.resume(coroutine.create(function()
  1786. for i = 1,25 do
  1787. swait()
  1788. v.Transparency = v.Transparency - 0.1
  1789. end
  1790. end))
  1791. end
  1792. coroutine.resume(coroutine.create(function()
  1793. if v:IsA("Accessory") then
  1794. for i = 1,25 do
  1795. swait()
  1796. v.Handle.Transparency = v.Handle.Transparency - 0.1
  1797. end
  1798. end
  1799. end))
  1800. end
  1801. for i,v in pairs(char.FirstModeWings:GetChildren())do
  1802. coroutine.resume(coroutine.create(function()
  1803. for i = 1,25 do
  1804. swait()
  1805. v.Transparency = v.Transparency - 0.1
  1806. end
  1807. end))
  1808. end
  1809. end))
  1810.  
  1811. hum.WalkSpeed = 20
  1812. tempattack.Value = false
  1813. elseif ModeOfGlitch == 2 then
  1814. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1815. elseif ModeOfGlitch == 3 then
  1816. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1817. elseif ModeOfGlitch == 4 then
  1818. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1819. elseif ModeOfGlitch == 5 then
  1820. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1821. elseif ModeOfGlitch == 6 then
  1822. tempattack.Value = true
  1823. local attaccerpart = Instance.new("Part",char)
  1824. attaccerpart.Name = "Ring"
  1825. attaccerpart.Anchored = true
  1826. attaccerpart.CanCollide = false
  1827. attaccerpart.CFrame = tors.CFrame * CFrame.new(0,-4.2,0) * CFrame.new(50,0,0)
  1828. attaccerpart.Transparency = 1
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836. tempcframe = tors.CFrame
  1837. totallytempcframe = tempcframe
  1838.  
  1839. coroutine.resume(coroutine.create(function()
  1840. for i = 0,10 do
  1841. swait()
  1842. tors.CFrame = clerp(tors.CFrame,totallytempcframe * CFrame.new(0,80,0),0.2)
  1843. end
  1844. tors.Anchored = true
  1845. end))
  1846.  
  1847. CFuncs.Sound.Create("rbxassetid://1036016638",char,5,0.3)
  1848.  
  1849. local BeamsSeatOrADickOk = Instance.new("Part",char)
  1850. BeamsSeatOrADickOk.Name = "Ring"
  1851. BeamsSeatOrADickOk.Anchored = true
  1852. BeamsSeatOrADickOk.CanCollide = false
  1853. BeamsSeatOrADickOk.Transparency = 1
  1854.  
  1855. for i = 0,500 do
  1856. swait()
  1857. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(20)),.2)
  1858. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2* math.cos(sine/12)),math.rad(0),math.rad(-19)),.2)
  1859. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(95),math.rad(0),math.rad(0)),.2)
  1860. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.2)
  1861. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(109 - 5 * math.cos(sine / 30))), 0.2)
  1862. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-110 + 5 * math.cos(sine / 32))), 0.2)
  1863. BeamsSeatOrADickOk.CFrame = tors.CFrame*CFrame.new(0,0,-1.6 - i/50)
  1864. sphere3(8,"Add",tors.CFrame*CFrame.new(0,0,-1.6 - i/50)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2 + i/50,2 + i/50,2 + i/50),-0.01,-0.01,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
  1865. sphere3(8,"Add",tors.CFrame*CFrame.new(0,0,-1.6 - i/50)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),-0.01,0.5,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
  1866. end
  1867.  
  1868.  
  1869.  
  1870. local BeamChan = Instance.new("Part",char)
  1871. BeamChan.Name = "Ring"
  1872. BeamChansPanties = Instance.new("SpecialMesh",BeamChan)
  1873. BeamChansPanties.Name = "BeamChansPanties"
  1874. BeamChan.Anchored = true
  1875. BeamChan.CanCollide = false
  1876. BeamChan.Material = Enum.Material.Neon
  1877. BeamChan.Color = Color3.new(Red/255,Green/255,Blue/255)
  1878. BeamChan.Size = Vector3.new(200,200,8)
  1879. BeamChansPanties.MeshType = Enum.MeshType.Cylinder
  1880. BeamChan.CFrame = BeamsSeatOrADickOk.CFrame * CFrame.new(0,0,-100) * CFrame.Angles(0,math.rad(90),0)
  1881.  
  1882.  
  1883. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1.1)
  1884.  
  1885. for i = 0,70 do
  1886. swait()
  1887. CameraEnshaking(4,i/10)
  1888. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(20)),.2)
  1889. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2* math.cos(sine/12)),math.rad(0),math.rad(-19)),.2)
  1890. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(95),math.rad(0),math.rad(0)),.2)
  1891. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.2)
  1892. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(109 - 5 * math.cos(sine / 30))), 0.2)
  1893. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-110 + 5 * math.cos(sine / 32))), 0.2)
  1894. sphere3(8,"Add",BeamsSeatOrADickOk.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2 + 500/50,2 + 500/50,2 + 500/50),-0.01,-0.01,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
  1895. sphere3(8,"Add",BeamsSeatOrADickOk.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),-0.01,0.5,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
  1896. BeamChan.CFrame = BeamsSeatOrADickOk.CFrame * CFrame.new(0,0 + i,-100) * CFrame.Angles(0,math.rad(90),math.rad(0 + i/2))
  1897. BeamChan.Size = Vector3.new(200 + i/2,200,8)
  1898.  
  1899. BeamChan.Color = Color3.new(Red/255,Green/255,Blue/255)
  1900. end
  1901. tors.Anchored = false
  1902.  
  1903. coroutine.resume(coroutine.create(function()
  1904. for i = 1,25 do
  1905. swait()
  1906. BeamChan.Transparency = BeamChan.Transparency + 0.1
  1907. end
  1908. end))
  1909.  
  1910. tempattack.Value = false
  1911. elseif ModeOfGlitch == 7 then
  1912. tempattack.Value = true
  1913. hum.WalkSpeed = 0
  1914. if math.random(1,4) == 1 then
  1915. Chat("I Cant Fight..",MAINRUINCOLOR.Color)
  1916. elseif math.random(1,4) == 2 then
  1917. Chat("..eh...",MAINRUINCOLOR.Color)
  1918. elseif math.random(1,4) == 3 then
  1919. Chat("Let Me Be. ..Alone..",MAINRUINCOLOR.Color)
  1920. elseif math.random(1,4) == 4 then
  1921. Chat("Go Away...",MAINRUINCOLOR.Color)
  1922. end
  1923. hum.WalkSpeed = 20
  1924. tempattack.Value = false
  1925. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1926. elseif ModeOfGlitch == 8 then
  1927. tempattack.Value = true
  1928. hum.WalkSpeed = 0
  1929.  
  1930. for i = 0,10 do
  1931. swait()
  1932. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.1)
  1933. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  1934. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1935. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  1936. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.45 + 0.05 * math.sin(sine / 30), -0.2) * angles(math.rad(40), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-30 - 5 * math.cos(sine / 30))), 0.4)
  1937. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.45 + 0.05 * math.cos(sine / 30), -0.2) * angles(math.rad(41), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(30 + 5 * math.cos(sine / 32))), 0.4)
  1938. end
  1939.  
  1940.  
  1941. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  1942.  
  1943.  
  1944. coroutine.resume(coroutine.create(function()
  1945. for i = 0,3 do
  1946. swait()
  1947. HeartEffect(2 + i,0.5,"Add",tors.CFrame,0.01,0.01,0.01,0.2,MAINRUINCOLOR.Color,0)
  1948. end
  1949. end))
  1950.  
  1951. for i = 0,20 do
  1952. swait()
  1953. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.1)
  1954. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  1955. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1956. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  1957. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.45 + 0.05 * math.sin(sine / 30), -0.2) * angles(math.rad(120), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(30 - 5 * math.cos(sine / 30))), 0.4)
  1958. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.45 + 0.05 * math.cos(sine / 30), -0.2) * angles(math.rad(121), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-30 + 5 * math.cos(sine / 32))), 0.4)
  1959. end
  1960. hum.WalkSpeed = 20
  1961. tempattack.Value = false
  1962. end
  1963. end
  1964.  
  1965. function AttackTwo()
  1966. if ModeOfGlitch == 1 then
  1967. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1968. elseif ModeOfGlitch == 2 then
  1969. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1970. elseif ModeOfGlitch == 3 then
  1971. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1972. elseif ModeOfGlitch == 4 then
  1973. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1974. elseif ModeOfGlitch == 5 then
  1975. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1976. elseif ModeOfGlitch == 6 then
  1977. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1978. elseif ModeOfGlitch == 7 then
  1979. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1980. elseif ModeOfGlitch == 8 then
  1981. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1982. end
  1983. end
  1984.  
  1985. function AttackThree()
  1986. if ModeOfGlitch == 1 then
  1987. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1988. elseif ModeOfGlitch == 2 then
  1989. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1990. elseif ModeOfGlitch == 3 then
  1991. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1992. elseif ModeOfGlitch == 4 then
  1993. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1994. elseif ModeOfGlitch == 5 then
  1995. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1996. elseif ModeOfGlitch == 6 then
  1997. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  1998. elseif ModeOfGlitch == 7 then
  1999. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  2000. elseif ModeOfGlitch == 8 then
  2001. print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
  2002. end
  2003. end
  2004.  
  2005.  
  2006. while true do
  2007. swait()
  2008. if(Hue > 360)then Hue = 0 end
  2009. Hue = Hue + 1
  2010.  
  2011.  
  2012. sine = sine + change
  2013.  
  2014. if ModeOfGlitch ~= 7 then
  2015. FirstModeWingWeld1.C0 = clerp(FirstModeWingWeld1.C0, CFrame.new(-4,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(10 * math.cos(sine / 26))), 0.4)
  2016. FirstModeWingWeld2.C0 = clerp(FirstModeWingWeld2.C0, CFrame.new(4,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-10 * math.cos(-sine / 26))), 0.4)
  2017. FirstModeWingWeld3.C0 = clerp(FirstModeWingWeld3.C0, CFrame.new(-7,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(15 * math.cos(sine / 26))), 0.4)
  2018. FirstModeWingWeld4.C0 = clerp(FirstModeWingWeld4.C0, CFrame.new(7,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-15 * math.cos(-sine / 26))), 0.4)
  2019. FirstModeWingWeld5.C0 = clerp(FirstModeWingWeld5.C0, CFrame.new(-10,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(20 * math.cos(sine / 26))), 0.4)
  2020. FirstModeWingWeld6.C0 = clerp(FirstModeWingWeld6.C0, CFrame.new(10,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-20 * math.cos(-sine / 26))), 0.4)
  2021. elseif ModeOfGlitch == 7 then
  2022. FirstModeWingWeld1.C0 = clerp(FirstModeWingWeld1.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(60 + kan.PlaybackLoudness/20 + sine)), 0.4)
  2023. FirstModeWingWeld2.C0 = clerp(FirstModeWingWeld2.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(120 + kan.PlaybackLoudness/20 + sine)), 0.4)
  2024. FirstModeWingWeld3.C0 = clerp(FirstModeWingWeld3.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(180 + kan.PlaybackLoudness/20 + sine)), 0.4)
  2025. FirstModeWingWeld4.C0 = clerp(FirstModeWingWeld4.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(240 + kan.PlaybackLoudness/20 + sine)), 0.4)
  2026. FirstModeWingWeld5.C0 = clerp(FirstModeWingWeld5.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(300 + kan.PlaybackLoudness/20 + sine)), 0.4)
  2027. FirstModeWingWeld6.C0 = clerp(FirstModeWingWeld6.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(360 + kan.PlaybackLoudness/20 + sine)), 0.4)
  2028. end
  2029. if ModeOfGlitch == 1 then
  2030. if hitfloor ~= nil then
  2031. if MRANDOM(1,9) == 1 then
  2032. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(15,30)/30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2033. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2034. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2035. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2036. if MRANDOM(1,7) == 1 then
  2037. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2038. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2039. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2040. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2041. end
  2042. end
  2043. end
  2044. end
  2045.  
  2046.  
  2047. if ModeOfGlitch == 4 then
  2048. if hitfloor ~= nil then
  2049. if MRANDOM(1,6) == 1 then
  2050. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(15,30)/30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2051. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2052. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2053. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -30, RotationZ = 0, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2054. if MRANDOM(1,3) == 1 then
  2055. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0.4, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2056. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2057. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2058. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2059. end
  2060. end
  2061. end
  2062. end
  2063.  
  2064. if ModeOfGlitch == 5 then
  2065. if hitfloor ~= nil then
  2066. sphereMK(3,0,"Add",tors.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(math.rad(90),0,0),1,1,1,0.1,MAINRUINCOLOR.Color,0)
  2067. end
  2068. end
  2069.  
  2070. if ModeOfGlitch == 6 then
  2071. if hitfloor ~= nil then
  2072. if MRANDOM(1,2) == 1 then
  2073. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8,0), MoveToPos = nil, RotationX = 0, RotationY = 30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2074. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8,0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = FirstModeWings.WingTwo.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2075. sphere3(8,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2 + kan.PlaybackLoudness/1000,2+ kan.PlaybackLoudness/1000,2+ kan.PlaybackLoudness/1000),-0.01,-0.01,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
  2076. sphere3(8,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),-0.01,0.5,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
  2077.  
  2078. end
  2079. end
  2080. end
  2081.  
  2082. if ModeOfGlitch == 7 then
  2083. if hitfloor ~= nil then
  2084. if MRANDOM(1,2) == 1 then
  2085. WACKYEFFECT({EffectType = "Slash", Size = VT(0 * math.cos(sine/30),0.05 * math.cos(sine/30),0 * math.cos(sine/30)), Size2 = VT(0.25 * math.cos(sine/30),0.05 * math.cos(sine/30),0.25 * math.cos(sine/30)), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2086. WACKYEFFECT({EffectType = "Round Slash", Size = VT(0 * math.cos(sine/30),0.05 * math.cos(sine/30),0 * math.cos(sine/30)), Size2 = VT(0.25 * math.cos(sine/30),0.05 * math.cos(sine/30),0.25 * math.cos(sine/30)), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Deep blue").Color , SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2087. end
  2088. end
  2089. end
  2090.  
  2091.  
  2092. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  2093. local velderp=root.Velocity.y
  2094. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2095. if tempattack.Value == false then
  2096. if root.Velocity.y > 1 and hitfloor==nil then
  2097. Anim="Jump"
  2098. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-0.4 - 0.05 * math.cos(sine / 28),-0.4)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  2099. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-0.8 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  2100. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/4),math.rad(0),math.rad(0)),.1)
  2101. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  2102. 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)
  2103. 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)
  2104. elseif torvel<1 and hitfloor~=nil then
  2105. Anim="Idle"
  2106. if ModeOfGlitch == 1 then
  2107. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2108. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2109. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2110. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  2111. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-16 - 5 * math.cos(sine / 30))), 0.1)
  2112. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(18 + 5 * math.cos(sine / 32))), 0.1)
  2113. elseif ModeOfGlitch == 2 then
  2114. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(6 - 5 * math.cos(sine / 10))),.1)
  2115. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(31.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 10))),.1)
  2116. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 1 * math.cos(sine / 13))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  2117. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(-30)),.1)
  2118. if math.random(1,10) == 5 then
  2119. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(math.random(-20,20)),math.rad(0),math.rad(math.random(-20,20))),.4)
  2120. end
  2121. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(18 + 2 * math.cos(sine / 13)), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(5 - 5 * math.cos(sine / 10))), 0.1)
  2122. sphere2(8,"Add",ra.CFrame*CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(50/100,50/100,50/100),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR)
  2123. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(20 - 2.5 * math.cos(sine / 13)), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-5 + 5 * math.cos(sine / 10))), 0.1)
  2124. sphere2(8,"Add",la.CFrame*CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(50/100,50/100,50/100),-0.01,0.05,-0.01,BrickColor.new("Black"),BrickColor.new("Black"))
  2125. elseif ModeOfGlitch == 3 then
  2126. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.1)
  2127. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(-5)),.1)
  2128. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2129. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(20 + 7 * math.cos(sine/34)),math.rad(0),math.rad(0)),.1)
  2130. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(16 - 0.5 * math.cos(sine / 16))), 0.1)
  2131. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-18 + 0.5 * math.cos(sine / 16))), 0.1)
  2132. elseif ModeOfGlitch == 4 then
  2133. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2134. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2135. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2136. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
  2137. RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.5 + 0.05 * math.sin(sine / 30), -0.5) * angles(math.rad(0), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-86)), 0.1)
  2138. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5 + 0.05 * math.cos(sine / 30), -0.5) * angles(math.rad(20), math.rad(27 + 2 * math.cos(sine / 43)), math.rad(90)), 0.1)
  2139. elseif ModeOfGlitch == 5 then
  2140. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
  2141. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  2142. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(10),math.rad(0)),.1)
  2143. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(20),math.rad(0)),.1)
  2144. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(0), math.rad(-0 - 2 * math.cos(sine / 43)), math.rad(-20)), 0.1)
  2145. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(0), math.rad(-0 + 2 * math.cos(sine / 43)), math.rad(20)), 0.1)
  2146. elseif ModeOfGlitch == 6 then
  2147. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2148. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2149. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2150. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2151. 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)
  2152. LW.C0=clerp(LW.C0,cf(-1.4,1.17 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(190 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(-30 + 5 * math.cos(sine / 46))),.4)
  2153.  
  2154. elseif ModeOfGlitch == 7 then
  2155. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-40.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2156. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-50.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2157. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(-80),math.rad(0),math.rad(0)),.1)
  2158. tors.Neck.C0=clerp(tors.Neck.C0,necko*CFrame.new(0,-0.4,0)*angles(math.rad(60),math.rad(0),math.rad(0)),.1)
  2159. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.7 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(220 - 5 * math.cos(sine / 30))), 0.1)
  2160. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.7 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-216 + 5 * math.cos(sine / 32))), 0.1)
  2161. elseif ModeOfGlitch == 8 then
  2162. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.4)
  2163. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.4)
  2164. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
  2165. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(10),math.rad(10)),.4)
  2166. RW.C0 = clerp(RW.C0, CFrame.new(0.85, 0.5 + 0.05 * math.sin(sine / 30), 0.6) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-26 - 5 * math.cos(sine / 30))), 0.4)
  2167. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 + 0.05 * math.cos(sine / 30), 0.63) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(28 + 5 * math.cos(sine / 32))), 0.4)
  2168.  
  2169. end
  2170. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2171. Anim="Walk"
  2172. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
  2173. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2174. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2175. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2176. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 - 3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(14 - 2.5 * Sin(sine / 20))), 0.1)
  2177. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 + 4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-14 + 2.5 * Sin(sine / 20))), 0.1)
  2178. elseif torvel>22 and hitfloor~=nil then
  2179. Anim="Run"
  2180. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
  2181. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2182. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2183. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
  2184. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 - 3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(14 - 2.5 * Sin(sine / 20))), 0.1)
  2185. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 + 4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-14 + 2.5 * Sin(sine / 20))), 0.1)
  2186. elseif root.Velocity.y < -1 and hitfloor==nil then
  2187. Anim="Fall"
  2188. rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  2189. ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  2190. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/2),math.rad(0),math.rad(0)),.1)
  2191. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  2192. 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)
  2193. 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)
  2194. end
  2195. end
  2196. end
Add Comment
Please, Sign In to add comment