Advertisement
PR0J3CT11

Untitled

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