Advertisement
PR0J3CT11

Untitled

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