Advertisement
Fullgamer309

just a test

Apr 9th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 332.45 KB | None | 0 0
  1. --TODO: add comments or something idk
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player = owner
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63.  
  64. local Char = Player.Character
  65. local Event = Char:WaitForChild("UserInput_Event")
  66.  
  67. local UIS = game:GetService("UserInputService")
  68.  
  69. local input = function(io,a)
  70. if a then return end
  71. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  72. Event:FireServer(io)
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local Changed = false
  77. local Mouse = Player:GetMouse()
  78. local h,t = Mouse.Hit,Mouse.Target
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  82. h,t=Mouse.Hit,Mouse.Target
  83. end
  84. end
  85. ]==],Player.Character)
  86. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  87. end
  88.  
  89.  
  90. wait(0.5)
  91.  
  92. warn([[SG AWAKEN Loaded.
  93. The super switcher.
  94. Velnorum is one of the first wielders.
  95.  
  96. Created, Reworked by jh0nd0eone and converted by jh0nd0eone
  97. ]])
  98.  
  99.  
  100. ------------- ORIGINAL WIELDER OC: Velnorum
  101. print([[Icons:
  102. ! = New
  103. ? = Spoilers
  104. * = Exclusivity
  105. C = Changes
  106.  
  107. ]])
  108. warn([[V 4.1 Update Log:
  109. !C? - Mostly about 7-9 main modes added.
  110. ! - Non-canon [N] modes are added from few modes:
  111. > Star: Friendly star
  112. >Colorblind_star: Star's light
  113. > Insane star: Star's determanation
  114. > undone star: star's corrupted catastropheu
  115. > Star's destiny: star's lost light
  116. > Master of Tides
  117. > controlled-star
  118. > Star's solitude
  119.  
  120.  
  121.  
  122. ========> !!!SUB TO PEWDIEPIE!!!! <=========
  123.  
  124.  
  125.  
  126. ! - Added back CALAMITY and INFESTATION.
  127. C - Two main click attacks changed.
  128. !C - Moves are added back, with severe change and difference.
  129. C - Some modes got renamed because fat filter
  130. C - Toned down the effects to be compatible with fe without strong lag.]])
  131. --- its obs smooth af do not touch
  132. ---- Sources and functions might be taken from others
  133. plr = owner
  134. char = plr.Character
  135. hum = char.Humanoid
  136. local cam = game.Workspace.CurrentCamera
  137. Camera = cam
  138. local CamInterrupt = false
  139. local TwoD = false
  140. local TargetInfo = {nil, nil}
  141. cam.CameraType = "Custom"
  142. t = char.Torso
  143. h = char.Head
  144. ra = char["Right Arm"]
  145. la = char["Left Arm"]
  146. rl = char["Right Leg"]
  147. ll = char["Left Leg"]
  148. tors = char.Torso
  149. lleg = char["Left Leg"]
  150. root = char.HumanoidRootPart
  151. hed = char.Head
  152. rleg = char["Right Leg"]
  153. rarm = char["Right Arm"]
  154. larm = char["Left Arm"]
  155. radian = math.rad
  156. random = math.random
  157. Vec3 = Vector3.new
  158. Inst = Instance.new
  159. cFrame = CFrame.new
  160. Euler = CFrame.fromEulerAnglesXYZ
  161. vt = Vector3.new
  162. bc = BrickColor.new
  163. br = BrickColor.random
  164. it = Instance.new
  165. cf = CFrame.new
  166.  
  167. local Booleans = {
  168. CamFollow = true,
  169. GyroUse = true
  170. }
  171.  
  172. function lerp(object, newCFrame, alpha)
  173. return object:lerp(newCFrame, alpha)
  174. end
  175.  
  176. local Directer = Inst("BodyGyro", root)
  177. Directer.MaxTorque = Vec3(0, 0, 0)
  178. Directer.P = 600000
  179. local CPart = Inst("Part")
  180. CPart.Anchored = true
  181. CPart.CanCollide = false
  182. CPart.Locked = true
  183. CPart.Transparency = 1
  184.  
  185. local rainbowmode = false
  186. local chaosmode = false
  187.  
  188. local kan = Instance.new("Sound",char)
  189. kan.Volume = 1.25
  190. kan.TimePosition = 0
  191. kan.PlaybackSpeed = 1
  192. kan.Pitch = 1
  193. kan.SoundId = "rbxassetid://1537276744"
  194. kan.Name = "wrecked"
  195. kan.Looped = true
  196. kan:Play()
  197.  
  198. local currentThemePlaying = kan.SoundId
  199. local currentPitch = kan.Pitch
  200. local currentVol = kan.Volume
  201. function newTheme(ID,timepos,pitch,vol)
  202. local kanz = kan
  203. --kanz:Stop()
  204. kanz.Volume = vol
  205. --kanz.TimePosition = timepos
  206. kanz.PlaybackSpeed = pitch
  207. kanz.Pitch = pitch
  208. kanz.SoundId = ID
  209. kanz.Name = "wrecked"
  210. kanz.Looped = true
  211. currentThemePlaying = kanz.SoundId
  212. currentVol = kanz.Volume
  213. currentPitch = kanz.Pitch
  214. --kanz:Play()
  215. --coroutine.resume(coroutine.create(function()
  216. --wait(0.05)
  217. --end))
  218. end
  219.  
  220.  
  221. function newThemeCust(ID,timepos,pitch,vol)
  222. local kanz = kan
  223. kanz:Stop()
  224. kanz.Volume = vol
  225. kanz.TimePosition = timepos
  226. kanz.PlaybackSpeed = pitch
  227. kanz.Pitch = pitch
  228. kanz.SoundId = ID
  229. kanz.Name = "wrecked"
  230. kanz.Looped = true
  231. currentThemePlaying = kanz.SoundId
  232. currentVol = kanz.Volume
  233. currentPitch = kanz.Pitch
  234. kanz:Play()
  235. coroutine.resume(coroutine.create(function()
  236. wait(0.05)
  237. end))
  238. end
  239.  
  240. local mutedtog = false
  241.  
  242. function CameraEnshaking(Length,Intensity)
  243. coroutine.resume(coroutine.create(function()
  244. local intensity = 1*Intensity
  245. local rotM = 0.01*Intensity
  246. for i = 0, Length, 0.1 do
  247. intensity = intensity - 0.05*Intensity/Length
  248. rotM = rotM - 0.0005*Intensity/Length
  249. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  250. 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)
  251. end
  252. Humanoid.CameraOffset = Vec3(0, 0, 0)
  253. end))
  254. end
  255. CamShake=function(Part,Distan,Power,Times)
  256. local de=Part.Position
  257. for i,v in pairs(workspace:children()) do
  258. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  259. for _,c in pairs(v:children()) do
  260. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  261. local Noob=v.Humanoid
  262. if Noob~=nil then
  263. coroutine.resume(coroutine.create(function()
  264. FV = Instance.new("BoolValue", Noob)
  265. FV.Name = "CameraShake"
  266. for ShakeNum=1,Times do
  267. swait()
  268. local ef=Power
  269. if ef>=1 then
  270. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  271. else
  272. ef=Power*10
  273. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  274. end
  275. end
  276. Humanoid.CameraOffset = Vector3.new(0,0,0)
  277. FV:Destroy()
  278. end))
  279. CameraShake(Times, Power, Noob)
  280. end
  281. end
  282. end
  283. end
  284. end
  285. end
  286.  
  287. local toggleTag = true
  288. local bilguit = Instance.new("BillboardGui", hed)
  289. bilguit.Adornee = nil
  290. bilguit.Name = "ModeName"
  291. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  292. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  293. local modet = Instance.new("TextLabel", bilguit)
  294. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  295. modet.FontSize = "Size8"
  296. modet.TextScaled = true
  297. modet.TextTransparency = 0
  298. modet.BackgroundTransparency = 1
  299. modet.TextTransparency = 0
  300. modet.TextStrokeTransparency = 0
  301. modet.Font = "Antique"
  302. modet.TextStrokeColor3 = Color3.new(1,0,0)
  303. modet.TextColor3 = Color3.new(0.25,0,0)
  304. modet.Text = "Vendetta"
  305.  
  306.  
  307. function chatfunc(text,color,typet,font,timeex)
  308. local chat = coroutine.wrap(function()
  309. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  310. Character:FindFirstChild("TalkingBillBoard"):destroy()
  311. end
  312. local naeeym2 = Instance.new("BillboardGui",Character)
  313. naeeym2.Size = UDim2.new(0,100,0,40)
  314. naeeym2.StudsOffset = Vector3.new(0,3,0)
  315. naeeym2.Adornee = Character.Head
  316. naeeym2.Name = "TalkingBillBoard"
  317. local tecks2 = Instance.new("TextLabel",naeeym2)
  318. tecks2.BackgroundTransparency = 1
  319. tecks2.BorderSizePixel = 0
  320. tecks2.Text = ""
  321. tecks2.Font = font
  322. tecks2.TextSize = 30
  323. tecks2.TextStrokeTransparency = 0
  324. tecks2.TextColor3 = color
  325. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  326. tecks2.Size = UDim2.new(1,0,0.5,0)
  327. local tecks3 = Instance.new("TextLabel",naeeym2)
  328. tecks3.BackgroundTransparency = 1
  329. tecks3.BorderSizePixel = 0
  330. tecks3.Text = ""
  331. tecks3.Font = font
  332. tecks3.TextSize = 30
  333. tecks3.TextStrokeTransparency = 0
  334. if typet == "Inverted" then
  335. tecks3.TextColor3 = Color3.new(0,0,0)
  336. tecks3.TextStrokeColor3 = color
  337. elseif typet == "Normal" then
  338. tecks3.TextColor3 = color
  339. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  340. end
  341. tecks3.Size = UDim2.new(1,0,0.5,0)
  342. coroutine.resume(coroutine.create(function()
  343. while true do
  344. swait(1)
  345. if chaosmode == true then
  346. tecks2.TextColor3 = BrickColor.random().Color
  347. tecks3.TextStrokeColor3 = BrickColor.random().Color
  348. end
  349. end
  350. end))
  351. modet.TextTransparency = modet.TextTransparency + 1
  352. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  353. for i = 0, 74*timeex do
  354. swait()
  355. modet.TextTransparency = 1
  356. modet.TextStrokeTransparency = 1
  357. tecks2.Text = text
  358. tecks3.Text = text
  359. end
  360. local randomrot = math.random(1,2)
  361. if randomrot == 1 then
  362. for i = 1, 50 do
  363. swait()
  364. tecks2.Text = text
  365. tecks3.Text = text
  366. modet.TextTransparency = modet.TextTransparency - .02
  367. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  368. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  369. tecks2.TextTransparency = tecks2.TextTransparency + .04
  370. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks3.TextTransparency = tecks2.TextTransparency + .04
  372. end
  373. elseif randomrot == 2 then
  374. for i = 1, 50 do
  375. swait()
  376. tecks2.Text = text
  377. tecks3.Text = text
  378. modet.TextTransparency = modet.TextTransparency - .02
  379. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  380. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  381. tecks2.TextTransparency = tecks2.TextTransparency + .04
  382. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  383. tecks3.TextTransparency = tecks2.TextTransparency + .04
  384. end
  385. end
  386. modet.TextTransparency = 0
  387. modet.TextStrokeTransparency = 0
  388. if toggleTag == false then
  389. modet.TextTransparency = 1
  390. modet.TextStrokeTransparency = 1
  391. end
  392. naeeym2:Destroy()
  393. end)
  394. chat()
  395. end
  396.  
  397. function bosschatfunc(text,color,watval)
  398. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  399. coroutine.resume(coroutine.create(function()
  400. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  401. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  402. end
  403. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  404. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  405. scrg.Name = "Dialog"
  406. local txtlb = Instance.new("TextLabel",scrg)
  407. txtlb.Text = ""
  408. txtlb.Font = "Bodoni"
  409. txtlb.TextColor3 = Color3.new(0,0,0)
  410. txtlb.TextStrokeTransparency = 0
  411. txtlb.BackgroundTransparency = 0.75
  412. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  413. txtlb.TextStrokeColor3 = color
  414. txtlb.TextScaled = true
  415. txtlb.Size = UDim2.new(1,0,0.25,0)
  416. txtlb.TextXAlignment = "Left"
  417. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  418. local txtlb2 = Instance.new("TextLabel",scrg)
  419. txtlb2.Text = "Vendetta:"
  420. txtlb2.Font = "Arcade"
  421. txtlb2.TextColor3 = Color3.new(0,0,0)
  422. txtlb2.TextStrokeTransparency = 0
  423. txtlb2.BackgroundTransparency = 1
  424. txtlb2.TextStrokeColor3 = color
  425. txtlb2.TextSize = 40
  426. txtlb2.Size = UDim2.new(1,0,0.25,0)
  427. txtlb2.TextXAlignment = "Left"
  428. txtlb2.Position = UDim2.new(0,0,1,0)
  429. local fvalen = 0.55
  430. local fval = -0.49
  431. coroutine.resume(coroutine.create(function()
  432. while true do
  433. swait()
  434. end))
  435. end
  436.  
  437. function newBezier(startpos, pos2, pos3, endpos, t)
  438. local A = clerp(startpos, pos2, t)
  439. local B = clerp(pos2, pos3, t)
  440. local C = clerp(pos3, endpos, t)
  441. local lerp1 = clerp(A, B, t)
  442. local lerp2 = clerp(B, C, t)
  443. local cubic = clerp(lerp1, lerp2, t)
  444. return cubic
  445. end
  446.  
  447.  
  448. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,heart,invert)
  449. local type = type
  450. local rng = Instance.new("Part", char)
  451. rng.Anchored = true
  452. rng.BrickColor = color
  453. rng.CanCollide = false
  454. rng.FormFactor = 3
  455. rng.Name = "Ring"
  456. rng.Material = "Neon"
  457. rng.Size = Vector3.new(1, 1, 1)
  458. rng.Transparency = 0
  459. rng.TopSurface = 0
  460. rng.BottomSurface = 0
  461. rng.CFrame = pos
  462. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  463. local rngm = Instance.new("SpecialMesh", rng)
  464. rngm.MeshType = "Brick"
  465. if(heart)then
  466. rngm.MeshType = Enum.MeshType.FileMesh
  467. rngm.MeshId = "rbxassetid://105992239"
  468. rngm.Offset = Vector3.new(0,0,-.25)
  469. end
  470. rngm.Scale = vt(x1,y1,z1)
  471. if rainbowmode == true then
  472. rng.Color = Color3.new(r/255,g/255,b/255)
  473. end
  474. local scaler2 = 1
  475. local speeder = FastSpeed/10
  476. if type == "Add" then
  477. scaler2 = 1*value
  478. elseif type == "Divide" then
  479. scaler2 = 1/value
  480. end
  481. coroutine.resume(coroutine.create(function()
  482. for i = 0,10/bonuspeed,0.1 do
  483. swait()
  484. if rainbowmode == true then
  485. rng.Color = Color3.new(r/255,g/255,b/255)
  486. end
  487. if type == "Add" then
  488. scaler2 = scaler2 - 0.01*value/bonuspeed
  489. elseif type == "Divide" then
  490. scaler2 = scaler2 - 0.01/value*bonuspeed
  491. end
  492. if chaosmode == true then
  493. rng.BrickColor = BrickColor.random()
  494. end
  495.  
  496.  
  497. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,heart,invert)
  498. local type = type
  499. local rng = Instance.new("Part", char)
  500. rng.Anchored = true
  501. rng.BrickColor = color
  502. rng.CanCollide = false
  503. rng.FormFactor = 3
  504. rng.Name = "Ring"
  505. rng.Material = "Neon"
  506. rng.Size = Vector3.new(1, 1, 1)
  507. rng.Transparency = 0
  508. rng.TopSurface = 0
  509. rng.BottomSurface = 0
  510. rng.CFrame = pos
  511. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  512. local rngm = Instance.new("SpecialMesh", rng)
  513. rngm.MeshType = "Brick"
  514. if(heart)then
  515. rngm.MeshType = Enum.MeshType.FileMesh
  516. rngm.MeshId = "rbxassetid://105992239"
  517. rngm.Offset = Vector3.new(0,0,-.25)
  518. end
  519. rngm.Scale = vt(x1,y1,z1)
  520. if rainbowmode == true then
  521. rng.Color = Color3.new(r/255,g/255,b/255)
  522. end
  523. local scaler2 = 0
  524. local speeder = FastSpeed/10
  525. if type == "Add" then
  526. scaler2 = 1*value
  527. elseif type == "Divide" then
  528. scaler2 = 1/value
  529. end
  530. coroutine.resume(coroutine.create(function()
  531. for i = 0,10/bonuspeed,0.1 do
  532. swait()
  533. if rainbowmode == true then
  534. rng.Color = Color3.new(r/255,g/255,b/255)
  535. end
  536. if type == "Add" then
  537. scaler2 = scaler2 - 0.01*value/bonuspeed
  538. elseif type == "Divide" then
  539. scaler2 = scaler2 - 0.01/value*bonuspeed
  540. end
  541. if chaosmode == true then
  542. rng.BrickColor = BrickColor.random()
  543. end
  544. if glitchymode then
  545. local val = math.random(1,255)
  546. local color = Color3.fromRGB(val,val,val)
  547. rng.Color = color
  548. end
  549. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  550. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  551. if(invert)then rng.CFrame = rng.CFrame - rng.CFrame.lookVector*speeder*bonuspeed else rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed end
  552. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  553. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  554. end
  555. rng:Destroy()
  556. end))
  557. end
  558.  
  559. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  560. local type = type
  561. local rng = Instance.new("Part", char)
  562. rng.Anchored = true
  563. rng.BrickColor = color
  564. rng.CanCollide = false
  565. rng.FormFactor = 3
  566. rng.Name = "Ring"
  567. rng.Material = "Neon"
  568. rng.Size = Vector3.new(1, 1, 1)
  569. rng.Transparency = 0
  570. rng.TopSurface = 0
  571. rng.BottomSurface = 0
  572. rng.CFrame = pos
  573. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  574. local rngm = Instance.new("SpecialMesh", rng)
  575. rngm.MeshType = "Sphere"
  576. rngm.Scale = vt(x1,y1,z1)
  577. if rainbowmode == true then
  578. rng.Color = Color3.new(r/255,g/255,b/255)
  579. end
  580. local scaler2 = 1
  581. local speeder = FastSpeed
  582. if type == "Add" then
  583. scaler2 = 1*value
  584. elseif type == "Divide" then
  585. scaler2 = 1/value
  586. end
  587. coroutine.resume(coroutine.create(function()
  588. for i = 0,10/bonuspeed,0.1 do
  589. swait()
  590. if rainbowmode == true then
  591. rng.Color = Color3.new(r/255,g/255,b/255)
  592. end
  593. if type == "Add" then
  594. scaler2 = scaler2 - 0.01*value/bonuspeed
  595. elseif type == "Divide" then
  596. scaler2 = scaler2 - 0.01/value*bonuspeed
  597. end
  598. if chaosmode == true then
  599. rng.BrickColor = BrickColor.random()
  600. end
  601. if glitchymode then
  602. local val = math.random(1,255)
  603. local color = Color3.fromRGB(val,val,val)
  604. rng.Color = color
  605. end
  606. speeder = speeder - 0.01*FastSpeed*bonuspeed
  607. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  608. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  609. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  610. end
  611. rng:Destroy()
  612. end))
  613. end
  614.  
  615.  
  616. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  617. local type = type
  618. local rng = Instance.new("Part", char)
  619. rng.Anchored = true
  620. rng.BrickColor = color
  621. rng.CanCollide = false
  622. rng.FormFactor = 3
  623. rng.Name = "Ring"
  624. rng.Material = "Neon"
  625. rng.Size = Vector3.new(1, 1, 1)
  626. rng.Transparency = 1
  627. rng.TopSurface = 0
  628. rng.BottomSurface = 0
  629. rng.CFrame = pos
  630. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  631. local rngm = Instance.new("SpecialMesh", rng)
  632. rngm.MeshType = "Sphere"
  633. rngm.Scale = vt(x1,y1,z1)
  634. if rainbowmode == true then
  635. rng.Color = Color3.new(r/255,g/255,b/255)
  636. end
  637. local scaler2 = 1
  638. local speeder = FastSpeed
  639. if type == "Add" then
  640. scaler2 = 1*value
  641. elseif type == "Divide" then
  642. scaler2 = 1/value
  643. end
  644. coroutine.resume(coroutine.create(function()
  645. for i = 0,10/bonuspeed,0.1 do
  646. swait()
  647. if rainbowmode == true then
  648. rng.Color = Color3.new(r/255,g/255,b/255)
  649. end
  650. if type == "Add" then
  651. scaler2 = scaler2 - 0.01*value/bonuspeed
  652. elseif type == "Divide" then
  653. scaler2 = scaler2 - 0.01/value*bonuspeed
  654. end
  655. if chaosmode == true then
  656. rng.BrickColor = BrickColor.random()
  657. end
  658. if glitchymode then
  659. local val = math.random(1,255)
  660. local color = Color3.fromRGB(val,val,val)
  661. rng.Color = color
  662. end
  663. speeder = speeder - 0.01*FastSpeed*bonuspeed
  664. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  665. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  666. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  667. end
  668. rng:Destroy()
  669. end))
  670. end
  671.  
  672. function dmg(dude)
  673. if dude.Name ~= Character then
  674. local bgf = Instance.new("BodyGyro",dude.Head)
  675. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  676. local val = Instance.new("BoolValue",dude)
  677. val.Name = "IsHit"
  678. local ds = coroutine.wrap(function()
  679. local torso = dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso'
  680. for i = 1, 10 do
  681. sphereMK(1.5,2,"Add",torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,25,-.01,BrickColor.new("White"),0,true)
  682. end
  683. dude:WaitForChild("Head"):BreakJoints()
  684. wait(0.5)
  685. targetted = nil
  686. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  687.  
  688. coroutine.resume(coroutine.create(function()
  689. for i, v in pairs(dude:GetChildren()) do
  690. if v:IsA("Accessory") then
  691. v:Destroy()
  692. end
  693. if v:IsA("Humanoid") then
  694. v:Destroy()
  695. end
  696. if v:IsA("CharacterMesh") then
  697. v:Destroy()
  698. end
  699. if v:IsA("Model") then
  700. v:Destroy()
  701. end
  702. if v:IsA("Part") or v:IsA("MeshPart") then
  703. for x, o in pairs(v:GetChildren()) do
  704. if o:IsA("Decal") then
  705. o:Destroy()
  706.  
  707.  
  708.  
  709.  
  710.  
  711. if chaosmode == true then
  712. txtlb.Rotation = math.random(-1,1)
  713. txtlb2.Rotation = math.random(-1,1)
  714. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  715. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  716. txtlb.TextStrokeColor3 = BrickColor.random().Color
  717. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  718. end
  719. end
  720. end))
  721. coroutine.resume(coroutine.create(function()
  722. while true do
  723. swait()
  724. if scrg.Parent ~= nil then
  725. fvalen = fvalen - 0.0001
  726. elseif scrg.Parent == nil then
  727. break
  728. end
  729. end
  730. end))
  731. local flol = 1.75
  732. local flil = 1.6
  733. coroutine.resume(coroutine.create(function()
  734. for i = 0, 9 do
  735. swait()
  736. fval = fval + 0.05
  737. flol = flol - 0.1
  738. flil = flil - 0.1
  739. txtlb.Text = ""
  740. txtlb.Position = UDim2.new(0,0,flol,0)
  741. txtlb2.Position = UDim2.new(0,0,flil,0)
  742. end
  743. txtlb.Text = text
  744. wait(watval)
  745. local valinc = 0
  746. for i = 0, 99 do
  747. swait()
  748. valinc = valinc + 0.0001
  749. flol = flol + valinc
  750. flil = flil + valinc
  751. txtlb.Rotation = txtlb.Rotation + valinc*20
  752. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  753. txtlb.Position = UDim2.new(0,0,flol,0)
  754. txtlb2.Position = UDim2.new(0,0,flil,0)
  755. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  756. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  757. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  758. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  759. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  760. end
  761. scrg:Destroy()
  762. end))
  763. end))
  764. end
  765. end
  766.  
  767.  
  768. local Create = LoadLibrary("RbxUtility").Create
  769.  
  770. CFuncs = {
  771. ["Part"] = {
  772. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  773. local Part = Create("Part"){
  774. Parent = Parent,
  775. Reflectance = Reflectance,
  776. Transparency = Transparency,
  777. CanCollide = false,
  778. Locked = true,
  779. BrickColor = BrickColor.new(tostring(BColor)),
  780. Name = Name,
  781. Size = Size,
  782. Material = Material,
  783. }
  784. RemoveOutlines(Part)
  785. return Part
  786. end;
  787. };
  788.  
  789. ["Mesh"] = {
  790. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  791. local Msh = Create(Mesh){
  792. Parent = Part,
  793. Offset = OffSet,
  794. Scale = Scale,
  795. }
  796. if Mesh == "SpecialMesh" then
  797. Msh.MeshType = MeshType
  798. Msh.MeshId = MeshId
  799. end
  800. return Msh
  801. end;
  802. };
  803.  
  804. ["Mesh"] = {
  805. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  806. local Msh = Create(Mesh){
  807. Parent = Part,
  808. Offset = OffSet,
  809. Scale = Scale,
  810. }
  811. if Mesh == "SpecialMesh" then
  812. Msh.MeshType = MeshType
  813. Msh.MeshId = MeshId
  814. end
  815. return Msh
  816. end;
  817. };
  818.  
  819. ["Weld"] = {
  820. Create = function(Parent, Part0, Part1, C0, C1)
  821. local Weld = Create("Weld"){
  822. Parent = Parent,
  823. Part0 = Part0,
  824. Part1 = Part1,
  825. C0 = C0,
  826. C1 = C1,
  827. }
  828. return Weld
  829. end;
  830. };
  831.  
  832. ["Sound"] = {
  833. Create = function(id, par, vol, pit)
  834. coroutine.resume(coroutine.create(function()
  835. local S = Create("Sound"){
  836. Volume = vol,
  837. Name = "EffectSoundo",
  838. Pitch = pit or 1,
  839. SoundId = id,
  840. Parent = par or workspace,
  841. }
  842. wait()
  843. S:play()
  844. game:GetService("Debris"):AddItem(S, 10)
  845. end))
  846. end;
  847. };
  848.  
  849. ["TimeSound"] = {
  850. Create = function(id, par, vol, pit, timepos)
  851. coroutine.resume(coroutine.create(function()
  852. local S = Create("Sound"){
  853. Volume = vol,
  854. Name = "EffectSoundo",
  855. Pitch = pit or 1,
  856. SoundId = id,
  857. TimePosition = timepos,
  858. Parent = par or workspace,
  859. }
  860. wait()
  861. S:play()
  862. game:GetService("Debris"):AddItem(S, 10)
  863. end))
  864. end;
  865. };
  866. ["EchoSound"] = {
  867. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  868. coroutine.resume(coroutine.create(function()
  869. local Sas = Create("Sound"){
  870. Volume = vol,
  871. Name = "EffectSoundo",
  872. Pitch = pit or 1,
  873. SoundId = id,
  874. TimePosition = timepos,
  875. Parent = par or workspace,
  876. }
  877. local E = Create("EchoSoundEffect"){
  878. Delay = echodelay,
  879. Name = "Echo",
  880. Feedback = fedb,
  881. DryLevel = dryl,
  882. Parent = Sas,
  883. }
  884. wait()
  885. Sas:play()
  886. game:GetService("Debris"):AddItem(Sas, delays)
  887. end))
  888. end;
  889. };
  890.  
  891. ["LongSound"] = {
  892. Create = function(id, par, vol, pit)
  893. coroutine.resume(coroutine.create(function()
  894. local S = Create("Sound"){
  895. Volume = vol,
  896. Pitch = pit or 1,
  897. SoundId = id,
  898. Parent = par or workspace,
  899. }
  900. wait()
  901. S:play()
  902. game:GetService("Debris"):AddItem(S, 60)
  903. end))
  904. end;
  905. };
  906.  
  907. ["ParticleEmitter"] = {
  908. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  909. local fp = Create("ParticleEmitter"){
  910. Parent = Parent,
  911. Color = ColorSequence.new(Color1, Color2),
  912. LightEmission = LightEmission,
  913. Size = Size,
  914. Texture = Texture,
  915. Transparency = Transparency,
  916. ZOffset = ZOffset,
  917. Acceleration = Accel,
  918. Drag = Drag,
  919. LockedToPart = LockedToPart,
  920. VelocityInheritance = VelocityInheritance,
  921. EmissionDirection = EmissionDirection,
  922. Enabled = Enabled,
  923. Lifetime = LifeTime,
  924. Rate = Rate,
  925. Rotation = Rotation,
  926. RotSpeed = RotSpeed,
  927. Speed = Speed,
  928. VelocitySpread = VelocitySpread,
  929. }
  930. return fp
  931. end;
  932. };
  933.  
  934. CreateTemplate = {
  935.  
  936. };
  937. }
  938.  
  939.  
  940.  
  941. New = function(Object, Parent, Name, Data)
  942. local Object = Instance.new(Object)
  943. for Index, Value in pairs(Data or {}) do
  944. Object[Index] = Value
  945. end
  946. Object.Parent = Parent
  947. Object.Name = Name
  948. return Object
  949. end
  950. local halocolor = BrickColor.new("Pastel light blue")
  951. local halocolor2 = BrickColor.new("Cool yellow")
  952. local starcolor = BrickColor.new("Bright yellow")
  953. local lunacolor = BrickColor.new("Navy blue")
  954. local lunacolor2 = BrickColor.new("Bright blue")
  955. local wepcolor = BrickColor.new("Really black")
  956. local maincolor = BrickColor.new("Really black")
  957. local m = Instance.new("Model",char)
  958. local m2 = Instance.new("Model",char)
  959. local m3 = Instance.new("Model",char)
  960. local mw1 = Instance.new("Model",char)
  961. local mw2 = Instance.new("Model",char)
  962.  
  963.  
  964. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  965. local gui = it(GuiType)
  966. gui.Parent = parent
  967. gui.Text = text
  968. gui.BackgroundTransparency = backtrans
  969. gui.BackgroundColor3 = backcol
  970. gui.SizeConstraint = "RelativeXY"
  971. gui.TextXAlignment = "Center"
  972. gui.TextYAlignment = "Center"
  973. gui.Position = pos
  974. gui.Size = size
  975. gui.Font = "SourceSans"
  976. gui.FontSize = "Size14"
  977. gui.TextWrapped = false
  978. gui.TextStrokeTransparency = 0
  979. gui.TextColor = BrickColor.new("White")
  980. return gui
  981. end
  982. --------------------------- GUI STUFF
  983. local basgui = it("GuiMain")
  984. basgui.Parent = plr.PlayerGui
  985. basgui.Name = "VISgui"
  986. local fullscreenz = it("Frame")
  987. fullscreenz.Parent = basgui
  988. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  989. fullscreenz.BackgroundTransparency = 1
  990. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  991. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  992. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  993. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  994. imgl2.BackgroundTransparency = 1
  995. imgl2.BorderSizePixel = 0
  996. imgl2.ImageTransparency = 0.5
  997. imgl2.ImageColor3 = Color3.new(1,0,0)
  998. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  999. imgl2.Size = UDim2.new(0,1000,0,1000)
  1000. imgl2.Image = "rbxassetid://2325939897"
  1001. local techc = imgl2:Clone()
  1002. techc.Parent = fullscreenz
  1003. techc.ImageTransparency = 0
  1004. techc.Size = UDim2.new(0,900,0,900)
  1005. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  1006. techc.ImageColor3 = Color3.new(1,0,0)
  1007. techc.Image = "rbxassetid://2273224484"
  1008. local circl = imgl2:Clone()
  1009. circl.Parent = fullscreenz
  1010. circl.ImageTransparency = 0
  1011. circl.Size = UDim2.new(0,550,0,550)
  1012. circl.Position = UDim2.new(0.75,25,0.55,25)
  1013. circl.ImageColor3 = Color3.new(0,0,0)
  1014. circl.Image = "rbxassetid://2312119891"
  1015. local circl2 = imgl2:Clone()
  1016. circl2.Parent = fullscreenz
  1017. circl2.ImageTransparency = 0
  1018. circl2.Size = UDim2.new(0,700,0,700)
  1019. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  1020. circl2.ImageColor3 = Color3.new(1,0,0)
  1021. circl2.Image = "rbxassetid://2312119891"
  1022. local imgl2b = imgl2:Clone()
  1023. imgl2b.Parent = fullscreenz
  1024. imgl2b.ImageTransparency = 0
  1025. imgl2b.Size = UDim2.new(0,800,0,800)
  1026. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  1027. imgl2b.ImageColor3 = Color3.new(0,0,0)
  1028. local ned = Instance.new("TextLabel",fullscreenz)
  1029. ned.ZIndex = 2
  1030. ned.Font = "Arcade"
  1031. ned.BackgroundTransparency = 1
  1032. ned.BorderSizePixel = 0.65
  1033. ned.Size = UDim2.new(0.3,0,0.2,0)
  1034. ned.Position = UDim2.new(0.7,0,0.8,0)
  1035. ned.TextColor3 = BrickColor.new("Really red").Color
  1036. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  1037. ned.TextScaled = true
  1038. ned.TextStrokeTransparency = 0
  1039. ned.Text = "STAR"
  1040. ned.TextSize = 24
  1041. ned.Rotation = 1
  1042. ned.TextXAlignment = "Right"
  1043. ned.TextYAlignment = "Bottom"
  1044.  
  1045. local extrawingmod1 = Instance.new("Model",char)
  1046. local extrawingmod2 = Instance.new("Model",char)
  1047.  
  1048. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1049. local p = Instance.new("Part")
  1050. p.TopSurface = 0
  1051. p.BottomSurface = 0
  1052. p.Parent = parent
  1053. p.Size = Vector3.new(0.1,0.1,0.1)
  1054. p.Transparency = transparency
  1055. p.Reflectance = reflectance
  1056. p.CanCollide = false
  1057. p.Locked = true
  1058. p.BrickColor = brickcolor
  1059. p.Material = material
  1060. return p
  1061. end
  1062.  
  1063. function CreateMesh(parent,meshtype,x1,y1,z1)
  1064. local mesh = Instance.new("SpecialMesh",parent)
  1065. mesh.MeshType = meshtype
  1066. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1067. return mesh
  1068. end
  1069.  
  1070. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  1071. local mesh = Instance.new("SpecialMesh",parent)
  1072. mesh.MeshType = "FileMesh"
  1073. mesh.MeshId = meshid
  1074. mesh.Scale = Vector3.new(x1,y1,z1)
  1075. return mesh
  1076. end
  1077.  
  1078.  
  1079. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1080. local mesh = Instance.new("SpecialMesh",parent)
  1081. mesh.MeshType = "FileMesh"
  1082. mesh.MeshId = meshid
  1083. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1084. mesh.Scale = Vector3.new(x1,y1,z1)
  1085. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1086. return mesh
  1087. end
  1088.  
  1089. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1090. local weld = Instance.new("Weld")
  1091. weld.Parent = parent
  1092. weld.Part0 = part0
  1093. weld.Part1 = part1
  1094. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1095. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1096. return weld
  1097. end
  1098.  
  1099.  
  1100. --------------
  1101. --------------
  1102. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1103. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1104. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  1105. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1106.  
  1107. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1108. CreateMesh(handle,"Brick",0,0,0)
  1109. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1110. local valuaring = 10
  1111. for i = 0, 49 do
  1112. valuaring = valuaring + 10
  1113. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  1114. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  1115. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1116. end
  1117.  
  1118. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  1119. CreateMesh(handle,"Brick",0,0,0)
  1120. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1121. local valuaring = 10
  1122. for i = 0, 49 do
  1123. valuaring = valuaring + 10
  1124. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1125. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  1126. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1127. end
  1128.  
  1129.  
  1130. local handle = CreateParta(m,1,1,"Neon",maincolor)
  1131. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1132. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1133.  
  1134. --- Left wing.
  1135.  
  1136. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1137. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1138. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1139.  
  1140. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1141. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1142. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1143. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1144. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1145. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1146. A0 = Instance.new('Attachment',wed)
  1147. A0.Position = vt(0,0.25,0.25)
  1148. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1149. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1150. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1151. A1 = Instance.new('Attachment',wed)
  1152. A1.Position = vt(0,-0.25,-2)
  1153. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1154. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1155. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1156.  
  1157. tl1 = Instance.new('Trail',wed)
  1158. tl1.Attachment0 = A1
  1159. tl1.Attachment1 = A0
  1160. tl1.Texture = "rbxassetid://2108945559"
  1161. tl1.LightEmission = 1
  1162. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1163. tl1.Color = ColorSequence.new(BrickColor.new('Really blue').Color)
  1164. tl1.Lifetime = 0.6
  1165.  
  1166.  
  1167. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1168. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1169. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1170.  
  1171. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1172. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1173. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1174. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1175. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1176. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1177. A0 = Instance.new('Attachment',wed)
  1178. A0.Position = vt(0,0.25,0.25)
  1179. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1180. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1181. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1182. A1 = Instance.new('Attachment',wed)
  1183. A1.Position = vt(0,-0.25,-2)
  1184. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1185. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1186. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1187.  
  1188. tl2 = Instance.new('Trail',wed)
  1189. tl2.Attachment0 = A1
  1190. tl2.Attachment1 = A0
  1191. tl2.Texture = "rbxassetid://2108945559"
  1192. tl2.LightEmission = 1
  1193. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1194. tl2.Color = ColorSequence.new(BrickColor.new('Toothpaste').Color)
  1195. tl2.Lifetime = 0.6
  1196.  
  1197. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1198. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1199. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1200.  
  1201. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1202. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1203. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1204. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1205. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1206. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1207. A0 = Instance.new('Attachment',wed)
  1208. A0.Position = vt(0,0.25,0.25)
  1209. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1210. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1211. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1212. A1 = Instance.new('Attachment',wed)
  1213. A1.Position = vt(0,-0.25,-2)
  1214. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  1215. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1216. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1217.  
  1218. tl3 = Instance.new('Trail',wed)
  1219. tl3.Attachment0 = A1
  1220. tl3.Attachment1 = A0
  1221. tl3.Texture = "rbxassetid://2108945559"
  1222. tl3.LightEmission = 1
  1223. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1224. tl3.Color = ColorSequence.new(BrickColor.new('Deep orange').Color)
  1225. tl3.Lifetime = 0.6
  1226.  
  1227. tl1.Enabled = false
  1228. tl2.Enabled = false
  1229. tl3.Enabled = false
  1230. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1231. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1232. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1233.  
  1234. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1235. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1236. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1237. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1238. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1239. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1240. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1241. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1242. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1243. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1244. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1245. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1246.  
  1247. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1248. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1249. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1250.  
  1251. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1252. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1253. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1254. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1255. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1256. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1257. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1258. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1259. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1260. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1261. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1262. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1263.  
  1264. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1265. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1266. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1267.  
  1268. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1269. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1270. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1271. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1272. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1273. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1274. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1275. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1276. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1277. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1278. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1279. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1280.  
  1281. -- Right wing.
  1282.  
  1283. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1284. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1285. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1286.  
  1287. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1288. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1289. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1290. A0 = Instance.new('Attachment',wed)
  1291. A0.Position = vt(0,0.25,0.25)
  1292. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1293. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1294. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1295. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1296. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1297. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1298. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1299. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1300. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1301. A1 = Instance.new('Attachment',wed)
  1302. A1.Position = vt(0,2,0.25)
  1303.  
  1304. tr1 = Instance.new('Trail',wed)
  1305. tr1.Attachment0 = A1
  1306. tr1.Attachment1 = A0
  1307. tr1.Texture = "rbxassetid://2108945559"
  1308. tr1.LightEmission = 1
  1309. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1310. tr1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
  1311. tr1.Lifetime = 0.6
  1312.  
  1313. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1314. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1315. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1316.  
  1317. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1318. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1319. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1320. A0 = Instance.new('Attachment',wed)
  1321. A0.Position = vt(0,0.25,0.25)
  1322. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1323. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1324. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1325. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1326. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1327. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1328. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1329. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1330. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1331. A1 = Instance.new('Attachment',wed)
  1332. A1.Position = vt(0,2,0.25)
  1333.  
  1334. tr2 = Instance.new('Trail',wed)
  1335. tr2.Attachment0 = A1
  1336. tr2.Attachment1 = A0
  1337. tr2.Texture = "rbxassetid://2108945559"
  1338. tr2.LightEmission = 1
  1339. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1340. tr2.Color = ColorSequence.new(BrickColor.new('Hot pink').Color)
  1341. tr2.Lifetime = 0.6
  1342.  
  1343. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1344. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1345. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1346.  
  1347. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1348. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1349. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1350. A0 = Instance.new('Attachment',wed)
  1351. A0.Position = vt(0,0.25,0.25)
  1352. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1353. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1354. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1355. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1356. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1357. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1358. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1359. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1360. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1361. A1 = Instance.new('Attachment',wed)
  1362. A1.Position = vt(0,2,0.25)
  1363.  
  1364. tr3 = Instance.new('Trail',wed)
  1365. tr3.Attachment0 = A1
  1366. tr3.Attachment1 = A0
  1367. tr3.Texture = "rbxassetid://2108945559"
  1368. tr3.LightEmission = 1
  1369. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1370. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1371. tr3.Lifetime = 0.6
  1372.  
  1373.  
  1374. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1375. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1376. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1377.  
  1378. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1379. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1380. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1381. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1382. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1383. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1384. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1385. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1386. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1387. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1388. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1389. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1390.  
  1391. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1392. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1393. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1394.  
  1395. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1396. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1397. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1398. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1399. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1400. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1401. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1402. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1403. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1404. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1405. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1406. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1407.  
  1408. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1409. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1410. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1411.  
  1412. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1413. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1414. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1415. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1416. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1417. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1418. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1419. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1420. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1421. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1422. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1423. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1424.  
  1425. ---- HERES THE RING
  1426.  
  1427.  
  1428. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1429. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1430. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1431. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1432. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1433. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1434. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1435. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1436. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1437.  
  1438.  
  1439. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1440. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1441. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1442.  
  1443. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1444. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1445. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1446.  
  1447.  
  1448.  
  1449. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1450. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1451. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1452.  
  1453. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1454. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1455. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1456.  
  1457. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1458. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1459. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1460.  
  1461. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1462. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1463. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1464. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1465. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1466. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1467.  
  1468. --- second ring
  1469. rng.BrickColor = BrickColor.random()
  1470. end
  1471. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1472. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1473. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1474. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1475. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1476. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1477. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1478. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1479. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1480.  
  1481. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1482. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1483. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1484.  
  1485. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1486. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1487. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1488.  
  1489.  
  1490.  
  1491. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1492. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1493. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1494.  
  1495. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1496. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1497. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1498.  
  1499. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1500. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1501. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1502.  
  1503. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1504. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1505. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1506. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1507. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1508. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1509.  
  1510.  
  1511.  
  1512. for i, v in pairs(m:GetChildren()) do
  1513. if v:IsA("Part") then
  1514. v.BrickColor = BrickColor.new("Really black")
  1515. v.Material = "Glass"
  1516. end
  1517. end
  1518. for i, v in pairs(m2:GetChildren()) do
  1519. if v:IsA("Part") then
  1520. v.BrickColor = BrickColor.new("Crimson")
  1521. v.Material = "Granite"
  1522. end
  1523. end
  1524. for i, v in pairs(m3:GetChildren()) do
  1525. if v:IsA("Part") then
  1526. v.BrickColor = BrickColor.new("Really red")
  1527. v.Material = "Neon"
  1528. end
  1529. end
  1530. for i, v in pairs(mw2:GetChildren()) do
  1531. if v:IsA("Part") then
  1532. v.BrickColor = BrickColor.new("Deep orange")
  1533. v.Material = "Neon"
  1534. end
  1535. end
  1536. for i, v in pairs(mw1:GetChildren()) do
  1537. if v:IsA("Part") then
  1538. v.Transparency = 0
  1539. v.BrickColor = BrickColor.new("Really red")
  1540. v.Material = "Neon"
  1541. end
  1542. end
  1543. for i, v in pairs(extrawingmod1:GetChildren()) do
  1544. if v:IsA("Part") then
  1545. v.Transparency = 0.75
  1546. v.BrickColor = BrickColor.new("Ghost grey")
  1547. v.Material = "Neon"
  1548. end
  1549. end
  1550. for i, v in pairs(extrawingmod2:GetChildren()) do
  1551. if v:IsA("Part") then
  1552. v.Transparency = 0.75
  1553. v.BrickColor = BrickColor.new("Really blue")
  1554. v.Material = "Neon"
  1555. end
  1556. end
  1557. local MAINRUINCOLOR = BrickColor.new("Really red")
  1558. ------
  1559.  
  1560.  
  1561. function RemoveOutlines(part)
  1562. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1563. end
  1564. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1565. local Part = Create("Part")({
  1566. Parent = Parent,
  1567. Reflectance = Reflectance,
  1568. Transparency = Transparency,
  1569. CanCollide = false,
  1570. Locked = true,
  1571. BrickColor = BrickColor.new(tostring(BColor)),
  1572. Name = Name,
  1573. Size = Size,
  1574. Material = Material
  1575. })
  1576. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1577. RemoveOutlines(Part)
  1578. return Part
  1579. end
  1580. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1581. local Msh = Create(Mesh)({
  1582. Parent = Part,
  1583. Offset = OffSet,
  1584. Scale = Scale
  1585. })
  1586. if Mesh == "SpecialMesh" then
  1587. Msh.MeshType = MeshType
  1588. Msh.MeshId = MeshId
  1589. end
  1590. return Msh
  1591. end
  1592. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1593. local Weld = Create("Weld")({
  1594. Parent = Parent,
  1595. Part0 = Part0,
  1596. Part1 = Part1,
  1597. C0 = C0,
  1598. C1 = C1
  1599. })
  1600. return Weld
  1601. end
  1602.  
  1603. Character=Player.Character
  1604. PlayerGui=Player.PlayerGui
  1605. Backpack=Player.Backpack
  1606. Torso=Character.Torso
  1607. Head=Character.Head
  1608. Humanoid=Character.Humanoid
  1609. m=Instance.new('Model',Character)
  1610. LeftArm=Character["Left Arm"]
  1611. LeftLeg=Character["Left Leg"]
  1612. RightArm=Character["Right Arm"]
  1613. RightLeg=Character["Right Leg"]
  1614. LS=Torso["Left Shoulder"]
  1615. LH=Torso["Left Hip"]
  1616. RS=Torso["Right Shoulder"]
  1617. RH=Torso["Right Hip"]
  1618. Face = Head.face
  1619. Neck=Torso.Neck
  1620. it=Instance.new
  1621. attacktype=1
  1622. vt=Vector3.new
  1623. cf=CFrame.new
  1624. euler=CFrame.fromEulerAnglesXYZ
  1625. angles=CFrame.Angles
  1626. cloaked=false
  1627. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1628. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1629. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1630. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1631. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1632. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1633. RootPart=Character.HumanoidRootPart
  1634. RootJoint=RootPart.RootJoint
  1635. RootCF=euler(-1.57,0,3.14)
  1636. attack = false
  1637. attackdebounce = false
  1638. deb=false
  1639. equipped=true
  1640. hand=false
  1641. combo=0
  1642. mana=0
  1643. trispeed=.2
  1644. attackmode='none'
  1645. local idle=0
  1646. local Anim="Idle"
  1647. local Effects={}
  1648. local gun=false
  1649. local shoot=false
  1650. local sine = 0
  1651. local change = 1
  1652.  
  1653. function RecolorTextAndRename(name,col1,col2,font)
  1654. modet.TextStrokeColor3 = col2
  1655. modet.TextColor3 = col1
  1656. modet.Font = font
  1657. modet.Text = name
  1658. techc.ImageColor3 = col2
  1659. circl.ImageColor3 = col2
  1660. circl2.ImageColor3 = col1
  1661. imgl2.ImageColor3 = col1
  1662. imgl2b.ImageColor3 = col2
  1663. ned.Text = name
  1664. ned.TextColor3 = col1
  1665. ned.TextStrokeColor3 = col2
  1666. end
  1667. --save shoulders
  1668. RSH, LSH=nil, nil
  1669. --welds
  1670. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1671. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1672. LH=Torso["Left Hip"]
  1673. RH=Torso["Right Hip"]
  1674. TorsoColor=Torso.BrickColor
  1675. function NoOutline(Part)
  1676. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1677. end
  1678. ch=Character
  1679. RSH=ch.Torso["Right Shoulder"]
  1680. LSH=ch.Torso["Left Shoulder"]
  1681. --
  1682. RSH.Parent=nil
  1683. LSH.Parent=nil
  1684. --
  1685. RW.Name="Right Shoulder"
  1686. RW.Part0=ch.Torso
  1687. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1688. RW.C1=cf(0, 0.5, 0)
  1689. RW.Part1=ch["Right Arm"]
  1690. RW.Parent=ch.Torso
  1691. --
  1692. LW.Name="Left Shoulder"
  1693. LW.Part0=ch.Torso
  1694. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1695. LW.C1=cf(0, 0.5, 0)
  1696. LW.Part1=ch["Left Arm"]
  1697. LW.Parent=ch.Torso
  1698.  
  1699. local Stats=Instance.new("BoolValue")
  1700. Stats.Name="Stats"
  1701. Stats.Parent=Character
  1702. local Atk=Instance.new("NumberValue")
  1703. Atk.Name="Damage"
  1704. Atk.Parent=Stats
  1705. Atk.Value=1
  1706. local Def=Instance.new("NumberValue")
  1707. Def.Name="Defense"
  1708. Def.Parent=Stats
  1709. Def.Value=1
  1710. local Speed=Instance.new("NumberValue")
  1711. Speed.Name="Speed"
  1712. Speed.Parent=Stats
  1713. Speed.Value=1
  1714. local Mvmt=Instance.new("NumberValue")
  1715. Mvmt.Name="Movement"
  1716. Mvmt.Parent=Stats
  1717. Mvmt.Value=1
  1718.  
  1719. local donum=0
  1720.  
  1721.  
  1722. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1723. local fp=it("Part")
  1724. fp.formFactor=formfactor
  1725. fp.Parent=parent
  1726. fp.Reflectance=reflectance
  1727. fp.Transparency=transparency
  1728. fp.CanCollide=false
  1729. fp.Locked=true
  1730. fp.BrickColor=brickcolor
  1731. fp.Name=name
  1732. fp.Size=size
  1733. fp.Position=Torso.Position
  1734. NoOutline(fp)
  1735. fp.Material="SmoothPlastic"
  1736. fp:BreakJoints()
  1737. return fp
  1738. end
  1739.  
  1740. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1741. local mesh=it(Mesh)
  1742. mesh.Parent=part
  1743. if Mesh=="SpecialMesh" then
  1744. mesh.MeshType=meshtype
  1745. if meshid~="nil" then
  1746. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1747. end
  1748. end
  1749. mesh.Offset=offset
  1750. mesh.Scale=scale
  1751. return mesh
  1752. end
  1753.  
  1754. function weld(parent,part0,part1,c0)
  1755. local weld=it("Weld")
  1756. weld.Parent=parent
  1757. weld.Part0=part0
  1758. weld.Part1=part1
  1759. weld.C0=c0
  1760. return weld
  1761. end
  1762.  
  1763. local Color1=Torso.BrickColor
  1764.  
  1765. local bodvel=Instance.new("BodyVelocity")
  1766. local bg=Instance.new("BodyGyro")
  1767.  
  1768. --------- SazEreno's Artificial HB --------------
  1769. ArtificialHB = Instance.new("BindableEvent", script)
  1770. ArtificialHB.Name = "ArtificialHB"
  1771.  
  1772. script:WaitForChild("ArtificialHB")
  1773. Frame_Speed = 1 / 60
  1774. frame = Frame_Speed
  1775. tf = 0
  1776. allowframeloss = false
  1777. tossremainder = false
  1778. lastframe = tick()
  1779. script.ArtificialHB:Fire()
  1780.  
  1781. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1782. tf = tf + s
  1783. if tf >= frame then
  1784. if allowframeloss then
  1785. script.ArtificialHB:Fire()
  1786. lastframe = tick()
  1787. else
  1788. for i = 1, math.floor(tf / frame) do
  1789. script.ArtificialHB:Fire()
  1790. end
  1791. lastframe = tick()
  1792. end
  1793. if tossremainder then
  1794. tf = 0
  1795. else
  1796. tf = tf - frame * math.floor(tf / frame)
  1797. end
  1798. end
  1799. end)
  1800.  
  1801. ------------------
  1802. function swait(num)
  1803. function swait(num)
  1804. if num==0 or num==nil then
  1805. game:service'RunService'.Stepped:wait(0)
  1806. else
  1807. for i=0,num do
  1808. game:service'RunService'.Stepped:wait(0)
  1809. end
  1810. end
  1811. end
  1812. end
  1813.  
  1814. -------- RAINBOW LEAVE IT TO ME
  1815. local r = 255
  1816. local g = 0
  1817. local b = 0
  1818. coroutine.resume(coroutine.create(function()
  1819. while wait() do
  1820. for i = 0, 254/5 do
  1821. swait()
  1822. g = g + 5
  1823. end
  1824. for i = 0, 254/5 do
  1825. swait()
  1826. r = r - 5
  1827. end
  1828. for i = 0, 254/5 do
  1829. swait()
  1830. b = b + 5
  1831. end
  1832. for i = 0, 254/5 do
  1833. swait()
  1834. g = g - 5
  1835. end
  1836. for i = 0, 254/5 do
  1837. swait()
  1838. r = r + 5
  1839. end
  1840. for i = 0, 254/5 do
  1841. swait()
  1842. b = b - 5
  1843. end
  1844. end
  1845. end))
  1846.  
  1847.  
  1848. so = function(id,par,vol,pit)
  1849. coroutine.resume(coroutine.create(function()
  1850. local sou = Instance.new("Sound",par or workspace)
  1851. sou.Volume=vol
  1852. sou.Pitch=pit or 1
  1853. sou.SoundId=id
  1854. swait()
  1855. sou:play()
  1856. game:GetService("Debris"):AddItem(sou,6)
  1857. end))
  1858. end
  1859.  
  1860. function clerp(a,b,t)
  1861. local qa = {QuaternionFromCFrame(a)}
  1862. local qb = {QuaternionFromCFrame(b)}
  1863. local ax, ay, az = a.x, a.y, a.z
  1864. local bx, by, bz = b.x, b.y, b.z
  1865. local _t = 1-t
  1866. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1867. end
  1868.  
  1869. function QuaternionFromCFrame(cf)
  1870. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1871. local trace = m00 + m11 + m22
  1872. if trace > 0 then
  1873. local s = math.sqrt(1 + trace)
  1874. local recip = 0.5/s
  1875. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1876. else
  1877. local i = 0
  1878. if m11 > m00 then
  1879. i = 1
  1880. end
  1881. if m22 > (i == 0 and m00 or m11) then
  1882. i = 2
  1883. end
  1884. if i == 0 then
  1885. local s = math.sqrt(m00-m11-m22+1)
  1886. local recip = 0.5/s
  1887. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1888. elseif i == 1 then
  1889. local s = math.sqrt(m11-m22-m00+1)
  1890. local recip = 0.5/s
  1891. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1892. elseif i == 2 then
  1893. local s = math.sqrt(m22-m00-m11+1)
  1894. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1895. end
  1896. end
  1897. end
  1898.  
  1899. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1900. local xs, ys, zs = x + x, y + y, z + z
  1901. local wx, wy, wz = w*xs, w*ys, w*zs
  1902. local xx = x*xs
  1903. local xy = x*ys
  1904. local xz = x*zs
  1905. local yy = y*ys
  1906. local yz = y*zs
  1907. local zz = z*zs
  1908. 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))
  1909. end
  1910.  
  1911. function QuaternionSlerp(a, b, t)
  1912. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1913. local startInterp, finishInterp;
  1914. if cosTheta >= 0.0001 then
  1915. if (1 - cosTheta) > 0.0001 then
  1916. local theta = math.acos(cosTheta)
  1917. local invSinTheta = 1/math.sin(theta)
  1918. startInterp = math.sin((1-t)*theta)*invSinTheta
  1919. finishInterp = math.sin(t*theta)*invSinTheta
  1920. else
  1921. startInterp = 1-t
  1922. finishInterp = t
  1923. end
  1924. else
  1925. if (1+cosTheta) > 0.0001 then
  1926. local theta = math.acos(-cosTheta)
  1927. local invSinTheta = 1/math.sin(theta)
  1928. startInterp = math.sin((t-1)*theta)*invSinTheta
  1929. finishInterp = math.sin(t*theta)*invSinTheta
  1930. else
  1931. startInterp = t-1
  1932. finishInterp = t
  1933. end
  1934. end
  1935. 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
  1936. end
  1937.  
  1938. local function CFrameFromTopBack(at, top, back)
  1939. local right = top:Cross(back)
  1940. return CFrame.new(at.x, at.y, at.z,
  1941. right.x, top.x, back.x,
  1942. right.y, top.y, back.y,
  1943. right.z, top.z, back.z)
  1944. end
  1945.  
  1946. function Triangle(a, b, c)
  1947. local edg1 = (c-a):Dot((b-a).unit)
  1948. local edg2 = (a-b):Dot((c-b).unit)
  1949. local edg3 = (b-c):Dot((a-c).unit)
  1950. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1951. a, b, c = a, b, c
  1952. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1953. a, b, c = b, c, a
  1954. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1955. a, b, c = c, a, b
  1956. else
  1957. assert(false, "unreachable")
  1958. end
  1959.  
  1960. local len1 = (c-a):Dot((b-a).unit)
  1961. local len2 = (b-a).magnitude - len1
  1962. local width = (a + (b-a).unit*len1 - c).magnitude
  1963.  
  1964. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1965.  
  1966. local list = {}
  1967.  
  1968. if len1 > 0.01 then
  1969. local w1 = Instance.new('WedgePart', m)
  1970. game:GetService("Debris"):AddItem(w1,5)
  1971. w1.Material = "SmoothPlastic"
  1972. w1.FormFactor = 'Custom'
  1973. w1.BrickColor = BrickColor.new("Really red")
  1974. w1.Transparency = 0
  1975. w1.Reflectance = 0
  1976. w1.Material = "SmoothPlastic"
  1977. w1.CanCollide = false
  1978. local l1 = Instance.new("PointLight",w1)
  1979. l1.Color = Color3.new(170,0,0)
  1980. NoOutline(w1)
  1981. local sz = Vector3.new(0.2, width, len1)
  1982. w1.Size = sz
  1983. local sp = Instance.new("SpecialMesh",w1)
  1984. sp.MeshType = "Wedge"
  1985. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1986. w1:BreakJoints()
  1987. w1.Anchored = true
  1988. w1.Parent = workspace
  1989. w1.Transparency = 0.7
  1990. table.insert(Effects,{w1,"Disappear",.01})
  1991. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1992. table.insert(list,w1)
  1993. end
  1994.  
  1995. if len2 > 0.01 then
  1996. local w2 = Instance.new('WedgePart', m)
  1997. game:GetService("Debris"):AddItem(w2,5)
  1998. w2.Material = "SmoothPlastic"
  1999. w2.FormFactor = 'Custom'
  2000. w2.BrickColor = BrickColor.new("Really red")
  2001. w2.Transparency = 0
  2002. w2.Reflectance = 0
  2003. w2.Material = "SmoothPlastic"
  2004. w2.CanCollide = false
  2005. local l2 = Instance.new("PointLight",w2)
  2006. l2.Color = Color3.new(170,0,0)
  2007. NoOutline(w2)
  2008. local sz = Vector3.new(0.2, width, len2)
  2009. w2.Size = sz
  2010. local sp = Instance.new("SpecialMesh",w2)
  2011. sp.MeshType = "Wedge"
  2012. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2013. w2:BreakJoints()
  2014. w2.Anchored = true
  2015. w2.Parent = workspace
  2016. w2.Transparency = 0.7
  2017. table.insert(Effects,{w2,"Disappear",.01})
  2018. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2019. table.insert(list,w2)
  2020. end
  2021. return unpack(list)
  2022. end
  2023.  
  2024.  
  2025. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2026. if hit.Parent == nil then
  2027. return
  2028. end
  2029. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  2030. for _, v in pairs(hit.Parent:children()) do
  2031. if v:IsA("Humanoid") then
  2032. h = v
  2033. end
  2034. end
  2035. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  2036. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2037. return
  2038. end
  2039. local c = Create("ObjectValue")({
  2040. Name = "creator",
  2041. Value = game:GetService("Players").LocalPlayer,
  2042. Parent = h
  2043. })
  2044. game:GetService("Debris"):AddItem(c, 0.5)
  2045. if HitSound ~= nil and HitPitch ~= nil then
  2046. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2047. end
  2048. local Damage = math.random(minim, maxim)
  2049. local blocked = false
  2050. local block = hit.Parent:findFirstChild("Block")
  2051. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2052. blocked = true
  2053. block.Value = block.Value - 1
  2054. print(block.Value)
  2055. end
  2056. if blocked == false then
  2057. HitHealth = h.Health
  2058. h.MaxHealth = 100
  2059. h.Health = h.Health - Damage
  2060. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2061. print("gained kill")
  2062. dmg(h.Parent)
  2063. end
  2064. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2065. else
  2066. h.Health = h.Health - Damage / 2
  2067. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2068. end
  2069. if Type == "Knockdown" then
  2070. local hum = hit.Parent.Humanoid
  2071. hum.PlatformStand = true
  2072. coroutine.resume(coroutine.create(function(HHumanoid)
  2073. swait(1)
  2074. HHumanoid.PlatformStand = false
  2075. end), hum)
  2076. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2077. local bodvol = Create("BodyVelocity")({
  2078. velocity = angle * knockback,
  2079. P = 5000,
  2080. maxForce = Vector3.new(8000, 8000, 8000),
  2081. Parent = hit
  2082. })
  2083. local rl = Create("BodyAngularVelocity")({
  2084. P = 3000,
  2085. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2086. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2087. Parent = hit
  2088. })
  2089. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2090. game:GetService("Debris"):AddItem(rl, 0.5)
  2091. elseif Type == "Normal" then
  2092. local vp = Create("BodyVelocity")({
  2093. P = 500,
  2094. maxForce = Vector3.new(math.huge, 0, math.huge),
  2095. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2096. })
  2097. if knockback > 0 then
  2098. vp.Parent = hit.Parent.Head
  2099. end
  2100. game:GetService("Debris"):AddItem(vp, 0.5)
  2101. elseif Type == "Up" then
  2102. local bodyVelocity = Create("BodyVelocity")({
  2103. velocity = Vector3.new(0, 20, 0),
  2104. P = 5000,
  2105. maxForce = Vector3.new(8000, 8000, 8000),
  2106. Parent = hit
  2107. })
  2108. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2109. local bodyVelocity = Create("BodyVelocity")({
  2110. velocity = Vector3.new(0, 20, 0),
  2111. P = 5000,
  2112. maxForce = Vector3.new(8000, 8000, 8000),
  2113. Parent = hit
  2114. })
  2115. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2116. elseif Type == "Leech" then
  2117. local hum = hit.Parent.Humanoid
  2118. if hum ~= nil then
  2119. for i = 0, 2 do
  2120. 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)
  2121. end
  2122. Humanoid.Health = Humanoid.Health + 10
  2123. end
  2124. elseif Type == "UpKnock" then
  2125. local hum = hit.Parent.Humanoid
  2126. hum.PlatformStand = true
  2127. if hum ~= nil then
  2128. hitr = true
  2129. end
  2130. coroutine.resume(coroutine.create(function(HHumanoid)
  2131. swait(5)
  2132. HHumanoid.PlatformStand = false
  2133. hitr = false
  2134. end), hum)
  2135. local bodyVelocity = Create("BodyVelocity")({
  2136. velocity = Vector3.new(0, 20, 0),
  2137. P = 5000,
  2138. maxForce = Vector3.new(8000, 8000, 8000),
  2139. Parent = hit
  2140. })
  2141. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2142. local bodyVelocity = Create("BodyVelocity")({
  2143. velocity = Vector3.new(0, 20, 0),
  2144. P = 5000,
  2145. maxForce = Vector3.new(8000, 8000, 8000),
  2146. Parent = hit
  2147. })
  2148. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2149. elseif Type == "Snare" then
  2150. local bp = Create("BodyPosition")({
  2151. P = 2000,
  2152. D = 100,
  2153. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2154. position = hit.Parent.Torso.Position,
  2155. Parent = hit.Parent.Torso
  2156. })
  2157. game:GetService("Debris"):AddItem(bp, 1)
  2158. elseif Type == "Slashnare" then
  2159. 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)
  2160. for i = 1, math.random(4, 5) do
  2161. 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)
  2162. end
  2163. local bp = Create("BodyPosition")({
  2164. P = 2000,
  2165. D = 100,
  2166. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2167. position = hit.Parent.Torso.Position,
  2168. Parent = hit.Parent.Torso
  2169. })
  2170. game:GetService("Debris"):AddItem(bp, 1)
  2171. elseif Type == "Spike" then
  2172. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2173. local bp = Create("BodyPosition")({
  2174. P = 2000,
  2175. D = 100,
  2176. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2177. position = hit.Parent.Torso.Position,
  2178. Parent = hit.Parent.Torso
  2179. })
  2180. game:GetService("Debris"):AddItem(bp, 1)
  2181. elseif Type == "Freeze" then
  2182. local BodPos = Create("BodyPosition")({
  2183. P = 50000,
  2184. D = 1000,
  2185. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2186. position = hit.Parent.Torso.Position,
  2187. Parent = hit.Parent.Torso
  2188. })
  2189. local BodGy = Create("BodyGyro")({
  2190. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2191. P = 20000,
  2192. Parent = hit.Parent.Torso,
  2193. cframe = hit.Parent.Torso.CFrame
  2194. })
  2195. hit.Parent.Torso.Anchored = true
  2196. coroutine.resume(coroutine.create(function(Part)
  2197. swait(1.5)
  2198. Part.Anchored = false
  2199. end), hit.Parent.Torso)
  2200. game:GetService("Debris"):AddItem(BodPos, 3)
  2201. game:GetService("Debris"):AddItem(BodGy, 3)
  2202. end
  2203. local debounce = Create("BoolValue")({
  2204. Name = "DebounceHit",
  2205. Parent = hit.Parent,
  2206. Value = true
  2207. })
  2208. game:GetService("Debris"):AddItem(debounce, Delay)
  2209. c = Instance.new("ObjectValue")
  2210. c.Name = "creator"
  2211. c.Value = Player
  2212. c.Parent = h
  2213. game:GetService("Debris"):AddItem(c, 0.5)
  2214. end
  2215. end
  2216. function ShowDamage(Pos, Text, Time, Color)
  2217. local Rate = 0.03333333333333333
  2218. local Pos = Pos or Vector3.new(0, 0, 0)
  2219. local Text = Text or ""
  2220. local Time = Time or 2
  2221. local Color = Color or Color3.new(1, 0, 1)
  2222. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2223. EffectPart.Anchored = true
  2224. local BillboardGui = Create("BillboardGui")({
  2225. Size = UDim2.new(3, 0, 3, 0),
  2226. Adornee = EffectPart,
  2227. Parent = EffectPart
  2228. })
  2229. local TextLabel = Create("TextLabel")({
  2230. BackgroundTransparency = 1,
  2231. Size = UDim2.new(1, 0, 1, 0),
  2232. Text = Text,
  2233. TextColor3 = Color,
  2234. TextScaled = true,
  2235. Font = Enum.Font.ArialBold,
  2236. Parent = BillboardGui
  2237. })
  2238. game.Debris:AddItem(EffectPart, Time + 0.1)
  2239. EffectPart.Parent = game:GetService("Workspace")
  2240. delay(0, function()
  2241. local Frames = Time / Rate
  2242. for Frame = 1, Frames do
  2243. wait(Rate)
  2244. local Percent = Frame / Frames
  2245. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2246. TextLabel.TextTransparency = Percent
  2247. end
  2248. if EffectPart and EffectPart.Parent then
  2249. EffectPart:Destroy()
  2250. end
  2251. end)
  2252. end
  2253. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2254. for _, c in pairs(workspace:children()) do
  2255. local hum = c:findFirstChildOfClass("Humanoid")
  2256. if hum ~= nil then
  2257. local head = c:findFirstChild("Head")
  2258. if head ~= nil then
  2259. local targ = head.Position - Part.Position
  2260. local mag = targ.magnitude
  2261. if magni >= mag and c.Name ~= Player.Name then
  2262. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2263. end
  2264. end
  2265. end
  2266. end
  2267. end
  2268.  
  2269. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2270. for _, c in pairs(workspace:children()) do
  2271. local hum = c:findFirstChild("Humanoid")
  2272. if hum ~= nil then
  2273. local head = c:findFirstChild("Torso")
  2274. if head ~= nil then
  2275. local targ = head.Position - Part.Position
  2276. local mag = targ.magnitude
  2277. if magni >= mag and c.Name ~= Player.Name then
  2278. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2279. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2280. end
  2281. end
  2282. end
  2283. end
  2284. end
  2285.  
  2286. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2287. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2288. end
  2289.  
  2290. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2291. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2292. prt.Anchored=true
  2293. prt.CFrame=cframe
  2294. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2295. --http://www.roblox.com/asset/?id=4770560
  2296. game:GetService("Debris"):AddItem(prt,2)
  2297. CF=prt.CFrame
  2298. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2299. for i=0,1,0.2 do
  2300. wait()
  2301. Part.CFrame=CF*cf(0,0,-0.4)
  2302. end
  2303. for i=0,1,delay do
  2304. wait()
  2305. --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)
  2306. Mesh.Scale=Mesh.Scale
  2307. end
  2308. for i=0,1,0.1 do
  2309. wait()
  2310. Part.Transparency=i
  2311. end
  2312. Part.Parent=nil
  2313. end),prt,msh,CF)
  2314. end
  2315.  
  2316. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2317. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2318. prt.Anchored=true
  2319. prt.Material = "Neon"
  2320. prt.CFrame=cframe
  2321. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2322. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2323. game:GetService("Debris"):AddItem(prt,5)
  2324. coroutine.resume(coroutine.create(function(Part,Mesh)
  2325. for i=0,1,delay do
  2326. swait()
  2327. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2328. Part.Transparency=i
  2329. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2330. end
  2331. Part.Parent=nil
  2332. end),prt,msh)
  2333. end
  2334.  
  2335. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2336. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2337. prt.Anchored=true
  2338. prt.Material = "Neon"
  2339. prt.CFrame=cframe
  2340. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2341. game:GetService("Debris"):AddItem(prt,5)
  2342. coroutine.resume(coroutine.create(function(Part,Mesh)
  2343. local rtype = rottype
  2344. for i=0,1,delay do
  2345. swait()
  2346. if rtype == 1 then
  2347. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2348. elseif rtype == 2 then
  2349. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2350. end
  2351. Part.Transparency=i
  2352. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2353. end
  2354. Part.Parent=nil
  2355. end),prt,msh)
  2356. end
  2357.  
  2358. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2359. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2360. prt.Anchored=true
  2361. prt.CFrame=cframe
  2362. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2363. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2364. game:GetService("Debris"):AddItem(prt,5)
  2365. coroutine.resume(coroutine.create(function(Part,Mesh)
  2366. for i=0,1,delay do
  2367. wait()
  2368. Part.Transparency=i
  2369. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2370. end
  2371. Part.Parent=nil
  2372. end),prt,msh)
  2373. end
  2374.  
  2375. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2376. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2377. prt.Anchored=true
  2378. prt.Material = "Neon"
  2379. prt.CFrame=cframe
  2380. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2381. game:GetService("Debris"):AddItem(prt,5)
  2382. coroutine.resume(coroutine.create(function(Part,Mesh)
  2383. local rtype = rottype
  2384. for i=0,1,delay do
  2385. swait()
  2386. if rtype == 1 then
  2387. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2388. elseif rtype == 2 then
  2389. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2390. end
  2391. Part.Transparency=i
  2392. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2393. end
  2394. Part.Parent=nil
  2395. end),prt,msh)
  2396. end
  2397.  
  2398. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2399. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2400. prt.Anchored=true
  2401. prt.Material = "Neon"
  2402. prt.CFrame=cframe
  2403. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2404. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2405. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2406. game:GetService("Debris"):AddItem(prt,5)
  2407. coroutine.resume(coroutine.create(function(Part,Mesh)
  2408. local rtype = rottype
  2409. for i=0,1,delay do
  2410. swait()
  2411. if rtype == 1 then
  2412. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2413. elseif rtype == 2 then
  2414. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2415. end
  2416. dec.Transparency=i
  2417. dec2.Transparency=i
  2418. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2419. end
  2420. Part.Parent=nil
  2421. end),prt,msh)
  2422. end
  2423.  
  2424. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2425. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2426. prt.Anchored=true
  2427. prt.Material = "Neon"
  2428. prt.CFrame=cframe
  2429. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2430. game:GetService("Debris"):AddItem(prt,5)
  2431. coroutine.resume(coroutine.create(function(Part,Mesh)
  2432. local rtype = rottype
  2433. for i=0,1,delay do
  2434. swait()
  2435. if rtype == 1 then
  2436. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2437. elseif rtype == 2 then
  2438. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2439. end
  2440. prt.Transparency=i
  2441. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2442. end
  2443. Part.Parent=nil
  2444. end),prt,msh)
  2445. end
  2446.  
  2447. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2448. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2449. prt.Anchored=true
  2450. prt.Material = "Neon"
  2451. prt.CFrame=cframe
  2452. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2453. game:GetService("Debris"):AddItem(prt,5)
  2454. coroutine.resume(coroutine.create(function(Part,Mesh)
  2455. local rtype = rottype
  2456. for i=0,1,delay do
  2457. swait()
  2458. if rtype == 1 then
  2459. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2460. elseif rtype == 2 then
  2461. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2462. end
  2463. prt.Transparency=i
  2464. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2465. end
  2466. Part.Parent=nil
  2467. end),prt,msh)
  2468. end
  2469.  
  2470. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2471. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2472. prt.Anchored=true
  2473. prt.Material = "Neon"
  2474. prt.CFrame=cframe
  2475. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2476. game:GetService("Debris"):AddItem(prt,5)
  2477. coroutine.resume(coroutine.create(function(Part,Mesh)
  2478. local rtype = rottype
  2479. for i=0,1,delay do
  2480. swait()
  2481. if rtype == 1 then
  2482. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2483. elseif rtype == 2 then
  2484. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2485. end
  2486. prt.Transparency=i
  2487. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2488. end
  2489. Part.Parent=nil
  2490. end),prt,msh)
  2491. end
  2492.  
  2493. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2494. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2495. prt.Anchored=true
  2496. prt.Material = "Neon"
  2497. prt.CFrame=cframe
  2498. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2499. game:GetService("Debris"):AddItem(prt,5)
  2500. coroutine.resume(coroutine.create(function(Part,Mesh)
  2501. local rtype = rottype
  2502. for i=0,1,delay do
  2503. swait()
  2504. if rtype == 1 then
  2505. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2506. elseif rtype == 2 then
  2507. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2508. end
  2509. prt.Transparency=i
  2510. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2511. end
  2512. Part.Parent=nil
  2513. end),prt,msh)
  2514. end
  2515.  
  2516. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2517. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2518. prt.Anchored=false
  2519. prt.CFrame=cframe
  2520. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2521. local wld=weld(prt,prt,Parent,cframe)
  2522. game:GetService("Debris"):AddItem(prt,5)
  2523. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2524. for i=0,1,delay do
  2525. wait()
  2526. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2527. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2528. Part.Transparency=i
  2529. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2530. end
  2531. Part.Parent=nil
  2532. end),prt,msh,wld)
  2533. end
  2534.  
  2535. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2536. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2537. prt.Anchored=false
  2538. prt.CFrame=cframe
  2539. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2540. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2541. game:GetService("Debris"):AddItem(prt,5)
  2542. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2543. for i=0,1,delay do
  2544. wait()
  2545. Weld.C0=euler(i*20,0,0)
  2546. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2547. Part.Transparency=i
  2548. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2549. end
  2550. Part.Parent=nil
  2551. end),prt,msh,wld)
  2552. end
  2553.  
  2554. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2555. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2556. prt.Anchored=true
  2557. prt.CFrame=cframe
  2558. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2559. game:GetService("Debris"):AddItem(prt,2)
  2560. coroutine.resume(coroutine.create(function(Part,Mesh)
  2561. for i=0,1,delay do
  2562. wait()
  2563. Part.CFrame=Part.CFrame
  2564. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2565. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2566. prt2.Anchored=true
  2567. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2568. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2569. game:GetService("Debris"):AddItem(prt2,2)
  2570. coroutine.resume(coroutine.create(function(Part,Mesh)
  2571. for i=0,1,0.1 do
  2572. wait()
  2573. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2574. end
  2575. Part.Parent=nil
  2576. end),prt2,msh2)
  2577. end
  2578. for i=0,1,delay*2 do
  2579. wait()
  2580. Part.CFrame=Part.CFrame
  2581. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2582. end
  2583. Part.Parent=nil
  2584. end),prt,msh)
  2585. end
  2586.  
  2587. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2588. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2589. prt.Anchored=true
  2590. prt.CFrame=cframe
  2591. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2592. game:GetService("Debris"):AddItem(prt,2)
  2593. coroutine.resume(coroutine.create(function(Part,Mesh)
  2594. for i=0,1,delay do
  2595. wait()
  2596. Part.CFrame=Part.CFrame
  2597. Part.Transparency=i
  2598. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2599. end
  2600. Part.Parent=nil
  2601. end),prt,msh)
  2602. end
  2603.  
  2604. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2605. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2606. prt.Anchored=true
  2607. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2608. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2609. game:GetService("Debris"):AddItem(prt,2)
  2610. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2611. CF=Part.CFrame
  2612. Numbb=0
  2613. randnumb=math.random()/10
  2614. rand1=math.random()/10
  2615. for i=0,1,rand1 do
  2616. wait()
  2617. CF=CF*cf(0,math.random()/2,0)
  2618. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2619. Part.CFrame=CF*euler(Numbb,0,0)
  2620. Part.Transparency=i
  2621. Numbb=Numbb+randnumb
  2622. end
  2623. Part.Parent=nil
  2624. end),prt,CF,Numbb,randnumb)
  2625. end
  2626.  
  2627. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2628. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2629. prt.Anchored=true
  2630. prt.CFrame=cframe
  2631. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2632. game:GetService("Debris"):AddItem(prt,5)
  2633. coroutine.resume(coroutine.create(function(Part,Mesh)
  2634. for i=0,1,delay do
  2635. wait()
  2636. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2637. Part.Transparency=i
  2638. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2639. end
  2640. Part.Parent=nil
  2641. end),prt,msh)
  2642. end
  2643.  
  2644. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2645. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2646. prt.Anchored=true
  2647. prt.CFrame=cframe
  2648. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2649. game:GetService("Debris"):AddItem(prt,2)
  2650. coroutine.resume(coroutine.create(function(Part,Mesh)
  2651. for i=0,1,delay do
  2652. wait()
  2653. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2654. Part.Transparency=i
  2655. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2656. end
  2657. Part.Parent=nil
  2658. end),prt,msh)
  2659. end
  2660.  
  2661. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2662. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2663. prt.Anchored=true
  2664. prt.CFrame=cframe*cf(x,y,z)
  2665. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2666. game:GetService("Debris"):AddItem(prt,5)
  2667. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2668. local num=math.random()
  2669. local num2=math.random(-3,2)+math.random()
  2670. local numm=0
  2671. for i=0,1,delay*2 do
  2672. swait()
  2673. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2674. Part.Transparency=i
  2675. numm=numm+0.01
  2676. end
  2677. Part.Parent=nil
  2678. Mesh.Parent=nil
  2679. end),prt,msh,x,y,z)
  2680. end
  2681.  
  2682. function dmgstart(dmg,what)
  2683. hitcon = what.Touched:connect(function(hit)
  2684. local hum = hit.Parent:FindFirstChild("Humanoid")
  2685. if hum and not hum:IsDescendantOf(Character) then
  2686. hum:TakeDamage(dmg)
  2687. end
  2688. end)
  2689. end
  2690.  
  2691. function dmgstop()
  2692. hitcon:disconnect()
  2693. end
  2694.  
  2695. function Cloak()
  2696. Face.Parent=nil
  2697. cloaked=true
  2698. for _,v in pairs(Torso.Parent:children()) do
  2699. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2700. coroutine.resume(coroutine.create(function()
  2701. for i=0,1,0.2 do
  2702. wait()
  2703. v.Transparency=i
  2704. end
  2705. v.Transparency=1
  2706. end))
  2707. end
  2708. if v.className=="Hat" then
  2709. hatp=v.Handle
  2710. coroutine.resume(coroutine.create(function(derp)
  2711. for i=0,1,0.2 do
  2712. wait()
  2713. derp.Transparency=i
  2714. end
  2715. derp.Transparency=1
  2716. end),hatp)
  2717. end
  2718. end
  2719. for _,v in pairs(m:children()) do
  2720. if v.className=="Part" then
  2721. coroutine.resume(coroutine.create(function()
  2722. for i=0,1,0.2 do
  2723. wait()
  2724. v.Transparency=i
  2725. end
  2726. v.Transparency=1
  2727. end))
  2728. end
  2729. end
  2730. end
  2731.  
  2732. function UnCloak()
  2733. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2734. Face.Parent=Head
  2735. cloaked=false
  2736. for _,v in pairs(Torso.Parent:children()) do
  2737. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2738. coroutine.resume(coroutine.create(function()
  2739. for i=0,1,0.1 do
  2740. wait()
  2741. v.Transparency=v.Transparency-0.1
  2742. end
  2743. v.Transparency=0
  2744. end))
  2745. end
  2746. if v.className=="Hat" then
  2747. hatp=v.Handle
  2748. coroutine.resume(coroutine.create(function(derp)
  2749. for i=0,1,0.1 do
  2750. wait()
  2751. derp.Transparency=derp.Transparency-0.1
  2752. end
  2753. derp.Transparency=0
  2754. end),hatp)
  2755. end
  2756. end
  2757. for _,v in pairs(m:children()) do
  2758. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2759. coroutine.resume(coroutine.create(function()
  2760. for i=0,1,0.1 do
  2761. wait()
  2762. v.Transparency=v.Transparency-0.1
  2763. end
  2764. v.Transparency=0
  2765. end))
  2766. v.Transparency=0
  2767. end
  2768. end
  2769. end
  2770.  
  2771. local origcolor = BrickColor.new("Pastel light blue")
  2772. ---- This section of explosions.
  2773.  
  2774. ----
  2775.  
  2776.  
  2777. function ring(type,pos,scale,value)
  2778. local type = type
  2779. local rng = Instance.new("Part", char)
  2780. rng.Anchored = true
  2781. rng.BrickColor = origcolor
  2782. rng.CanCollide = false
  2783. rng.FormFactor = 3
  2784. rng.Name = "Ring"
  2785. rng.Size = Vector3.new(1, 1, 1)
  2786. rng.Transparency = 0
  2787. rng.TopSurface = 0
  2788. rng.BottomSurface = 0
  2789. rng.CFrame = pos
  2790. local rngm = Instance.new("SpecialMesh", rng)
  2791. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2792. rngm.Scale = scale
  2793. local scaler2 = 1
  2794. if type == "Add" then
  2795. scaler2 = 1*value
  2796. elseif type == "Divide" then
  2797. scaler2 = 1/value
  2798. end
  2799. coroutine.resume(coroutine.create(function()
  2800. for i = 0,10,0.1 do
  2801. swait()
  2802. if type == "Add" then
  2803. scaler2 = scaler2 - 0.01*value
  2804. elseif type == "Divide" then
  2805. scaler2 = scaler2 - 0.01/value
  2806. end
  2807. rng.Transparency = rng.Transparency + 0.01
  2808. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2809. end
  2810. rng:Destroy()
  2811. end))
  2812. end
  2813.  
  2814.  
  2815. function wave(type,pos,scale,value)
  2816. local type = type
  2817. local rng = Instance.new("Part", char)
  2818. rng.Anchored = true
  2819. rng.BrickColor = origcolor
  2820. rng.CanCollide = false
  2821. rng.FormFactor = 3
  2822. rng.Name = "Ring"
  2823. rng.Size = Vector3.new(1, 1, 1)
  2824. rng.Transparency = 0
  2825. rng.TopSurface = 0
  2826. rng.BottomSurface = 0
  2827. rng.CFrame = pos
  2828. local rngm = Instance.new("SpecialMesh", rng)
  2829. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2830. rngm.Scale = scale
  2831. local scaler2 = 1
  2832. if type == "Add" then
  2833. scaler2 = 1*value
  2834. elseif type == "Divide" then
  2835. scaler2 = 1/value
  2836. end
  2837. coroutine.resume(coroutine.create(function()
  2838. for i = 0,10,0.1 do
  2839. swait()
  2840. if type == "Add" then
  2841. scaler2 = scaler2 - 0.01*value
  2842. elseif type == "Divide" then
  2843. scaler2 = scaler2 - 0.01/value
  2844. end
  2845. rng.Transparency = rng.Transparency + 0.01
  2846. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2847. end
  2848. rng:Destroy()
  2849. end))
  2850. end
  2851.  
  2852. function wind(type,pos,scale,value,speed)
  2853. local type = type
  2854. local rng = Instance.new("Part", char)
  2855. rng.Anchored = true
  2856. rng.BrickColor = origcolor
  2857. rng.CanCollide = false
  2858. rng.FormFactor = 3
  2859. rng.Name = "Ring"
  2860. rng.Size = Vector3.new(1, 1, 1)
  2861. rng.Transparency = 0
  2862. rng.TopSurface = 0
  2863. rng.BottomSurface = 0
  2864. rng.CFrame = pos
  2865. local rngm = Instance.new("SpecialMesh", rng)
  2866. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2867. rngm.Scale = scale
  2868. local scaler2 = 1
  2869. if type == "Add" then
  2870. scaler2 = 1*value
  2871. elseif type == "Divide" then
  2872. scaler2 = 1/value
  2873. end
  2874. coroutine.resume(coroutine.create(function()
  2875. for i = 0,10,0.1 do
  2876. swait()
  2877. if type == "Add" then
  2878. scaler2 = scaler2 - 0.01*value
  2879. elseif type == "Divide" then
  2880. scaler2 = scaler2 - 0.01/value
  2881. end
  2882. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2883. rng.Transparency = rng.Transparency + 0.01
  2884. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2885. end
  2886. rng:Destroy()
  2887. end))
  2888. end
  2889.  
  2890. function groundwind(type,pos,scale,value,speed)
  2891. local type = type
  2892. local rng = Instance.new("Part", char)
  2893. rng.Anchored = true
  2894. rng.BrickColor = origcolor
  2895. rng.CanCollide = false
  2896. rng.FormFactor = 3
  2897. rng.Name = "Ring"
  2898. rng.Size = Vector3.new(1, 1, 1)
  2899. rng.Transparency = 0
  2900. rng.TopSurface = 0
  2901. rng.BottomSurface = 0
  2902. rng.CFrame = pos
  2903. local rngm = Instance.new("SpecialMesh", rng)
  2904. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2905. rngm.Scale = scale
  2906. local scaler2 = 1
  2907. if type == "Add" then
  2908. scaler2 = 1*value
  2909. elseif type == "Divide" then
  2910. scaler2 = 1/value
  2911. end
  2912. coroutine.resume(coroutine.create(function()
  2913. for i = 0,10,0.1 do
  2914. swait()
  2915. if type == "Add" then
  2916. scaler2 = scaler2 - 0.01*value
  2917. elseif type == "Divide" then
  2918. scaler2 = scaler2 - 0.01/value
  2919. end
  2920. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2921. rng.Transparency = rng.Transparency + 0.01
  2922. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2923. end
  2924. rng:Destroy()
  2925. end))
  2926. end
  2927.  
  2928. function CameraManager()
  2929. if TwoD and not CamInterrupt then
  2930. if Humanoid.Health > 0 then
  2931. Camera.CameraSubject = Humanoid
  2932. Camera.CameraType = "Scriptable"
  2933. Humanoid.AutoRotate = false
  2934. if Booleans.GyroUse then
  2935. Directer.MaxTorque = Vec3(0, huge, 0)
  2936. else
  2937. Directer.MaxTorque = Vec3(0, 0, 0)
  2938. end
  2939. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2940. if Booleans.CamFollow then
  2941. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2942. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2943. else
  2944. CPart.Position = RootPart.Position
  2945. end
  2946. else
  2947. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2948. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2949. end
  2950. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2951. else
  2952. Camera.CameraSubject = Humanoid
  2953. Camera.CameraType = "Custom"
  2954. Controller.Disabled = false
  2955. end
  2956. end
  2957. end
  2958.  
  2959. function ring(type,pos,scale,value)
  2960. local type = type
  2961. local rng = Instance.new("Part", char)
  2962. rng.Anchored = true
  2963. rng.BrickColor = origcolor
  2964. rng.CanCollide = false
  2965. rng.FormFactor = 3
  2966. rng.Name = "Ring"
  2967. rng.Size = Vector3.new(1, 1, 1)
  2968. rng.Transparency = 0
  2969. rng.TopSurface = 0
  2970. rng.BottomSurface = 0
  2971. rng.CFrame = pos
  2972. local rngm = Instance.new("SpecialMesh", rng)
  2973. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2974. rngm.Scale = scale
  2975. local scaler2 = 1
  2976. if type == "Add" then
  2977. scaler2 = 1*value
  2978. elseif type == "Divide" then
  2979. scaler2 = 1/value
  2980. end
  2981. coroutine.resume(coroutine.create(function()
  2982. for i = 0,10,0.1 do
  2983. swait()
  2984. if type == "Add" then
  2985. scaler2 = scaler2 - 0.01*value
  2986. elseif type == "Divide" then
  2987. scaler2 = scaler2 - 0.01/value
  2988. end
  2989. rng.Transparency = rng.Transparency + 0.01
  2990. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2991. end
  2992. rng:Destroy()
  2993. end))
  2994. end
  2995.  
  2996.  
  2997. function wave(type,pos,scale,value)
  2998. local type = type
  2999. local rng = Instance.new("Part", char)
  3000. rng.Anchored = true
  3001. rng.BrickColor = origcolor
  3002. rng.CanCollide = false
  3003. rng.FormFactor = 3
  3004. rng.Name = "Ring"
  3005. rng.Size = Vector3.new(1, 1, 1)
  3006. rng.Transparency = 0
  3007. rng.TopSurface = 0
  3008. rng.BottomSurface = 0
  3009. rng.CFrame = pos
  3010. local rngm = Instance.new("SpecialMesh", rng)
  3011. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3012. rngm.Scale = scale
  3013. local scaler2 = 1
  3014. if type == "Add" then
  3015. scaler2 = 1*value
  3016. elseif type == "Divide" then
  3017. scaler2 = 1/value
  3018. end
  3019. coroutine.resume(coroutine.create(function()
  3020. for i = 0,10,0.1 do
  3021. swait()
  3022. if type == "Add" then
  3023. scaler2 = scaler2 - 0.01*value
  3024. elseif type == "Divide" then
  3025. scaler2 = scaler2 - 0.01/value
  3026. end
  3027. rng.Transparency = rng.Transparency + 0.01
  3028. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3029. end
  3030. rng:Destroy()
  3031. end))
  3032. end
  3033.  
  3034. function sphere(bonuspeed,type,pos,scale,value,color)
  3035. local type = type
  3036. local rng = Instance.new("Part", char)
  3037. rng.Anchored = true
  3038. if ModeOfGlitch ~= 9 then
  3039. rng.BrickColor = color
  3040. elseif ModeOfGlitch == 9 then
  3041. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3042. end
  3043. rng.CanCollide = false
  3044. rng.FormFactor = 3
  3045. rng.Name = "Ring"
  3046. rng.Material = "Neon"
  3047. rng.Size = Vector3.new(1, 1, 1)
  3048. rng.Transparency = 0
  3049. rng.TopSurface = 0
  3050. rng.BottomSurface = 0
  3051. rng.CFrame = pos
  3052. local rngm = Instance.new("SpecialMesh", rng)
  3053. rngm.MeshType = "Sphere"
  3054. rngm.Scale = scale
  3055. if rainbowmode == true then
  3056. rng.Color = Color3.new(r/255,g/255,b/255)
  3057. end
  3058. if ModeOfGlitch == 9 then
  3059. coroutine.resume(coroutine.create(function()
  3060. while true do
  3061. swait()
  3062. if rng.Parent ~= nil then
  3063. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3064. else
  3065. break
  3066. end
  3067. end
  3068. end))
  3069. end
  3070. local scaler2 = 1
  3071. if type == "Add" then
  3072. scaler2 = 1*value
  3073. elseif type == "Divide" then
  3074. scaler2 = 1/value
  3075. end
  3076. coroutine.resume(coroutine.create(function()
  3077. for i = 0,10/bonuspeed,0.1 do
  3078. swait()
  3079. if rainbowmode == true then
  3080. rng.Color = Color3.new(r/255,g/255,b/255)
  3081. end
  3082. if type == "Add" then
  3083. scaler2 = scaler2 - 0.01*value/bonuspeed
  3084. elseif type == "Divide" then
  3085. scaler2 = scaler2 - 0.01/value*bonuspeed
  3086. end
  3087. if chaosmode == true then
  3088. rng.BrickColor = BrickColor.random()
  3089. end
  3090. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3091. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3092. end
  3093. rng:Destroy()
  3094. end))
  3095. end
  3096.  
  3097. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  3098. local type = type
  3099. local rng = Instance.new("Part", char)
  3100. rng.Anchored = true
  3101. if ModeOfGlitch ~= 9 then
  3102. rng.BrickColor = color
  3103. elseif ModeOfGlitch == 9 then
  3104. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3105. end
  3106. rng.CanCollide = false
  3107. rng.FormFactor = 3
  3108. rng.Name = "Ring"
  3109. rng.Material = "Neon"
  3110. rng.Size = Vector3.new(1, 1, 1)
  3111. rng.Transparency = 0
  3112. rng.TopSurface = 0
  3113. rng.BottomSurface = 0
  3114. rng.CFrame = pos
  3115. local rngm = Instance.new("SpecialMesh", rng)
  3116. rngm.MeshType = "Sphere"
  3117. rngm.Scale = scale
  3118. local scaler2 = 1
  3119. local scaler2b = 1
  3120. local scaler2c = 1
  3121. if type == "Add" then
  3122. scaler2 = 1*value
  3123. scaler2b = 1*value2
  3124. scaler2c = 1*value3
  3125. elseif type == "Divide" then
  3126. scaler2 = 1/value
  3127. scaler2b = 1/value2
  3128. scaler2c = 1/value3
  3129. end
  3130. if ModeOfGlitch == 9 then
  3131. coroutine.resume(coroutine.create(function()
  3132. while true do
  3133. swait()
  3134. if rng.Parent ~= nil then
  3135. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3136. else
  3137. break
  3138. end
  3139. end
  3140. end))
  3141. end
  3142. coroutine.resume(coroutine.create(function()
  3143. for i = 0,10/bonuspeed,0.1 do
  3144. swait()
  3145. if type == "Add" then
  3146. scaler2 = scaler2 - 0.01*value/bonuspeed
  3147. scaler2b = scaler2b - 0.01*value/bonuspeed
  3148. scaler2c = scaler2c - 0.01*value/bonuspeed
  3149. elseif type == "Divide" then
  3150. scaler2 = scaler2 - 0.01/value*bonuspeed
  3151. scaler2b = scaler2b - 0.01/value*bonuspeed
  3152. scaler2c = scaler2c - 0.01/value*bonuspeed
  3153. end
  3154. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3155. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3156. end
  3157. rng:Destroy()
  3158. end))
  3159. end
  3160.  
  3161. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3162. local type = type
  3163. local rotenable = rotatingop
  3164. local rng = Instance.new("Part", char)
  3165. rng.Anchored = true
  3166. rng.BrickColor = color
  3167. rng.CanCollide = false
  3168. rng.FormFactor = 3
  3169. rng.Name = "Ring"
  3170. rng.Material = "Neon"
  3171. rng.Size = Vector3.new(1, 1, 1)
  3172. rng.Transparency = 0
  3173. if typeoftrans == "In" then
  3174. rng.Transparency = 1
  3175. end
  3176. rng.TopSurface = 0
  3177. rng.BottomSurface = 0
  3178. rng.CFrame = pos
  3179. local rngm = Instance.new("SpecialMesh", rng)
  3180. rngm.MeshType = "FileMesh"
  3181. if typeofshape == "Normal" then
  3182. rngm.MeshId = "rbxassetid://662586858"
  3183. elseif typeofshape == "Round" then
  3184. rngm.MeshId = "rbxassetid://662585058"
  3185. end
  3186. rngm.Scale = scale
  3187. local scaler2 = 1/10
  3188. if type == "Add" then
  3189. scaler2 = 1*value/10
  3190. elseif type == "Divide" then
  3191. scaler2 = 1/value/10
  3192. end
  3193. local randomrot = math.random(1,2)
  3194. coroutine.resume(coroutine.create(function()
  3195. for i = 0,10/bonuspeed,0.1 do
  3196. swait()
  3197. if type == "Add" then
  3198. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3199. elseif type == "Divide" then
  3200. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3201. end
  3202. if rotenable == true then
  3203. if randomrot == 1 then
  3204. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3205. elseif randomrot == 2 then
  3206. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3207. end
  3208. end
  3209. if typeoftrans == "Out" then
  3210. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3211. elseif typeoftrans == "In" then
  3212. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3213. end
  3214. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3215. end
  3216. rng:Destroy()
  3217. end))
  3218. end
  3219.  
  3220. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3221. local type = type
  3222. local rng = Instance.new("Part", char)
  3223. rng.Anchored = true
  3224. rng.BrickColor = color
  3225. rng.CanCollide = false
  3226. rng.FormFactor = 3
  3227. rng.Name = "Ring"
  3228. rng.Material = "Neon"
  3229. rng.Size = Vector3.new(1, 1, 1)
  3230. rng.Transparency = 0
  3231. rng.TopSurface = 0
  3232. rng.BottomSurface = 0
  3233. rng.CFrame = pos
  3234. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3235. local rngm = Instance.new("SpecialMesh", rng)
  3236. rngm.MeshType = "Brick"
  3237. rngm.Scale = vt(x1,y1,z1)
  3238. if rainbowmode == true then
  3239. rng.Color = Color3.new(r/255,g/255,b/255)
  3240. end
  3241. local scaler2 = 1
  3242. local speeder = FastSpeed/10
  3243. if type == "Add" then
  3244. scaler2 = 1*value
  3245. elseif type == "Divide" then
  3246. scaler2 = 1/value
  3247. end
  3248. coroutine.resume(coroutine.create(function()
  3249. for i = 0,10/bonuspeed,0.1 do
  3250. swait()
  3251. if rainbowmode == true then
  3252. rng.Color = Color3.new(r/255,g/255,b/255)
  3253. end
  3254. if type == "Add" then
  3255. scaler2 = scaler2 - 0.01*value/bonuspeed
  3256. elseif type == "Divide" then
  3257. scaler2 = scaler2 - 0.01/value*bonuspeed
  3258. end
  3259. if chaosmode == true then
  3260. rng.BrickColor = BrickColor.random()
  3261. end
  3262. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3263. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3264. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3265. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3266. end
  3267. rng:Destroy()
  3268. end))
  3269. end
  3270.  
  3271. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3272. local type = type
  3273. local rng = Instance.new("Part", char)
  3274. rng.Anchored = true
  3275. rng.BrickColor = color
  3276. rng.CanCollide = false
  3277. rng.FormFactor = 3
  3278. rng.Name = "Ring"
  3279. rng.Material = "Neon"
  3280. rng.Size = Vector3.new(1, 1, 1)
  3281. rng.Transparency = 0
  3282. rng.TopSurface = 0
  3283. rng.BottomSurface = 0
  3284. rng.CFrame = pos
  3285. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3286. local rngm = Instance.new("SpecialMesh", rng)
  3287. rngm.MeshType = "Brick"
  3288. rngm.Scale = vt(x1,y1,z1)
  3289. if rainbowmode == true then
  3290. rng.Color = Color3.new(r/255,g/255,b/255)
  3291. end
  3292. local scaler2 = 1
  3293. local speeder = FastSpeed/10
  3294. if type == "Add" then
  3295. scaler2 = 1*value
  3296. elseif type == "Divide" then
  3297. scaler2 = 1/value
  3298. end
  3299. coroutine.resume(coroutine.create(function()
  3300. for i = 0,10/bonuspeed,0.1 do
  3301. swait()
  3302. if rainbowmode == true then
  3303. rng.Color = Color3.new(r/255,g/255,b/255)
  3304. end
  3305. if type == "Add" then
  3306. scaler2 = scaler2 - 0.01*value/bonuspeed
  3307. elseif type == "Divide" then
  3308. scaler2 = scaler2 - 0.01/value*bonuspeed
  3309. end
  3310. if chaosmode == true then
  3311. rng.BrickColor = BrickColor.random()
  3312. end
  3313. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3314. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3315. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3316. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3317. end
  3318. rng:Destroy()
  3319. end))
  3320. end
  3321.  
  3322. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3323. local type = type
  3324. local rng = Instance.new("Part", char)
  3325. rng.Anchored = true
  3326. rng.BrickColor = color
  3327. rng.CanCollide = false
  3328. rng.FormFactor = 3
  3329. rng.Name = "Ring"
  3330. rng.Material = "Neon"
  3331. rng.Size = Vector3.new(1, 1, 1)
  3332. rng.Transparency = 0
  3333. rng.TopSurface = 0
  3334. rng.BottomSurface = 0
  3335. rng.CFrame = pos
  3336. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3337. local rngm = Instance.new("SpecialMesh", rng)
  3338. rngm.MeshType = "Brick"
  3339. rngm.Scale = vt(x1,y1,z1)
  3340. if rainbowmode == true then
  3341. rng.Color = Color3.new(r/255,g/255,b/255)
  3342. end
  3343. local scaler2 = 0
  3344. local speeder = FastSpeed/10
  3345. if type == "Add" then
  3346. scaler2 = 1*value
  3347. elseif type == "Divide" then
  3348. scaler2 = 1/value
  3349. end
  3350. coroutine.resume(coroutine.create(function()
  3351. for i = 0,10/bonuspeed,0.1 do
  3352. swait()
  3353. if rainbowmode == true then
  3354. rng.Color = Color3.new(r/255,g/255,b/255)
  3355. end
  3356. if type == "Add" then
  3357. scaler2 = scaler2 - 0.01*value/bonuspeed
  3358. elseif type == "Divide" then
  3359. scaler2 = scaler2 - 0.01/value*bonuspeed
  3360. end
  3361. if chaosmode == true then
  3362. rng.BrickColor = BrickColor.random()
  3363. end
  3364. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3365. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3366. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3367. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3368. end
  3369. rng:Destroy()
  3370. end))
  3371. end
  3372.  
  3373. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3374. local type = type
  3375. local rng = Instance.new("Part", char)
  3376. rng.Anchored = true
  3377. rng.BrickColor = color
  3378. rng.Color = color3
  3379. rng.CanCollide = false
  3380. rng.FormFactor = 3
  3381. rng.Name = "Ring"
  3382. rng.Material = "Neon"
  3383. rng.Size = Vector3.new(1, 1, 1)
  3384. rng.Transparency = 0
  3385. rng.TopSurface = 0
  3386. rng.BottomSurface = 0
  3387. rng.CFrame = pos
  3388. local rngm = Instance.new("SpecialMesh", rng)
  3389. rngm.MeshType = "Brick"
  3390. rngm.Scale = scale
  3391. local scaler2 = 1
  3392. local scaler2b = 1
  3393. local scaler2c = 1
  3394. if type == "Add" then
  3395. scaler2 = 1*value
  3396. scaler2b = 1*value2
  3397. scaler2c = 1*value3
  3398. elseif type == "Divide" then
  3399. scaler2 = 1/value
  3400. scaler2b = 1/value2
  3401. scaler2c = 1/value3
  3402. end
  3403. coroutine.resume(coroutine.create(function()
  3404. for i = 0,10/bonuspeed,0.1 do
  3405. swait()
  3406. if type == "Add" then
  3407. scaler2 = scaler2 - 0.01*value/bonuspeed
  3408. scaler2b = scaler2b - 0.01*value/bonuspeed
  3409. scaler2c = scaler2c - 0.01*value/bonuspeed
  3410. elseif type == "Divide" then
  3411. scaler2 = scaler2 - 0.01/value*bonuspeed
  3412. scaler2b = scaler2b - 0.01/value*bonuspeed
  3413. scaler2c = scaler2c - 0.01/value*bonuspeed
  3414. end
  3415. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3416. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3417. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3418. end
  3419. rng:Destroy()
  3420. end))
  3421. end
  3422.  
  3423. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3424. local type = type
  3425. local rng = Instance.new("Part", char)
  3426. rng.Anchored = true
  3427. if ModeOfGlitch ~= 9 then
  3428. rng.BrickColor = color
  3429. elseif ModeOfGlitch == 9 then
  3430. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3431. end
  3432. rng.CanCollide = false
  3433. rng.FormFactor = 3
  3434. rng.Name = "Ring"
  3435. rng.Material = "Neon"
  3436. rng.Size = Vector3.new(1, 1, 1)
  3437. rng.Transparency = 0
  3438. rng.TopSurface = 0
  3439. rng.BottomSurface = 0
  3440. rng.CFrame = pos
  3441. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3442. local rngm = Instance.new("SpecialMesh", rng)
  3443. rngm.MeshType = "Sphere"
  3444. rngm.Scale = vt(x1,y1,z1)
  3445. if rainbowmode == true then
  3446. rng.Color = Color3.new(r/255,g/255,b/255)
  3447. end
  3448. if ModeOfGlitch == 9 then
  3449. coroutine.resume(coroutine.create(function()
  3450. while true do
  3451. swait()
  3452. if rng.Parent ~= nil then
  3453. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3454. else
  3455. break
  3456. end
  3457. end
  3458. end))
  3459. end
  3460. local scaler2 = 1
  3461. local speeder = FastSpeed
  3462. if type == "Add" then
  3463. scaler2 = 1*value
  3464. elseif type == "Divide" then
  3465. scaler2 = 1/value
  3466. end
  3467. coroutine.resume(coroutine.create(function()
  3468. for i = 0,10/bonuspeed,0.1 do
  3469. swait()
  3470. if rainbowmode == true then
  3471. rng.Color = Color3.new(r/255,g/255,b/255)
  3472. end
  3473. if type == "Add" then
  3474. scaler2 = scaler2 - 0.01*value/bonuspeed
  3475. elseif type == "Divide" then
  3476. scaler2 = scaler2 - 0.01/value*bonuspeed
  3477. end
  3478. if chaosmode == true then
  3479. rng.BrickColor = BrickColor.random()
  3480. end
  3481. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3482. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3483. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3484. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3485. end
  3486. rng:Destroy()
  3487. end))
  3488. end
  3489.  
  3490.  
  3491. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3492. local type = type
  3493. local rng = Instance.new("Part", char)
  3494. rng.Anchored = true
  3495. if ModeOfGlitch ~= 9 then
  3496. rng.BrickColor = color
  3497. elseif ModeOfGlitch == 9 then
  3498. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3499. end
  3500. rng.CanCollide = false
  3501. rng.FormFactor = 3
  3502. rng.Name = "Ring"
  3503. rng.Material = "Neon"
  3504. rng.Size = Vector3.new(1, 1, 1)
  3505. rng.Transparency = 1
  3506. rng.TopSurface = 0
  3507. rng.BottomSurface = 0
  3508. rng.CFrame = pos
  3509. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3510. local rngm = Instance.new("SpecialMesh", rng)
  3511. rngm.MeshType = "Sphere"
  3512. rngm.Scale = vt(x1,y1,z1)
  3513. if rainbowmode == true then
  3514. rng.Color = Color3.new(r/255,g/255,b/255)
  3515. end
  3516. if ModeOfGlitch == 9 then
  3517. coroutine.resume(coroutine.create(function()
  3518. while true do
  3519. swait()
  3520. if rng.Parent ~= nil then
  3521. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3522. else
  3523. break
  3524. end
  3525. end
  3526. end))
  3527. end
  3528. local scaler2 = 1
  3529. local speeder = FastSpeed
  3530. if type == "Add" then
  3531. scaler2 = 1*value
  3532. elseif type == "Divide" then
  3533. scaler2 = 1/value
  3534. end
  3535. coroutine.resume(coroutine.create(function()
  3536. for i = 0,10/bonuspeed,0.1 do
  3537. swait()
  3538. if rainbowmode == true then
  3539. rng.Color = Color3.new(r/255,g/255,b/255)
  3540. end
  3541. if type == "Add" then
  3542. scaler2 = scaler2 - 0.01*value/bonuspeed
  3543. elseif type == "Divide" then
  3544. scaler2 = scaler2 - 0.01/value*bonuspeed
  3545. end
  3546. if chaosmode == true then
  3547. rng.BrickColor = BrickColor.random()
  3548. end
  3549. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3550. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3551. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3552. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3553. end
  3554. rng:Destroy()
  3555. end))
  3556. end
  3557.  
  3558. function dmg(dude)
  3559. if dude.Name ~= Character then
  3560. local keptcolor = MAINRUINCOLOR
  3561. local bgf = Instance.new("BodyGyro",dude.Head)
  3562. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3563. --[[local val = Instance.new("BoolValue",dude)
  3564. val.Name = "IsHit"]]--
  3565. local ds = coroutine.wrap(function()
  3566. dude:WaitForChild("Head"):BreakJoints()
  3567. for i, v in pairs(dude:GetChildren()) do
  3568. if v:IsA("Part") or v:IsA("MeshPart") then
  3569. v.Name = "DEMINISHED"
  3570. end
  3571. end
  3572. wait(0.5)
  3573. targetted = nil
  3574. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3575. coroutine.resume(coroutine.create(function()
  3576. for i, v in pairs(dude:GetChildren()) do
  3577. if v:IsA("Accessory") then
  3578. v:Destroy()
  3579. end
  3580. if v:IsA("Humanoid") then
  3581. v:Destroy()
  3582. end
  3583. if v:IsA("CharacterMesh") then
  3584. v:Destroy()
  3585. end
  3586. if v:IsA("Model") then
  3587. v:Destroy()
  3588. end
  3589. if v:IsA("Part") or v:IsA("MeshPart") then
  3590. for x, o in pairs(v:GetChildren()) do
  3591. if o:IsA("Decal") then
  3592. o:Destroy()
  3593. end
  3594. end
  3595. coroutine.resume(coroutine.create(function()
  3596. v.Material = "Neon"
  3597. v.CanCollide = false
  3598. v.Anchored = false
  3599. local bld = Instance.new("ParticleEmitter",v)
  3600. bld.LightEmission = 0.75
  3601. bld.Texture = "rbxassetid://363275192" ---284205403
  3602. bld.Color = ColorSequence.new(keptcolor.Color)
  3603. bld.Rate = 500
  3604. bld.Lifetime = NumberRange.new(1)
  3605. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3606. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3607. bld.Speed = NumberRange.new(2,5)
  3608. bld.VelocitySpread = 50000
  3609. bld.Rotation = NumberRange.new(-500,500)
  3610. bld.RotSpeed = NumberRange.new(-500,500)
  3611. local sbs = Instance.new("BodyPosition", v)
  3612. sbs.P = 3000
  3613. sbs.D = 1000
  3614. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3615. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3616. v.Color = keptcolor.Color
  3617. coroutine.resume(coroutine.create(function()
  3618. for i = 0, 49 do
  3619. swait(1)
  3620. v:BreakJoints()
  3621. v.Transparency = v.Transparency + 0.02
  3622. end
  3623. v:BreakJoints()
  3624. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3625. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3626. bld.Speed = NumberRange.new(10,25)
  3627. bld.Drag = 5
  3628. bld.Acceleration = vt(0,2,0)
  3629. wait(0.5)
  3630. bld.Enabled = false
  3631. wait(8)
  3632. v:Destroy()
  3633. dude:Destroy()
  3634. end))
  3635. end))
  3636. end
  3637. end
  3638. end))
  3639. end)
  3640. ds()
  3641. end
  3642. end
  3643.  
  3644.  
  3645. function FindNearestHead(Position, Distance, SinglePlayer)
  3646. if SinglePlayer then
  3647. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3648. end
  3649. local List = {}
  3650. for i, v in pairs(workspace:GetChildren()) do
  3651. if v:IsA("Model") then
  3652. if v:findFirstChild("Head") then
  3653. if v ~= Character then
  3654. if (v.Head.Position - Position).magnitude <= Distance then
  3655. table.insert(List, v)
  3656. end
  3657. end
  3658. end
  3659. end
  3660. end
  3661. return List
  3662. end
  3663.  
  3664. function FaceMouse()
  3665. Cam = workspace.CurrentCamera
  3666. return {
  3667. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3668. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3669. }
  3670. end
  3671.  
  3672. function FaceMouse2()
  3673. Cam = workspace.CurrentCamera
  3674. return {
  3675. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3676. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3677. }
  3678. end
  3679.  
  3680. local ModeOfGlitch = 1
  3681. -- Functions are ready.
  3682. local storehumanoidWS = 16
  3683.  
  3684. function CorruptBlink()
  3685. for i = 0, 14 do
  3686. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3687. end
  3688. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3689. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3690. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3691. CameraEnshaking(2,10)
  3692. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3693. if v:FindFirstChild('Head') then
  3694. dmg(v)
  3695. end
  3696. end
  3697. for i = 0, 14 do
  3698. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3699. end
  3700. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3701. end
  3702. function PureBomb()
  3703. attack = true
  3704. hum.WalkSpeed = 0
  3705. local orb = Instance.new("Part", char)
  3706. orb.Anchored = true
  3707. orb.BrickColor = BrickColor.new("Toothpaste")
  3708. orb.CanCollide = false
  3709. orb.FormFactor = 3
  3710. orb.Name = "Ring"
  3711. orb.Material = "Neon"
  3712. orb.Size = Vector3.new(1, 1, 1)
  3713. orb.Transparency = 0
  3714. orb.TopSurface = 0
  3715. orb.BottomSurface = 0
  3716. local orbm = Instance.new("SpecialMesh", orb)
  3717. orbm.MeshType = "Sphere"
  3718. orbm.Name = "SizeMesh"
  3719. orbm.Scale = vt(0,0,0)
  3720. local scaled = 0.1
  3721. local posid = 0
  3722. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3723. for i = 0, 5, 0.1 do
  3724. swait()
  3725. scaled = scaled - 0.001
  3726. posid = posid - scaled
  3727. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3728. local scaled = 0.1
  3729. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3730. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3731. PixelBlockNeg(2,1,"Add",orb.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.01,BrickColor.new("Toothpaste"),0)
  3732. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3733. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3734. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3735. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3736. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3737. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3738. end
  3739. for i = 0, 2, 0.1 do
  3740. swait()
  3741. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3742. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3743. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3744. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3745. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3746. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3747. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3748. end
  3749. coroutine.resume(coroutine.create(function()
  3750. orb.Anchored = false
  3751. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3752. local a = Instance.new("Part",workspace)
  3753. a.Name = "Direction"
  3754. a.Anchored = true
  3755. a.BrickColor = bc("Bright red")
  3756. a.Material = "Neon"
  3757. a.Transparency = 1
  3758. a.CanCollide = false
  3759. local ray = Ray.new(
  3760. orb.CFrame.p, -- origin
  3761. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3762. )
  3763. local ignore = orb
  3764. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3765. a.BottomSurface = 10
  3766. a.TopSurface = 10
  3767. local distance = (orb.CFrame.p - position).magnitude
  3768. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3769. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3770. orb.CFrame = a.CFrame
  3771. a:Destroy()
  3772. local bv = Instance.new("BodyVelocity")
  3773. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3774. bv.velocity = orb.CFrame.lookVector*125
  3775. bv.Parent = orb
  3776. local hitted = false
  3777. game:GetService("Debris"):AddItem(orb, 15)
  3778. wait()
  3779. local hit =orb.Touched:connect(function(hit)
  3780. if hitted == false then
  3781. hitted = true
  3782. CameraEnshaking(10,2.5)
  3783. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3784. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3785. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3786. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3787. for i = 0, 49 do
  3788. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3789. end
  3790. for i = 0, 9 do
  3791. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3792. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3793. end
  3794. orb.Anchored = true
  3795. orb.Transparency = 1
  3796. wait(8)
  3797. orb:Destroy()
  3798. end
  3799. end)
  3800. end))
  3801. for i = 0, 1, 0.1 do
  3802. swait()
  3803. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3804. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3808. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3809. end
  3810. hum.WalkSpeed = storehumanoidWS
  3811. attack = false
  3812. end
  3813.  
  3814. function BanishingOrb()
  3815. attack = true
  3816. hum.WalkSpeed = 0
  3817. local orb = Instance.new("Part", char)
  3818. orb.Anchored = true
  3819. orb.BrickColor = BrickColor.new("Black")
  3820. orb.CanCollide = false
  3821. orb.FormFactor = 3
  3822. orb.Name = "Ring"
  3823. orb.Material = "Neon"
  3824. orb.Size = Vector3.new(1, 1, 1)
  3825. orb.Transparency = 0
  3826. orb.TopSurface = 0
  3827. orb.BottomSurface = 0
  3828. local orbm = Instance.new("SpecialMesh", orb)
  3829. orbm.MeshType = "Sphere"
  3830. orbm.Name = "SizeMesh"
  3831. orbm.Scale = vt(0,0,0)
  3832. local scaled = 0.1
  3833. local posid = 0
  3834. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3835. for i = 0, 5, 0.1 do
  3836. swait()
  3837. scaled = scaled - 0.001
  3838. posid = posid - scaled
  3839. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3840. local scaled = 0.1
  3841. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3842. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
  3843. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3844. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3845. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3847. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3848. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3849. end
  3850. for i = 0, 2, 0.1 do
  3851. swait()
  3852. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3853. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3854. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3855. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3856. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3857. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3858. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3859. end
  3860. coroutine.resume(coroutine.create(function()
  3861. orb.Anchored = false
  3862. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3863. local a = Instance.new("Part",workspace)
  3864. a.Name = "Direction"
  3865. a.Anchored = true
  3866. a.BrickColor = bc("Bright red")
  3867. a.Material = "Neon"
  3868. a.Transparency = 1
  3869. a.CanCollide = false
  3870. local ray = Ray.new(
  3871. orb.CFrame.p, -- origin
  3872. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3873. )
  3874. local ignore = orb
  3875. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3876. a.BottomSurface = 10
  3877. a.TopSurface = 10
  3878. local distance = (orb.CFrame.p - position).magnitude
  3879. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3880. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3881. orb.CFrame = a.CFrame
  3882. a:Destroy()
  3883. local bv = Instance.new("BodyVelocity")
  3884. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3885. bv.velocity = orb.CFrame.lookVector*0
  3886. bv.Parent = orb
  3887. local hitted = false
  3888. local rate = 0
  3889. coroutine.resume(coroutine.create(function()
  3890. for i = 0, 24 do
  3891. wait(0.1)
  3892. rate = rate + 0.25
  3893. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3894. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3895. if v:FindFirstChild('Head') then
  3896. dmg(v)
  3897. end
  3898. end
  3899. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3900. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3901. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3902. end
  3903. orb.Anchored = true
  3904. orb.Transparency = 1
  3905. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3906. if v:FindFirstChild('Head') then
  3907. dmg(v)
  3908. end
  3909. end
  3910. local eff = Instance.new("ParticleEmitter",orb)
  3911. eff.Texture = "rbxassetid://296874871"
  3912. eff.LightEmission = 0.95
  3913. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3914. eff.Rate = 1000000000
  3915. eff.Lifetime = NumberRange.new(3)
  3916. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3917. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3918. eff.Speed = NumberRange.new(30)
  3919. eff.Acceleration = vt(0,-15,0)
  3920. eff.Rotation = NumberRange.new(-500,500)
  3921. eff.VelocitySpread = 100000
  3922. eff.RotSpeed = NumberRange.new(-500,500)
  3923. coroutine.resume(coroutine.create(function()
  3924. wait(0.6)
  3925. eff.Enabled = false
  3926. end))
  3927. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3928. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3929. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3930. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3931. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3932. game:GetService("Debris"):AddItem(orb, 15)
  3933. end))
  3934. end))
  3935. for i = 0, 1, 0.1 do
  3936. swait()
  3937. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3938. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3939. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3940. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3942. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3943. end
  3944. hum.WalkSpeed = storehumanoidWS
  3945. attack = false
  3946. end
  3947.  
  3948.  
  3949. function ChaosGroundStrike()
  3950. attack = true
  3951. for i = 0, 2, 0.1 do
  3952. swait()
  3953. bosschatfunc("Hahaha....",MAINRUINCOLOR.Color,2)
  3954. 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)),.2)
  3955. 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)),.2)
  3956. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3957. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3958. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3959. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3960. end
  3961. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3962. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3963. CameraEnshaking(4,12)
  3964. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3965. if v:FindFirstChild('Head') then
  3966. dmg(v)
  3967. end
  3968. end
  3969. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3970. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3971. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3972. for i = 0, 2, 0.1 do
  3973. swait()
  3974. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3975. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3976. 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)),.4)
  3977. 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)),.4)
  3978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3981. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3982. end
  3983. attack = false
  3984. end
  3985.  
  3986. function ChaosBegone()
  3987. attack = true
  3988. bosschatfunc("LEAVE THE DEAD!",MAINRUINCOLOR.Color,2)
  3989. for i = 0, 10, 0.1 do
  3990. swait()
  3991. 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)
  3992. 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)
  3993. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3994. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3995. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3996. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3997. end
  3998. bosschatfunc("WHERE THEY FALL!",MAINRUINCOLOR.Color,2)
  3999. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  4000. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  4001. CameraEnshaking(5, 25)
  4002. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4003. if v:FindFirstChild("Head") then
  4004. dmg(v)
  4005. end
  4006. end
  4007. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  4008. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  4009. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  4010. for i = 0, 3, 0.1 do
  4011. swait()
  4012. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4013. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4014. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4015. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  4016. 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)
  4017. 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)
  4018. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4019. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4020. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4021. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4022. end
  4023. attack = false
  4024. end
  4025. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  4026. local orb = Instance.new("Part", char)
  4027. orb.Anchored = true
  4028. orb.BrickColor = color
  4029. orb.CanCollide = false
  4030. orb.FormFactor = 3
  4031. orb.Name = "Ring"
  4032. orb.Material = "Neon"
  4033. orb.Size = Vector3.new(1, 1, 1)
  4034. orb.Transparency = 0
  4035. orb.TopSurface = 0
  4036. orb.BottomSurface = 0
  4037. local orbm = Instance.new("SpecialMesh", orb)
  4038. orbm.MeshType = "Sphere"
  4039. orb.CFrame = positted
  4040. orbm.Name = "SizeMesh"
  4041. orbm.Scale = vt(1, 1, 1)
  4042. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  4043. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  4044. coroutine.resume(coroutine.create(function()
  4045. wait(timer)
  4046. CameraEnshaking(3, ShakePower)
  4047. orb.Transparency = 1
  4048. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  4049. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  4050. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  4051. wait(3)
  4052. orb:Destroy()
  4053. end))
  4054. end
  4055. function orb_spawn(positted, timer)
  4056. local randomcol = math.random(1, 2)
  4057. local orb = Instance.new("Part", char)
  4058. orb.Anchored = true
  4059. if randomcol == 1 then
  4060. orb.BrickColor = BrickColor.new("White")
  4061. elseif randomcol == 2 then
  4062. orb.BrickColor = BrickColor.new("Really black")
  4063. end
  4064. orb.CanCollide = false
  4065. orb.FormFactor = 3
  4066. orb.Name = "Ring"
  4067. orb.Material = "Neon"
  4068. orb.Size = Vector3.new(1, 1, 1)
  4069. orb.Transparency = 0
  4070. orb.TopSurface = 0
  4071. orb.BottomSurface = 0
  4072. local orbm = Instance.new("SpecialMesh", orb)
  4073. orbm.MeshType = "Sphere"
  4074. orb.CFrame = positted
  4075. orbm.Name = "SizeMesh"
  4076. orbm.Scale = vt(1, 1, 1)
  4077. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  4078. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  4079. for i = 0, 2 do
  4080. sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0)
  4081. end
  4082. coroutine.resume(coroutine.create(function()
  4083. wait(timer)
  4084. CameraEnshaking(3, 2)
  4085. orb.Transparency = 1
  4086. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  4087. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  4088. for i = 0, 4 do
  4089. sphereMK(5, 0.65, "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, orb.BrickColor, 0)
  4090. end
  4091. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  4092. wait(3)
  4093. orb:Destroy()
  4094. end))
  4095. end
  4096. function scattercorrupt()
  4097. attack = true
  4098. local rot = 0
  4099. local randomrotations = math.random(1, 2)
  4100. local lookv = 2.5
  4101. local power = 5
  4102. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Ghost grey"))
  4103. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Toothpaste"))
  4104. for i = 0, 9 do
  4105. sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Really red"), 0)
  4106. end
  4107. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  4108. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  4109. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  4110. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  4111. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  4112. local hite = Instance.new("Part", char)
  4113. hite.Anchored = true
  4114. hite.CanCollide = false
  4115. hite.FormFactor = 3
  4116. hite.Name = "Ring"
  4117. hite.Material = "Neon"
  4118. hite.Size = Vector3.new(1, 1, 1)
  4119. hite.Transparency = 1
  4120. hite.TopSurface = 0
  4121. hite.BottomSurface = 0
  4122. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  4123. local rem = Instance.new("Part", char)
  4124. rem.Anchored = true
  4125. rem.CanCollide = false
  4126. rem.FormFactor = 3
  4127. rem.Name = "Ring"
  4128. rem.Material = "Neon"
  4129. rem.Size = Vector3.new(1, 1, 1)
  4130. rem.Transparency = 1
  4131. rem.TopSurface = 0
  4132. rem.BottomSurface = 0
  4133. rem.CFrame = hite.CFrame
  4134. local rem2 = rem:Clone()
  4135. rem2.Parent = char
  4136. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4137. local rem3 = rem:Clone()
  4138. rem3.Parent = char
  4139. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4140. local rem4 = rem:Clone()
  4141. rem4.Parent = char
  4142. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4143. hite:Destroy()
  4144. coroutine.resume(coroutine.create(function()
  4145. for i = 0, 24 do
  4146. swait(1)
  4147. if randomrotations == 1 then
  4148. rot = rot + 1
  4149. elseif randomrotations == 2 then
  4150. rot = rot - 1
  4151. end
  4152. power = power + 0.5
  4153. lookv = lookv + 7.5
  4154. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  4155. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4156. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4157. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4158. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Deep orange"), power, 25, 75, 10, power / 5, 7.5)
  4159. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Really black"), power, 25, 75, 10, power / 5, 7.5)
  4160. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Really blue"), power, 25, 75, 10, power / 5, 7.5)
  4161. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Really red"), power, 25, 75, 10, power / 5, 7.5)
  4162. end
  4163. end))
  4164. attack = false
  4165. end
  4166.  
  4167. function GleamingBeam()
  4168. attack = true
  4169. bosschatfunc("OH YOU WILL DIEE!!!",MAINRUINCOLOR.Color,3)
  4170. CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
  4171. CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
  4172. local rsiz = math.random(1,15)
  4173. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4174. hb.Anchored = true
  4175. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4176. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
  4177. for i = 0, 16, 0.1 do
  4178. swait()
  4179. rsiz = math.random(5,15)
  4180. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4181. sphereMK(math.random(3,9),0.25,"Add",sorb.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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  4182. sphere2(5,"Add",sorb.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))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
  4183. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  4184. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  4185. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4186. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
  4187. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4188. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
  4189. end
  4190. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
  4191. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
  4192. for i = 0, 2 do
  4193. CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
  4194. end
  4195. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4196. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4197. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4198. for i = 0, 49 do
  4199. local rsiza = math.random(1,15)
  4200. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  4201. end
  4202. local a = Instance.new("Part",Character)
  4203. a.Name = "Direction"
  4204. a.Anchored = true
  4205. a.BrickColor = MAINRUINCOLOR
  4206. a.Material = "Neon"
  4207. a.Transparency = 0
  4208. a.Shape = "Cylinder"
  4209. a.CanCollide = false
  4210. local ba = Instance.new("Part",Character)
  4211. ba.Name = "HitDirect"
  4212. ba.Anchored = true
  4213. ba.BrickColor = bc("Cool yellow")
  4214. ba.Material = "Neon"
  4215. ba.Transparency = 1
  4216. ba.CanCollide = false
  4217. local ray = Ray.new(
  4218. hb.CFrame.p, -- origin
  4219. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  4220. )
  4221. local ignore = Character
  4222. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4223. a.BottomSurface = 10
  4224. a.TopSurface = 10
  4225. local distance = (hb.CFrame.p - position).magnitude
  4226. a.Size = Vector3.new(distance, 1, 1)
  4227. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4228. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4229. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4230. local msh = Instance.new("SpecialMesh",a)
  4231. msh.MeshType = "Cylinder"
  4232. msh.Scale = vt(1,4,4)
  4233. game:GetService("Debris"):AddItem(a, 30)
  4234. game:GetService("Debris"):AddItem(ba, 30)
  4235. for i = 0, 25, 0.1 do
  4236. swait()
  4237. hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
  4238. ray = Ray.new(
  4239. hb.CFrame.p, -- origin
  4240. (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
  4241. )
  4242. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4243. distance = (hb.CFrame.p - position).magnitude
  4244. a.Size = Vector3.new(distance, 1, 1)
  4245. a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4246. ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4247. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4248. rsiz = math.random(5,25)
  4249. MagniDamage(ba, 12, 40000,900000, 0, "Normal")
  4250. sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0)
  4251. for c = 0, 2 do
  4252. sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2)
  4253. end
  4254. sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
  4255. sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
  4256. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  4257. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  4258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6)
  4259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
  4260. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
  4261. LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
  4262. end
  4263. CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
  4264. CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
  4265. CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
  4266. CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
  4267. MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
  4268. sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  4269. sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  4270. sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
  4271. sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4272. sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4273. sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
  4274. for i = 0, 49 do
  4275. local rsiza = math.random(1,15)
  4276. sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
  4277. end
  4278. for i = 0, 49 do
  4279. rsiz = math.random(1,8)
  4280. sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2)
  4281. end
  4282. coroutine.resume(coroutine.create(function()
  4283. for i = 0, 99 do
  4284. swait()
  4285. a.Transparency = a.Transparency + 0.01
  4286. end
  4287. a:Destroy()
  4288. ba:Destroy()
  4289. end))
  4290. hb:Destroy()
  4291. attack = false
  4292. end
  4293.  
  4294. function BeamOfDeath()
  4295. attack = true
  4296. bosschatfunc("MUHAHAHAHAHA!",MAINRUINCOLOR.Color,2)
  4297. hum.WalkSpeed = 0
  4298. local keptcolor = MAINRUINCOLOR
  4299. local orb = Instance.new("Part", char)
  4300. orb.BrickColor = keptcolor
  4301. orb.CanCollide = false
  4302. orb.FormFactor = 3
  4303. orb.Name = "Ring"
  4304. orb.Material = "Neon"
  4305. orb.Size = Vector3.new(1, 1, 1)
  4306. orb.Transparency = 1
  4307. orb.TopSurface = 0
  4308. orb.BottomSurface = 0
  4309. local orbm = Instance.new("SpecialMesh", orb)
  4310. orbm.MeshType = "Sphere"
  4311. orbm.Name = "SizeMesh"
  4312. orbm.Scale = vt(22.5,10000,22.5)
  4313. orb.CFrame = mouse.Hit
  4314. orb.Anchored = true
  4315. orb.Orientation = vt(0,0,0)
  4316. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  4317. CFuncs["LongSound"].Create("rbxassetid://2011356475", char, 15, 1)
  4318. CFuncs["LongSound"].Create("rbxassetid://2011356475", char, 10, 1)
  4319. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  4320. wait(4)
  4321. CFuncs["LongSound"].Create("rbxassetid://1638627089", char, 10, 1)
  4322. coroutine.resume(coroutine.create(function()
  4323. coroutine.resume(coroutine.create(function()
  4324. for i = 0, 399 do
  4325. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  4326. orb.Transparency = orb.Transparency - 0.0025
  4327. end
  4328. end))
  4329. wait(9)
  4330. coroutine.resume(coroutine.create(function()
  4331. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  4332. if hfr ~= nil then
  4333. for i = 0, 49 do
  4334. local deb = Instance.new("Part", char)
  4335. deb.Anchored = true
  4336. deb.CanCollide = false
  4337. deb.FormFactor = 3
  4338. deb.Name = "Ring"
  4339. deb.Material = hitfloor.Material
  4340. deb.Color = hitfloor.Color
  4341. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  4342. deb.Transparency = 0
  4343. deb.TopSurface = 0
  4344. deb.BottomSurface = 0
  4345. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4346. local deb2 = Instance.new("Part", char)
  4347. deb2.CanCollide = false
  4348. deb2.FormFactor = 3
  4349. deb2.Name = "Ring"
  4350. deb2.Material = hitfloor.Material
  4351. deb2.Color = hitfloor.Color
  4352. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  4353. deb2.Transparency = 0
  4354. deb2.TopSurface = 0
  4355. deb2.BottomSurface = 0
  4356. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  4357. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4358. local eff = Instance.new("ParticleEmitter",deb)
  4359. eff.Texture = "rbxassetid://363275192"
  4360. eff.LightEmission = 0.95
  4361. eff.Color = ColorSequence.new(keptcolor.Color)
  4362. eff.Rate = 100
  4363. eff.Lifetime = NumberRange.new(1)
  4364. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  4365. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4366. eff.Speed = NumberRange.new(0,5)
  4367. eff.Rotation = NumberRange.new(-500,500)
  4368. eff.VelocitySpread = 9000
  4369. eff.RotSpeed = NumberRange.new(-10,10)
  4370. local at1 = Instance.new('Attachment',deb2)
  4371. at1.Position = vt(0,15,0)
  4372. local at2 = Instance.new('Attachment',deb2)
  4373. at2.Position = vt(0,-15,0)
  4374. local tl = Instance.new('Trail',deb2)
  4375. tl.Attachment0 = at1
  4376. tl.Attachment1 = at2
  4377. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4378. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  4379. tl.Lifetime = 1
  4380. game:GetService("Debris"):AddItem(deb,30)
  4381. game:GetService("Debris"):AddItem(deb2,30)
  4382. coroutine.resume(coroutine.create(function()
  4383. wait(15)
  4384. eff.Enabled = false
  4385. for i = 0, 49 do
  4386. swait()
  4387. deb.Transparency = deb.Transparency + 0.02
  4388. end
  4389. wait(1)
  4390. deb:Destroy()
  4391. end))
  4392. end
  4393. end
  4394. end))
  4395. for i = 0, 199 do
  4396. swait(1.5)
  4397. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  4398. if v:FindFirstChild('Head') then
  4399. dmg(v)
  4400. end
  4401. end
  4402. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  4403. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  4404. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  4405. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  4406. end
  4407. orb:Destroy()
  4408. end))
  4409. hum.WalkSpeed = storehumanoidWS
  4410. attack = false
  4411. end
  4412.  
  4413. function Beams()
  4414. attack = true
  4415. hum.WalkSpeed = 0
  4416. CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
  4417. CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
  4418. bosschatfunc("DETERMINED BEAMS!",MAINRUINCOLOR.Color,2)
  4419. local keptcolor = MAINRUINCOLOR
  4420. coroutine.resume(coroutine.create(function()
  4421. for i = 0, 96 do
  4422. swait(5)
  4423. local orb = Instance.new("Part", char)
  4424. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  4425. orb.BrickColor = keptcolor
  4426. orb.CanCollide = false
  4427. orb.FormFactor = 3
  4428. orb.Name = "Ring"
  4429. orb.Material = "Neon"
  4430. orb.Size = Vector3.new(1, 1, 1)
  4431. orb.Transparency = 0
  4432. orb.TopSurface = 0
  4433. orb.BottomSurface = 0
  4434. orb.Anchored = true
  4435. local orbm = Instance.new("SpecialMesh", orb)
  4436. orbm.MeshType = "Sphere"
  4437. orbm.Name = "SizeMesh"
  4438. orbm.Scale = vt(1.25,1.25,1.25)
  4439. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  4440. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4441. coroutine.resume(coroutine.create(function()
  4442. wait(0.5)
  4443. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  4444. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4445. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  4446. orb.Transparency = 1
  4447. local a = Instance.new("Part",char)
  4448. a.Name = "Direction"
  4449. a.Anchored = true
  4450. a.BrickColor = keptcolor
  4451. a.Material = "Neon"
  4452. a.Transparency = 0.25
  4453. a.Shape = "Cylinder"
  4454. local ht = Instance.new("Part",char)
  4455. ht.Name = "DirectionHit"
  4456. ht.Anchored = true
  4457. ht.BrickColor = keptcolor
  4458. ht.CanCollide = false
  4459. ht.Transparency = 1
  4460. ht.Size = vt(0.1,0.1,0.1)
  4461. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
  4462. a.CanCollide = false
  4463. local ray = Ray.new(
  4464. orb.CFrame.p, -- origin
  4465. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  4466. )
  4467. local ignore = char
  4468. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4469. a.BottomSurface = 10
  4470. a.TopSurface = 10
  4471. local distance = (orb.CFrame.p - position).magnitude
  4472. a.Size = Vector3.new(distance,1,1)
  4473. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4474. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4475. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4476. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  4477. MagniDamage(ht, 9, 30,60, 0, "Normal")
  4478. coroutine.resume(coroutine.create(function()
  4479. local eff = Instance.new("ParticleEmitter",ht)
  4480. eff.Texture = "rbxassetid://284205403"
  4481. eff.LightEmission = 0.95
  4482. eff.Color = ColorSequence.new(keptcolor.Color)
  4483. eff.Rate = 500
  4484. eff.Lifetime = NumberRange.new(0.5)
  4485. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4486. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4487. eff.Speed = NumberRange.new(10,50)
  4488. eff.Drag = 5
  4489. eff.Rotation = NumberRange.new(-500,500)
  4490. eff.VelocitySpread = 9000
  4491. eff.RotSpeed = NumberRange.new(-500,500)
  4492. wait(0.25)
  4493. eff.Enabled = false
  4494. end))
  4495. for i = 0, 4 do
  4496. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  4497. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  4498. local rsiz = math.random(10,30)
  4499. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  4500. end
  4501. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4502. local msh = Instance.new("SpecialMesh",a)
  4503. msh.MeshType = "Cylinder"
  4504. msh.Scale = vt(1,1,1)
  4505. for i = 0, 49 do
  4506. swait()
  4507. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  4508. a.Transparency = a.Transparency + 0.02
  4509. end
  4510. orb:Destroy()
  4511. a:Destroy()
  4512. ht:Destroy()
  4513. end))
  4514. game:GetService("Debris"):AddItem(orb, 10)
  4515. end
  4516. end))
  4517. for i = 0,6,0.1 do
  4518. swait()
  4519. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  4520. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  4521. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  4522. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  4523. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  4524. 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 - 6 * math.cos(sine / 39))),.1)
  4525. 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 / 45))),.1)
  4526. end
  4527. hum.WalkSpeed = storehumanoidWS
  4528. attack = false
  4529. end
  4530.  
  4531. function hugg()
  4532. attack = true
  4533. hum.WalkSpeed = 5
  4534. local rsiz = math.random(5,15)
  4535. for i = 0, 2, 0.1 do
  4536. swait()
  4537. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4538. 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))),.3)
  4539. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4540. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  4541. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
  4542. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
  4543. end
  4544. CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
  4545. local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  4546. hb.Anchored = true
  4547. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4548. local huggedperson = nil
  4549. local act = false
  4550. local alreadydid = false
  4551. for i = 0, 3, 0.1 do
  4552. swait()
  4553. if act == false then
  4554. for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
  4555. if v:FindFirstChild('Head') then
  4556. if alreadydid == false then
  4557. huggedperson = v
  4558. hum.WalkSpeed = 0
  4559. CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
  4560. CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
  4561. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
  4562. CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
  4563. local radm = math.random(1,3)
  4564. bosschatfunc("Friend hug!..",MAINRUINCOLOR.Color,1)
  4565. root.Anchored = true
  4566. coroutine.resume(coroutine.create(function()
  4567. huggedperson.Humanoid.WalkSpeed = 0
  4568. huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
  4569. end))
  4570. --chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
  4571. alreadydid = true
  4572. act = true
  4573. print(huggedperson.Name)
  4574. end
  4575. end
  4576. end
  4577. hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
  4578. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
  4579. elseif act == true then
  4580. coroutine.resume(coroutine.create(function()
  4581. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4582. end))
  4583. rsiz = math.random(5,15)
  4584. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  4585. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1)
  4586. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4587. end
  4588. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4589. 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))),.3)
  4590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4591. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4592. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4593. end
  4594. hb:Destroy()
  4595. if act == true then
  4596. for x = 0, 2 do
  4597. for i = 0, 2, 0.1 do
  4598. swait()
  4599. coroutine.resume(coroutine.create(function()
  4600. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4601. end))
  4602. rsiz = math.random(5,15)
  4603. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  4604. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
  4605. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4606. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4607. 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))),.3)
  4608. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4609. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4610. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4611. end
  4612. for i = 0, 2, 0.1 do
  4613. swait()
  4614. coroutine.resume(coroutine.create(function()
  4615. huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
  4616. end))
  4617. rsiz = math.random(5,15)
  4618. sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
  4619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1)
  4620. huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
  4621. 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(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
  4622. 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))),.3)
  4623. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4624. RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
  4625. LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
  4626. end
  4627. end
  4628. end
  4629. hum.WalkSpeed = storehumanoidWS
  4630. root.Anchored = false
  4631. if act == true then
  4632. coroutine.resume(coroutine.create(function()
  4633. huggedperson.Humanoid.WalkSpeed = 16
  4634. huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
  4635. end))
  4636. end
  4637. hum.WalkSpeed = storehumanoidWS
  4638. attack = false
  4639. end
  4640.  
  4641. function THE_TRUE_POWER_OF_VIOLENCE()
  4642. attack = true
  4643. hum.WalkSpeed = 0
  4644. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4645. for i = 0, 10, 0.1 do
  4646. swait()
  4647. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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)
  4648. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4649. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.4)
  4650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4652. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4653. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  4654. end
  4655. local orb = Instance.new("Part", char)
  4656. orb.BrickColor = MAINRUINCOLOR
  4657. orb.CanCollide = false
  4658. orb.FormFactor = 3
  4659. orb.Name = "Ring"
  4660. orb.Material = "Neon"
  4661. orb.Size = Vector3.new(1, 1, 1)
  4662. orb.Transparency = 0
  4663. orb.TopSurface = 0
  4664. orb.BottomSurface = 0
  4665. orb.CFrame = sorb.CFrame
  4666. local orbm = Instance.new("SpecialMesh", orb)
  4667. orbm.MeshType = "Sphere"
  4668. orbm.Name = "SizeMesh"
  4669. orbm.Scale = vt(0,0,0)
  4670. local sbs = Instance.new("BodyPosition", orb)
  4671. sbs.P = 3000
  4672. sbs.D = 1000
  4673. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4674. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4675. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4676. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4677. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4678. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4679. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4680. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4681. for i = 0, 10, 0.1 do
  4682. swait()
  4683. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4684. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4685. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4686. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4688. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4689. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4690. end
  4691. orb.Anchored = true
  4692. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4693. elocacenter.Anchored = true
  4694. elocacenter.CFrame = orb.CFrame
  4695. elocacenter.Orientation = vt(0,0,0)
  4696. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4697. eloca1.Anchored = true
  4698. eloca1.CFrame = elocacenter.CFrame
  4699. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4700. eloca2.Anchored = true
  4701. eloca2.CFrame = elocacenter.CFrame
  4702. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4703. eloca3.Anchored = true
  4704. eloca3.CFrame = elocacenter.CFrame
  4705. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4706. eloca4.Anchored = true
  4707. eloca4.CFrame = elocacenter.CFrame
  4708. local lookavec = 0
  4709. local speeds = 0
  4710. CameraEnshaking(1,1)
  4711. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4712. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4713. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4714. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4715. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4716. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4717. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4718. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4719. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4720. for i = 0, 99 do
  4721. swait()
  4722. lookavec = lookavec + 2.5
  4723. speeds = speeds + 0.25
  4724. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4725. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4726. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4727.  
  4728. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4729. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4730.  
  4731. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4732. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4733.  
  4734. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4735. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4736. end
  4737.  
  4738. for i = 0, 149 do
  4739. swait()
  4740. speeds = speeds + 0.25
  4741. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4742. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4743. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4744.  
  4745. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4746. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4747.  
  4748. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4749. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4750.  
  4751. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4752. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4753. end
  4754. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4755. for i = 0, 99 do
  4756. swait()
  4757. lookavec = lookavec - 2.5
  4758. speeds = speeds + 0.25
  4759. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4760. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4761. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4762.  
  4763. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4764. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4765.  
  4766. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4767. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4768.  
  4769. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4770. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4771. end
  4772. local scaled = 0.1*75
  4773. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4774. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4775. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4776. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4777. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4778. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4779. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4780. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4781. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4782. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4783. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4784. for i = 0, 10, 0.1 do
  4785. swait()
  4786. scaled = scaled - 0.001*75
  4787. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4788. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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)
  4789. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4790. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4791. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4792. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4793. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4794. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4795. end
  4796. for x = 0, 4 do
  4797. for i = 0, 9 do
  4798. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4799. end
  4800. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4801. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4802. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4803. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4804. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4805. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4806. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4807. for i = 0, 5, 0.1 do
  4808. swait()
  4809. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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)
  4810. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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)
  4811. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  4812. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  4813. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4814. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4815. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4816. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4817. end
  4818. end
  4819. local speedearn = 0
  4820. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4821. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4822. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4823. for i = 0, 30, 0.1 do
  4824. swait()
  4825. scaled = scaled - 0.001*75/10
  4826. speedearn = speedearn + 0.5
  4827. for i = 0, 4 do
  4828. sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4829. end
  4830. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4831. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4832. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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)
  4833. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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)
  4834. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4835. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4836. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4837. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4838. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4839. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4840. end
  4841. orb.Transparency = 1
  4842. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4843. if v:FindFirstChild('Head') then
  4844. dmg(v)
  4845. end
  4846. end
  4847. CameraEnshaking(7,30)
  4848. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4849. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4850. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4851. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4852. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4853. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4854. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4855. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4856. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4857. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4858. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4859. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4860. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4861. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4862. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4863. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4864. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4865. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4866. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4867. for i = 0, 99 do
  4868. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4869. PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4870. end
  4871. for i = 0, 24 do
  4872. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4873. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4874. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4875. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4876. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4877. end
  4878. game:GetService("Debris"):AddItem(orb, 10)
  4879. hum.WalkSpeed = storehumanoidWS
  4880. attack = false
  4881. end
  4882.  
  4883. function Judgement()
  4884. attack = true
  4885. judgement = true
  4886. hum.WalkSpeed = 0
  4887. local p = Instance.new("Part",root)
  4888. p.Anchored = true
  4889. p.CanCollide = false
  4890. p.BrickColor = MAINRUINCOLOR
  4891. p.Material = Enum.Material.Neon
  4892. p.Size = Vector3.new(1,1,1)
  4893. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4894. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4895. local m = Instance.new("SpecialMesh",p)
  4896. m.MeshType = "Cylinder"
  4897. m.Scale = Vector3.new(2000,2,2)
  4898. local targ = Instance.new("Part",root)
  4899. targ.Anchored = true
  4900. targ.Transparency = 1
  4901. targ.CanCollide = false
  4902. targ.Size = Vector3.new(1,1,1)
  4903. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4904. local s = Instance.new("Sound",targ)
  4905. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4906. s.Looped = true
  4907. s.Pitch = 1.2
  4908. s.Volume = 3
  4909. spawn(function()
  4910. swait(15)
  4911. s:Play()
  4912. end)
  4913. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4914. for i = 1,15 do
  4915. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4916. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4917. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4918. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4919. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4920. 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(-20)),.2)
  4921. 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(20)),.2)
  4922. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4923. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4924. m.Scale = m.Scale+Vector3.new(0,1,1)
  4925. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4926. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4927. swait()
  4928. end
  4929. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  4930. repeat
  4931. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4932. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4933. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4934. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4935. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4936. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4937. swait()
  4938. until judgement == false
  4939. for i =1,15 do
  4940. m.Scale = m.Scale-Vector3.new(1,1,1)
  4941. p.Transparency = i / 15
  4942. s.Pitch = s.Pitch - 0.4
  4943. swait()
  4944. end
  4945. p:Destroy()
  4946. hum.WalkSpeed = storehumanoidWS
  4947. attack = false
  4948. end
  4949.  
  4950. function Starfall()
  4951. attack = true
  4952. hum.WalkSpeed = 0
  4953. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4954. for i = 0, 5, 0.1 do
  4955. swait()
  4956. PixelBlockNeg(1,math.random(1,2),"Add",sorb.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)
  4957. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.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)
  4958. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  4959. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  4960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4961. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4962. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  4963. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  4964. end
  4965. local Overed = false
  4966. CameraEnshaking(2,20)
  4967. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4968. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4969. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4970. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4971. local orb = Instance.new("Part", char)
  4972. orb.Anchored = true
  4973. orb.BrickColor = BrickColor.new("Toothpaste")
  4974. orb.CanCollide = false
  4975. orb.FormFactor = 3
  4976. orb.Name = "Remenant"
  4977. orb.Material = "Neon"
  4978. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4979. orb.Size = Vector3.new(1, 1, 1)
  4980. orb.Transparency = 1
  4981. orb.TopSurface = 0
  4982. orb.BottomSurface = 0
  4983. hum.WalkSpeed = storehumanoidWS
  4984. coroutine.resume(coroutine.create(function()
  4985. for i = 0, 9 do
  4986. swait(10)
  4987. local lb = Instance.new("Part")
  4988. lb.Color = MAINRUINCOLOR.Color
  4989. lb.CanCollide = false
  4990. lb.Material = "Neon"
  4991. lb.Anchored = true
  4992. lb.TopSurface = 0
  4993. lb.BottomSurface = 0
  4994. lb.Transparency = 0
  4995. lb.Size = vt(1,1,1)
  4996. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  4997. lb.Anchored = false
  4998. lb.Parent = char
  4999. local thingery = Instance.new("SpecialMesh",lb)
  5000. thingery.MeshType = "Sphere"
  5001. thingery.Scale = vt(20,20,20)
  5002. game:GetService("Debris"):AddItem(lb, 10)
  5003. local bv = Instance.new("BodyVelocity")
  5004. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5005. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  5006. bv.Parent = lb
  5007. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  5008. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  5009. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  5010. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  5011. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  5012. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  5013. local hitted = false
  5014. coroutine.resume(coroutine.create(function()
  5015. while true do
  5016. swait(1)
  5017. if lb.Parent ~= nil and hitted == false then
  5018. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  5019. elseif lb.Parent == nil then
  5020. break
  5021. end
  5022. end
  5023. end))
  5024.  
  5025. game:GetService("Debris"):AddItem(a, 0.1)
  5026.  
  5027. coroutine.resume(coroutine.create(function()
  5028. swait(1)
  5029. lb.Touched:connect(function(hit)
  5030. if hitted == false then
  5031. hitted = true
  5032. lb.Transparency = 1
  5033. lb.Anchored = true
  5034. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  5035. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  5036. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  5037. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  5038. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  5039. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  5040. MagniDamage(lb, 45, 45,85, 0, "Normal")
  5041. CameraEnshaking(1,5)
  5042. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  5043. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  5044. for i = 0, 9 do
  5045. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  5046. end
  5047. for i = 0, 49 do
  5048. swait()
  5049. MagniDamage(lb, 30, 2,4, 0, "Normal")
  5050. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  5051. end
  5052. end
  5053. end)
  5054. end))
  5055. end
  5056. Overed = true
  5057. orb:Destroy()
  5058. end))
  5059.  
  5060. attack = false
  5061. end
  5062.  
  5063.  
  5064. function ViolentRing()
  5065. attack = true
  5066. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  5067. for i = 0, 2, 0.1 do
  5068. swait()
  5069. local snap = math.random(1,10)
  5070. if snap == 1 then
  5071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  5072. end
  5073. PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  5074. PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  5075. PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  5076. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  5077. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  5078. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  5079. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  5080. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  5081. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  5082. RootPart.CFrame = FaceMouse()[1]
  5083. end
  5084. local orb = Instance.new("Part", char)
  5085. orb.BrickColor = MAINRUINCOLOR
  5086. orb.CanCollide = false
  5087. orb.FormFactor = 3
  5088. orb.Name = "Ring"
  5089. orb.Material = "Neon"
  5090. orb.Size = Vector3.new(1, 1, 1)
  5091. orb.Transparency = 0
  5092. orb.TopSurface = 0
  5093. orb.BottomSurface = 0
  5094. local orbm = Instance.new("SpecialMesh", orb)
  5095. orbm.MeshType = "Sphere"
  5096. orbm.Name = "SizeMesh"
  5097. orbm.Scale = vt(2,2,2)
  5098. orb.CFrame = mouse.Hit
  5099. local bv = Instance.new("BodyVelocity")
  5100. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5101. bv.velocity = orb.CFrame.lookVector*100
  5102. bv.Parent = orb
  5103. local hitted = false
  5104. coroutine.resume(coroutine.create(function()
  5105. game:GetService("Debris"):AddItem(orb, 5)
  5106. orb.Transparency = 1
  5107. orb.Anchored = true
  5108. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5109. elocacenter.Anchored = true
  5110. elocacenter.CFrame = orb.CFrame
  5111. elocacenter.Orientation = vt(0,0,0)
  5112. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5113. eloca1.Anchored = true
  5114. eloca1.CFrame = elocacenter.CFrame
  5115. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5116. eloca2.Anchored = true
  5117. eloca2.CFrame = elocacenter.CFrame
  5118. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5119. eloca3.Anchored = true
  5120. eloca3.CFrame = elocacenter.CFrame
  5121. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  5122. eloca4.Anchored = true
  5123. eloca4.CFrame = elocacenter.CFrame
  5124. local lookavec = 0
  5125. local speeds = 0
  5126. CameraEnshaking(1,1)
  5127. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  5128. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5129. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5130. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5131. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5132. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5133. for i = 0, 24 do
  5134. swait()
  5135. lookavec = lookavec + 3.5
  5136. speeds = speeds + 1
  5137. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5138. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5139. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5140.  
  5141. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5142. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5143.  
  5144. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5145. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5146.  
  5147. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5148. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5149. end
  5150.  
  5151. local risen = 0
  5152. for i = 0, 49 do
  5153. swait()
  5154. risen = risen + 0.05
  5155. speeds = speeds + 0.1
  5156. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  5157. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  5158. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5159.  
  5160. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  5161. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5162.  
  5163. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  5164. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5165.  
  5166. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  5167. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  5168. end
  5169. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  5170. if v:FindFirstChild('Head') then
  5171. dmg(v)
  5172. end
  5173. end
  5174. CameraEnshaking(4,10)
  5175. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  5176. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  5177. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  5178. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  5179. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  5180. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  5181. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  5182. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  5183. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5184. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5185. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5186. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5187. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5188. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  5189. for i = 0, 24 do
  5190. sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0)
  5191. sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  5192. sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  5193. sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  5194. end
  5195. coroutine.resume(coroutine.create(function()
  5196. wait(10)
  5197. elocacenter:Destroy()
  5198. eloca1:Destroy()
  5199. eloca2:Destroy()
  5200. eloca3:Destroy()
  5201. eloca4:Destroy()
  5202. end))
  5203. end))
  5204. attack = false
  5205. end
  5206.  
  5207. function UniversalCollapse()
  5208. attack = true
  5209. local speedearn = 0
  5210. hum.WalkSpeed = 0
  5211. local sbs = Instance.new("BodyPosition", root)
  5212. sbs.P = 3000
  5213. sbs.D = 1000
  5214. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  5215. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  5216. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  5217. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5218. for i = 0, 110, 0.1 do
  5219. swait()
  5220. speedearn = speedearn + 0.1
  5221. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  5222. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  5223. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  5224. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  5225. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  5226. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  5227. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5228. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5229. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5230. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5231. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5232. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5233. end
  5234. CameraEnshaking(5,50)
  5235. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  5236. for i = 0, 2 do
  5237. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  5238. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  5239. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  5240. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  5241. end
  5242. for i = 0, 49 do
  5243. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5244. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5245. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5246. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5247. end
  5248. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5249. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5250. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5251. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5252. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5253. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  5254. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5255. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5256. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5257. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5258. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5259. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5260. for i = 0, 99 do
  5261. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  5262. PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  5263. end
  5264. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  5265. if v:FindFirstChild('Head') then
  5266. dmg(v)
  5267. end
  5268. end
  5269. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  5270. sbs:Destroy()
  5271. hum.WalkSpeed = storehumanoidWS
  5272. attack = false
  5273. end
  5274.  
  5275.  
  5276. function ChaosEND()
  5277. attack = true
  5278. local speedearn = 0
  5279. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  5280. for i = 0, 15, 0.1 do
  5281. swait()
  5282. speedearn = speedearn + 0.25
  5283. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  5284. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  5285. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  5286. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  5287. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  5288. 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)),.2)
  5289. 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)),.2)
  5290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5291. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5292. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  5293. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  5294. end
  5295. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  5296. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  5297. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  5298. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  5299. CameraEnshaking(5,25)
  5300. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  5301. if v:FindFirstChild('Head') then
  5302. dmg(v)
  5303. end
  5304. end
  5305. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  5306. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  5307. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  5308. for i = 0, 3, 0.1 do
  5309. swait()
  5310. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  5311. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  5312. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  5313. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  5314. 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)),.4)
  5315. 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)),.4)
  5316. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5317. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  5318. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  5319. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  5320. end
  5321. attack = false
  5322. end
  5323.  
  5324. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  5325. local orb = Instance.new("Part", char)
  5326. orb.Anchored = true
  5327. orb.BrickColor = color
  5328. orb.CanCollide = false
  5329. orb.FormFactor = 3
  5330. orb.Name = "Ring"
  5331. orb.Material = "Neon"
  5332. orb.Size = Vector3.new(1, 1, 1)
  5333. orb.Transparency = 0
  5334. orb.TopSurface = 0
  5335. orb.BottomSurface = 0
  5336. local orbm = Instance.new("SpecialMesh", orb)
  5337. orbm.MeshType = "Sphere"
  5338. orb.CFrame = positted
  5339. orbm.Name = "SizeMesh"
  5340. orbm.Scale = vt(1,1,1)
  5341. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  5342. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  5343. --[[for i = 0, 2 do
  5344. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  5345. end]]--
  5346. coroutine.resume(coroutine.create(function()
  5347. wait(timer)
  5348. CameraEnshaking(3,ShakePower)
  5349. orb.Transparency = 1
  5350. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  5351. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  5352. --[[for i = 0, 4 do
  5353. sphereMK(5,0.15*MagniBoost,"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,orb.BrickColor,0)
  5354. end]]--
  5355. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  5356. wait(3)
  5357. orb:Destroy()
  5358. end))
  5359. end
  5360.  
  5361. function orb_spawn(positted,timer)
  5362. local randomcol = math.random(1,2)
  5363. local orb = Instance.new("Part", char)
  5364. orb.Anchored = true
  5365. if randomcol == 1 then
  5366. orb.BrickColor = BrickColor.new("White")
  5367. elseif randomcol == 2 then
  5368. orb.BrickColor = BrickColor.new("Really black")
  5369. end
  5370. orb.CanCollide = false
  5371. orb.FormFactor = 3
  5372. orb.Name = "Ring"
  5373. orb.Material = "Neon"
  5374. orb.Size = Vector3.new(1, 1, 1)
  5375. orb.Transparency = 0
  5376. orb.TopSurface = 0
  5377. orb.BottomSurface = 0
  5378. local orbm = Instance.new("SpecialMesh", orb)
  5379. orbm.MeshType = "Sphere"
  5380. orb.CFrame = positted
  5381. orbm.Name = "SizeMesh"
  5382. orbm.Scale = vt(1,1,1)
  5383. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  5384. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  5385. for i = 0, 2 do
  5386. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  5387. end
  5388. coroutine.resume(coroutine.create(function()
  5389. wait(timer)
  5390. CameraEnshaking(3,2)
  5391. orb.Transparency = 1
  5392. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  5393. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  5394. for i = 0, 4 do
  5395. sphereMK(5,0.65,"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,orb.BrickColor,0)
  5396. end
  5397. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  5398. wait(3)
  5399. orb:Destroy()
  5400. end))
  5401. end
  5402.  
  5403. function scattercorrupt()
  5404. attack = true
  5405. local rot = 0
  5406. local randomrotations = math.random(1,2)
  5407. local lookv = 2.5
  5408. local power = 5
  5409. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Really red"))
  5410. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Ghost grey"))
  5411. for i = 0, 9 do
  5412. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Tooth paste"),0)
  5413. end
  5414. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  5415. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  5416. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  5417. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  5418. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  5419. local hite = Instance.new("Part", char)
  5420. hite.Anchored = true
  5421. hite.CanCollide = false
  5422. hite.FormFactor = 3
  5423. hite.Name = "Ring"
  5424. hite.Material = "Neon"
  5425. hite.Size = Vector3.new(1, 1, 1)
  5426. hite.Transparency = 1
  5427. hite.TopSurface = 0
  5428. hite.BottomSurface = 0
  5429. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  5430. local rem = Instance.new("Part", char)
  5431. rem.Anchored = true
  5432. rem.CanCollide = false
  5433. rem.FormFactor = 3
  5434. rem.Name = "Ring"
  5435. rem.Material = "Neon"
  5436. rem.Size = Vector3.new(1, 1, 1)
  5437. rem.Transparency = 1
  5438. rem.TopSurface = 0
  5439. rem.BottomSurface = 0
  5440. rem.CFrame = hite.CFrame
  5441. local rem2 = rem:Clone()
  5442. rem2.Parent = char
  5443. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5444. local rem3 = rem:Clone()
  5445. rem3.Parent = char
  5446. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5447. local rem4 = rem:Clone()
  5448. rem4.Parent = char
  5449. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5450. hite:Destroy()
  5451. coroutine.resume(coroutine.create(function()
  5452. for i = 0, 24 do
  5453. swait(1)
  5454. if randomrotations == 1 then
  5455. rot = rot + 1
  5456. elseif randomrotations == 2 then
  5457. rot = rot - 1
  5458. end
  5459. power = power + 0.5
  5460. lookv = lookv + 7.5
  5461. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5462. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  5463. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  5464. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  5465. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Hot pink"),power,25,75,10,power/5,7.5)
  5466. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal red"),power,25,75,10,power/5,7.5)
  5467. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Toothpaste"),power,25,75,10,power/5,7.5)
  5468. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Really red"),power,25,75,10,power/5,7.5)
  5469. end
  5470. end))
  5471. attack = false
  5472. end
  5473. function yinyangi()
  5474. attack = true
  5475. for i = 0, 2, 0.1 do
  5476. swait()
  5477. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  5478. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  5479. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  5480. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5481. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  5482. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  5483. end
  5484. local bv = Instance.new("BodyVelocity")
  5485. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5486. bv.velocity = root.CFrame.lookVector*175
  5487. bv.Parent = root
  5488. for Rotations = 0, 9 do
  5489. for i = 0, 1, 0.5 do
  5490. swait()
  5491. bv.velocity = root.CFrame.lookVector*175
  5492. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5493. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5494. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  5495. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5497. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5498. end
  5499. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5500. for i = 0, 1, 0.5 do
  5501. swait()
  5502. bv.velocity = root.CFrame.lookVector*175
  5503. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5504. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  5506. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5507. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5508. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5509. end
  5510. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5511. for i = 0, 1, 0.5 do
  5512. swait()
  5513. bv.velocity = root.CFrame.lookVector*175
  5514. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5515. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5516. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5517. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5518. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5519. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5520. end
  5521. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5522. for i = 0, 1, 0.5 do
  5523. swait()
  5524. bv.velocity = root.CFrame.lookVector*175
  5525. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5526. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  5527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5529. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5530. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5531. end
  5532. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5533. end
  5534. bv:Destroy()
  5535. attack = false
  5536. end
  5537.  
  5538. function createBGCircle(size,parent,color)
  5539. local bgui = Instance.new("BillboardGui",parent)
  5540. bgui.Size = UDim2.new(size, 0, size, 0)
  5541. local imgc = Instance.new("ImageLabel",bgui)
  5542. imgc.BackgroundTransparency = 1
  5543. imgc.ImageTransparency = 0
  5544. imgc.Size = UDim2.new(1,0,1,0)
  5545. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5546. imgc.ImageColor3 = color
  5547. return bgui,imgc
  5548. end
  5549.  
  5550. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5551. local bgui,imgc = createBGCircle(size,guipar,color)
  5552. bgui.AlwaysOnTop = true
  5553. imgc.Image = "rbxassetid://" ..img
  5554. local rrot = math.random(1,2)
  5555. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5556. coroutine.resume(coroutine.create(function()
  5557. for i = 0, 24*delay do
  5558. swait()
  5559. if rotationenabled == true then
  5560. if rrot == 1 then
  5561. imgc.Rotation = imgc.Rotation + rotsp
  5562. elseif rrot == 2 then
  5563. imgc.Rotation = imgc.Rotation - rotsp
  5564. end
  5565. end
  5566. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5567. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5568. end
  5569. bgui:Destroy()
  5570. end))
  5571. end
  5572. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5573. for i, v in pairs(mw2:GetChildren()) do
  5574. if v:IsA("Part") then
  5575. v.BrickColor = one
  5576. v.Material = "Neon"
  5577. end
  5578. end
  5579. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5580. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5581. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5582. tr1.Color = ColorSequence.new(one.Color)
  5583. tr2.Color = ColorSequence.new(one.Color)
  5584. tr3.Color = ColorSequence.new(one.Color)
  5585. for i, v in pairs(mw1:GetChildren()) do
  5586. if v:IsA("Part") then
  5587. if secondaryenabled == false then
  5588. v.Transparency = 0
  5589. elseif secondaryenabled == true then
  5590. v.Transparency = 0
  5591. end
  5592. v.BrickColor = two
  5593. v.Material = "Neon"
  5594. end
  5595. end
  5596. if secondaryenabled == false then
  5597. tl1.Enabled = false
  5598. tl2.Enabled = false
  5599. tl3.Enabled = false
  5600. elseif secondaryenabled == true then
  5601. tl1.Enabled = true
  5602. tl2.Enabled = true
  5603. tl3.Enabled = true
  5604. end
  5605. tl1.Color = ColorSequence.new(two.Color)
  5606. tl2.Color = ColorSequence.new(two.Color)
  5607. tl3.Color = ColorSequence.new(two.Color)
  5608. for i, v in pairs(m:GetChildren()) do
  5609. if v:IsA("Part") then
  5610. v.BrickColor = three
  5611. v.Material = "Ice"
  5612. end
  5613. end
  5614. for i, v in pairs(m2:GetChildren()) do
  5615. if v:IsA("Part") then
  5616. v.BrickColor = four
  5617. v.Material = "Ice"
  5618. end
  5619. end
  5620. for i, v in pairs(m3:GetChildren()) do
  5621. if v:IsA("Part") then
  5622. v.BrickColor = five
  5623. v.Material = "Neon"
  5624. end
  5625. end
  5626. for i, v in pairs(extrawingmod1:GetChildren()) do
  5627. if v:IsA("Part") then
  5628. v.Transparency = 0.75
  5629. v.BrickColor = BrickColor.new("Deep orange")
  5630. v.Material = "Neon"
  5631. end
  5632. end
  5633. for i, v in pairs(extrawingmod2:GetChildren()) do
  5634. if v:IsA("Part") then
  5635. v.Transparency = 0.75
  5636. v.BrickColor = BrickColor.new("Really pink")
  5637. v.Material = "Neon"
  5638. end
  5639. end
  5640. end
  5641.  
  5642.  
  5643. function normalmog()
  5644. attack = true
  5645. hum.WalkSpeed = 0
  5646. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5647. for i = 0,6,0.1 do
  5648. swait()
  5649. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5650. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  5651. 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(30)),.2)
  5652. 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(-30)),.2)
  5653. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5654. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  5655. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5656. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5657. end
  5658. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5659. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5660. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5661. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5662. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5663. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5664. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5665. rainbowmode = false
  5666. chaosmode = false
  5667. ModeOfGlitch = 1
  5668. storehumanoidWS = 16
  5669. newTheme("rbxassetid://1537276744",48.6,1,1.25)
  5670. RecolorTextAndRename("STAR",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5671. CameraEnshaking(5,2.5)
  5672. MAINRUINCOLOR = BrickColor.new("Really grey")
  5673. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5674. for i = 0, 49 do
  5675. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5676. end
  5677. for i = 0, 24 do
  5678. 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)
  5679. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.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,350)/250,BrickColor.new("White"))
  5680. end
  5681. for i = 0,3,0.1 do
  5682. sphereMK(2.5,-1,"Add",root.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,25,-0.025,MAINRUINCOLOR,0)
  5683. end
  5684. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5685. for i = 0,2,0.1 do
  5686. swait()
  5687. 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(-30)),.5)
  5688. 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(30)),.5)
  5689. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5690. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5691. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5692. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5693. end
  5694. hum.WalkSpeed = storehumanoidWS
  5695. attack = false
  5696. end
  5697.  
  5698. function attackone()
  5699. attack = true
  5700. local keptcolor = MAINRUINCOLOR
  5701. for i = 0,1,0.1 do
  5702. swait()
  5703. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5704. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5705. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5706. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5707. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  5708. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  5709. end
  5710. local distlook = 5
  5711. coroutine.resume(coroutine.create(function()
  5712. for i = 0, 4 do
  5713. swait(2)
  5714. CameraEnshaking(2,3)
  5715. local hite = Instance.new("Part", char)
  5716. hite.Anchored = true
  5717. hite.CanCollide = false
  5718. hite.FormFactor = 3
  5719. hite.Name = "Ring"
  5720. hite.Material = "Neon"
  5721. hite.Size = Vector3.new(1, 1, 1)
  5722. hite.Transparency = 1
  5723. hite.TopSurface = 0
  5724. hite.BottomSurface = 0
  5725. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5726. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  5727. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  5728. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  5729. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  5730. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5731. for i = 0, 14 do
  5732. local rsiz = math.random(5,20)
  5733. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  5734. end
  5735. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5736. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5737. game:GetService("Debris"):AddItem(hite, 5)
  5738. distlook = distlook + 10
  5739. end
  5740. end))
  5741. for i = 0,1,0.1 do
  5742. swait()
  5743. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5744. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5745. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5746. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5747. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  5748. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  5749. end
  5750. attack = false
  5751. end
  5752.  
  5753. function attacktwo()
  5754. attack = true
  5755. hum.WalkSpeed = 2
  5756. local keptcolor = MAINRUINCOLOR
  5757. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5758. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5759. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5760. for i = 0, 14 do
  5761. end
  5762. for i = 0,1,0.1 do
  5763. swait()
  5764. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5765. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  5766. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  5767. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5768. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5769. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5770. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5771. end
  5772. for i = 0, 1 do
  5773. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5774. for i = 0,1,0.6 do
  5775. swait()
  5776. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5777. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5778. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5779. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5780. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5781. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5782. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5783. end
  5784. for i = 0,1,0.6 do
  5785. swait()
  5786. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5787. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5788. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5789. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5790. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5791. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5792. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5793. end
  5794. for i = 0,1,0.6 do
  5795. swait()
  5796. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5797. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5798. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5799. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5800. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5801. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5802. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5803. end
  5804. for i = 0,1,0.6 do
  5805. swait()
  5806. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5807. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  5808. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  5809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5810. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5811. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5812. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5813. end
  5814. local rot = 0
  5815. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5816. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5817. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5818. CreateMesh(dis,"Sphere",10,1,10)
  5819. local at1 = Instance.new("Attachment",dis)
  5820. at1.Position = vt(-5,0,0)
  5821. local at2 = Instance.new("Attachment",dis)
  5822. at2.Position = vt(5,0,0)
  5823. local trl = Instance.new('Trail',wed)
  5824. trl.Attachment0 = at1
  5825. trl.Attachment1 = at2
  5826. trl.Texture = "rbxassetid://1049219073"
  5827. trl.LightEmission = 1
  5828. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5829. trl.Color = ColorSequence.new(dis.Color)
  5830. trl.Lifetime = 0.6
  5831. local a = Instance.new("Part",workspace)
  5832. a.Name = "Direction"
  5833. a.Anchored = true
  5834. a.BrickColor = bc("Bright red")
  5835. a.Material = "Neon"
  5836. a.Transparency = 1
  5837. a.CanCollide = false
  5838. local ray = Ray.new(
  5839. dis.CFrame.p, -- origin
  5840. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5841. )
  5842. local ignore = dis
  5843. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5844. a.BottomSurface = 10
  5845. a.TopSurface = 10
  5846. local distance = (dis.CFrame.p - position).magnitude
  5847. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5848. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5849. dis.CFrame = a.CFrame
  5850. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5851. a:Destroy()
  5852. local bv = Instance.new("BodyVelocity")
  5853. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5854. bv.velocity = dis.CFrame.lookVector*250
  5855. bv.Parent = dis
  5856. game:GetService("Debris"):AddItem(dis, 5)
  5857. local hitted = false
  5858. coroutine.resume(coroutine.create(function()
  5859. dis.Touched:connect(function(hit)
  5860. if hitted == false and hit.Parent ~= char then
  5861. hitted = true
  5862. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5863. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5864. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5865. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5866. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5867. coroutine.resume(coroutine.create(function()
  5868. for i = 0, 9 do
  5869. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5870. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5871. local at1 = Instance.new("Attachment",disr)
  5872. at1.Position = vt(-5,0,0)
  5873. local at2 = Instance.new("Attachment",disr)
  5874. at2.Position = vt(5,0,0)
  5875. local trl = Instance.new('Trail',disr)
  5876. trl.Attachment0 = at1
  5877. trl.FaceCamera = true
  5878. trl.Attachment1 = at2
  5879. trl.Texture = "rbxassetid://2342682798"
  5880. trl.LightEmission = 1
  5881. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5882. trl.Color = ColorSequence.new(keptcolor.Color)
  5883. trl.Lifetime = 0.5
  5884. local bv = Instance.new("BodyVelocity")
  5885. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5886. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5887. bv.Parent = disr
  5888. local val = 0
  5889. coroutine.resume(coroutine.create(function()
  5890. swait(30)
  5891. for i = 0, 9 do
  5892. swait()
  5893. val = val + 0.1
  5894. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5895. end
  5896. game:GetService("Debris"):AddItem(disr, 3)
  5897. end))
  5898. end
  5899. local eff = Instance.new("ParticleEmitter",dis)
  5900. eff.Texture = "rbxassetid://2273224484"
  5901. eff.LightEmission = 1
  5902. eff.Color = ColorSequence.new(keptcolor.Color)
  5903. eff.Rate = 50
  5904. eff.Lifetime = NumberRange.new(0.5,2)
  5905. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5906. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5907. eff.Speed = NumberRange.new(20,250)
  5908. eff.Drag = 5
  5909. eff.Rotation = NumberRange.new(-500,500)
  5910. eff.VelocitySpread = 9000
  5911. eff.RotSpeed = NumberRange.new(-50,50)
  5912. wait(0.25)
  5913. eff.Enabled = false
  5914. end))
  5915. for i = 0, 9 do
  5916. end
  5917. for i = 0, 19 do
  5918. end
  5919. coroutine.resume(coroutine.create(function()
  5920. for i = 0, 19 do
  5921. swait()
  5922. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5923. end
  5924. hum.CameraOffset = vt(0,0,0)
  5925. end))
  5926. dis.Anchored = true
  5927. dis.Transparency = 1
  5928. wait(8)
  5929. dis:Destroy()
  5930. end
  5931. end)
  5932. end))
  5933. rot = rot - 15
  5934. end
  5935. for i = 0,2,0.1 do
  5936. swait()
  5937. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5938. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  5939. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5940. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5941. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5942. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5943. end
  5944. attack = false
  5945. hum.WalkSpeed = storehumanoidWS
  5946. end
  5947.  
  5948. function attackthree()
  5949. attack = true
  5950. local keptcolor = MAINRUINCOLOR
  5951. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5952. for i = 0,2,0.1 do
  5953. swait()
  5954. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5955. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5956. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5957. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5958. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5959. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  5960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  5961. end
  5962. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5963. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5964. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5965. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5966. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5967. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5968. for i = 0, 24 do
  5969. end
  5970. for i = 0,4,0.1 do
  5971. swait()
  5972. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5973. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5974. CreateMesh(dis,"Sphere",1,1,1)
  5975. dis.Anchored = true
  5976. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5977. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5978. coroutine.resume(coroutine.create(function()
  5979. swait(30)
  5980. dis.Transparency = 1
  5981. coroutine.resume(coroutine.create(function()
  5982. for i = 0, 19 do
  5983. swait()
  5984. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5985. end
  5986. hum.CameraOffset = vt(0,0,0)
  5987. end))
  5988. coroutine.resume(coroutine.create(function()
  5989. local eff = Instance.new("ParticleEmitter",dis)
  5990. eff.Texture = "rbxassetid://2273224484"
  5991. eff.LightEmission = 1
  5992. eff.Color = ColorSequence.new(dis.Color)
  5993. eff.Rate = 500000
  5994. eff.Lifetime = NumberRange.new(0.5,2)
  5995. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5996. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5997. eff.Speed = NumberRange.new(50,450)
  5998. eff.Drag = 5
  5999. eff.Rotation = NumberRange.new(-500,500)
  6000. eff.VelocitySpread = 9000
  6001. eff.RotSpeed = NumberRange.new(-50,50)
  6002. wait(0.125)
  6003. eff.Enabled = false
  6004. end))
  6005. MagniDamage(dis, 30, 45,50, 0, "Normal")
  6006. for i = 0, 2 do
  6007. --slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.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,150)/250,dis.BrickColor)
  6008. end
  6009. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  6010. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  6011. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  6012. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  6013. end))
  6014. game:GetService("Debris"):AddItem(dis, 5)
  6015. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  6016. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  6017. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  6018. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  6019. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  6020. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  6021. end
  6022. attack = false
  6023. end
  6024. ----------------------------------- Abilities
  6025.  
  6026. function ExtinctiveHeartbreak()
  6027. local targetted = nil
  6028. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6029. targetted = mouse.Target.Parent
  6030. end
  6031. if targetted ~= nil then
  6032. attack = true
  6033. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6034. for i = 0, 9 do
  6035. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  6036. end
  6037. for i = 0, 24 do
  6038. --
  6039. end
  6040. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6041. local originalpos = root.CFrame
  6042. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  6043. for i = 0, 9 do
  6044. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  6045. end
  6046. for i = 0, 24 do
  6047. end
  6048. hum.WalkSpeed = 0
  6049. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6050. local radm = math.random(1,3)
  6051. if radm == 1 then
  6052. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  6053. elseif radm == 2 then
  6054. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  6055. elseif radm == 3 then
  6056. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  6057. end
  6058. for i = 0,2,0.1 do
  6059. swait()
  6060. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
  6061. 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)),.4)
  6062. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  6063. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  6064. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  6065. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  6066. end
  6067. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  6068. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  6069. for i = 0,2,0.1 do
  6070. swait()
  6071. coroutine.resume(coroutine.create(function()
  6072. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  6073. for i,v in pairs(targetted:GetChildren()) do
  6074. if v:IsA("Part") or v:IsA("MeshPart") then
  6075. v.Velocity = vt(0,0,0)
  6076. end
  6077. end
  6078. end))
  6079. 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)),.8)
  6080. 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(10),math.rad(0)),.8)
  6081. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  6082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  6083. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  6084. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  6085. end
  6086. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  6087. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  6088. for i = 0, 1 do
  6089. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  6090. end
  6091. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  6092. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  6093. for i = 0,4,0.1 do
  6094. swait()
  6095. coroutine.resume(coroutine.create(function()
  6096. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6097. dis.CFrame = targetted.Head.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)))
  6098. local at1 = Instance.new("Attachment",dis)
  6099. at1.Position = vt(-25000,0,0)
  6100. local at2 = Instance.new("Attachment",dis)
  6101. at2.Position = vt(25000,0,0)
  6102. local trl = Instance.new('Trail',dis)
  6103. trl.Attachment0 = at1
  6104. trl.FaceCamera = true
  6105. trl.Attachment1 = at2
  6106. trl.Texture = "rbxassetid://1049219073"
  6107. trl.LightEmission = 1
  6108. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6109. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  6110. trl.Lifetime = 5
  6111. local bv = Instance.new("BodyVelocity")
  6112. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6113. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6114. bv.Parent = dis
  6115. game:GetService("Debris"):AddItem(dis, 5)
  6116. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  6117. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  6118. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  6119. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  6120. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  6121. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  6122. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  6123. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  6124. for i = 0, 2 do
  6125. --slash(5,5,true,"Round","Add","Out",targetted.Head.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,350)/250,BrickColor.new("Crimson"))
  6126. end
  6127. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  6128. for i,v in pairs(targetted:GetChildren()) do
  6129. if v:IsA("Part") or v:IsA("MeshPart") then
  6130. v.Velocity = vt(0,0,0)
  6131. end
  6132. end
  6133. end))
  6134. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  6135. 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)),.8)
  6136. 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(10),math.rad(0)),.8)
  6137. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  6138. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  6139. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  6140. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  6141. end
  6142. hum.CameraOffset = vt(0,0,0)
  6143. for i = 0, 49 do
  6144. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6145. dis.CFrame = targetted.Head.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)))
  6146. local at1 = Instance.new("Attachment",dis)
  6147. at1.Position = vt(-50000,0,0)
  6148. local at2 = Instance.new("Attachment",dis)
  6149. at2.Position = vt(50000,0,0)
  6150. local trl = Instance.new('Trail',dis)
  6151. trl.Attachment0 = at1
  6152. trl.FaceCamera = true
  6153. trl.Attachment1 = at2
  6154. trl.Texture = "rbxassetid://1049219073"
  6155. trl.LightEmission = 1
  6156. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6157. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  6158. trl.Lifetime = 5
  6159. local bv = Instance.new("BodyVelocity")
  6160. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6161. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6162. bv.Parent = dis
  6163. game:GetService("Debris"):AddItem(dis, 5)
  6164. end
  6165. for i = 0, 49 do
  6166. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  6167. --slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.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(40,500)/250,BrickColor.new("Really red"))
  6168. end
  6169. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  6170. for i = 0, 1 do
  6171. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  6172. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  6173. end
  6174. for i = 0, 4 do
  6175. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  6176. end
  6177. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  6178. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  6179. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  6180. dmg(targetted)
  6181. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  6182. for i = 0, 9 do
  6183. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  6184. end
  6185. for i = 0, 24 do
  6186. end
  6187. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6188. root.CFrame = originalpos
  6189. for i = 0, 9 do
  6190. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  6191. end
  6192. for i = 0, 24 do
  6193. end
  6194. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  6195. attack = false
  6196. hum.WalkSpeed = storehumanoidWS
  6197. end
  6198. end
  6199.  
  6200. function CorruptionEvent()
  6201. attack = true
  6202. hum.WalkSpeed = 0
  6203. bosschatfunc("EVIL STOMP!!",MAINRUINCOLOR.Color,2)
  6204. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6205. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6206. local keptcolor = MAINRUINCOLOR
  6207. for i = 0,4,0.1 do
  6208. swait()
  6209. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6210. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6211. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  6212. 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)),.1)
  6213. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  6214. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  6215. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  6216. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6217. end
  6218. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6219. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  6220. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  6221. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6222. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6223. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6224. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  6225. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  6226. hum.CameraOffset = vt(0,0,0)
  6227. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6228. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6229. for i = 0, 24 do
  6230. --slash(math.random(15,50)/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(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  6231. end
  6232. local rrot = 0
  6233. coroutine.resume(coroutine.create(function()
  6234. for i = 0, 4 do
  6235. rrot = rrot + 45
  6236. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6237. xa.Anchored = true
  6238. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6239. xb.Anchored = true
  6240. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6241. xc.Anchored = true
  6242. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6243. xd.Anchored = true
  6244. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  6245. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  6246. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  6247. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  6248. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  6249. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  6250. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  6251. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  6252. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  6253. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  6254. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  6255. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  6256. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  6257. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  6258. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  6259. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  6260. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6261. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6262. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6263. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  6264. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6265. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6266. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6267. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6268. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  6269. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  6270. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  6271. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  6272. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  6273. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  6274. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  6275. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  6276. game:GetService("Debris"):AddItem(xa, 5)
  6277. game:GetService("Debris"):AddItem(xb, 5)
  6278. game:GetService("Debris"):AddItem(xc, 5)
  6279. game:GetService("Debris"):AddItem(xd, 5)
  6280. coroutine.resume(coroutine.create(function()
  6281. for i = 0, 19 do
  6282. swait()
  6283. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6284. end
  6285. hum.CameraOffset = vt(0,0,0)
  6286. end))
  6287. swait(9)
  6288. end
  6289. end))
  6290. for i = 0,2,0.1 do
  6291. swait()
  6292. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  6293. 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(10)),.8)
  6294. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  6295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  6296. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  6297. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6298. end
  6299. attack = false
  6300. hum.WalkSpeed = storehumanoidWS
  6301. end
  6302.  
  6303. function EndGROUND()
  6304. attack = true
  6305. hum.WalkSpeed = 0
  6306. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  6307. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  6308. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  6309. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  6310. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  6311. local keptcolor = MAINRUINCOLOR
  6312. for i = 0,4,0.1 do
  6313. swait()
  6314. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6315. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6316. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  6317. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  6318. 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)),.1)
  6319. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  6320. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  6321. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  6322. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  6323. end
  6324. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  6325. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  6326. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  6327. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  6328. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  6329. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  6330. coroutine.resume(coroutine.create(function()
  6331. local shval = 10
  6332. for i = 0, 99 do
  6333. swait()
  6334. shval = shval - 0.1
  6335. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  6336. end
  6337. hum.CameraOffset = vt(0,0,0)
  6338. end))
  6339. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6340. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6341. for i = 0, 24 do
  6342. --slash(math.random(15,50)/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(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  6343. end
  6344. local rrot = 0
  6345. local xam = 1
  6346. coroutine.resume(coroutine.create(function()
  6347. for i = 0, 14 do
  6348. --swait()
  6349. rrot = rrot + 40*xam
  6350. xam = xam + 0.25
  6351. local bonus = xam
  6352. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  6353. xa.Anchored = true
  6354. xa.Color = Color3.new(0,0,0)
  6355. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  6356. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  6357. local xc = 0
  6358. coroutine.resume(coroutine.create(function()
  6359. for i = 0, 99 do
  6360. swait()
  6361. xc = xc + 0.01
  6362. xa.Color = Color3.new(xc,0,0)
  6363. end
  6364. xa.Transparency = 1
  6365. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  6366. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  6367. for i = 0, 9 do
  6368. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  6369. end
  6370. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  6371. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
  6372. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  6373. game:GetService("Debris"):AddItem(xa, 5)
  6374. coroutine.resume(coroutine.create(function()
  6375. for i = 0, 19 do
  6376. swait()
  6377. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  6378. end
  6379. hum.CameraOffset = vt(0,0,0)
  6380. end))
  6381. end))
  6382. end
  6383. end))
  6384. for i = 0,2,0.1 do
  6385. swait()
  6386. 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)
  6387. 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)
  6388. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  6389. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  6390. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  6391. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  6392. end
  6393. attack = false
  6394. hum.WalkSpeed = storehumanoidWS
  6395. end
  6396.  
  6397. function HeavenlyDisk()
  6398. attack = true
  6399. hum.WalkSpeed = 2
  6400. local keptcolor = MAINRUINCOLOR
  6401. local radm = math.random(1,3)
  6402. if radm == 1 then
  6403. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  6404. elseif radm == 2 then
  6405. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  6406. elseif radm == 3 then
  6407. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  6408. end
  6409. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  6410. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  6411. for i = 0, 14 do
  6412. --
  6413. end
  6414. for i = 0,2,0.1 do
  6415. swait()
  6416. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6417. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3)
  6418. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3)
  6419. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  6420. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  6421. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6422. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  6423. end
  6424. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  6425. for i = 0,1,0.6 do
  6426. swait()
  6427. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6428. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6429. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6430. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  6432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6434. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6435. end
  6436. for i = 0,1,0.6 do
  6437. swait()
  6438. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6439. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6440. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6441. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6442. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  6443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6444. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6445. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6446. end
  6447. for i = 0,1,0.6 do
  6448. swait()
  6449. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6450. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6451. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6452. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6453. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  6454. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6455. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6456. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6457. end
  6458. for i = 0,1,0.6 do
  6459. swait()
  6460. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  6461. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  6462. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6)
  6463. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6)
  6464. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  6465. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  6466. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  6467. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  6468. end
  6469. local rot = 15
  6470. for i = 0, 2 do
  6471. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  6472. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  6473. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  6474. CreateMesh(dis,"Sphere",10,1,10)
  6475. local at1 = Instance.new("Attachment",dis)
  6476. at1.Position = vt(-5,0,0)
  6477. local at2 = Instance.new("Attachment",dis)
  6478. at2.Position = vt(5,0,0)
  6479. local trl = Instance.new('Trail',wed)
  6480. trl.Attachment0 = at1
  6481. trl.Attachment1 = at2
  6482. trl.Texture = "rbxassetid://1049219073"
  6483. trl.LightEmission = 1
  6484. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6485. trl.Color = ColorSequence.new(dis.Color)
  6486. trl.Lifetime = 0.6
  6487. local a = Instance.new("Part",workspace)
  6488. a.Name = "Direction"
  6489. a.Anchored = true
  6490. a.BrickColor = bc("Bright red")
  6491. a.Material = "Neon"
  6492. a.Transparency = 1
  6493. a.CanCollide = false
  6494. local ray = Ray.new(
  6495. dis.CFrame.p, -- origin
  6496. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6497. )
  6498. local ignore = dis
  6499. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6500. a.BottomSurface = 10
  6501. a.TopSurface = 10
  6502. local distance = (dis.CFrame.p - position).magnitude
  6503. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6504. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6505. dis.CFrame = a.CFrame
  6506. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6507. a:Destroy()
  6508. local bv = Instance.new("BodyVelocity")
  6509. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6510. bv.velocity = dis.CFrame.lookVector*250
  6511. bv.Parent = dis
  6512. game:GetService("Debris"):AddItem(dis, 5)
  6513. local hitted = false
  6514. coroutine.resume(coroutine.create(function()
  6515. dis.Touched:connect(function(hit)
  6516. if hitted == false and hit.Parent ~= char then
  6517. hitted = true
  6518. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6519. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6520. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6521. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6522. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6523. coroutine.resume(coroutine.create(function()
  6524. for i = 0, 9 do
  6525. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6526. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6527. local at1 = Instance.new("Attachment",disr)
  6528. at1.Position = vt(-2,0,0)
  6529. local at2 = Instance.new("Attachment",disr)
  6530. at2.Position = vt(2,0,0)
  6531. local trl = Instance.new('Trail',disr)
  6532. trl.Attachment0 = at1
  6533. trl.FaceCamera = true
  6534. trl.Attachment1 = at2
  6535. trl.Texture = "rbxassetid://2342682798"
  6536. trl.LightEmission = 1
  6537. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6538. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6539. trl.Lifetime = 0.5
  6540. local bv = Instance.new("BodyVelocity")
  6541. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6542. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6543. bv.Parent = disr
  6544. local val = 0
  6545. coroutine.resume(coroutine.create(function()
  6546. swait(30)
  6547. for i = 0, 9 do
  6548. swait()
  6549. val = val + 0.1
  6550. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6551. end
  6552. game:GetService("Debris"):AddItem(disr, 3)
  6553. end))
  6554. end
  6555. local eff = Instance.new("ParticleEmitter",dis)
  6556. eff.Texture = "rbxassetid://2273224484"
  6557. eff.LightEmission = 1
  6558. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6559. eff.Rate = 500000
  6560. eff.Lifetime = NumberRange.new(0.5,2)
  6561. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6562. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6563. eff.Speed = NumberRange.new(20,250)
  6564. eff.Drag = 5
  6565. eff.Rotation = NumberRange.new(-500,500)
  6566. eff.VelocitySpread = 9000
  6567. eff.RotSpeed = NumberRange.new(-50,50)
  6568. wait(0.25)
  6569. eff.Enabled = false
  6570. end))
  6571. for i = 0, 9 do
  6572. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6573. end
  6574. for i = 0, 19 do
  6575. --
  6576. end
  6577. coroutine.resume(coroutine.create(function()
  6578. for i = 0, 19 do
  6579. swait()
  6580. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6581. end
  6582. hum.CameraOffset = vt(0,0,0)
  6583. end))
  6584. dis.Anchored = true
  6585. dis.Transparency = 1
  6586. wait(8)
  6587. dis:Destroy()
  6588. end
  6589. end)
  6590. end))
  6591. rot = rot - 15
  6592. end
  6593. for i = 0,2,0.1 do
  6594. swait()
  6595. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  6596. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3)
  6597. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6599. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6600. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6601. end
  6602. attack = false
  6603. hum.WalkSpeed = storehumanoidWS
  6604. end
  6605.  
  6606. function RapidBurst()
  6607. attack = true
  6608. hum.WalkSpeed = 0
  6609. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6610. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6611. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6612. bosschatfunc("SHATTER!!",MAINRUINCOLOR.Color,2)
  6613. local keptcolor = MAINRUINCOLOR
  6614. for i = 0,8,0.1 do
  6615. swait()
  6616. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6617. --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.random())
  6618. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  6619. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),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(-15 - 2 * math.cos(sine / 32))),.1)
  6620. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),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(15 + 2 * math.cos(sine / 32))),.1)
  6621. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6622. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6623. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  6624. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  6625. end
  6626. for i = 0, 99 do
  6627. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6628. 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)))
  6629. local at1 = Instance.new("Attachment",dis)
  6630. at1.Position = vt(-25000,0,0)
  6631. local at2 = Instance.new("Attachment",dis)
  6632. at2.Position = vt(25000,0,0)
  6633. local trl = Instance.new('Trail',dis)
  6634. trl.Attachment0 = at1
  6635. trl.FaceCamera = true
  6636. trl.Attachment1 = at2
  6637. trl.Texture = "rbxassetid://1049219073"
  6638. trl.LightEmission = 1
  6639. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6640. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6641. trl.Lifetime = 5
  6642. local bv = Instance.new("BodyVelocity")
  6643. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6644. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6645. bv.Parent = dis
  6646. game:GetService("Debris"):AddItem(dis, 5)
  6647. end
  6648. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6649. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6650. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6651. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6652. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6653. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6654. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6655. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6656. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6657. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6658. hum.CameraOffset = vt(0,0,0)
  6659. for i = 0, 24 do
  6660. --slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.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(500,1500)/250,BrickColor.random())
  6661. end
  6662. local distam = 0
  6663. coroutine.resume(coroutine.create(function()
  6664. for i = 0, 99 do
  6665. wait()
  6666. distam = distam + 1
  6667. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6668. xa.Anchored = true
  6669. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6670. game:GetService("Debris"):AddItem(xa, 5)
  6671. for i = 0, 4 do
  6672. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.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(200,500)/250,BrickColor.random())
  6673. end
  6674. coroutine.resume(coroutine.create(function()
  6675. local eff = Instance.new("ParticleEmitter",xa)
  6676. eff.Texture = "rbxassetid://2273224484"
  6677. eff.LightEmission = 1
  6678. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6679. eff.Rate = 500000
  6680. eff.Lifetime = NumberRange.new(1,3)
  6681. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6682. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6683. eff.Speed = NumberRange.new(50,500)
  6684. eff.Drag = 5
  6685. eff.Rotation = NumberRange.new(-500,500)
  6686. eff.VelocitySpread = 9000
  6687. eff.RotSpeed = NumberRange.new(-50,50)
  6688. wait(0.25)
  6689. eff.Enabled = false
  6690. end))
  6691. coroutine.resume(coroutine.create(function()
  6692. for i = 0, 19 do
  6693. swait()
  6694. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6695. end
  6696. hum.CameraOffset = vt(0,0,0)
  6697. end))
  6698. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6699. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6700. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6701. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6702. end
  6703. end))
  6704. attack = false
  6705. hum.WalkSpeed = storehumanoidWS
  6706. end
  6707.  
  6708.  
  6709. function FallenOrbs()
  6710. attack = true
  6711. hum.WalkSpeed = 2
  6712. local keptcolor = MAINRUINCOLOR
  6713. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6714. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6715. local radm = math.random(1,3)
  6716. if radm == 1 then
  6717. bosschatfunc("Lets make this a little fun.",MAINRUINCOLOR.Color,1)
  6718. elseif radm == 2 then
  6719. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6720. elseif radm == 3 then
  6721. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6722. end
  6723. coroutine.resume(coroutine.create(function()
  6724. for i = 0, 29 do
  6725. swait(2)
  6726. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6727. dis.Anchored = true
  6728. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6729. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6730. CreateMesh(dis,"Sphere",2,2,2)
  6731. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6732. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.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(10,50)/250,BrickColor.new("White"))
  6733. coroutine.resume(coroutine.create(function()
  6734. wait(0.5)
  6735. dis.Anchored = false
  6736. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6737. local at1 = Instance.new("Attachment",dis)
  6738. at1.Position = vt(-1,0,0)
  6739. local at2 = Instance.new("Attachment",dis)
  6740. at2.Position = vt(1,0,0)
  6741. local trl = Instance.new('Trail',dis)
  6742. trl.Attachment0 = at1
  6743. trl.FaceCamera = true
  6744. trl.Attachment1 = at2
  6745. trl.Texture = "rbxassetid://1049219073"
  6746. trl.LightEmission = 1
  6747. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6748. trl.Color = ColorSequence.new(dis.Color)
  6749. trl.Lifetime = 0.6
  6750. local a = Instance.new("Part",workspace)
  6751. a.Name = "Direction"
  6752. a.Anchored = true
  6753. a.BrickColor = bc("Bright red")
  6754. a.Material = "Neon"
  6755. a.Transparency = 1
  6756. a.CanCollide = false
  6757. local ray = Ray.new(
  6758. dis.CFrame.p, -- origin
  6759. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6760. )
  6761. local ignore = dis
  6762. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6763. a.BottomSurface = 10
  6764. a.TopSurface = 10
  6765. local distance = (dis.CFrame.p - position).magnitude
  6766. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6767. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6768. dis.CFrame = a.CFrame
  6769. a:Destroy()
  6770. local bv = Instance.new("BodyVelocity")
  6771. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6772. bv.velocity = dis.CFrame.lookVector*500
  6773. bv.Parent = dis
  6774. game:GetService("Debris"):AddItem(dis, 5)
  6775. local hitted = false
  6776. coroutine.resume(coroutine.create(function()
  6777. dis.Touched:connect(function(hit)
  6778. if hitted == false and hit.Parent ~= char then
  6779. hitted = true
  6780. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6781. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6782. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6783. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6784. coroutine.resume(coroutine.create(function()
  6785. for i = 0, 4 do
  6786. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6787. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6788. local at1 = Instance.new("Attachment",disr)
  6789. at1.Position = vt(-10,0,0)
  6790. local at2 = Instance.new("Attachment",disr)
  6791. at2.Position = vt(10,0,0)
  6792. local trl = Instance.new('Trail',disr)
  6793. trl.Attachment0 = at1
  6794. trl.FaceCamera = true
  6795. trl.Attachment1 = at2
  6796. trl.Texture = "rbxassetid://2342682798"
  6797. trl.LightEmission = 1
  6798. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6799. trl.Color = ColorSequence.new(disr.Color)
  6800. trl.Lifetime = 0.5
  6801. local bv = Instance.new("BodyVelocity")
  6802. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6803. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6804. bv.Parent = disr
  6805. local val = 0
  6806. coroutine.resume(coroutine.create(function()
  6807. swait(30)
  6808. for i = 0, 9 do
  6809. swait()
  6810. val = val + 0.1
  6811. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6812. end
  6813. game:GetService("Debris"):AddItem(disr, 3)
  6814. end))
  6815. end
  6816. local eff = Instance.new("ParticleEmitter",dis)
  6817. eff.Texture = "rbxassetid://2273224484"
  6818. eff.LightEmission = 1
  6819. eff.Color = ColorSequence.new(dis.Color)
  6820. eff.Rate = 500000
  6821. eff.Lifetime = NumberRange.new(0.5,2)
  6822. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6823. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6824. eff.Speed = NumberRange.new(20,250)
  6825. eff.Drag = 5
  6826. eff.Rotation = NumberRange.new(-500,500)
  6827. eff.VelocitySpread = 9000
  6828. eff.RotSpeed = NumberRange.new(-50,50)
  6829. wait(0.5)
  6830. eff.Enabled = false
  6831. end))
  6832. for i = 0, 4 do
  6833. --slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.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(100,200)/250,BrickColor.new("White"))
  6834. end
  6835. coroutine.resume(coroutine.create(function()
  6836. for i = 0, 19 do
  6837. swait()
  6838. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6839. end
  6840. hum.CameraOffset = vt(0,0,0)
  6841. end))
  6842. dis.Anchored = true
  6843. dis.Transparency = 1
  6844. wait(8)
  6845. dis:Destroy()
  6846. end
  6847. end)
  6848. end))
  6849. end))
  6850. end
  6851. end))
  6852. for i = 0,9,0.1 do
  6853. swait()
  6854. sphere2(8,"Add",rarm.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.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6855. 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 - 2 * math.cos(sine / 32))),.3)
  6856. 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 + 2 * math.cos(sine / 32))),.3)
  6857. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
  6858. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
  6859. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  6860. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  6861. end
  6862. attack = false
  6863. hum.WalkSpeed = storehumanoidWS
  6864. end
  6865.  
  6866. function EquinoxOrbs()
  6867. hum.WalkSpeed = 0
  6868. attack = true
  6869. for i = 0,1,0.1 do
  6870. swait()
  6871. 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)),.2)
  6872. 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)
  6873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6874. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6875. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6876. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6877. end
  6878. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6879. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6880. for i = 0, 24 do
  6881. --slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White"))
  6882. end
  6883. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6884. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6885. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6886. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6887. for i = 0,4,0.1 do
  6888. swait()
  6889. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6890. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6891. CreateMesh(dis,"Sphere",1,1,1)
  6892. dis.Anchored = true
  6893. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6894. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6895. CreateMesh(dis2,"Sphere",1,1,1)
  6896. dis2.Anchored = true
  6897. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6898. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6899. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6900. coroutine.resume(coroutine.create(function()
  6901. swait(60)
  6902. dis.Transparency = 1
  6903. dis2.Transparency = 1
  6904. coroutine.resume(coroutine.create(function()
  6905. for i = 0, 19 do
  6906. swait()
  6907. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6908. end
  6909. hum.CameraOffset = vt(0,0,0)
  6910. end))
  6911. coroutine.resume(coroutine.create(function()
  6912. local eff = Instance.new("ParticleEmitter",dis)
  6913. eff.Texture = "rbxassetid://2273224484"
  6914. eff.LightEmission = 1
  6915. eff.Color = ColorSequence.new(dis.Color)
  6916. eff.Rate = 500000
  6917. eff.Lifetime = NumberRange.new(0.5,2)
  6918. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6919. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6920. eff.Speed = NumberRange.new(50,450)
  6921. eff.Drag = 5
  6922. eff.Rotation = NumberRange.new(-500,500)
  6923. eff.VelocitySpread = 9000
  6924. eff.RotSpeed = NumberRange.new(-50,50)
  6925. local eff2 = eff:Clone()
  6926. eff2.Parent = dis2
  6927. eff2.LightEmission = 0
  6928. eff2.Color = ColorSequence.new(dis2.Color)
  6929. wait(0.25)
  6930. eff.Enabled = false
  6931. eff2.Enabled = false
  6932. end))
  6933. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6934. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6935. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6936. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6937. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6938. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6939. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6940. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6941. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6942. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6943. end))
  6944. game:GetService("Debris"):AddItem(dis, 5)
  6945. game:GetService("Debris"):AddItem(dis2, 5)
  6946. 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)),.2)
  6947. 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)
  6948. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6949. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6950. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6951. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6952. end
  6953. attack = false
  6954. hum.WalkSpeed = storehumanoidWS
  6955. end
  6956. function FallenDEMISE()
  6957. attack = true
  6958. hum.WalkSpeed = 0
  6959. local keptcolor = MAINRUINCOLOR
  6960. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6961. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6962. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6963. for i = 0, 15, 0.1 do
  6964. swait()
  6965. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6966. 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)))
  6967. local at1 = Instance.new("Attachment",dis)
  6968. at1.Position = vt(-25000,0,0)
  6969. local at2 = Instance.new("Attachment",dis)
  6970. at2.Position = vt(25000,0,0)
  6971. local trl = Instance.new('Trail',dis)
  6972. trl.Attachment0 = at1
  6973. trl.FaceCamera = true
  6974. trl.Attachment1 = at2
  6975. trl.Texture = "rbxassetid://1049219073"
  6976. trl.LightEmission = 1
  6977. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6978. trl.Color = ColorSequence.new(dis.Color)
  6979. trl.Lifetime = 5
  6980. local bv = Instance.new("BodyVelocity")
  6981. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6982. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6983. bv.Parent = dis
  6984. game:GetService("Debris"):AddItem(dis, 1)
  6985. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6986. --slash(math.random(30,150)/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(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
  6987. --slash(math.random(30,150)/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(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
  6988. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6989. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6990. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6991. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6992. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6993. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6994. end
  6995. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6996. for i = 0, 30, 0.1 do
  6997. swait()
  6998. coroutine.resume(coroutine.create(function()
  6999. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  7000. if v:FindFirstChild('Head') then
  7001. dmg(v)
  7002. end
  7003. end
  7004. end))
  7005. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  7006. 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)))
  7007. local at1 = Instance.new("Attachment",dis)
  7008. at1.Position = vt(-50000,0,0)
  7009. local at2 = Instance.new("Attachment",dis)
  7010. at2.Position = vt(50000,0,0)
  7011. local trl = Instance.new('Trail',dis)
  7012. trl.Attachment0 = at1
  7013. trl.FaceCamera = true
  7014. trl.Attachment1 = at2
  7015. trl.Texture = "rbxassetid://1049219073"
  7016. trl.LightEmission = 1
  7017. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  7018. trl.Color = ColorSequence.new(dis.Color)
  7019. trl.Lifetime = 10
  7020. local bv = Instance.new("BodyVelocity")
  7021. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  7022. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  7023. bv.Parent = dis
  7024. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  7025. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  7026. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  7027. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
  7028. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
  7029. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
  7030. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
  7031. for i = 0, 2 do
  7032. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
  7033. end
  7034. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  7035. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  7036. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  7037. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  7038. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  7039. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  7040. end
  7041. attack = false
  7042. hum.WalkSpeed = storehumanoidWS
  7043. end
  7044. -------------------------------------
  7045.  
  7046. Humanoid.Animator.Parent = nil
  7047.  
  7048. -------------------------------------
  7049.  
  7050. local attacktype = 1
  7051. mouse.Button1Down:connect(function()
  7052. if attack == false and attacktype == 1 then
  7053. attacktype = 2
  7054. attackone()
  7055. elseif attack == false and attacktype == 2 then
  7056. attacktype = 3
  7057. attacktwo()
  7058. elseif attack == false and attacktype == 3 then
  7059. attacktype = 1
  7060. attackthree()
  7061. elseif attack == false and attacktype == 4 then
  7062. attacktype = 1
  7063. --attackfour()
  7064. end
  7065. end)
  7066. mouse.KeyDown:connect(function(k)
  7067. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  7068. --normalmog() ---Disabled due to crashing... only in VSB
  7069. ModeOfGlitch = 1
  7070. storehumanoidWS = 16
  7071. hum.WalkSpeed = 16
  7072. rainbowmode = false
  7073. chaosmode = true
  7074. newTheme("rbxassetid://1841294764",0,1.02,1.25)
  7075. RecolorTextAndRename("Vendetta",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  7076. MAINRUINCOLOR = BrickColor.new("Really black")
  7077. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  7078. end
  7079. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  7080. ModeOfGlitch = 2
  7081. storehumanoidWS = 16
  7082. hum.WalkSpeed = 16
  7083. rainbowmode = false
  7084. chaosmode = false
  7085. RecolorTextAndRename("Vendetta",Color3.new(0,0,0),Color3.new(0,0,0),"Code")
  7086. newTheme("rbxassetid://1841294764",0,1,1)
  7087. MAINRUINCOLOR = BrickColor.new("Really black")
  7088. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7089. end
  7090. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  7091. ModeOfGlitch = 3
  7092. storehumanoidWS = 16
  7093. hum.WalkSpeed = 16
  7094. rainbowmode = false
  7095. chaosmode = true
  7096. RecolorTextAndRename("Vendetta",Color3.new(0,0,0),Color3.new(0,0,0.4),"Really black")
  7097. newTheme("rbxassetid://1062639933", 0,0.8,1.5)
  7098. MAINRUINCOLOR = BrickColor.new("Dark red")
  7099. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7100. end
  7101. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  7102. ModeOfGlitch = 4
  7103. storehumanoidWS = 16
  7104. hum.WalkSpeed = 16
  7105. rainbowmode = false
  7106. chaosmode = true
  7107. RecolorTextAndRename("Vendetta",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  7108. newTheme("rbxassetid://1841294764",0,1,10)
  7109. MAINRUINCOLOR = BrickColor.new("Really black")
  7110. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7111. end
  7112. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  7113. ModeOfGlitch = 5
  7114. storehumanoidWS = 100
  7115. hum.WalkSpeed = 100
  7116. rainbowmode = false
  7117. chaosmode = false
  7118. RecolorTextAndRename("Vendetta",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  7119. newTheme("rbxassetid://1841292725",1,1,10)
  7120. MAINRUINCOLOR = BrickColor.new("Really black")
  7121. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7122. end
  7123. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  7124. ModeOfGlitch = 6
  7125. storehumanoidWS = 100
  7126. hum.WalkSpeed = 100
  7127. rainbowmode = false
  7128. chaosmode = false
  7129. RecolorTextAndRename("Vendetta",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  7130. newTheme("rbxassetid://1564523997",0,1,1)
  7131. MAINRUINCOLOR = BrickColor.new("Really black")
  7132. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7133. end
  7134. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  7135. ModeOfGlitch = 8
  7136. storehumanoidWS = 140
  7137. hum.WalkSpeed = 140
  7138. rainbowmode = false
  7139. chaosmode = false
  7140. RecolorTextAndRename("Vendetta",Color3.new(1,1,1),BrickColor.new("Really black").Color,"Code")
  7141. newTheme("rbxassetid://1495032271",0,1.01,1.25)
  7142. MAINRUINCOLOR = BrickColor.new("Really black")
  7143. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7144. end
  7145. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  7146. ModeOfGlitch = 9
  7147. storehumanoidWS = 150
  7148. hum.WalkSpeed = 150
  7149. rainbowmode = true
  7150. chaosmode = false
  7151. RecolorTextAndRename("Vendetta",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  7152. newTheme("rbxassetid://945682825",0,0.8,1.5)
  7153. MAINRUINCOLOR = BrickColor.new("Dark red")
  7154. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark Red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7155. end
  7156. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  7157. ModeOfGlitch = 8889
  7158. storehumanoidWS = 180
  7159. hum.WalkSpeed = 180
  7160. rainbowmode = false
  7161. chaosmode = false
  7162. RecolorTextAndRename("STAR'S CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  7163. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  7164. MAINRUINCOLOR = BrickColor.new("Lilac")
  7165. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7166. end
  7167. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  7168. ModeOfGlitch = 55469696922
  7169. storehumanoidWS = 275
  7170. hum.WalkSpeed = 275
  7171. rainbowmode = false
  7172. chaosmode = true
  7173. RecolorTextAndRename("Vendetta",Color3.new(0.25,0,0.1),BrickColor.new("Really black").Color,"Antique")
  7174. newTheme("rbxassetid://1844782079",0,1.005,1.25)
  7175. MAINRUINCOLOR = BrickColor.new("Navy blue")
  7176. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7177. end
  7178. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  7179. ModeOfGlitch = 4367677813
  7180. storehumanoidWS = 225
  7181. hum.WalkSpeed = 225
  7182. rainbowmode = false
  7183. chaosmode = false
  7184. RecolorTextAndRename("Star's Vendetta",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  7185. newTheme("rbxassetid://363284685",0,1.01,1.25)
  7186. MAINRUINCOLOR = BrickColor.new("Baby blue")
  7187. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7188. end
  7189. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  7190. ModeOfGlitch = 9999999921111
  7191. storehumanoidWS = 16
  7192. hum.WalkSpeed = 16
  7193. rainbowmode = false
  7194. chaosmode = false
  7195. local glitchymode = true
  7196. RecolorTextAndRename("STAR'S Vendetta",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"SciFi")
  7197. newTheme("rbxassetid://1346743822",0,1,1)
  7198. MAINRUINCOLOR = BrickColor.new("Really black")
  7199. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7200. end
  7201. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  7202.  
  7203. ModeOfGlitch = 999999999556
  7204. storehumanoidWS = 250
  7205. hum.WalkSpeed = 250
  7206. rainbowmode = false
  7207. chaosmode = false
  7208. RecolorTextAndRename("Vendetta",BrickColor.new("Really black").Color,BrickColor.new("Really black").Color,"Code")
  7209. newTheme("rbxassetid://1841292725",0,1.02,1.25)
  7210. MAINRUINCOLOR = BrickColor.new("Really black")
  7211. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7212. end
  7213. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  7214. ModeOfGlitch = 1264532489
  7215. storehumanoidWS = 250
  7216. hum.WalkSpeed = 250
  7217. rainbowmode = false
  7218. chaosmode = false
  7219. RecolorTextAndRename("Vendetta",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  7220. newTheme("rbxassetid://1841292725",0,0.8,1.5)
  7221. MAINRUINCOLOR = BrickColor.new("Really black")
  7222. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  7223. end
  7224. if k == "l" and mutedtog == false then
  7225. mutedtog = true
  7226. kan.Volume = 0
  7227. elseif k == "l" and mutedtog == true then
  7228. mutedtog = false
  7229. kan.Volume = 1.25
  7230. end
  7231. if k == "p" and toggleTag == false then
  7232. toggleTag = true
  7233. modet.TextTransparency = 0
  7234. modet.TextStrokeTransparency = 0
  7235. elseif k == "p" and toggleTag == true then
  7236. toggleTag = false
  7237. modet.TextTransparency = 1
  7238. modet.TextStrokeTransparency = 1
  7239. end
  7240. if k == "z" and attack == false and ModeOfGlitch == 1 then
  7241. ExtinctiveHeartbreak()
  7242. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  7243. HeavenlyDisk()
  7244. elseif k == "z" and attack == false and ModeOfGlitch == 9 then
  7245. GleamingBeam()
  7246. elseif k == "x" and attack == false and ModeOfGlitch == 999999999556 then
  7247. BeamOfDeath()
  7248. elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
  7249. Beams()
  7250. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  7251. CorruptionEvent()
  7252. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7253. CorruptionEvent()
  7254. elseif k == "c" and attack == false and ModeOfGlitch == 4 then
  7255. ChaosGroundStrike()
  7256. elseif k == "z" and attack == false and ModeOfGlitch == 9999999921111 then
  7257. ChaosGroundStrike()
  7258. elseif k == "v" and attack == false and ModeOfGlitch == 4 then
  7259. ChaosBegone()
  7260. elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
  7261. ChaosBegone()
  7262. elseif k == "x" and attack == false and ModeOfGlitch == 4 then
  7263. CorruptionEvent()
  7264. elseif k == "z" and attack == false and ModeOfGlitch == 8889 then
  7265. Starfall()
  7266. elseif k == "x" and attack == false and ModeOfGlitch == 5 then
  7267. Judgement()
  7268. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  7269. RapidBurst()
  7270. elseif k == "z" and attack == false and ModeOfGlitch == 55469696922 then
  7271. hugg()
  7272. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  7273. EquinoxOrbs()
  7274. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  7275. FallenOrbs()
  7276. end
  7277. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  7278. FallenDEMISE()
  7279. end
  7280. if k == "x" and attack == false and ModeOfGlitch == 1 then
  7281. EndGROUND()
  7282. end
  7283. end)
  7284.  
  7285. --[[coroutine.resume(coroutine.create(function()
  7286. while true do
  7287. swait(2)
  7288. if chaosmode == true then
  7289. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7290. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7291. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7292. RecolorTextAndRename("Vendetta",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  7293. for i, v in pairs(mw1:GetChildren()) do
  7294. if v:IsA("Part") then
  7295. v.Transparency = 0.75
  7296. v.BrickColor = BrickColor.random()
  7297. v.Material = "Neon"
  7298. end
  7299. end
  7300. for i, v in pairs(m2:GetChildren()) do
  7301. if v:IsA("Part") then
  7302. v.BrickColor = BrickColor.random()
  7303. v.Material = "Neon"
  7304. end
  7305. end
  7306. end
  7307. end
  7308. end))]]--
  7309. Humanoid.Name = "STARGLITCHER"
  7310. Humanoid.MaxHealth = math.huge
  7311. Humanoid.Health = math.huge
  7312. Instance.new("ForceField",char).Visible = false
  7313.  
  7314. local bguis = Instance.new("BillboardGui",tors)
  7315. bguis.Size = UDim2.new(25, 0, 25, 0)
  7316. local imgca = Instance.new("ImageLabel",bguis)
  7317. imgca.BackgroundTransparency = 1
  7318. imgca.ImageTransparency = 1
  7319. imgca.Size = UDim2.new(1,0,1,0)
  7320. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  7321. imgca.ImageColor3 = Color3.new(0,0,0)
  7322.  
  7323. idleanim=.4
  7324. while true do
  7325. if mutedtog == false then
  7326. kan.Volume = currentVol
  7327. elseif mutedtog == true then
  7328. kan.Volume = 0
  7329. end
  7330. kan.PlaybackSpeed = currentPitch
  7331. kan.Pitch = currentPitch
  7332. kan.SoundId = currentThemePlaying
  7333. kan.Looped = true
  7334. kan.Parent = char
  7335. kan:Resume()
  7336. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  7337. imgca.ImageTransparency = 1
  7338. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  7339. imgca.ImageColor3 = MAINRUINCOLOR.Color
  7340. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  7341. end
  7342. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  7343. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  7344. coroutine.resume(coroutine.create(function()
  7345. if chaosmode == true then
  7346. for i, v in pairs(mw1:GetChildren()) do
  7347. if v:IsA("Part") then
  7348. v.Transparency = 0
  7349. v.BrickColor = BrickColor.random()
  7350. v.Material = "Neon"
  7351. end
  7352. end
  7353. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  7354. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  7355. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  7356. RecolorTextAndRename("Vendetta",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  7357. end
  7358. end))
  7359. if chaosmode == false then
  7360. modet.Position = UDim2.new(0,0,0,0)
  7361. modet.Rotation = -5 * math.cos(sine / 32)
  7362. techc.Rotation = techc.Rotation + 1
  7363. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  7364. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  7365. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  7366. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  7367. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  7368. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  7369. else
  7370. techc.Rotation = techc.Rotation + 1
  7371. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  7372. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  7373. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  7374. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  7375. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  7376. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  7377. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  7378. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  7379. end
  7380. CameraManager()
  7381. swait()
  7382. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  7383. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  7384. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  7385. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  7386. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  7387. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  7388. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  7389. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  7390. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  7391. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  7392. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  7393. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  7394. sine = sine + change
  7395. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  7396. local velderp=RootPart.Velocity.y
  7397. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  7398. if equipped==true or equipped==false then
  7399. if attack==false then
  7400. idle=idle+1
  7401. else
  7402. idle=0
  7403. end
  7404. if idle>=500 then
  7405. if attack==false then
  7406. --Sheath()
  7407. end
  7408. end
  7409. if RootPart.Velocity.y > 1 and hitfloor==nil then
  7410. Anim="Jump"
  7411. if attack==false then
  7412. 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)
  7413. 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)
  7414. 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)
  7415. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  7416. 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)
  7417. 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)
  7418. end
  7419. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  7420. Anim="Fall"
  7421. if attack==false then
  7422. 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)
  7423. 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)
  7424. 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)
  7425. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  7426. 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)
  7427. 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)
  7428. end
  7429. elseif torvel<1 and hitfloor~=nil then
  7430. Anim="Idle"
  7431. if attack==false then
  7432. if ModeOfGlitch == 1 then
  7433. local snap = math.random(1,10)
  7434. if snap == 1 then
  7435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  7436. end
  7437. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  7438. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  7439. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  7440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  7441. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  7442. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
  7443. elseif ModeOfGlitch == 2 then
  7444. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  7445. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  7446. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  7447. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  7448. 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)
  7449. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7450. elseif ModeOfGlitch == 3 then
  7451. local snap = math.random(1,32)
  7452. if snap == 1 then
  7453. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  7454. end
  7455. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),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(1 - 2 * math.cos(sine / 32))),.1)
  7456. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),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(-1 + 2 * math.cos(sine / 32))),.1)
  7457. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  7458. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7459. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  7460. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  7461. elseif ModeOfGlitch == 4 then
  7462. local snap = math.random(1,5)
  7463. if snap == 1 then
  7464. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  7465. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  7466. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  7467. end
  7468. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),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(25 - 2 * math.cos(sine / 32))),.1)
  7469. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),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(-25 + 2 * math.cos(sine / 32))),.1)
  7470. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7471. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7472. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  7473. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  7474. elseif ModeOfGlitch == 5 then
  7475. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),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(0 - 2 * math.cos(sine / 32))),.1)
  7476. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),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(0 + 2 * math.cos(sine / 32))),.1)
  7477. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  7478. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  7479. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
  7480. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  7481. elseif ModeOfGlitch == 6 then
  7482. 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)
  7483. 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)
  7484. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7485. 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)
  7486. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  7487. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  7488. elseif ModeOfGlitch == 8 then
  7489. 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 - 2 * math.cos(sine / 39))),.1)
  7490. 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 + 6 * math.cos(sine / 31))),.1)
  7491. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  7492. 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(20 + 2 * math.cos(sine / 53))),.1)
  7493. 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)
  7494. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7495. elseif ModeOfGlitch == 9 then
  7496. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  7497. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  7498. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1)
  7499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7500. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  7501. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  7502. elseif ModeOfGlitch == 8889 then
  7503. 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 - 5 * math.cos(sine / 51))),.1)
  7504. 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 / 44))),.1)
  7505. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  7506. 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(36 + 2 * math.cos(sine / 53))),.1)
  7507. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
  7508. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  7509. elseif ModeOfGlitch == 1264532489 then
  7510. 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(-14 - 5 * math.cos(sine / 48))),.1)
  7511. 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(15 + 7 * math.cos(sine / 51))),.1)
  7512. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  7513. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7514. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  7515. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7516. elseif ModeOfGlitch == 9999999921111 then
  7517. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  7518. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  7519. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  7520. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  7521. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  7522. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  7523. elseif ModeOfGlitch == 4367677813 then
  7524. 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 - 2 * math.cos(sine / 32))),.1)
  7525. 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 + 2 * math.cos(sine / 32))),.1)
  7526. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1)
  7527. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7528. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
  7529. LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
  7530. elseif ModeOfGlitch == 55469696922 then
  7531. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  7532. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  7533. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7534. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7535. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
  7536. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7537. elseif ModeOfGlitch == 999999999556 then
  7538. 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 - 6 * math.cos(sine / 39))),.1)
  7539. 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 / 45))),.1)
  7540. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  7541. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  7542. 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)
  7543. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7544. end
  7545. end
  7546. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7547. Anim="Walk"
  7548. if attack==false then
  7549. 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)
  7550. 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)
  7551. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  7552. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  7553. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  7554. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  7555. end
  7556. elseif torvel>=22 and hitfloor~=nil then
  7557. Anim="Run"
  7558. if attack==false then
  7559. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  7560. 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)
  7561. 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)
  7562. 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)
  7563. 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)
  7564. 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)
  7565. 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)
  7566. if ModeOfGlitch == 9 then
  7567. --
  7568. end
  7569. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7570. 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)
  7571. 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)
  7572. 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)
  7573. 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)
  7574. 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)
  7575. 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)
  7576.  
  7577.  
  7578. local chara = Character
  7579. local m = Create("Model"){
  7580. Parent = Character,
  7581. Name = "WeaponModel",
  7582. }
  7583. function chat(...)
  7584. local txxt = {...}
  7585. local ch = coroutine.wrap(function()
  7586. if chara:FindFirstChild("Chatt")~= nil then
  7587. Character:FindFirstChild("Chatt"):destroy()
  7588. end
  7589. local txt = Instance.new("BillboardGui", chara)
  7590. txt.Adornee = chara.Head
  7591. txt.Name = "Chatt"
  7592. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7593. txt.StudsOffset = Vector3.new(-9, 7, 0)
  7594. local text = Instance.new("TextLabel", txt)
  7595. text.Size = UDim2.new(10, 0, 7, 0)
  7596. text.TextSize = 33
  7597. text.Font = Enum.Font.Antique
  7598. text.TextScaled = false
  7599. text.BackgroundTransparency = 1
  7600. text.TextColor3 = Color3.new(1,1,1)
  7601. text.TextStrokeTransparency = 0
  7602. text.TextStrokeColor3 = Color3.fromRGB(81, 69, 69)
  7603. text.Text = ""
  7604. txxt = table.concat(txxt,"\t")
  7605. for i = 1, #txxt do
  7606. text.Text = txxt:sub(1,i)
  7607.  
  7608. end
  7609. wait(2)
  7610. for trans = 0,1,00.1 do
  7611. text.TextTransparency = trans
  7612. text.TextStrokeTransparency = trans
  7613. wait()
  7614. end
  7615. wait()
  7616. txt:destroy()
  7617. end)
  7618.  
  7619. ch(...)
  7620. end
  7621. Player.Chatted:connect(chat)
  7622.  
  7623.  
  7624.  
  7625. end
  7626. end
  7627. end
  7628. end
  7629. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement