ggg

Download Raw Clone


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

Raw paste data: