Advertisement
wamandnj

Untitled

Nov 4th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pif game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code used in this script!")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").owner
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  85. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  86. do
  87. print("FE Compatibility code by Mokiros")
  88. script.Parent = Player.Character
  89.  
  90. --RemoteEvent for communicating
  91. local Event = Instance.new("RemoteEvent")
  92. Event.Name = "UserInput_Event"
  93.  
  94. --Fake event to make stuff like Mouse.KeyDown work
  95. local function fakeEvent()
  96. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  97. t.connect = t.Connect
  98. return t
  99. end
  100.  
  101. --Creating fake input objects with fake variables
  102. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  103. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  104. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  105. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  106. end}
  107. --Merged 2 functions into one by checking amount of arguments
  108. CAS.UnbindAction = CAS.BindAction
  109.  
  110. --This function will trigger the events that have been :Connect()'ed
  111. local function te(self,ev,...)
  112. local t = m[ev]
  113. if t and t._fakeEvent and t.Function then
  114. t.Function(...)
  115. end
  116. end
  117. m.TrigEvent = te
  118. UIS.TrigEvent = te
  119.  
  120. Event.OnServerEvent:Connect(function(plr,io)
  121. if plr~=Player then return end
  122. if io.isMouse then
  123. m.Target = io.Target
  124. m.Hit = io.Hit
  125. else
  126. local b = io.UserInputState == Enum.UserInputState.Begin
  127. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  128. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  129. end
  130. for _,t in pairs(CAS.Actions) do
  131. for _,k in pairs(t.Keys) do
  132. if k==io.KeyCode then
  133. t.Function(t.Name,io.UserInputState,io)
  134. end
  135. end
  136. end
  137. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  138. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  139. end
  140. end)
  141. Event.Parent = NLS([==[
  142. local Player = game:GetService("Players").owner
  143. local Event = script:WaitForChild("UserInput_Event")
  144.  
  145. local UIS = game:GetService("UserInputService")
  146. local input = function(io,a)
  147. if a then return end
  148. --Since InputObject is a client-side instance, we create and pass table instead
  149. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  150. end
  151. UIS.InputBegan:Connect(input)
  152. UIS.InputEnded:Connect(input)
  153.  
  154. local Mouse = Player:GetMouse()
  155. local h,t
  156. --Give the server mouse data 30 times every second, but only if the values changed
  157. --If player is not moving their mouse, client won't fire events
  158. while wait(1/30) do
  159. if h~=Mouse.Hit or t~=Mouse.Target then
  160. h,t=Mouse.Hit,Mouse.Target
  161. Event:FireServer({isMouse=true,Target=t,Hit=h})
  162. end
  163. end]==],Player.Character)
  164. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  165. end
  166. warn([[Star Glitcher Loaded.
  167. All purpose switcher... -- wat
  168.  
  169. It's not over yet.
  170. The faith is among us.
  171. And yet you still haven't defeated me.
  172. Now is my chance to destroy you.
  173. Then you're out of the world.
  174. With the elemental being struggling to gain power.
  175. This is the result.
  176. Very unstable and powerful.
  177. A insanely chaotic being.
  178. Who haven't ever known that one could hold this power.
  179. It's the one that has been created by an unknown being.
  180. You'll know this name already.
  181. Till now.
  182. The power is inside your body.
  183. You will decide things with this.
  184. And the future changes within the power.
  185. For now, you'll decide your own.
  186. You're one of them who holds this power.
  187. And so on, you would get chaotic to everyone else.
  188. You seem to dont trust everyone else, but one.
  189. That one... you can't know.
  190. It's only your decision.
  191. At yourself.
  192. No mercy, or spare.
  193.  
  194.  
  195. Created by 'NoobyGames12'
  196. Edited by 'danny199990'
  197. ]])
  198. print([[Icons:
  199. ! = New
  200. ? = Spoilers
  201. * = Exclusivity
  202. ]])
  203. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  204. - Originall themes included
  205. ! - Calamity's "Z" has changed.
  206. ! - Starfall EX added.
  207. ! - Mayhem now has Destruction mode.
  208. ! - Chaos theme has been changed.
  209. ! - Purity's theme has been extended.
  210. ? - Corruption's "Z" will have animation sooner.
  211. ! - Calamity's "X" is added, named Starfall.
  212. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  213. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  214. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  215. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  216. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  217.  
  218. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  219. ]])
  220. --- its obs smooth af do not touch
  221. ---- Sources and functions might be taken from others
  222. plr = owner
  223. char = plr.Character
  224. hum = char.Humanoid
  225. local cam = game.Workspace.CurrentCamera
  226. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  227. Camera = cam
  228. local CamInterrupt = false
  229. local TwoD = false
  230. local TargetInfo = {nil, nil}
  231. cam.CameraType = "Custom"
  232. t = char.Torso
  233. h = char.Head
  234. ra = char["Right Arm"]
  235. la = char["Left Arm"]
  236. rl = char["Right Leg"]
  237. ll = char["Left Leg"]
  238. tors = char.Torso
  239. lleg = char["Left Leg"]
  240. root = char.HumanoidRootPart
  241. hed = char.Head
  242. rleg = char["Right Leg"]
  243. rarm = char["Right Arm"]
  244. larm = char["Left Arm"]
  245. radian = math.rad
  246. random = math.random
  247. Vec3 = Vector3.new
  248. Inst = Instance.new
  249. cFrame = CFrame.new
  250. Euler = CFrame.fromEulerAnglesXYZ
  251. vt = Vector3.new
  252. bc = BrickColor.new
  253. br = BrickColor.random
  254. it = Instance.new
  255. cf = CFrame.new
  256. local eff = true
  257. local shielding = false
  258.  
  259. local Booleans = {
  260. CamFollow = true,
  261. GyroUse = true
  262. }
  263.  
  264. function lerp(object, newCFrame, alpha)
  265. return object:lerp(newCFrame, alpha)
  266. end
  267.  
  268. local Directer = Inst("BodyGyro", root)
  269. Directer.MaxTorque = Vec3(0, 0, 0)
  270. Directer.P = 600000
  271. local CPart = Inst("Part")
  272. CPart.Anchored = true
  273. CPart.CanCollide = false
  274. CPart.Locked = true
  275. CPart.Transparency = 1
  276.  
  277. local rainbowmode = false
  278. local chaosmode = false
  279.  
  280. kan = Instance.new("Sound",char)
  281. kan.Volume = 1.25
  282. kan.TimePosition = 0
  283. kan.PlaybackSpeed = 1
  284. kan.Pitch = 1
  285. kan.SoundId = "rbxassetid://614032233"
  286. kan.Name = "wrecked"
  287. kan.Looped = true
  288. kan:Play()
  289.  
  290. function newTheme(ID,timepos,pitch,vol)
  291. local kanz = kan
  292. --kanz:Stop()
  293. --kanz.Volume = vol
  294. --kanz.TimePosition = timepos
  295. kanz.PlaybackSpeed = pitch
  296. kanz.Pitch = pitch
  297. kanz.SoundId = ID
  298. kanz.Name = "wrecked"
  299. kanz.Looped = true
  300. kanz.Volume = 0.3
  301. --kanz:Play()
  302. --coroutine.resume(coroutine.create(function()
  303. --wait(0.05)
  304. --end))
  305. end
  306.  
  307. function newThemeCust(ID,timepos,pitch,vol)
  308. local kanz = kan
  309. kanz:Stop()
  310. kanz.Volume = vol
  311. kanz.TimePosition = timepos
  312. kanz.PlaybackSpeed = pitch
  313. kanz.Pitch = pitch
  314. kanz.SoundId = ID
  315. kanz.Name = "wrecked"
  316. kanz.Looped = true
  317. kanz:Play()
  318. coroutine.resume(coroutine.create(function()
  319. wait(0.05)
  320. end))
  321. end
  322.  
  323.  
  324.  
  325. function CameraShake(Times, Power, PlayerTarget)
  326. coroutine.resume(coroutine.create(function()
  327. FV = Instance.new("BoolValue", PlayerTarget)
  328. FV.Name = "CameraShake"
  329. for ShakeNum=1,Times do
  330. swait()
  331. local ef=Power
  332. if ef>=1 then
  333. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  334. else
  335. ef=Power*10
  336. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  337. end
  338. end
  339. Humanoid.CameraOffset = Vector3.new(0,0,0)
  340. FV:Destroy()
  341. end))
  342. end
  343.  
  344. function CameraEnshaking(Length,Intensity)
  345. coroutine.resume(coroutine.create(function()
  346. local intensity = 1*Intensity
  347. local rotM = 0.01*Intensity
  348. for i = 0, Length, 0.1 do
  349. swait()
  350. intensity = intensity - 0.05*Intensity/Length
  351. rotM = rotM - 0.0005*Intensity/Length
  352. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  353. 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)
  354. end
  355. Humanoid.CameraOffset = Vec3(0, 0, 0)
  356. end))
  357. end
  358. CamShake=function(Part,Distan,Power,Times)
  359. local de=Part.Position
  360. for i,v in pairs(workspace:children()) do
  361. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  362. for _,c in pairs(v:children()) do
  363. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  364. local Noob=v.Humanoid
  365. if Noob~=nil then
  366. coroutine.resume(coroutine.create(function()
  367. FV = Instance.new("BoolValue", Noob)
  368. FV.Name = "CameraShake"
  369. for ShakeNum=1,Times do
  370. swait()
  371. local ef=Power
  372. if ef>=1 then
  373. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  374. else
  375. ef=Power*10
  376. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  377. end
  378. end
  379. Humanoid.CameraOffset = Vector3.new(0,0,0)
  380. FV:Destroy()
  381. end))
  382. CameraShake(Times, Power, Noob)
  383. end
  384. end
  385. end
  386. end
  387. end
  388. end
  389.  
  390. function chatfunc(text,color)
  391. local chat = coroutine.wrap(function()
  392. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  393. Character:FindFirstChild("TalkingBillBoard"):destroy()
  394. end
  395. local naeeym2 = Instance.new("BillboardGui",Character)
  396. naeeym2.Size = UDim2.new(0,100,0,40)
  397. naeeym2.StudsOffset = Vector3.new(0,3,0)
  398. naeeym2.Adornee = Character.Head
  399. naeeym2.Name = "TalkingBillBoard"
  400. local tecks2 = Instance.new("TextLabel",naeeym2)
  401. tecks2.BackgroundTransparency = 1
  402. tecks2.BorderSizePixel = 0
  403. tecks2.Text = ""
  404. tecks2.Font = "SciFi"
  405. tecks2.TextSize = 30
  406. tecks2.TextStrokeTransparency = 0
  407. tecks2.TextColor3 = color
  408. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  409. tecks2.Size = UDim2.new(1,0,0.5,0)
  410. local tecks3 = Instance.new("TextLabel",naeeym2)
  411. tecks3.BackgroundTransparency = 1
  412. tecks3.BorderSizePixel = 0
  413. tecks3.Text = ""
  414. tecks3.Font = "SciFi"
  415. tecks3.TextSize = 30
  416. tecks3.TextStrokeTransparency = 0
  417. tecks3.TextColor3 = Color3.new(0,0,0)
  418. tecks3.TextStrokeColor3 = color
  419. tecks3.Size = UDim2.new(1,0,0.5,0)
  420. coroutine.resume(coroutine.create(function()
  421. while true do
  422. swait(1)
  423. plr.Character.wrecked.Volume = 0.3
  424. if chaosmode == true then
  425. tecks2.TextColor3 = BrickColor.random().Color
  426. tecks3.TextStrokeColor3 = BrickColor.random().Color
  427. end
  428. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  429. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  430. tecks2.Rotation = math.random(-5,5)
  431. tecks3.Rotation = math.random(-5,5)
  432. end
  433. end))
  434. for i = 1,string.len(text),1 do
  435. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  436. tecks2.Text = string.sub(text,1,i)
  437. tecks3.Text = string.sub(text,1,i)
  438. swait(1)
  439. end
  440. wait(1)
  441. local randomrot = math.random(1,2)
  442. if randomrot == 1 then
  443. for i = 1, 50 do
  444. swait()
  445. tecks2.Rotation = tecks2.Rotation - .75
  446. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  447. tecks2.TextTransparency = tecks2.TextTransparency + .04
  448. tecks3.Rotation = tecks2.Rotation + .75
  449. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  450. tecks3.TextTransparency = tecks2.TextTransparency + .04
  451. end
  452. elseif randomrot == 2 then
  453. for i = 1, 50 do
  454. swait()
  455. tecks2.Rotation = tecks2.Rotation + .75
  456. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  457. tecks2.TextTransparency = tecks2.TextTransparency + .04
  458. tecks3.Rotation = tecks2.Rotation - .75
  459. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  460. tecks3.TextTransparency = tecks2.TextTransparency + .04
  461. end
  462. end
  463. naeeym2:Destroy()
  464. end)
  465. chat()
  466. end
  467.  
  468.  
  469. local Create = LoadLibrary("RbxUtility").Create
  470.  
  471. CFuncs = {
  472. ["Part"] = {
  473. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  474. local Part = Create("Part"){
  475. Parent = Parent,
  476. Reflectance = Reflectance,
  477. Transparency = Transparency,
  478. CanCollide = false,
  479. Locked = true,
  480. BrickColor = BrickColor.new(tostring(BColor)),
  481. Name = Name,
  482. Size = Size,
  483. Material = Material,
  484. }
  485. RemoveOutlines(Part)
  486. return Part
  487. end;
  488. };
  489.  
  490. ["Mesh"] = {
  491. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  492. local Msh = Create(Mesh){
  493. Parent = Part,
  494. Offset = OffSet,
  495. Scale = Scale,
  496. }
  497. if Mesh == "SpecialMesh" then
  498. Msh.MeshType = MeshType
  499. Msh.MeshId = MeshId
  500. end
  501. return Msh
  502. end;
  503. };
  504.  
  505. ["Mesh"] = {
  506. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  507. local Msh = Create(Mesh){
  508. Parent = Part,
  509. Offset = OffSet,
  510. Scale = Scale,
  511. }
  512. if Mesh == "SpecialMesh" then
  513. Msh.MeshType = MeshType
  514. Msh.MeshId = MeshId
  515. end
  516. return Msh
  517. end;
  518. };
  519.  
  520. ["Weld"] = {
  521. Create = function(Parent, Part0, Part1, C0, C1)
  522. local Weld = Create("Weld"){
  523. Parent = Parent,
  524. Part0 = Part0,
  525. Part1 = Part1,
  526. C0 = C0,
  527. C1 = C1,
  528. }
  529. return Weld
  530. end;
  531. };
  532.  
  533. ["Sound"] = {
  534. Create = function(id, par, vol, pit)
  535. coroutine.resume(coroutine.create(function()
  536. local S = Create("Sound"){
  537. Volume = vol,
  538. Name = "EffectSoundo",
  539. Pitch = pit or 1,
  540. SoundId = id,
  541. Parent = par or workspace,
  542. }
  543. wait()
  544. S:play()
  545. game:GetService("Debris"):AddItem(S, 10)
  546. end))
  547. end;
  548. };
  549.  
  550. ["LongSound"] = {
  551. Create = function(id, par, vol, pit)
  552. coroutine.resume(coroutine.create(function()
  553. local S = Create("Sound"){
  554. Volume = vol,
  555. Pitch = pit or 1,
  556. SoundId = id,
  557. Parent = par or workspace,
  558. }
  559. wait()
  560. S:play()
  561. game:GetService("Debris"):AddItem(S, 30)
  562. end))
  563. end;
  564. };
  565.  
  566. ["ParticleEmitter"] = {
  567. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  568. local fp = Create("ParticleEmitter"){
  569. Parent = Parent,
  570. Color = ColorSequence.new(Color1, Color2),
  571. LightEmission = LightEmission,
  572. Size = Size,
  573. Texture = Texture,
  574. Transparency = Transparency,
  575. ZOffset = ZOffset,
  576. Acceleration = Accel,
  577. Drag = Drag,
  578. LockedToPart = LockedToPart,
  579. VelocityInheritance = VelocityInheritance,
  580. EmissionDirection = EmissionDirection,
  581. Enabled = Enabled,
  582. Lifetime = LifeTime,
  583. Rate = Rate,
  584. Rotation = Rotation,
  585. RotSpeed = RotSpeed,
  586. Speed = Speed,
  587. VelocitySpread = VelocitySpread,
  588. }
  589. return fp
  590. end;
  591. };
  592.  
  593. CreateTemplate = {
  594.  
  595. };
  596. }
  597.  
  598.  
  599.  
  600. New = function(Object, Parent, Name, Data)
  601. local Object = Instance.new(Object)
  602. for Index, Value in pairs(Data or {}) do
  603. Object[Index] = Value
  604. end
  605. Object.Parent = Parent
  606. Object.Name = Name
  607. return Object
  608. end
  609. local halocolor = BrickColor.new("Pastel light blue")
  610. local halocolor2 = BrickColor.new("Cool yellow")
  611. local starcolor = BrickColor.new("Bright yellow")
  612. local lunacolor = BrickColor.new("Navy blue")
  613. local lunacolor2 = BrickColor.new("Bright blue")
  614. local wepcolor = BrickColor.new("Really black")
  615. local maincolor = BrickColor.new("Really black")
  616. local m = Instance.new("Model",char)
  617. local m2 = Instance.new("Model",char)
  618. local m3 = Instance.new("Model",char)
  619. local mw1 = Instance.new("Model",char)
  620. local mw2 = Instance.new("Model",char)
  621.  
  622. local extrawingmod1 = Instance.new("Model",char)
  623. local extrawingmod2 = Instance.new("Model",char)
  624.  
  625. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  626. local p = Instance.new("Part")
  627. p.TopSurface = 0
  628. p.BottomSurface = 0
  629. p.Parent = parent
  630. p.Size = Vector3.new(0.1,0.1,0.1)
  631. p.Transparency = transparency
  632. p.Reflectance = reflectance
  633. p.CanCollide = false
  634. p.Locked = true
  635. p.BrickColor = brickcolor
  636. p.Material = material
  637. return p
  638. end
  639.  
  640. function CreateMesh(parent,meshtype,x1,y1,z1)
  641. local mesh = Instance.new("SpecialMesh",parent)
  642. mesh.MeshType = meshtype
  643. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  644. return mesh
  645. end
  646.  
  647. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  648. local mesh = Instance.new("SpecialMesh",parent)
  649. mesh.MeshType = "FileMesh"
  650. mesh.MeshId = meshid
  651. mesh.Scale = Vector3.new(x1,y1,z1)
  652. return mesh
  653. end
  654.  
  655.  
  656. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  657. local mesh = Instance.new("SpecialMesh",parent)
  658. mesh.MeshType = "FileMesh"
  659. mesh.MeshId = meshid
  660. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  661. mesh.Scale = Vector3.new(x1,y1,z1)
  662. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  663. return mesh
  664. end
  665.  
  666. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  667. local weld = Instance.new("Weld")
  668. weld.Parent = parent
  669. weld.Part0 = part0
  670. weld.Part1 = part1
  671. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  672. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  673. return weld
  674. end
  675.  
  676.  
  677. --------------
  678. local secondchar = Instance.new("Model",char)
  679. local GhostCol = BrickColor.new("Really red")
  680. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  681. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  682. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  683.  
  684. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  685. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  686. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  687.  
  688. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  689. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  690. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691.  
  692. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  693. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  694. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  695.  
  696. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  697. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  698. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  699.  
  700. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  701. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  702. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  703. --------------
  704. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  705. 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))
  706. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  707. 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))
  708.  
  709. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  710. CreateMesh(handle,"Brick",0,0,0)
  711. 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))
  712. local valuaring = 10
  713. for i = 0, 49 do
  714. valuaring = valuaring + 10
  715. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  716. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  717. 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))
  718. end
  719.  
  720. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  721. CreateMesh(handle,"Brick",0,0,0)
  722. 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))
  723. local valuaring = 10
  724. for i = 0, 49 do
  725. valuaring = valuaring + 10
  726. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  727. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  728. 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))
  729. end
  730.  
  731.  
  732. local handle = CreateParta(m,1,1,"Neon",maincolor)
  733. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  734. 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))
  735.  
  736. --- Left wing.
  737.  
  738. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  739. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  740. 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))
  741.  
  742. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  743. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  744. 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))
  745. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  746. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  747. 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))
  748. A0 = Instance.new('Attachment',wed)
  749. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  750. CreateMesh(wed,"Wedge",0.05,0.5,3)
  751. 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))
  752. A1 = Instance.new('Attachment',wed)
  753. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  754. CreateMesh(wed,"Wedge",0.05,3,0.5)
  755. 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))
  756.  
  757. tl1 = Instance.new('Trail',wed)
  758. tl1.Attachment0 = A0
  759. tl1.Attachment1 = A1
  760. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  761. tl1.LightEmission = 1
  762. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  763. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  764. tl1.Lifetime = 0.6
  765.  
  766.  
  767. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  768. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  769. 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))
  770.  
  771. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  772. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  773. 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))
  774. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  775. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  776. 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))
  777. A0 = Instance.new('Attachment',wed)
  778. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  779. CreateMesh(wed,"Wedge",0.05,0.5,3)
  780. 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))
  781. A1 = Instance.new('Attachment',wed)
  782. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  783. CreateMesh(wed,"Wedge",0.05,3,0.5)
  784. 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))
  785.  
  786. tl2 = Instance.new('Trail',wed)
  787. tl2.Attachment0 = A0
  788. tl2.Attachment1 = A1
  789. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  790. tl2.LightEmission = 1
  791. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  792. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  793. tl2.Lifetime = 0.6
  794.  
  795. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  796. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  797. 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))
  798.  
  799. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  801. 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))
  802. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  804. 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))
  805. A0 = Instance.new('Attachment',wed)
  806. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  807. CreateMesh(wed,"Wedge",0.05,0.5,3)
  808. 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))
  809. A1 = Instance.new('Attachment',wed)
  810. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  811. CreateMesh(wed,"Wedge",0.05,3,0.5)
  812. 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))
  813.  
  814. tl3 = Instance.new('Trail',wed)
  815. tl3.Attachment0 = A0
  816. tl3.Attachment1 = A1
  817. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  818. tl3.LightEmission = 1
  819. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  820. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  821. tl3.Lifetime = 0.6
  822.  
  823. tl1.Enabled = false
  824. tl2.Enabled = false
  825. tl3.Enabled = false
  826. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  827. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  828. 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))
  829.  
  830. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  832. 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))
  833. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  835. 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))
  836. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,0.5,3)
  838. 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))
  839. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,3,0.5)
  841. 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))
  842.  
  843. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  844. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  845. 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))
  846.  
  847. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  848. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  849. 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))
  850. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  852. 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))
  853. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,3)
  855. 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))
  856. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,3,0.5)
  858. 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))
  859.  
  860. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  861. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  862. 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))
  863.  
  864. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. 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))
  867. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  869. 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))
  870. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,0.5,3)
  872. 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))
  873. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,3,0.5)
  875. 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))
  876.  
  877. -- Right wing.
  878.  
  879. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  880. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  881. 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))
  882.  
  883. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  884. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  885. 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))
  886. A0 = Instance.new('Attachment',wed)
  887. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  888. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  889. 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))
  890. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  891. CreateMesh(wed,"Wedge",0.05,0.5,3)
  892. 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))
  893. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  894. CreateMesh(wed,"Wedge",0.05,3,0.5)
  895. 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))
  896. A1 = Instance.new('Attachment',wed)
  897.  
  898. tr1 = Instance.new('Trail',wed)
  899. tr1.Attachment0 = A0
  900. tr1.Attachment1 = A1
  901. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  902. tr1.LightEmission = 1
  903. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  904. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  905. tr1.Lifetime = 0.6
  906.  
  907. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  908. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  909. 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))
  910.  
  911. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  913. 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))
  914. A0 = Instance.new('Attachment',wed)
  915. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  917. 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))
  918. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  919. CreateMesh(wed,"Wedge",0.05,0.5,3)
  920. 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))
  921. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,3,0.5)
  923. 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))
  924. A1 = Instance.new('Attachment',wed)
  925.  
  926. tr2 = Instance.new('Trail',wed)
  927. tr2.Attachment0 = A0
  928. tr2.Attachment1 = A1
  929. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  930. tr2.LightEmission = 1
  931. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  932. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  933. tr2.Lifetime = 0.6
  934.  
  935. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  936. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  937. 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))
  938.  
  939. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  941. 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))
  942. A0 = Instance.new('Attachment',wed)
  943. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  944. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  945. 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))
  946. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  947. CreateMesh(wed,"Wedge",0.05,0.5,3)
  948. 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))
  949. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.05,3,0.5)
  951. 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))
  952. A1 = Instance.new('Attachment',wed)
  953.  
  954. tr3 = Instance.new('Trail',wed)
  955. tr3.Attachment0 = A0
  956. tr3.Attachment1 = A1
  957. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  958. tr3.LightEmission = 1
  959. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  960. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  961. tr3.Lifetime = 0.6
  962.  
  963.  
  964. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  965. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  966. 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))
  967.  
  968. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  970. 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))
  971. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  972. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  973. 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))
  974. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  975. CreateMesh(wed,"Wedge",0.05,0.5,3)
  976. 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))
  977. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,3,0.5)
  979. 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))
  980.  
  981. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  982. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  983. 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))
  984.  
  985. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  986. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  987. 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))
  988. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  989. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  990. 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))
  991. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  992. CreateMesh(wed,"Wedge",0.05,0.5,3)
  993. 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))
  994. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  995. CreateMesh(wed,"Wedge",0.05,3,0.5)
  996. 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))
  997.  
  998. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  999. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1000. 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))
  1001.  
  1002. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1003. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1004. 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))
  1005. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1006. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1007. 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))
  1008. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1009. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1010. 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))
  1011. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1013. 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))
  1014.  
  1015. ---- HERES THE RING
  1016.  
  1017.  
  1018. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1019. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1020. 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))
  1021. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1022. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1023. 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))
  1024. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1025. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1026. 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))
  1027.  
  1028.  
  1029. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1030. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1031. 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))
  1032.  
  1033. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1034. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1035. 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))
  1036.  
  1037.  
  1038.  
  1039. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1040. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1041. 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))
  1042.  
  1043. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1044. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1045. 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))
  1046.  
  1047. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1048. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1049. 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))
  1050.  
  1051. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1052. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1053. 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))
  1054. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1055. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1056. 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))
  1057.  
  1058. --- second ring
  1059.  
  1060. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1061. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1062. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1063. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1064. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1065. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1066. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1067. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1068. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1069.  
  1070. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1071. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1072. 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))
  1073.  
  1074. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1075. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1076. 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))
  1077.  
  1078.  
  1079.  
  1080. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1081. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1082. 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))
  1083.  
  1084. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1085. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1086. 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))
  1087.  
  1088. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1089. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1090. 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))
  1091.  
  1092. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1093. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1094. 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))
  1095. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1096. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1097. 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))]]--
  1098.  
  1099.  
  1100.  
  1101. for i, v in pairs(m:GetChildren()) do
  1102. if v:IsA("Part") then
  1103. v.BrickColor = BrickColor.new("Really black")
  1104. v.Material = "Glass"
  1105. end
  1106. end
  1107. for i, v in pairs(m2:GetChildren()) do
  1108. if v:IsA("Part") then
  1109. v.BrickColor = BrickColor.new("Crimson")
  1110. v.Material = "Granite"
  1111. end
  1112. end
  1113. for i, v in pairs(m3:GetChildren()) do
  1114. if v:IsA("Part") then
  1115. v.BrickColor = BrickColor.new("Really red")
  1116. v.Material = "Neon"
  1117. end
  1118. end
  1119. for i, v in pairs(mw2:GetChildren()) do
  1120. if v:IsA("Part") then
  1121. v.BrickColor = BrickColor.new("Really red")
  1122. v.Material = "Neon"
  1123. end
  1124. end
  1125. for i, v in pairs(mw1:GetChildren()) do
  1126. if v:IsA("Part") then
  1127. v.Transparency = 1
  1128. v.BrickColor = BrickColor.new("Really red")
  1129. v.Material = "Neon"
  1130. end
  1131. end
  1132. for i, v in pairs(extrawingmod1:GetChildren()) do
  1133. if v:IsA("Part") then
  1134. v.Transparency = 1
  1135. v.BrickColor = BrickColor.new("White")
  1136. v.Material = "Neon"
  1137. end
  1138. end
  1139. for i, v in pairs(extrawingmod2:GetChildren()) do
  1140. if v:IsA("Part") then
  1141. v.Transparency = 1
  1142. v.BrickColor = BrickColor.new("White")
  1143. v.Material = "Neon"
  1144. end
  1145. end
  1146. local MAINRUINCOLOR = BrickColor.new("Really red")
  1147. ------
  1148.  
  1149.  
  1150. function RemoveOutlines(part)
  1151. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1152. end
  1153. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1154. local Part = Create("Part")({
  1155. Parent = Parent,
  1156. Reflectance = Reflectance,
  1157. Transparency = Transparency,
  1158. CanCollide = false,
  1159. Locked = true,
  1160. BrickColor = BrickColor.new(tostring(BColor)),
  1161. Name = Name,
  1162. Size = Size,
  1163. Material = Material
  1164. })
  1165. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1166. RemoveOutlines(Part)
  1167. return Part
  1168. end
  1169. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1170. local Msh = Create(Mesh)({
  1171. Parent = Part,
  1172. Offset = OffSet,
  1173. Scale = Scale
  1174. })
  1175. if Mesh == "SpecialMesh" then
  1176. Msh.MeshType = MeshType
  1177. Msh.MeshId = MeshId
  1178. end
  1179. return Msh
  1180. end
  1181. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1182. local Weld = Create("Weld")({
  1183. Parent = Parent,
  1184. Part0 = Part0,
  1185. Part1 = Part1,
  1186. C0 = C0,
  1187. C1 = C1
  1188. })
  1189. return Weld
  1190. end
  1191.  
  1192. Player=owner
  1193. Character=Player.Character
  1194. PlayerGui=Player.PlayerGui
  1195. Backpack=Player.Backpack
  1196. Torso=Character.Torso
  1197. Head=Character.Head
  1198. Humanoid=Character.Humanoid
  1199. m=Instance.new('Model',Character)
  1200. LeftArm=Character["Left Arm"]
  1201. LeftLeg=Character["Left Leg"]
  1202. RightArm=Character["Right Arm"]
  1203. RightLeg=Character["Right Leg"]
  1204. LS=Torso["Left Shoulder"]
  1205. LH=Torso["Left Hip"]
  1206. RS=Torso["Right Shoulder"]
  1207. RH=Torso["Right Hip"]
  1208. Face = Head.face
  1209. Neck=Torso.Neck
  1210. it=Instance.new
  1211. attacktype=1
  1212. vt=Vector3.new
  1213. cf=CFrame.new
  1214. euler=CFrame.fromEulerAnglesXYZ
  1215. angles=CFrame.Angles
  1216. cloaked=false
  1217. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1218. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1219. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1220. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1221. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1222. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1223. RootPart=Character.HumanoidRootPart
  1224. RootJoint=RootPart.RootJoint
  1225. RootCF=euler(-1.57,0,3.14)
  1226. attack = false
  1227. attackdebounce = false
  1228. deb=false
  1229. equipped=true
  1230. hand=false
  1231. MMouse=nil
  1232. combo=0
  1233. mana=0
  1234. trispeed=.2
  1235. attackmode='none'
  1236. local idle=0
  1237. local Anim="Idle"
  1238. local Effects={}
  1239. local gun=false
  1240. local shoot=false
  1241. local sine = 0
  1242. local change = 1
  1243. player=nil
  1244.  
  1245.  
  1246. local toggleTag = true
  1247. local txt = Instance.new("BillboardGui", Head)
  1248. txt.Adornee = nil
  1249. txt.Name = "NameDetect"
  1250. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1251. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1252. local text = Instance.new("TextLabel", txt)
  1253. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1254. text.FontSize = "Size8"
  1255. text.TextScaled = true
  1256. text.TextTransparency = 0
  1257. text.BackgroundTransparency = 1
  1258. text.TextTransparency = 0
  1259. text.TextStrokeTransparency = 0
  1260. text.Font = "Fantasy"
  1261. text.TextStrokeColor3 = Color3.new(1,0,0)
  1262. text.TextColor3 = Color3.new(0,0,0)
  1263. text.Text = "Mayhem"
  1264.  
  1265. function RecolorTextAndRename(name,col1,col2)
  1266. text.TextStrokeColor3 = col2
  1267. text.TextColor3 = col1
  1268. text.Text = name
  1269. end
  1270. --save shoulders
  1271. RSH, LSH=nil, nil
  1272. --welds
  1273. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1274. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1275. LH=Torso["Left Hip"]
  1276. RH=Torso["Right Hip"]
  1277. TorsoColor=Torso.BrickColor
  1278. function NoOutline(Part)
  1279. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1280. end
  1281. player=Player
  1282. ch=Character
  1283. RSH=ch.Torso["Right Shoulder"]
  1284. LSH=ch.Torso["Left Shoulder"]
  1285. --
  1286. RSH.Parent=nil
  1287. LSH.Parent=nil
  1288. --
  1289. RW.Name="Right Shoulder"
  1290. RW.Part0=ch.Torso
  1291. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1292. RW.C1=cf(0, 0.5, 0)
  1293. RW.Part1=ch["Right Arm"]
  1294. RW.Parent=ch.Torso
  1295. --
  1296. LW.Name="Left Shoulder"
  1297. LW.Part0=ch.Torso
  1298. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1299. LW.C1=cf(0, 0.5, 0)
  1300. LW.Part1=ch["Left Arm"]
  1301. LW.Parent=ch.Torso
  1302.  
  1303. local Stats=Instance.new("BoolValue")
  1304. Stats.Name="Stats"
  1305. Stats.Parent=Character
  1306. local Atk=Instance.new("NumberValue")
  1307. Atk.Name="Damage"
  1308. Atk.Parent=Stats
  1309. Atk.Value=1
  1310. local Def=Instance.new("NumberValue")
  1311. Def.Name="Defense"
  1312. Def.Parent=Stats
  1313. Def.Value=1
  1314. local Speed=Instance.new("NumberValue")
  1315. Speed.Name="Speed"
  1316. Speed.Parent=Stats
  1317. Speed.Value=1
  1318. local Mvmt=Instance.new("NumberValue")
  1319. Mvmt.Name="Movement"
  1320. Mvmt.Parent=Stats
  1321. Mvmt.Value=1
  1322.  
  1323. local donum=0
  1324.  
  1325.  
  1326. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1327. local fp=it("Part")
  1328. fp.formFactor=formfactor
  1329. fp.Parent=parent
  1330. fp.Reflectance=reflectance
  1331. fp.Transparency=transparency
  1332. fp.CanCollide=false
  1333. fp.Locked=true
  1334. fp.BrickColor=brickcolor
  1335. fp.Name=name
  1336. fp.Size=size
  1337. fp.Position=Torso.Position
  1338. NoOutline(fp)
  1339. fp.Material="SmoothPlastic"
  1340. fp:BreakJoints()
  1341. return fp
  1342. end
  1343.  
  1344. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1345. local mesh=it(Mesh)
  1346. mesh.Parent=part
  1347. if Mesh=="SpecialMesh" then
  1348. mesh.MeshType=meshtype
  1349. if meshid~="nil" then
  1350. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1351. end
  1352. end
  1353. mesh.Offset=offset
  1354. mesh.Scale=scale
  1355. return mesh
  1356. end
  1357.  
  1358. function weld(parent,part0,part1,c0)
  1359. local weld=it("Weld")
  1360. weld.Parent=parent
  1361. weld.Part0=part0
  1362. weld.Part1=part1
  1363. weld.C0=c0
  1364. return weld
  1365. end
  1366.  
  1367. local Color1=Torso.BrickColor
  1368.  
  1369. local bodvel=Instance.new("BodyVelocity")
  1370. local bg=Instance.new("BodyGyro")
  1371.  
  1372. function swait(num)
  1373. if num==0 or num==nil then
  1374. game:service'RunService'.Stepped:wait(0)
  1375. else
  1376. for i=0,num do
  1377. game:service'RunService'.Stepped:wait(0)
  1378. end
  1379. end
  1380. end
  1381.  
  1382. -------- RAINBOW LEAVE IT TO ME
  1383. local r = 255
  1384. local g = 0
  1385. local b = 0
  1386. coroutine.resume(coroutine.create(function()
  1387. while wait() do
  1388. for i = 0, 254/5 do
  1389. swait()
  1390. g = g + 5
  1391. end
  1392. for i = 0, 254/5 do
  1393. swait()
  1394. r = r - 5
  1395. end
  1396. for i = 0, 254/5 do
  1397. swait()
  1398. b = b + 5
  1399. end
  1400. for i = 0, 254/5 do
  1401. swait()
  1402. g = g - 5
  1403. end
  1404. for i = 0, 254/5 do
  1405. swait()
  1406. r = r + 5
  1407. end
  1408. for i = 0, 254/5 do
  1409. swait()
  1410. b = b - 5
  1411. end
  1412. end
  1413. end))
  1414.  
  1415.  
  1416. so = function(id,par,vol,pit)
  1417. coroutine.resume(coroutine.create(function()
  1418. local sou = Instance.new("Sound",par or workspace)
  1419. sou.Volume=vol
  1420. sou.Pitch=pit or 1
  1421. sou.SoundId=id
  1422. swait()
  1423. sou:play()
  1424. game:GetService("Debris"):AddItem(sou,6)
  1425. end))
  1426. end
  1427.  
  1428. function clerp(a,b,t)
  1429. local qa = {QuaternionFromCFrame(a)}
  1430. local qb = {QuaternionFromCFrame(b)}
  1431. local ax, ay, az = a.x, a.y, a.z
  1432. local bx, by, bz = b.x, b.y, b.z
  1433. local _t = 1-t
  1434. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1435. end
  1436.  
  1437. function QuaternionFromCFrame(cf)
  1438. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1439. local trace = m00 + m11 + m22
  1440. if trace > 0 then
  1441. local s = math.sqrt(1 + trace)
  1442. local recip = 0.5/s
  1443. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1444. else
  1445. local i = 0
  1446. if m11 > m00 then
  1447. i = 1
  1448. end
  1449. if m22 > (i == 0 and m00 or m11) then
  1450. i = 2
  1451. end
  1452. if i == 0 then
  1453. local s = math.sqrt(m00-m11-m22+1)
  1454. local recip = 0.5/s
  1455. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1456. elseif i == 1 then
  1457. local s = math.sqrt(m11-m22-m00+1)
  1458. local recip = 0.5/s
  1459. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1460. elseif i == 2 then
  1461. local s = math.sqrt(m22-m00-m11+1)
  1462. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1463. end
  1464. end
  1465. end
  1466.  
  1467. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1468. local xs, ys, zs = x + x, y + y, z + z
  1469. local wx, wy, wz = w*xs, w*ys, w*zs
  1470. local xx = x*xs
  1471. local xy = x*ys
  1472. local xz = x*zs
  1473. local yy = y*ys
  1474. local yz = y*zs
  1475. local zz = z*zs
  1476. 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))
  1477. end
  1478.  
  1479. function QuaternionSlerp(a, b, t)
  1480. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1481. local startInterp, finishInterp;
  1482. if cosTheta >= 0.0001 then
  1483. if (1 - cosTheta) > 0.0001 then
  1484. local theta = math.acos(cosTheta)
  1485. local invSinTheta = 1/math.sin(theta)
  1486. startInterp = math.sin((1-t)*theta)*invSinTheta
  1487. finishInterp = math.sin(t*theta)*invSinTheta
  1488. else
  1489. startInterp = 1-t
  1490. finishInterp = t
  1491. end
  1492. else
  1493. if (1+cosTheta) > 0.0001 then
  1494. local theta = math.acos(-cosTheta)
  1495. local invSinTheta = 1/math.sin(theta)
  1496. startInterp = math.sin((t-1)*theta)*invSinTheta
  1497. finishInterp = math.sin(t*theta)*invSinTheta
  1498. else
  1499. startInterp = t-1
  1500. finishInterp = t
  1501. end
  1502. end
  1503. 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
  1504. end
  1505.  
  1506. local function CFrameFromTopBack(at, top, back)
  1507. local right = top:Cross(back)
  1508. return CFrame.new(at.x, at.y, at.z,
  1509. right.x, top.x, back.x,
  1510. right.y, top.y, back.y,
  1511. right.z, top.z, back.z)
  1512. end
  1513.  
  1514. function Triangle(a, b, c)
  1515. local edg1 = (c-a):Dot((b-a).unit)
  1516. local edg2 = (a-b):Dot((c-b).unit)
  1517. local edg3 = (b-c):Dot((a-c).unit)
  1518. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1519. a, b, c = a, b, c
  1520. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1521. a, b, c = b, c, a
  1522. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1523. a, b, c = c, a, b
  1524. else
  1525. assert(false, "unreachable")
  1526. end
  1527.  
  1528. local len1 = (c-a):Dot((b-a).unit)
  1529. local len2 = (b-a).magnitude - len1
  1530. local width = (a + (b-a).unit*len1 - c).magnitude
  1531.  
  1532. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1533.  
  1534. local list = {}
  1535.  
  1536. if len1 > 0.01 then
  1537. local w1 = Instance.new('WedgePart', m)
  1538. game:GetService("Debris"):AddItem(w1,5)
  1539. w1.Material = "SmoothPlastic"
  1540. w1.FormFactor = 'Custom'
  1541. w1.BrickColor = BrickColor.new("Really red")
  1542. w1.Transparency = 0
  1543. w1.Reflectance = 0
  1544. w1.Material = "SmoothPlastic"
  1545. w1.CanCollide = false
  1546. local l1 = Instance.new("PointLight",w1)
  1547. l1.Color = Color3.new(170,0,0)
  1548. NoOutline(w1)
  1549. local sz = Vector3.new(0.2, width, len1)
  1550. w1.Size = sz
  1551. local sp = Instance.new("SpecialMesh",w1)
  1552. sp.MeshType = "Wedge"
  1553. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1554. w1:BreakJoints()
  1555. w1.Anchored = true
  1556. w1.Parent = workspace
  1557. w1.Transparency = 0.7
  1558. table.insert(Effects,{w1,"Disappear",.01})
  1559. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1560. table.insert(list,w1)
  1561. end
  1562.  
  1563. if len2 > 0.01 then
  1564. local w2 = Instance.new('WedgePart', m)
  1565. game:GetService("Debris"):AddItem(w2,5)
  1566. w2.Material = "SmoothPlastic"
  1567. w2.FormFactor = 'Custom'
  1568. w2.BrickColor = BrickColor.new("Really red")
  1569. w2.Transparency = 0
  1570. w2.Reflectance = 0
  1571. w2.Material = "SmoothPlastic"
  1572. w2.CanCollide = false
  1573. local l2 = Instance.new("PointLight",w2)
  1574. l2.Color = Color3.new(170,0,0)
  1575. NoOutline(w2)
  1576. local sz = Vector3.new(0.2, width, len2)
  1577. w2.Size = sz
  1578. local sp = Instance.new("SpecialMesh",w2)
  1579. sp.MeshType = "Wedge"
  1580. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1581. w2:BreakJoints()
  1582. w2.Anchored = true
  1583. w2.Parent = workspace
  1584. w2.Transparency = 0.7
  1585. table.insert(Effects,{w2,"Disappear",.01})
  1586. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1587. table.insert(list,w2)
  1588. end
  1589. return unpack(list)
  1590. end
  1591.  
  1592.  
  1593. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1594. if hit.Parent == nil then
  1595. return
  1596. end
  1597. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1598. for _, v in pairs(hit.Parent:children()) do
  1599. if v:IsA("Humanoid") then
  1600. h = v
  1601. end
  1602. end
  1603. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1604. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1605. return
  1606. end
  1607. local c = Create("ObjectValue")({
  1608. Name = "creator",
  1609. Value = game:service("Players").owner,
  1610. Parent = h
  1611. })
  1612. game:GetService("Debris"):AddItem(c, 0.5)
  1613. if HitSound ~= nil and HitPitch ~= nil then
  1614. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1615. end
  1616. local Damage = math.random(minim, maxim)
  1617. local blocked = false
  1618. local block = hit.Parent:findFirstChild("Block")
  1619. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1620. blocked = true
  1621. block.Value = block.Value - 1
  1622. print(block.Value)
  1623. end
  1624. if blocked == false then
  1625. HitHealth = h.Health
  1626. h.Health = h.Health - Damage
  1627. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1628. print("gained kill")
  1629. end
  1630. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1631. else
  1632. h.Health = h.Health - Damage / 2
  1633. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1634. end
  1635. if Type == "Knockdown" then
  1636. local hum = hit.Parent.Humanoid
  1637. hum.PlatformStand = true
  1638. coroutine.resume(coroutine.create(function(HHumanoid)
  1639. swait(1)
  1640. HHumanoid.PlatformStand = false
  1641. end), hum)
  1642. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1643. local bodvol = Create("BodyVelocity")({
  1644. velocity = angle * knockback,
  1645. P = 5000,
  1646. maxForce = Vector3.new(8000, 8000, 8000),
  1647. Parent = hit
  1648. })
  1649. local rl = Create("BodyAngularVelocity")({
  1650. P = 3000,
  1651. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1652. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1653. Parent = hit
  1654. })
  1655. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1656. game:GetService("Debris"):AddItem(rl, 0.5)
  1657. elseif Type == "Normal" then
  1658. local vp = Create("BodyVelocity")({
  1659. P = 500,
  1660. maxForce = Vector3.new(math.huge, 0, math.huge),
  1661. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1662. })
  1663. if knockback > 0 then
  1664. vp.Parent = hit.Parent.Head
  1665. end
  1666. game:GetService("Debris"):AddItem(vp, 0.5)
  1667. elseif Type == "Up" then
  1668. local bodyVelocity = Create("BodyVelocity")({
  1669. velocity = Vector3.new(0, 20, 0),
  1670. P = 5000,
  1671. maxForce = Vector3.new(8000, 8000, 8000),
  1672. Parent = hit
  1673. })
  1674. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1675. local bodyVelocity = Create("BodyVelocity")({
  1676. velocity = Vector3.new(0, 20, 0),
  1677. P = 5000,
  1678. maxForce = Vector3.new(8000, 8000, 8000),
  1679. Parent = hit
  1680. })
  1681. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1682. elseif Type == "Leech" then
  1683. local hum = hit.Parent.Humanoid
  1684. if hum ~= nil then
  1685. for i = 0, 2 do
  1686. 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)
  1687. end
  1688. Humanoid.Health = Humanoid.Health + 10
  1689. end
  1690. elseif Type == "UpKnock" then
  1691. local hum = hit.Parent.Humanoid
  1692. hum.PlatformStand = true
  1693. if hum ~= nil then
  1694. hitr = true
  1695. end
  1696. coroutine.resume(coroutine.create(function(HHumanoid)
  1697. swait(5)
  1698. HHumanoid.PlatformStand = false
  1699. hitr = false
  1700. end), hum)
  1701. local bodyVelocity = Create("BodyVelocity")({
  1702. velocity = Vector3.new(0, 20, 0),
  1703. P = 5000,
  1704. maxForce = Vector3.new(8000, 8000, 8000),
  1705. Parent = hit
  1706. })
  1707. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1708. local bodyVelocity = Create("BodyVelocity")({
  1709. velocity = Vector3.new(0, 20, 0),
  1710. P = 5000,
  1711. maxForce = Vector3.new(8000, 8000, 8000),
  1712. Parent = hit
  1713. })
  1714. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1715. elseif Type == "Snare" then
  1716. local bp = Create("BodyPosition")({
  1717. P = 2000,
  1718. D = 100,
  1719. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1720. position = hit.Parent.Torso.Position,
  1721. Parent = hit.Parent.Torso
  1722. })
  1723. game:GetService("Debris"):AddItem(bp, 1)
  1724. elseif Type == "Slashnare" then
  1725. 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)
  1726. for i = 1, math.random(4, 5) do
  1727. 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)
  1728. end
  1729. local bp = Create("BodyPosition")({
  1730. P = 2000,
  1731. D = 100,
  1732. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1733. position = hit.Parent.Torso.Position,
  1734. Parent = hit.Parent.Torso
  1735. })
  1736. game:GetService("Debris"):AddItem(bp, 1)
  1737. elseif Type == "Spike" then
  1738. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1739. local bp = Create("BodyPosition")({
  1740. P = 2000,
  1741. D = 100,
  1742. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1743. position = hit.Parent.Torso.Position,
  1744. Parent = hit.Parent.Torso
  1745. })
  1746. game:GetService("Debris"):AddItem(bp, 1)
  1747. elseif Type == "Freeze" then
  1748. local BodPos = Create("BodyPosition")({
  1749. P = 50000,
  1750. D = 1000,
  1751. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1752. position = hit.Parent.Torso.Position,
  1753. Parent = hit.Parent.Torso
  1754. })
  1755. local BodGy = Create("BodyGyro")({
  1756. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1757. P = 20000,
  1758. Parent = hit.Parent.Torso,
  1759. cframe = hit.Parent.Torso.CFrame
  1760. })
  1761. hit.Parent.Torso.Anchored = true
  1762. coroutine.resume(coroutine.create(function(Part)
  1763. swait(1.5)
  1764. Part.Anchored = false
  1765. end), hit.Parent.Torso)
  1766. game:GetService("Debris"):AddItem(BodPos, 3)
  1767. game:GetService("Debris"):AddItem(BodGy, 3)
  1768. end
  1769. local debounce = Create("BoolValue")({
  1770. Name = "DebounceHit",
  1771. Parent = hit.Parent,
  1772. Value = true
  1773. })
  1774. game:GetService("Debris"):AddItem(debounce, Delay)
  1775. c = Instance.new("ObjectValue")
  1776. c.Name = "creator"
  1777. c.Value = Player
  1778. c.Parent = h
  1779. game:GetService("Debris"):AddItem(c, 0.5)
  1780. end
  1781. end
  1782. function ShowDamage(Pos, Text, Time, Color)
  1783. local Rate = 0.03333333333333333
  1784. local Pos = Pos or Vector3.new(0, 0, 0)
  1785. local Text = Text or ""
  1786. local Time = Time or 2
  1787. local Color = Color or Color3.new(1, 0, 1)
  1788. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1789. EffectPart.Anchored = true
  1790. local BillboardGui = Create("BillboardGui")({
  1791. Size = UDim2.new(3, 0, 3, 0),
  1792. Adornee = EffectPart,
  1793. Parent = EffectPart
  1794. })
  1795. local TextLabel = Create("TextLabel")({
  1796. BackgroundTransparency = 1,
  1797. Size = UDim2.new(1, 0, 1, 0),
  1798. Text = Text,
  1799. TextColor3 = Color,
  1800. TextScaled = true,
  1801. Font = Enum.Font.ArialBold,
  1802. Parent = BillboardGui
  1803. })
  1804. game.Debris:AddItem(EffectPart, Time + 0.1)
  1805. EffectPart.Parent = game:GetService("Workspace")
  1806. delay(0, function()
  1807. local Frames = Time / Rate
  1808. for Frame = 1, Frames do
  1809. wait(Rate)
  1810. local Percent = Frame / Frames
  1811. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1812. TextLabel.TextTransparency = Percent
  1813. end
  1814. if EffectPart and EffectPart.Parent then
  1815. EffectPart:Destroy()
  1816. end
  1817. end)
  1818. end
  1819. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1820. for _, c in pairs(workspace:children()) do
  1821. local hum = c:findFirstChildOfClass("Humanoid")
  1822. if hum ~= nil then
  1823. local head = c:findFirstChild("Head")
  1824. if head ~= nil then
  1825. local targ = head.Position - Part.Position
  1826. local mag = targ.magnitude
  1827. if magni >= mag and c.Name ~= Player.Name then
  1828. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1829. end
  1830. end
  1831. end
  1832. end
  1833. end
  1834.  
  1835. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1836. for _, c in pairs(workspace:children()) do
  1837. local hum = c:findFirstChild("Humanoid")
  1838. if hum ~= nil then
  1839. local head = c:findFirstChild("Torso")
  1840. if head ~= nil then
  1841. local targ = head.Position - Part.Position
  1842. local mag = targ.magnitude
  1843. if magni >= mag and c.Name ~= Player.Name then
  1844. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1845. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1846. end
  1847. end
  1848. end
  1849. end
  1850. end
  1851.  
  1852. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1853. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1854. end
  1855.  
  1856. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1857. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1858. prt.Anchored=true
  1859. prt.CFrame=cframe
  1860. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1861. --http://www.roblox.com/asset/?id=4770560
  1862. game:GetService("Debris"):AddItem(prt,2)
  1863. CF=prt.CFrame
  1864. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1865. for i=0,1,0.2 do
  1866. wait()
  1867. Part.CFrame=CF*cf(0,0,-0.4)
  1868. end
  1869. for i=0,1,delay do
  1870. wait()
  1871. --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)
  1872. Mesh.Scale=Mesh.Scale
  1873. end
  1874. for i=0,1,0.1 do
  1875. wait()
  1876. Part.Transparency=i
  1877. end
  1878. Part.Parent=nil
  1879. end),prt,msh,CF)
  1880. end
  1881.  
  1882. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1883. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1884. prt.Anchored=true
  1885. prt.Material = "Neon"
  1886. prt.CFrame=cframe
  1887. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1888. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1889. game:GetService("Debris"):AddItem(prt,5)
  1890. coroutine.resume(coroutine.create(function(Part,Mesh)
  1891. for i=0,1,delay do
  1892. swait()
  1893. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1894. Part.Transparency=i
  1895. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1896. end
  1897. Part.Parent=nil
  1898. end),prt,msh)
  1899. end
  1900.  
  1901. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1902. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1903. prt.Anchored=true
  1904. prt.Material = "Neon"
  1905. prt.CFrame=cframe
  1906. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1907. game:GetService("Debris"):AddItem(prt,5)
  1908. coroutine.resume(coroutine.create(function(Part,Mesh)
  1909. local rtype = rottype
  1910. for i=0,1,delay do
  1911. swait()
  1912. if rtype == 1 then
  1913. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1914. elseif rtype == 2 then
  1915. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1916. end
  1917. Part.Transparency=i
  1918. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1919. end
  1920. Part.Parent=nil
  1921. end),prt,msh)
  1922. end
  1923.  
  1924. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1925. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1926. prt.Anchored=true
  1927. prt.CFrame=cframe
  1928. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1929. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1930. game:GetService("Debris"):AddItem(prt,5)
  1931. coroutine.resume(coroutine.create(function(Part,Mesh)
  1932. for i=0,1,delay do
  1933. wait()
  1934. Part.Transparency=i
  1935. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1936. end
  1937. Part.Parent=nil
  1938. end),prt,msh)
  1939. end
  1940.  
  1941. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1942. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1943. prt.Anchored=true
  1944. prt.Material = "Neon"
  1945. prt.CFrame=cframe
  1946. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1947. game:GetService("Debris"):AddItem(prt,5)
  1948. coroutine.resume(coroutine.create(function(Part,Mesh)
  1949. local rtype = rottype
  1950. for i=0,1,delay do
  1951. swait()
  1952. if rtype == 1 then
  1953. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1954. elseif rtype == 2 then
  1955. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1956. end
  1957. Part.Transparency=i
  1958. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1959. end
  1960. Part.Parent=nil
  1961. end),prt,msh)
  1962. end
  1963.  
  1964. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1965. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1966. prt.Anchored=true
  1967. prt.Material = "Neon"
  1968. prt.CFrame=cframe
  1969. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1970. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1971. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1972. game:GetService("Debris"):AddItem(prt,5)
  1973. coroutine.resume(coroutine.create(function(Part,Mesh)
  1974. local rtype = rottype
  1975. for i=0,1,delay do
  1976. swait()
  1977. if rtype == 1 then
  1978. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1979. elseif rtype == 2 then
  1980. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1981. end
  1982. dec.Transparency=i
  1983. dec2.Transparency=i
  1984. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1985. end
  1986. Part.Parent=nil
  1987. end),prt,msh)
  1988. end
  1989.  
  1990. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  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. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1996. game:GetService("Debris"):AddItem(prt,5)
  1997. coroutine.resume(coroutine.create(function(Part,Mesh)
  1998. local rtype = rottype
  1999. for i=0,1,delay do
  2000. swait()
  2001. if rtype == 1 then
  2002. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2003. elseif rtype == 2 then
  2004. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2005. end
  2006. prt.Transparency=i
  2007. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2008. end
  2009. Part.Parent=nil
  2010. end),prt,msh)
  2011. end
  2012.  
  2013. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2014. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2015. prt.Anchored=true
  2016. prt.Material = "Neon"
  2017. prt.CFrame=cframe
  2018. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2019. game:GetService("Debris"):AddItem(prt,5)
  2020. coroutine.resume(coroutine.create(function(Part,Mesh)
  2021. local rtype = rottype
  2022. for i=0,1,delay do
  2023. swait()
  2024. if rtype == 1 then
  2025. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2026. elseif rtype == 2 then
  2027. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2028. end
  2029. prt.Transparency=i
  2030. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2031. end
  2032. Part.Parent=nil
  2033. end),prt,msh)
  2034. end
  2035.  
  2036. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2037. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2038. prt.Anchored=true
  2039. prt.Material = "Neon"
  2040. prt.CFrame=cframe
  2041. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2042. game:GetService("Debris"):AddItem(prt,5)
  2043. coroutine.resume(coroutine.create(function(Part,Mesh)
  2044. local rtype = rottype
  2045. for i=0,1,delay do
  2046. swait()
  2047. if rtype == 1 then
  2048. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2049. elseif rtype == 2 then
  2050. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2051. end
  2052. prt.Transparency=i
  2053. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2054. end
  2055. Part.Parent=nil
  2056. end),prt,msh)
  2057. end
  2058.  
  2059. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2060. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2061. prt.Anchored=true
  2062. prt.Material = "Neon"
  2063. prt.CFrame=cframe
  2064. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2065. game:GetService("Debris"):AddItem(prt,5)
  2066. coroutine.resume(coroutine.create(function(Part,Mesh)
  2067. local rtype = rottype
  2068. for i=0,1,delay do
  2069. swait()
  2070. if rtype == 1 then
  2071. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2072. elseif rtype == 2 then
  2073. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2074. end
  2075. prt.Transparency=i
  2076. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2077. end
  2078. Part.Parent=nil
  2079. end),prt,msh)
  2080. end
  2081.  
  2082. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2083. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2084. prt.Anchored=false
  2085. prt.CFrame=cframe
  2086. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2087. local wld=weld(prt,prt,Parent,cframe)
  2088. game:GetService("Debris"):AddItem(prt,5)
  2089. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2090. for i=0,1,delay do
  2091. wait()
  2092. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2093. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2094. Part.Transparency=i
  2095. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2096. end
  2097. Part.Parent=nil
  2098. end),prt,msh,wld)
  2099. end
  2100.  
  2101. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2102. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2103. prt.Anchored=false
  2104. prt.CFrame=cframe
  2105. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2106. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2107. game:GetService("Debris"):AddItem(prt,5)
  2108. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2109. for i=0,1,delay do
  2110. wait()
  2111. Weld.C0=euler(i*20,0,0)
  2112. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2113. Part.Transparency=i
  2114. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2115. end
  2116. Part.Parent=nil
  2117. end),prt,msh,wld)
  2118. end
  2119.  
  2120. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2121. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2122. prt.Anchored=true
  2123. prt.CFrame=cframe
  2124. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2125. game:GetService("Debris"):AddItem(prt,2)
  2126. coroutine.resume(coroutine.create(function(Part,Mesh)
  2127. for i=0,1,delay do
  2128. wait()
  2129. Part.CFrame=Part.CFrame
  2130. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2131. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2132. prt2.Anchored=true
  2133. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2134. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2135. game:GetService("Debris"):AddItem(prt2,2)
  2136. coroutine.resume(coroutine.create(function(Part,Mesh)
  2137. for i=0,1,0.1 do
  2138. wait()
  2139. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2140. end
  2141. Part.Parent=nil
  2142. end),prt2,msh2)
  2143. end
  2144. for i=0,1,delay*2 do
  2145. wait()
  2146. Part.CFrame=Part.CFrame
  2147. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2148. end
  2149. Part.Parent=nil
  2150. end),prt,msh)
  2151. end
  2152.  
  2153. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2154. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2155. prt.Anchored=true
  2156. prt.CFrame=cframe
  2157. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2158. game:GetService("Debris"):AddItem(prt,2)
  2159. coroutine.resume(coroutine.create(function(Part,Mesh)
  2160. for i=0,1,delay do
  2161. wait()
  2162. Part.CFrame=Part.CFrame
  2163. Part.Transparency=i
  2164. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2165. end
  2166. Part.Parent=nil
  2167. end),prt,msh)
  2168. end
  2169.  
  2170. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2171. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2172. prt.Anchored=true
  2173. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2174. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2175. game:GetService("Debris"):AddItem(prt,2)
  2176. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2177. CF=Part.CFrame
  2178. Numbb=0
  2179. randnumb=math.random()/10
  2180. rand1=math.random()/10
  2181. for i=0,1,rand1 do
  2182. wait()
  2183. CF=CF*cf(0,math.random()/2,0)
  2184. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2185. Part.CFrame=CF*euler(Numbb,0,0)
  2186. Part.Transparency=i
  2187. Numbb=Numbb+randnumb
  2188. end
  2189. Part.Parent=nil
  2190. end),prt,CF,Numbb,randnumb)
  2191. end
  2192.  
  2193. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2194. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2195. prt.Anchored=true
  2196. prt.CFrame=cframe
  2197. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2198. game:GetService("Debris"):AddItem(prt,5)
  2199. coroutine.resume(coroutine.create(function(Part,Mesh)
  2200. for i=0,1,delay do
  2201. wait()
  2202. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2203. Part.Transparency=i
  2204. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2205. end
  2206. Part.Parent=nil
  2207. end),prt,msh)
  2208. end
  2209.  
  2210. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2211. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2212. prt.Anchored=true
  2213. prt.CFrame=cframe
  2214. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2215. game:GetService("Debris"):AddItem(prt,2)
  2216. coroutine.resume(coroutine.create(function(Part,Mesh)
  2217. for i=0,1,delay do
  2218. wait()
  2219. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2220. Part.Transparency=i
  2221. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2222. end
  2223. Part.Parent=nil
  2224. end),prt,msh)
  2225. end
  2226.  
  2227. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2228. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2229. prt.Anchored=true
  2230. prt.CFrame=cframe*cf(x,y,z)
  2231. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2232. game:GetService("Debris"):AddItem(prt,5)
  2233. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2234. local num=math.random()
  2235. local num2=math.random(-3,2)+math.random()
  2236. local numm=0
  2237. for i=0,1,delay*2 do
  2238. swait()
  2239. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2240. Part.Transparency=i
  2241. numm=numm+0.01
  2242. end
  2243. Part.Parent=nil
  2244. Mesh.Parent=nil
  2245. end),prt,msh,x,y,z)
  2246. end
  2247.  
  2248. function dmgstart(dmg,what)
  2249. hitcon = what.Touched:connect(function(hit)
  2250. local hum = hit.Parent:FindFirstChild("Humanoid")
  2251. if hum and not hum:IsDescendantOf(Character) then
  2252. hum:TakeDamage(dmg)
  2253. end
  2254. end)
  2255. end
  2256.  
  2257. function dmgstop()
  2258. hitcon:disconnect()
  2259. end
  2260.  
  2261. function Cloak()
  2262. Face.Parent=nil
  2263. cloaked=true
  2264. for _,v in pairs(Torso.Parent:children()) do
  2265. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2266. coroutine.resume(coroutine.create(function()
  2267. for i=0,1,0.2 do
  2268. wait()
  2269. v.Transparency=i
  2270. end
  2271. v.Transparency=1
  2272. end))
  2273. end
  2274. if v.className=="Hat" then
  2275. hatp=v.Handle
  2276. coroutine.resume(coroutine.create(function(derp)
  2277. for i=0,1,0.2 do
  2278. wait()
  2279. derp.Transparency=i
  2280. end
  2281. derp.Transparency=1
  2282. end),hatp)
  2283. end
  2284. end
  2285. for _,v in pairs(m:children()) do
  2286. if v.className=="Part" then
  2287. coroutine.resume(coroutine.create(function()
  2288. for i=0,1,0.2 do
  2289. wait()
  2290. v.Transparency=i
  2291. end
  2292. v.Transparency=1
  2293. end))
  2294. end
  2295. end
  2296. end
  2297.  
  2298. function UnCloak()
  2299. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2300. Face.Parent=Head
  2301. cloaked=false
  2302. for _,v in pairs(Torso.Parent:children()) do
  2303. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2304. coroutine.resume(coroutine.create(function()
  2305. for i=0,1,0.1 do
  2306. wait()
  2307. v.Transparency=v.Transparency-0.1
  2308. end
  2309. v.Transparency=0
  2310. end))
  2311. end
  2312. if v.className=="Hat" then
  2313. hatp=v.Handle
  2314. coroutine.resume(coroutine.create(function(derp)
  2315. for i=0,1,0.1 do
  2316. wait()
  2317. derp.Transparency=derp.Transparency-0.1
  2318. end
  2319. derp.Transparency=0
  2320. end),hatp)
  2321. end
  2322. end
  2323. for _,v in pairs(m:children()) do
  2324. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2325. coroutine.resume(coroutine.create(function()
  2326. for i=0,1,0.1 do
  2327. wait()
  2328. v.Transparency=v.Transparency-0.1
  2329. end
  2330. v.Transparency=0
  2331. end))
  2332. v.Transparency=0
  2333. end
  2334. end
  2335. end
  2336.  
  2337. local origcolor = BrickColor.new("Pastel light blue")
  2338. ---- This section of explosions.
  2339. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2340. local expart = Instance.new("Part",char)
  2341. local expart2 = Instance.new("Part",char)
  2342. local rin = Instance.new("Part",char)
  2343. local rin2 = Instance.new("Part",char)
  2344. local partMesh = Instance.new("SpecialMesh",expart)
  2345. partMesh.MeshType = "Sphere"
  2346. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2347. partMesh2.MeshType = "Sphere"
  2348. local partMesh3 = Instance.new("SpecialMesh",rin)
  2349. partMesh3.MeshType = "Brick"
  2350. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2351. partMesh4.MeshType = "Brick"
  2352. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2353. partMesh.Scale = vt(rad,rad,rad)
  2354. expart.Size = vt(1,1,1)
  2355. expart.Transparency = 0
  2356. expart.Anchored = true
  2357. expart.Material = "Neon"
  2358. expart.BrickColor = bc("White")
  2359. expart.CFrame = par.CFrame
  2360. partMesh2.Scale = vt(rad,rad,rad)
  2361. expart2.Size = vt(1.15,1.15,1.15)
  2362. expart2.Transparency = 0.5
  2363. expart2.Anchored = true
  2364. expart2.Material = "Neon"
  2365. expart2.BrickColor = par.BrickColor
  2366. expart2.CFrame = par.CFrame
  2367. rin.Size = vt(1.15,1.15,1.15)
  2368. rin.Transparency = 1
  2369. rin.Anchored = true
  2370. rin.Material = "Neon"
  2371. rin.BrickColor = par.BrickColor
  2372. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2373. rin2.Size = vt(1.15,1.15,1.15)
  2374. rin2.Transparency = 1
  2375. rin2.Anchored = true
  2376. rin2.Material = "Neon"
  2377. rin2.BrickColor = par.BrickColor
  2378. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2379. partMesh3.Scale = vt(0,1,0)
  2380. partMesh4.Scale = vt(0,1,0)
  2381. local dec2 = Instance.new("Decal", rin)
  2382. dec2.Face = "Top"
  2383. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2384. dec2.Parent = rin
  2385. local dec2b = dec2:Clone()
  2386. dec2b.Face = "Bottom"
  2387. dec2b.Parent = rin
  2388.  
  2389. local dec2a = Instance.new("Decal", rin2)
  2390. dec2a.Face = "Top"
  2391. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2392. dec2a.Parent = rin2
  2393. local dec2ab = dec2a:Clone()
  2394. dec2ab.Face = "Bottom"
  2395. dec2ab.Parent = rin2
  2396. expart.CanCollide = false
  2397. expart2.CanCollide = false
  2398. rin.CanCollide = false
  2399. rin2.CanCollide = false
  2400. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2401. local value = 1*rad/6.5
  2402. for i = 0, 199 do
  2403. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2404. expart.CFrame = expart.CFrame
  2405. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2406. expart2.CFrame = expart.CFrame
  2407. value = value - 0.035*rad/30
  2408. if value < 7.5 then
  2409. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2410. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2411. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2412. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2413. end
  2414. if value < 0 then
  2415. dec2.Transparency = dec2.Transparency + 0.025
  2416. dec2a.Transparency = dec2a.Transparency + 0.025
  2417. dec2b.Transparency = dec2b.Transparency + 0.025
  2418. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2419. expart.Transparency = expart.Transparency + 0.025
  2420. expart2.Transparency = expart2.Transparency + 0.025
  2421. rin.Transparency = rin.Transparency + 0.025
  2422. rin2.Transparency = rin2.Transparency + 0.025
  2423. end
  2424. swait()
  2425. end
  2426. game:GetService("Debris"):AddItem(expart, 1)
  2427. game:GetService("Debris"):AddItem(expart2, 1)
  2428. game:GetService("Debris"):AddItem(rin, 1)
  2429. game:GetService("Debris"):AddItem(rin2, 1)
  2430. end
  2431.  
  2432. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2433. local expart = Instance.new("Part",char)
  2434. local expart2 = Instance.new("Part",char)
  2435. local partMesh = Instance.new("SpecialMesh",expart)
  2436. partMesh.MeshType = "Sphere"
  2437. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2438. partMesh2.MeshType = "Sphere"
  2439. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2440. partMesh.Scale = vt(rad,rad,rad)
  2441. expart.Size = vt(1,1,1)
  2442. expart.Transparency = 0
  2443. expart.Anchored = true
  2444. expart.Material = "Neon"
  2445. expart.BrickColor = bc("White")
  2446. expart.CFrame = par.CFrame
  2447. partMesh2.Scale = vt(rad,rad,rad)
  2448. expart2.Size = vt(1.15,1.15,1.15)
  2449. expart2.Transparency = 0.5
  2450. expart2.Anchored = true
  2451. expart2.Material = "Neon"
  2452. expart2.BrickColor = par.BrickColor
  2453. expart2.CFrame = par.CFrame
  2454. expart.CanCollide = false
  2455. expart2.CanCollide = false
  2456. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2457. local value = 1*rad/6.5
  2458. for i = 0, 75 do
  2459. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2460. expart.CFrame = expart.CFrame
  2461. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2462. expart2.CFrame = expart.CFrame
  2463. value = value - 0.035*rad/5
  2464. if value < 0 then
  2465. value = 0
  2466. expart.Transparency = expart.Transparency + 0.05
  2467. expart2.Transparency = expart2.Transparency + 0.05
  2468. end
  2469. swait()
  2470. end
  2471. game:GetService("Debris"):AddItem(expart, 1)
  2472. game:GetService("Debris"):AddItem(expart2, 1)
  2473. end
  2474.  
  2475. function AreaDanger(rad,par,mindam,maxdam)
  2476. local expart = Instance.new("Part",char)
  2477. local partMesh = Instance.new("SpecialMesh",expart)
  2478. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2479. partMesh.MeshType = "Sphere"
  2480. partMesh.Scale = vt(rad,rad,rad)
  2481. expart.Size = vt(1,1,1)
  2482. expart.Transparency = 0.5
  2483. expart.Anchored = true
  2484. expart.Material = "Neon"
  2485. expart.CanCollide = false
  2486. expart.BrickColor = par.BrickColor
  2487. expart.CFrame = par.CFrame
  2488. local value = 1*rad/5
  2489. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2490. for i = 0, 14 do
  2491. wait()
  2492. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2493. expart.CFrame = expart.CFrame
  2494. value = value - 0.035*rad
  2495. if value < 0 then
  2496. value = 0
  2497. end
  2498. end
  2499. wait(0.25)
  2500. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2501. wait(0.5)
  2502. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2503. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2504. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2505. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2506. for i = 0, 14 do
  2507. wait()
  2508. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2509. expart.CFrame = expart.CFrame
  2510. value = value - 0.035*rad/2
  2511. end
  2512. expart.Transparency = 1
  2513. game:GetService("Debris"):AddItem(expart, 5)
  2514. end
  2515.  
  2516. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2517. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2518. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2519. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2520. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2521. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2522. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2523. for i = 0, 24 do
  2524. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2525. end
  2526. for i = 0, 24 do
  2527. local expart = Instance.new("Part",char)
  2528. expart.Transparency = 1
  2529. expart.Anchored = true
  2530. expart.CanCollide = false
  2531. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2532. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2533. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2534. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2535. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2536. for i = 0, 9 do
  2537. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2538. end
  2539. game:GetService("Debris"):AddItem(expart, 2)
  2540. wait(0.1)
  2541. end
  2542. end
  2543.  
  2544. function EXterPlosion(par)
  2545. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2546. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2547. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2548. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2549. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2550. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2551. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2552. for i = 0, 24 do
  2553. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2554. end
  2555. for i = 0, 24 do
  2556. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2557. end
  2558. end
  2559. ----
  2560.  
  2561.  
  2562. function ring(type,pos,scale,value)
  2563. local type = type
  2564. local rng = Instance.new("Part", char)
  2565. rng.Anchored = true
  2566. rng.BrickColor = origcolor
  2567. rng.CanCollide = false
  2568. rng.FormFactor = 3
  2569. rng.Name = "Ring"
  2570. rng.Size = Vector3.new(1, 1, 1)
  2571. rng.Transparency = 0
  2572. rng.TopSurface = 0
  2573. rng.BottomSurface = 0
  2574. rng.CFrame = pos
  2575. local rngm = Instance.new("SpecialMesh", rng)
  2576. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2577. rngm.Scale = scale
  2578. local scaler2 = 1
  2579. if type == "Add" then
  2580. scaler2 = 1*value
  2581. elseif type == "Divide" then
  2582. scaler2 = 1/value
  2583. end
  2584. coroutine.resume(coroutine.create(function()
  2585. for i = 0,10,0.1 do
  2586. swait()
  2587. if type == "Add" then
  2588. scaler2 = scaler2 - 0.01*value
  2589. elseif type == "Divide" then
  2590. scaler2 = scaler2 - 0.01/value
  2591. end
  2592. rng.Transparency = rng.Transparency + 0.01
  2593. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2594. end
  2595. rng:Destroy()
  2596. end))
  2597. end
  2598.  
  2599.  
  2600. function wave(type,pos,scale,value)
  2601. local type = type
  2602. local rng = Instance.new("Part", char)
  2603. rng.Anchored = true
  2604. rng.BrickColor = origcolor
  2605. rng.CanCollide = false
  2606. rng.FormFactor = 3
  2607. rng.Name = "Ring"
  2608. rng.Size = Vector3.new(1, 1, 1)
  2609. rng.Transparency = 0
  2610. rng.TopSurface = 0
  2611. rng.BottomSurface = 0
  2612. rng.CFrame = pos
  2613. local rngm = Instance.new("SpecialMesh", rng)
  2614. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2615. rngm.Scale = scale
  2616. local scaler2 = 1
  2617. if type == "Add" then
  2618. scaler2 = 1*value
  2619. elseif type == "Divide" then
  2620. scaler2 = 1/value
  2621. end
  2622. coroutine.resume(coroutine.create(function()
  2623. for i = 0,10,0.1 do
  2624. swait()
  2625. if type == "Add" then
  2626. scaler2 = scaler2 - 0.01*value
  2627. elseif type == "Divide" then
  2628. scaler2 = scaler2 - 0.01/value
  2629. end
  2630. rng.Transparency = rng.Transparency + 0.01
  2631. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2632. end
  2633. rng:Destroy()
  2634. end))
  2635. end
  2636.  
  2637. function wind(type,pos,scale,value,speed)
  2638. local type = type
  2639. local rng = Instance.new("Part", char)
  2640. rng.Anchored = true
  2641. rng.BrickColor = origcolor
  2642. rng.CanCollide = false
  2643. rng.FormFactor = 3
  2644. rng.Name = "Ring"
  2645. rng.Size = Vector3.new(1, 1, 1)
  2646. rng.Transparency = 0
  2647. rng.TopSurface = 0
  2648. rng.BottomSurface = 0
  2649. rng.CFrame = pos
  2650. local rngm = Instance.new("SpecialMesh", rng)
  2651. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2652. rngm.Scale = scale
  2653. local scaler2 = 1
  2654. if type == "Add" then
  2655. scaler2 = 1*value
  2656. elseif type == "Divide" then
  2657. scaler2 = 1/value
  2658. end
  2659. coroutine.resume(coroutine.create(function()
  2660. for i = 0,10,0.1 do
  2661. swait()
  2662. if type == "Add" then
  2663. scaler2 = scaler2 - 0.01*value
  2664. elseif type == "Divide" then
  2665. scaler2 = scaler2 - 0.01/value
  2666. end
  2667. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2668. rng.Transparency = rng.Transparency + 0.01
  2669. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2670. end
  2671. rng:Destroy()
  2672. end))
  2673. end
  2674.  
  2675. function groundwind(type,pos,scale,value,speed)
  2676. local type = type
  2677. local rng = Instance.new("Part", char)
  2678. rng.Anchored = true
  2679. rng.BrickColor = origcolor
  2680. rng.CanCollide = false
  2681. rng.FormFactor = 3
  2682. rng.Name = "Ring"
  2683. rng.Size = Vector3.new(1, 1, 1)
  2684. rng.Transparency = 0
  2685. rng.TopSurface = 0
  2686. rng.BottomSurface = 0
  2687. rng.CFrame = pos
  2688. local rngm = Instance.new("SpecialMesh", rng)
  2689. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2690. rngm.Scale = scale
  2691. local scaler2 = 1
  2692. if type == "Add" then
  2693. scaler2 = 1*value
  2694. elseif type == "Divide" then
  2695. scaler2 = 1/value
  2696. end
  2697. coroutine.resume(coroutine.create(function()
  2698. for i = 0,10,0.1 do
  2699. swait()
  2700. if type == "Add" then
  2701. scaler2 = scaler2 - 0.01*value
  2702. elseif type == "Divide" then
  2703. scaler2 = scaler2 - 0.01/value
  2704. end
  2705. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2706. rng.Transparency = rng.Transparency + 0.01
  2707. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2708. end
  2709. rng:Destroy()
  2710. end))
  2711. end
  2712.  
  2713. function CameraManager()
  2714. if TwoD and not CamInterrupt then
  2715. if Humanoid.Health > 0 then
  2716. Camera.CameraSubject = Humanoid
  2717. Camera.CameraType = "Scriptable"
  2718. Humanoid.AutoRotate = false
  2719. if Booleans.GyroUse then
  2720. Directer.MaxTorque = Vec3(0, huge, 0)
  2721. else
  2722. Directer.MaxTorque = Vec3(0, 0, 0)
  2723. end
  2724. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2725. if Booleans.CamFollow then
  2726. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2727. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2728. else
  2729. CPart.Position = RootPart.Position
  2730. end
  2731. else
  2732. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2733. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2734. end
  2735. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2736. else
  2737. Camera.CameraSubject = Humanoid
  2738. Camera.CameraType = "Custom"
  2739. Controller.Disabled = false
  2740. end
  2741. end
  2742. end
  2743.  
  2744. function sphere(bonuspeed,type,pos,scale,value,color)
  2745. local type = type
  2746. local rng = Instance.new("Part", char)
  2747. rng.Anchored = true
  2748. rng.BrickColor = color
  2749. rng.CanCollide = false
  2750. rng.FormFactor = 3
  2751. rng.Name = "Ring"
  2752. rng.Material = "Neon"
  2753. rng.Size = Vector3.new(1, 1, 1)
  2754. rng.Transparency = 0
  2755. rng.TopSurface = 0
  2756. rng.BottomSurface = 0
  2757. rng.CFrame = pos
  2758. local rngm = Instance.new("SpecialMesh", rng)
  2759. rngm.MeshType = "Sphere"
  2760. rngm.Scale = scale
  2761. if rainbowmode == true then
  2762. rng.Color = Color3.new(r/255,g/255,b/255)
  2763. end
  2764. local scaler2 = 1
  2765. if type == "Add" then
  2766. scaler2 = 1*value
  2767. elseif type == "Divide" then
  2768. scaler2 = 1/value
  2769. end
  2770. coroutine.resume(coroutine.create(function()
  2771. for i = 0,10/bonuspeed,0.1 do
  2772. swait()
  2773. if rainbowmode == true then
  2774. rng.Color = Color3.new(r/255,g/255,b/255)
  2775. end
  2776. if type == "Add" then
  2777. scaler2 = scaler2 - 0.01*value/bonuspeed
  2778. elseif type == "Divide" then
  2779. scaler2 = scaler2 - 0.01/value*bonuspeed
  2780. end
  2781. if chaosmode == true then
  2782. rng.BrickColor = BrickColor.random()
  2783. end
  2784. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2785. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2786. end
  2787. rng:Destroy()
  2788. end))
  2789. end
  2790.  
  2791. function spherew(bonuspeed,type,pos,scale,value,color)
  2792. local type = type
  2793. local rng = Instance.new("Part", workspace)
  2794. rng.Anchored = true
  2795. rng.BrickColor = color
  2796. rng.CanCollide = false
  2797. rng.FormFactor = 3
  2798. rng.Name = "Ring"
  2799. rng.Material = "Neon"
  2800. rng.Size = Vector3.new(1, 1, 1)
  2801. rng.Transparency = 0
  2802. rng.TopSurface = 0
  2803. rng.BottomSurface = 0
  2804. rng.CFrame = pos
  2805. local rngm = Instance.new("SpecialMesh", rng)
  2806. rngm.MeshType = "Sphere"
  2807. rngm.Scale = scale
  2808. if rainbowmode == true then
  2809. rng.Color = Color3.new(r/255,g/255,b/255)
  2810. end
  2811. local scaler2 = 1
  2812. if type == "Add" then
  2813. scaler2 = 1*value
  2814. elseif type == "Divide" then
  2815. scaler2 = 1/value
  2816. end
  2817. coroutine.resume(coroutine.create(function()
  2818. for i = 0,10/bonuspeed,0.1 do
  2819. swait()
  2820. if rainbowmode == true then
  2821. rng.Color = Color3.new(r/255,g/255,b/255)
  2822. end
  2823. if type == "Add" then
  2824. scaler2 = scaler2 - 0.01*value/bonuspeed
  2825. elseif type == "Divide" then
  2826. scaler2 = scaler2 - 0.01/value*bonuspeed
  2827. end
  2828. if chaosmode == true then
  2829. rng.BrickColor = BrickColor.random()
  2830. end
  2831. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2832. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2833. end
  2834. rng:Destroy()
  2835. end))
  2836. end
  2837.  
  2838. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2839. local type = type
  2840. local rng = Instance.new("Part", char)
  2841. rng.Anchored = true
  2842. rng.BrickColor = color
  2843. rng.CanCollide = false
  2844. rng.FormFactor = 3
  2845. rng.Name = "Ring"
  2846. rng.Material = "Neon"
  2847. rng.Size = Vector3.new(1, 1, 1)
  2848. rng.Transparency = 0
  2849. rng.TopSurface = 0
  2850. rng.BottomSurface = 0
  2851. rng.CFrame = pos
  2852. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2853. local rngm = Instance.new("SpecialMesh", rng)
  2854. rngm.MeshType = "Brick"
  2855. rngm.Scale = vt(x1,y1,z1)
  2856. if rainbowmode == true then
  2857. rng.Color = Color3.new(r/255,g/255,b/255)
  2858. end
  2859. local scaler2 = 1
  2860. local speeder = FastSpeed/10
  2861. if type == "Add" then
  2862. scaler2 = 1*value
  2863. elseif type == "Divide" then
  2864. scaler2 = 1/value
  2865. end
  2866. coroutine.resume(coroutine.create(function()
  2867. for i = 0,10/bonuspeed,0.1 do
  2868. swait()
  2869. if rainbowmode == true then
  2870. rng.Color = Color3.new(r/255,g/255,b/255)
  2871. end
  2872. if type == "Add" then
  2873. scaler2 = scaler2 - 0.01*value/bonuspeed
  2874. elseif type == "Divide" then
  2875. scaler2 = scaler2 - 0.01/value*bonuspeed
  2876. end
  2877. if chaosmode == true then
  2878. rng.BrickColor = BrickColor.random()
  2879. end
  2880. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2881. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2882. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2883. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2884. end
  2885. rng:Destroy()
  2886. end))
  2887. end
  2888.  
  2889. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2890. local type = type
  2891. local rng = Instance.new("Part", char)
  2892. rng.Anchored = true
  2893. rng.BrickColor = color
  2894. rng.CanCollide = false
  2895. rng.FormFactor = 3
  2896. rng.Name = "Ring"
  2897. rng.Material = "Neon"
  2898. rng.Size = Vector3.new(1, 1, 1)
  2899. rng.Transparency = 0
  2900. rng.TopSurface = 0
  2901. rng.BottomSurface = 0
  2902. rng.CFrame = pos
  2903. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2904. local rngm = Instance.new("SpecialMesh", rng)
  2905. rngm.MeshType = "Brick"
  2906. rngm.Scale = vt(x1,y1,z1)
  2907. if rainbowmode == true then
  2908. rng.Color = Color3.new(r/255,g/255,b/255)
  2909. end
  2910. local scaler2 = 0
  2911. local speeder = FastSpeed/10
  2912. if type == "Add" then
  2913. scaler2 = 1*value
  2914. elseif type == "Divide" then
  2915. scaler2 = 1/value
  2916. end
  2917. coroutine.resume(coroutine.create(function()
  2918. for i = 0,10/bonuspeed,0.1 do
  2919. swait()
  2920. if rainbowmode == true then
  2921. rng.Color = Color3.new(r/255,g/255,b/255)
  2922. end
  2923. if type == "Add" then
  2924. scaler2 = scaler2 - 0.01*value/bonuspeed
  2925. elseif type == "Divide" then
  2926. scaler2 = scaler2 - 0.01/value*bonuspeed
  2927. end
  2928. if chaosmode == true then
  2929. rng.BrickColor = BrickColor.random()
  2930. end
  2931. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2932. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2933. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2934. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2935. end
  2936. rng:Destroy()
  2937. end))
  2938. end
  2939.  
  2940. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2941. local type = type
  2942. local rng = Instance.new("Part", workspace)
  2943. rng.Anchored = true
  2944. rng.BrickColor = color
  2945. rng.CanCollide = false
  2946. rng.FormFactor = 3
  2947. rng.Name = "Ring"
  2948. rng.Material = "Neon"
  2949. rng.Size = Vector3.new(1, 1, 1)
  2950. rng.Transparency = 0
  2951. rng.TopSurface = 0
  2952. rng.BottomSurface = 0
  2953. rng.CFrame = pos
  2954. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2955. local rngm = Instance.new("SpecialMesh", rng)
  2956. rngm.MeshType = "Sphere"
  2957. rngm.Scale = vt(x1,y1,z1)
  2958. if rainbowmode == true then
  2959. rng.Color = Color3.new(r/255,g/255,b/255)
  2960. end
  2961. local scaler2 = 1
  2962. local speeder = FastSpeed
  2963. if type == "Add" then
  2964. scaler2 = 1*value
  2965. elseif type == "Divide" then
  2966. scaler2 = 1/value
  2967. end
  2968. coroutine.resume(coroutine.create(function()
  2969. for i = 0,10/bonuspeed,0.1 do
  2970. swait()
  2971. if rainbowmode == true then
  2972. rng.Color = Color3.new(r/255,g/255,b/255)
  2973. end
  2974. if type == "Add" then
  2975. scaler2 = scaler2 - 0.01*value/bonuspeed
  2976. elseif type == "Divide" then
  2977. scaler2 = scaler2 - 0.01/value*bonuspeed
  2978. end
  2979. if chaosmode == true then
  2980. rng.BrickColor = BrickColor.random()
  2981. end
  2982. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2983. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2984. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2985. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2986. end
  2987. rng:Destroy()
  2988. end))
  2989. end
  2990. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2991. local type = type
  2992. local rng = Instance.new("Part", char)
  2993. rng.Anchored = true
  2994. rng.BrickColor = color
  2995. rng.CanCollide = false
  2996. rng.FormFactor = 3
  2997. rng.Name = "Ring"
  2998. rng.Material = "Neon"
  2999. rng.Size = Vector3.new(1, 1, 1)
  3000. rng.Transparency = 0
  3001. rng.TopSurface = 0
  3002. rng.BottomSurface = 0
  3003. rng.CFrame = pos
  3004. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3005. local rngm = Instance.new("SpecialMesh", rng)
  3006. rngm.MeshType = "Sphere"
  3007. rngm.Scale = vt(x1,y1,z1)
  3008. if rainbowmode == true then
  3009. rng.Color = Color3.new(r/255,g/255,b/255)
  3010. end
  3011. local scaler2 = 1
  3012. local speeder = FastSpeed
  3013. if type == "Add" then
  3014. scaler2 = 1*value
  3015. elseif type == "Divide" then
  3016. scaler2 = 1/value
  3017. end
  3018. coroutine.resume(coroutine.create(function()
  3019. for i = 0,10/bonuspeed,0.1 do
  3020. swait()
  3021. if rainbowmode == true then
  3022. rng.Color = Color3.new(r/255,g/255,b/255)
  3023. end
  3024. if type == "Add" then
  3025. scaler2 = scaler2 - 0.01*value/bonuspeed
  3026. elseif type == "Divide" then
  3027. scaler2 = scaler2 - 0.01/value*bonuspeed
  3028. end
  3029. if chaosmode == true then
  3030. rng.BrickColor = BrickColor.random()
  3031. end
  3032. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3033. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3034. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3035. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3036. end
  3037. rng:Destroy()
  3038. end))
  3039. end
  3040.  
  3041.  
  3042. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3043. local type = type
  3044. local rng = Instance.new("Part", char)
  3045. rng.Anchored = true
  3046. rng.BrickColor = color
  3047. rng.CanCollide = false
  3048. rng.FormFactor = 3
  3049. rng.Name = "Ring"
  3050. rng.Material = "Neon"
  3051. rng.Size = Vector3.new(1, 1, 1)
  3052. rng.Transparency = 1
  3053. rng.TopSurface = 0
  3054. rng.BottomSurface = 0
  3055. rng.CFrame = pos
  3056. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3057. local rngm = Instance.new("SpecialMesh", rng)
  3058. rngm.MeshType = "Sphere"
  3059. rngm.Scale = vt(x1,y1,z1)
  3060. if rainbowmode == true then
  3061. rng.Color = Color3.new(r/255,g/255,b/255)
  3062. end
  3063. local scaler2 = 1
  3064. local speeder = FastSpeed
  3065. if type == "Add" then
  3066. scaler2 = 1*value
  3067. elseif type == "Divide" then
  3068. scaler2 = 1/value
  3069. end
  3070. coroutine.resume(coroutine.create(function()
  3071. for i = 0,10/bonuspeed,0.1 do
  3072. swait()
  3073. if rainbowmode == true then
  3074. rng.Color = Color3.new(r/255,g/255,b/255)
  3075. end
  3076. if type == "Add" then
  3077. scaler2 = scaler2 - 0.01*value/bonuspeed
  3078. elseif type == "Divide" then
  3079. scaler2 = scaler2 - 0.01/value*bonuspeed
  3080. end
  3081. if chaosmode == true then
  3082. rng.BrickColor = BrickColor.random()
  3083. end
  3084. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3085. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3086. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3087. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3088. end
  3089. rng:Destroy()
  3090. end))
  3091. end
  3092.  
  3093. function dmg(dude)
  3094. if dude.Name ~= Character then
  3095. local bgf = Instance.new("BodyGyro",dude.Head)
  3096. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3097. local val = Instance.new("BoolValue",dude)
  3098. val.Name = "IsHit"
  3099. local ds = coroutine.wrap(function()
  3100. dude:WaitForChild("Head"):BreakJoints()
  3101. wait(0.5)
  3102. targetted = nil
  3103. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3104. coroutine.resume(coroutine.create(function()
  3105. for i, v in pairs(dude:GetChildren()) do
  3106. if v:IsA("Accessory") then
  3107. v:Destroy()
  3108. end
  3109. if v:IsA("Humanoid") then
  3110. v:Destroy()
  3111. end
  3112. if v:IsA("CharacterMesh") then
  3113. v:Destroy()
  3114. end
  3115. if v:IsA("Model") then
  3116. v:Destroy()
  3117. end
  3118. if v:IsA("Part") or v:IsA("MeshPart") then
  3119. for x, o in pairs(v:GetChildren()) do
  3120. if o:IsA("Decal") then
  3121. o:Destroy()
  3122. end
  3123. end
  3124. coroutine.resume(coroutine.create(function()
  3125. v.Material = "Neon"
  3126. v.CanCollide = false
  3127. local bld = Instance.new("ParticleEmitter",v)
  3128. bld.LightEmission = 1
  3129. bld.Texture = "rbxassetid://284205403"
  3130. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3131. bld.Rate = 50
  3132. bld.Lifetime = NumberRange.new(1)
  3133. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3134. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3135. bld.Speed = NumberRange.new(0,0)
  3136. bld.VelocitySpread = 50000
  3137. bld.Rotation = NumberRange.new(-500,500)
  3138. bld.RotSpeed = NumberRange.new(-500,500)
  3139. local sbs = Instance.new("BodyPosition", v)
  3140. sbs.P = 3000
  3141. sbs.D = 1000
  3142. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3143. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3144. v.Color = Color3.new(1,1,1)
  3145. coroutine.resume(coroutine.create(function()
  3146. for i = 0, 49 do
  3147. swait(1)
  3148. v.Transparency = v.Transparency + 0.02
  3149. end
  3150. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3151. bld.Speed = NumberRange.new(1,5)
  3152. bld.Acceleration = vt(0,10,0)
  3153. wait(0.5)
  3154. bld.Enabled = false
  3155. wait(3)
  3156. v:Destroy()
  3157. dude:Destroy()
  3158. end))
  3159. end))
  3160. end
  3161. end
  3162. end))
  3163. end)
  3164. ds()
  3165. end
  3166. end
  3167.  
  3168.  
  3169. function FindNearestHead(Position, Distance, SinglePlayer)
  3170. if SinglePlayer then
  3171. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3172. end
  3173. local List = {}
  3174. for i, v in pairs(workspace:GetChildren()) do
  3175. if v:IsA("Model") then
  3176. if v:findFirstChild("Head") then
  3177. if v ~= Character then
  3178. if (v.Head.Position - Position).magnitude <= Distance then
  3179. table.insert(List, v)
  3180. end
  3181. end
  3182. end
  3183. end
  3184. end
  3185. return List
  3186. end
  3187.  
  3188. function FaceMouse()
  3189. Cam = workspace.CurrentCamera
  3190. return {
  3191. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3192. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3193. }
  3194. end
  3195.  
  3196. function FaceMouse2()
  3197. Cam = workspace.CurrentCamera
  3198. return {
  3199. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3200. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3201. }
  3202. end
  3203.  
  3204. local ModeOfGlitch = 1
  3205. -- Functions are ready.
  3206. local storehumanoidWS = 16
  3207.  
  3208. function Blink()
  3209. for i = 0, 14 do
  3210. 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)
  3211. end
  3212. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3213. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3214. CameraEnshaking(2,10)
  3215. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3216. if v:FindFirstChild('Head') then
  3217. end
  3218. end
  3219. for i = 0, 14 do
  3220. 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)
  3221. end
  3222. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3223. end
  3224.  
  3225. function ExtinctiveHeartbreak()
  3226. local targetted = nil
  3227. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3228. targetted = mouse.Target.Parent
  3229. end
  3230. if targetted ~= nil then
  3231. attack = true
  3232. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3233. for i = 0, 9 do
  3234. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3235. end
  3236. for i = 0, 24 do
  3237. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3238. end
  3239. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3240. local originalpos = root.CFrame
  3241. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3242. for i = 0, 9 do
  3243. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3244. end
  3245. for i = 0, 24 do
  3246. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3247. end
  3248. hum.WalkSpeed = 0
  3249. targetted.Head.Anchored = true
  3250. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3251. for i = 0,2,0.1 do
  3252. swait()
  3253. 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)),.4)
  3254. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3257. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3258. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  3259. end
  3260. coroutine.resume(coroutine.create(function()
  3261. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3262. bld.LightEmission = 0.1
  3263. bld.Texture = "rbxassetid://284205403"
  3264. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3265. bld.Rate = 500
  3266. bld.Lifetime = NumberRange.new(1)
  3267. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3268. bld.Acceleration = vt(0,-25,0)
  3269. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3270. bld.Speed = NumberRange.new(10,50)
  3271. bld.EmissionDirection = "Front"
  3272. bld.VelocitySpread = 25
  3273. bld.Rotation = NumberRange.new(-500,500)
  3274. bld.RotSpeed = NumberRange.new(-500,500)
  3275. end))
  3276. coroutine.resume(coroutine.create(function()
  3277. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3278. bld.LightEmission = 0.1
  3279. bld.Texture = "rbxassetid://284205403"
  3280. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3281. bld.Rate = 500
  3282. bld.Lifetime = NumberRange.new(1)
  3283. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3284. bld.Acceleration = vt(0,-25,0)
  3285. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3286. bld.Speed = NumberRange.new(10,50)
  3287. bld.EmissionDirection = "Front"
  3288. bld.VelocitySpread = 25
  3289. bld.Rotation = NumberRange.new(-500,500)
  3290. bld.RotSpeed = NumberRange.new(-500,500)
  3291. end))
  3292. CameraEnshaking(5,5)
  3293. game:GetService("Debris"):AddItem(bld,3)
  3294. dmg(targetted)
  3295. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3296. for i = 0,1,0.1 do
  3297. swait()
  3298. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3299. 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)),.8)
  3300. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3301. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3302. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3303. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  3304. end
  3305. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3306. for i = 0, 9 do
  3307. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3308. end
  3309. for i = 0, 24 do
  3310. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3311. end
  3312. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3313. root.CFrame = originalpos
  3314. for i = 0, 9 do
  3315. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3316. end
  3317. for i = 0, 24 do
  3318. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3319. end
  3320. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3321. bld.Enabled = false
  3322. attack = false
  3323. hum.WalkSpeed = storehumanoidWS
  3324. end
  3325. end
  3326. function MeteorStrike()
  3327. attack = true
  3328. for i = 0, 2, 0.1 do
  3329. swait()
  3330. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3331. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3332. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3333. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3334. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3335. 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)
  3336. end
  3337. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3338. for i=1,20 do
  3339. sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3340. swait()
  3341. end
  3342. swait(30)
  3343. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3344. for i =1,20 do
  3345. sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  3346. PixelBlock(1,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.06,MAINRUINCOLOR,0)
  3347. end
  3348. for i = 0,2,0.1 do
  3349. swait()
  3350. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  3351. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  3352. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3353. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3354. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3355. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3356. end
  3357. for i =1,20 do
  3358. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3359. end
  3360. text.TextTransparency = 1
  3361. text.TextStrokeTransparency = 1
  3362. tr2.Enabled = false
  3363. tr1.Enabled = false
  3364. tr3.Enabled = false
  3365. tl1.Enabled = false
  3366. tl2.Enabled = false
  3367. tl3.Enabled = false
  3368. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3369. eff = false
  3370. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3371. local invtab = {}
  3372. local function search(targ)
  3373. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3374. table.insert(invtab,targ)
  3375. end
  3376. for i,v in pairs(targ:GetChildren()) do
  3377. search(v)
  3378. end
  3379. end
  3380. search(plr.Character)
  3381. local frm = 0
  3382. local frmcon
  3383. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3384. if frm < 10 then
  3385. for i,v in pairs(invtab) do
  3386. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3387. v.Transparency = v.Transparency + 0.1
  3388. end
  3389. end
  3390. frm = frm + 1
  3391. else
  3392. frmcon:disconnect()
  3393. end
  3394. end)
  3395. swait(200)
  3396. text.TextTransparency = 0
  3397. text.TextStrokeTransparency = 0
  3398. tr2.Enabled = false
  3399. tr1.Enabled = false
  3400. tr3.Enabled = false
  3401. tl1.Enabled = false
  3402. tl2.Enabled = false
  3403. tl3.Enabled = false
  3404. eff = true
  3405. for i =1,20 do
  3406. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3407. end
  3408. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3409. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3410. local invtab = {}
  3411. local function search(targ)
  3412. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3413. table.insert(invtab,targ)
  3414. end
  3415. for i,v in pairs(targ:GetChildren()) do
  3416. search(v)
  3417. end
  3418. end
  3419. search(plr.Character)
  3420. local frm = 0
  3421. local frmcon
  3422. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3423. if frm < 10 then
  3424. for i,v in pairs(invtab) do
  3425. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3426. v.Transparency = v.Transparency - 0.1
  3427. end
  3428. end
  3429. frm = frm + 1
  3430. else
  3431. frmcon:disconnect()
  3432. end
  3433. end)
  3434. swait(5)
  3435. for i = 0, 2, 0.1 do
  3436. swait()
  3437. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3438. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3439. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3440. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3441. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3442. 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)
  3443. end
  3444. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3445. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3446. MagniDamage(root, 30, 65,90, 0, "Normal")
  3447. for i =1,20 do
  3448. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3449. end
  3450. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3451. for i =1,20 do
  3452. PixelBlock(1,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.06,MAINRUINCOLOR,0)
  3453. end
  3454. swait(20)
  3455. attack = false
  3456. tr2.Enabled = true
  3457. tr1.Enabled = true
  3458. tr3.Enabled = true
  3459. tl1.Enabled = true
  3460. tl2.Enabled = true
  3461. tl3.Enabled = true
  3462. end
  3463. function FinalCalam()
  3464. attack = true
  3465.  
  3466. local orb = Instance.new("Part", char)
  3467. orb.Anchored = true
  3468. orb.BrickColor = MAINRUINCOLOR
  3469. orb.CanCollide = false
  3470. orb.FormFactor = 3
  3471. orb.Name = "Ring"
  3472. orb.Material = "Neon"
  3473. orb.Size = Vector3.new(1, 1, 1)
  3474. orb.Transparency = 0
  3475. orb.TopSurface = 0
  3476. orb.BottomSurface = 0
  3477. local orbm = Instance.new("SpecialMesh", orb)
  3478. orbm.MeshType = "Sphere"
  3479. orbm.Name = "SizeMesh"
  3480. orbm.Scale = vt(0,0,0)
  3481. local scaled = 0.1
  3482. local posid = 0
  3483. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3484. for i = 0, 5, 0.1 do
  3485. swait()
  3486. scaled = scaled - 0.001
  3487. posid = posid - scaled
  3488. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3489. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3490. 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,MAINRUINCOLOR,10)
  3491. 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,MAINRUINCOLOR,0)
  3492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3493. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3495. 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)
  3496. end
  3497. swait(60)
  3498. for i =1,3 do
  3499. swait(30)
  3500. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3501. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3502. end
  3503. swait(30)
  3504. for i = 0, 2, 0.1 do
  3505. swait()
  3506. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3507. 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)
  3508. 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)
  3509. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3511. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3512. 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)
  3513. end
  3514. swait(60)
  3515. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3516. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3517. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3518. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3519. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3520. if v:FindFirstChild('Head') then
  3521. dmg(v)
  3522. end
  3523. end
  3524. for i = 1,20 do
  3525. 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,MAINRUINCOLOR,0)
  3526. for i = 0, 10 do
  3527. 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,MAINRUINCOLOR,0)
  3528. end
  3529. end
  3530. orb:Remove()
  3531. attack = false
  3532. end
  3533. function PureBomb()
  3534. attack = true
  3535.  
  3536. local orb = Instance.new("Part", char)
  3537. orb.Anchored = true
  3538. orb.BrickColor = BrickColor.new("Toothpaste")
  3539. orb.CanCollide = false
  3540. orb.FormFactor = 3
  3541. orb.Name = "Ring"
  3542. orb.Material = "Neon"
  3543. orb.Size = Vector3.new(1, 1, 1)
  3544. orb.Transparency = 0
  3545. orb.TopSurface = 0
  3546. orb.BottomSurface = 0
  3547. local orbm = Instance.new("SpecialMesh", orb)
  3548. orbm.MeshType = "Sphere"
  3549. orbm.Name = "SizeMesh"
  3550. orbm.Scale = vt(0,0,0)
  3551. local scaled = 0.1
  3552. local posid = 0
  3553. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3554. for i = 0, 5, 0.1 do
  3555. swait()
  3556. scaled = scaled - 0.001
  3557. posid = posid - scaled
  3558. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3559. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3560. 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)
  3561. 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)
  3562. 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)
  3563. 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)
  3564. 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)
  3565. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3566. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3567. 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)
  3568. end
  3569. for i = 0, 2, 0.1 do
  3570. swait()
  3571. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3572. 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)
  3573. 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)
  3574. 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)
  3575. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3576. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3577. 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)
  3578. end
  3579. coroutine.resume(coroutine.create(function()
  3580. orb.Anchored = false
  3581. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3582. local a = Instance.new("Part",workspace)
  3583. a.Name = "Direction"
  3584. a.Anchored = true
  3585. a.BrickColor = bc("Bright red")
  3586. a.Material = "Neon"
  3587. a.Transparency = 1
  3588. a.CanCollide = false
  3589. local ray = Ray.new(
  3590. orb.CFrame.p, -- origin
  3591. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3592. )
  3593. local ignore = orb
  3594. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3595. a.BottomSurface = 10
  3596. a.TopSurface = 10
  3597. local distance = (orb.CFrame.p - position).magnitude
  3598. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3599. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3600. orb.CFrame = a.CFrame
  3601. a:Destroy()
  3602. local bv = Instance.new("BodyVelocity")
  3603. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3604. bv.velocity = orb.CFrame.lookVector*125
  3605. bv.Parent = orb
  3606. local hitted = false
  3607. game:GetService("Debris"):AddItem(orb, 15)
  3608. wait()
  3609. local hit =orb.Touched:connect(function(hit)
  3610. if hitted == false then
  3611. hitted = true
  3612. CameraEnshaking(10,2.5)
  3613. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3614. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3615. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3616. for i = 0, 49 do
  3617. 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)
  3618. end
  3619. for i = 0, 9 do
  3620. 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)
  3621. 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)
  3622. end
  3623. orb.Anchored = true
  3624. orb.Transparency = 1
  3625. wait(8)
  3626. orb:Destroy()
  3627. end
  3628. end)
  3629. end))
  3630. for i = 0, 1, 0.1 do
  3631. swait()
  3632. 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)
  3633. 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)
  3634. 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)
  3635. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3636. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3637. 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)
  3638. end
  3639. attack = false
  3640. end
  3641.  
  3642. function ChaosGroundStrike()
  3643. attack = true
  3644. for i = 0, 2, 0.1 do
  3645. swait()
  3646. 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)
  3647. 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)
  3648. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3650. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3651. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3652. end
  3653. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3654. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3655. CameraEnshaking(4,12)
  3656. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3657. if v:FindFirstChild('Head') then
  3658. dmg(v)
  3659. end
  3660. end
  3661. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3662. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3663. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3664. for i = 0, 2, 0.1 do
  3665. swait()
  3666. 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)
  3667. 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)
  3668. 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)
  3669. 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)
  3670. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3671. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3672. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3673. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3674. end
  3675. attack = false
  3676. end
  3677.  
  3678. function Starfall()
  3679. attack = true
  3680. hum.WalkSpeed = 0
  3681. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3682. for i = 0, 5, 0.1 do
  3683. swait()
  3684. 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)
  3685. 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)
  3686. 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)
  3687. 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)
  3688. 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)
  3689. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3690. 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)
  3691. 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)
  3692. end
  3693. local Overed = false
  3694. CameraEnshaking(2,20)
  3695. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3696. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3697. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3698. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3699. local orb = Instance.new("Part", char)
  3700. orb.Anchored = true
  3701. orb.BrickColor = BrickColor.new("Toothpaste")
  3702. orb.CanCollide = false
  3703. orb.FormFactor = 3
  3704. orb.Name = "Remenant"
  3705. orb.Material = "Neon"
  3706. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3707. orb.Size = Vector3.new(1, 1, 1)
  3708. orb.Transparency = 1
  3709. orb.TopSurface = 0
  3710. orb.BottomSurface = 0
  3711. hum.WalkSpeed = storehumanoidWS
  3712. coroutine.resume(coroutine.create(function()
  3713. for i = 0, 9 do
  3714. swait(10)
  3715. local lb = Instance.new("Part")
  3716. lb.Color = MAINRUINCOLOR.Color
  3717. lb.CanCollide = false
  3718. lb.Material = "Neon"
  3719. lb.Anchored = true
  3720. lb.TopSurface = 0
  3721. lb.BottomSurface = 0
  3722. lb.Transparency = 0
  3723. lb.Size = vt(1,1,1)
  3724. 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)))
  3725. lb.Anchored = false
  3726. lb.Parent = char
  3727. local thingery = Instance.new("SpecialMesh",lb)
  3728. thingery.MeshType = "Sphere"
  3729. thingery.Scale = vt(20,20,20)
  3730. game:GetService("Debris"):AddItem(lb, 10)
  3731. local bv = Instance.new("BodyVelocity")
  3732. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3733. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3734. bv.Parent = lb
  3735. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3736. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3737. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3738. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3739. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3740. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3741. local hitted = false
  3742. coroutine.resume(coroutine.create(function()
  3743. while true do
  3744. swait(1)
  3745. if lb.Parent ~= nil and hitted == false then
  3746. 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)
  3747. elseif lb.Parent == nil then
  3748. break
  3749. end
  3750. end
  3751. end))
  3752.  
  3753. game:GetService("Debris"):AddItem(a, 0.1)
  3754.  
  3755. coroutine.resume(coroutine.create(function()
  3756. swait(1)
  3757. lb.Touched:connect(function(hit)
  3758. if hitted == false then
  3759. hitted = true
  3760. lb.Transparency = 1
  3761. lb.Anchored = true
  3762. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3763. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3764. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3765. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3766. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3767. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3768. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3769. CameraEnshaking(1,5)
  3770. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3771. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3772. for i = 0, 9 do
  3773. 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)
  3774. end
  3775. for i = 0, 49 do
  3776. swait()
  3777. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3778. 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)
  3779. end
  3780. end
  3781. end)
  3782. end))
  3783. end
  3784. Overed = true
  3785. orb:Destroy()
  3786. end))
  3787.  
  3788. attack = false
  3789. end
  3790.  
  3791. function StarfallEX()
  3792. attack = true
  3793. hum.WalkSpeed = 0
  3794. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3795. for i = 0, 5, 0.1 do
  3796. swait()
  3797. 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)
  3798. 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)
  3799. 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)
  3800. 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)
  3801. 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)
  3802. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3803. 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)
  3804. 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)
  3805. end
  3806. local Overed = false
  3807. CameraEnshaking(2,20)
  3808. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3809. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3810. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3811. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3812. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3813. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3814. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3815. local orb = Instance.new("Part", char)
  3816. orb.Anchored = true
  3817. orb.BrickColor = BrickColor.new("Toothpaste")
  3818. orb.CanCollide = false
  3819. orb.FormFactor = 3
  3820. orb.Name = "Remenant"
  3821. orb.Material = "Neon"
  3822. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3823. orb.Size = Vector3.new(1, 1, 1)
  3824. orb.Transparency = 1
  3825. orb.TopSurface = 0
  3826. orb.BottomSurface = 0
  3827. hum.WalkSpeed = storehumanoidWS
  3828. coroutine.resume(coroutine.create(function()
  3829. for i = 0, 9 do
  3830. swait(10)
  3831. local lb = Instance.new("Part")
  3832. lb.Color = MAINRUINCOLOR.Color
  3833. lb.CanCollide = false
  3834. lb.Material = "Neon"
  3835. lb.Anchored = true
  3836. lb.TopSurface = 0
  3837. lb.BottomSurface = 0
  3838. lb.Transparency = 0
  3839. lb.Size = vt(1,1,1)
  3840. 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)))
  3841. lb.Anchored = false
  3842. lb.Parent = char
  3843. local thingery = Instance.new("SpecialMesh",lb)
  3844. thingery.MeshType = "Sphere"
  3845. thingery.Scale = vt(20,20,20)
  3846. game:GetService("Debris"):AddItem(lb, 10)
  3847. local bv = Instance.new("BodyVelocity")
  3848. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3849. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3850. bv.Parent = lb
  3851. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3852. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3853. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3854. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3855. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3856. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3857. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3858. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3859. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3860. local hitted = false
  3861. coroutine.resume(coroutine.create(function()
  3862. while true do
  3863. swait(1)
  3864. if lb.Parent ~= nil and hitted == false then
  3865. 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)
  3866. 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)
  3867. elseif lb.Parent == nil then
  3868. break
  3869. end
  3870. end
  3871. end))
  3872.  
  3873. game:GetService("Debris"):AddItem(a, 0.1)
  3874.  
  3875. coroutine.resume(coroutine.create(function()
  3876. swait(1)
  3877. lb.Touched:connect(function(hit)
  3878. if hitted == false then
  3879. hitted = true
  3880. lb.Transparency = 1
  3881. lb.Anchored = true
  3882. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3883. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3884. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3885. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3886. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3887. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3888. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3889. CameraEnshaking(10,5)
  3890. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3891. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3892. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3893. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3894. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3895. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3896. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3897. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3898. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3899. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3900. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3901. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3902. for i = 0, 9 do
  3903. 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)
  3904. 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)
  3905. 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)
  3906. 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)
  3907. 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)
  3908. 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)
  3909. end
  3910. for i = 0, 49 do
  3911. swait()
  3912. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3913. 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)
  3914. 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)
  3915. 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)
  3916. end
  3917. end
  3918. end)
  3919. end))
  3920. end
  3921. Overed = true
  3922. orb:Destroy()
  3923. end))
  3924.  
  3925. attack = false
  3926. end
  3927.  
  3928. function StarDivision()
  3929. attack = true
  3930. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3931. for i = 0, 2, 0.1 do
  3932. swait()
  3933. 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)
  3934. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  3935. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  3936. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  3937. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3938. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3939. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3940. end
  3941. local orb = Instance.new("Part", char)
  3942. orb.BrickColor = MAINRUINCOLOR
  3943. orb.CanCollide = false
  3944. orb.FormFactor = 3
  3945. orb.Name = "Ring"
  3946. orb.Material = "Neon"
  3947. orb.Size = Vector3.new(1, 1, 1)
  3948. orb.Transparency = 0
  3949. orb.TopSurface = 0
  3950. orb.BottomSurface = 0
  3951. local orbm = Instance.new("SpecialMesh", orb)
  3952. orbm.MeshType = "Sphere"
  3953. orbm.Name = "SizeMesh"
  3954. orbm.Scale = vt(2,2,2)
  3955. local a = Instance.new("Part",workspace)
  3956. a.Name = "Direction"
  3957. a.Anchored = true
  3958. a.BrickColor = bc("Bright red")
  3959. a.Material = "Neon"
  3960. a.Transparency = 1
  3961. a.CanCollide = false
  3962. local ray = Ray.new(
  3963. sorb.CFrame.p, -- origin
  3964. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3965. )
  3966. local ignore = sorb
  3967. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3968. a.BottomSurface = 10
  3969. a.TopSurface = 10
  3970. local distance = (sorb.CFrame.p - position).magnitude
  3971. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3972. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3973. orb.CFrame = a.CFrame
  3974. a:Destroy()
  3975. local bv = Instance.new("BodyVelocity")
  3976. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3977. bv.velocity = orb.CFrame.lookVector*100
  3978. bv.Parent = orb
  3979. local hitted = false
  3980. game:GetService("Debris"):AddItem(orb, 10)
  3981. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3982. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3983. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3984. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3985. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3986. coroutine.resume(coroutine.create(function()
  3987. while true do
  3988. swait(1)
  3989. if orb.Parent ~= nil and hitted == false then
  3990. 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)
  3991. elseif orb.Parent == nil then
  3992. break
  3993. end
  3994. end
  3995. end))
  3996. coroutine.resume(coroutine.create(function()
  3997. swait(1)
  3998. orb.Touched:connect(function(hit)
  3999. if hitted == false then
  4000. hitted = true
  4001. game:GetService("Debris"):AddItem(orb, 5)
  4002. orb.Transparency = 1
  4003. orb.Anchored = true
  4004. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4005. elocacenter.Anchored = true
  4006. elocacenter.CFrame = orb.CFrame
  4007. elocacenter.Orientation = vt(0,0,0)
  4008. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4009. eloca1.Anchored = true
  4010. eloca1.CFrame = elocacenter.CFrame
  4011. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4012. eloca2.Anchored = true
  4013. eloca2.CFrame = elocacenter.CFrame
  4014. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4015. eloca3.Anchored = true
  4016. eloca3.CFrame = elocacenter.CFrame
  4017. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4018. eloca4.Anchored = true
  4019. eloca4.CFrame = elocacenter.CFrame
  4020. local lookavec = 0
  4021. local speeds = 0
  4022. CameraEnshaking(1,1)
  4023. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4024. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4025. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4026. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4027. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4028. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4029. for i = 0, 99 do
  4030. swait()
  4031. lookavec = lookavec + 1
  4032. speeds = speeds + 0.1
  4033. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4034. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4035. 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)
  4036.  
  4037. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4038. 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)
  4039.  
  4040. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4041. 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)
  4042.  
  4043. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4044. 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)
  4045. end
  4046.  
  4047. for i = 0, 149 do
  4048. swait()
  4049. speeds = speeds + 0.1
  4050. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4051. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4052. 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)
  4053.  
  4054. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4055. 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)
  4056.  
  4057. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4058. 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)
  4059.  
  4060. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4061. 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)
  4062. end
  4063. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4064. if v:FindFirstChild('Head') then
  4065. dmg(v)
  4066. end
  4067. end
  4068. CameraEnshaking(7,30)
  4069. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4070. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4071. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4072. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4073. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4074. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4075. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4076. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4077. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4078. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4079. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4080. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4081. for i = 0, 24 do
  4082. 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)
  4083. 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)
  4084. 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)
  4085. 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)
  4086. end
  4087. coroutine.resume(coroutine.create(function()
  4088. for i = 0, 499 do
  4089. swait(1)
  4090. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4091. 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)
  4092. end
  4093. elocacenter:Destroy()
  4094. eloca1:Destroy()
  4095. eloca2:Destroy()
  4096. eloca3:Destroy()
  4097. eloca4:Destroy()
  4098. end))
  4099. end
  4100. end)
  4101. end))
  4102. attack = false
  4103. end
  4104.  
  4105.  
  4106. function UniversalCollapse()
  4107. attack = true
  4108. local speedearn = 0
  4109. hum.WalkSpeed = 0
  4110. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4111. for i = 0, 10, 0.1 do
  4112. swait()
  4113. speedearn = speedearn + 0.1
  4114. 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)
  4115. 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)
  4116. 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)
  4117. 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)
  4118. 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)
  4119. 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)
  4120. 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)
  4121. 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)
  4122. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4123. 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)
  4124. 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)
  4125. end
  4126. CameraEnshaking(5,45)
  4127. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4128. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4129. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4130. if v:FindFirstChild('Head') then
  4131. dmg(v)
  4132. end
  4133. end
  4134. hum.WalkSpeed = storehumanoidWS
  4135. attack = false
  4136. end
  4137. function ChaosBegone()
  4138. attack = true
  4139. local speedearn = 0
  4140. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4141. for i = 0, 10, 0.1 do
  4142. swait()
  4143. speedearn = speedearn + 0.1
  4144. 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)
  4145. 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)
  4146. 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)
  4147. 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)
  4148. 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)
  4149. 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)
  4150. 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)
  4151. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4152. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4153. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4154. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4155. end
  4156. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4157. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4158. CameraEnshaking(5,25)
  4159. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4160. if v:FindFirstChild('Head') then
  4161. dmg(v)
  4162. end
  4163. end
  4164. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4165. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4166. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4167. for i = 0, 3, 0.1 do
  4168. swait()
  4169. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4170. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4171. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4172. 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))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4173. 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)
  4174. 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)
  4175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4177. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4178. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4179. end
  4180. attack = false
  4181. end
  4182.  
  4183. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4184. local orb = Instance.new("Part", char)
  4185. orb.Anchored = true
  4186. orb.BrickColor = color
  4187. orb.CanCollide = false
  4188. orb.FormFactor = 3
  4189. orb.Name = "Ring"
  4190. orb.Material = "Neon"
  4191. orb.Size = Vector3.new(1, 1, 1)
  4192. orb.Transparency = 0
  4193. orb.TopSurface = 0
  4194. orb.BottomSurface = 0
  4195. local orbm = Instance.new("SpecialMesh", orb)
  4196. orbm.MeshType = "Sphere"
  4197. orb.CFrame = positted
  4198. orbm.Name = "SizeMesh"
  4199. orbm.Scale = vt(1,1,1)
  4200. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4201. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4202. --[[for i = 0, 2 do
  4203. 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)
  4204. end]]--
  4205. coroutine.resume(coroutine.create(function()
  4206. wait(timer)
  4207. CameraEnshaking(3,ShakePower)
  4208. orb.Transparency = 1
  4209. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4210. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4211. --[[for i = 0, 4 do
  4212. 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)
  4213. end]]--
  4214. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4215. wait(3)
  4216. orb:Destroy()
  4217. end))
  4218. end
  4219.  
  4220. function orb_spawn(positted,timer)
  4221. local randomcol = math.random(1,2)
  4222. local orb = Instance.new("Part", char)
  4223. orb.Anchored = true
  4224. if randomcol == 1 then
  4225. orb.BrickColor = BrickColor.new("White")
  4226. elseif randomcol == 2 then
  4227. orb.BrickColor = BrickColor.new("Really black")
  4228. end
  4229. orb.CanCollide = false
  4230. orb.FormFactor = 3
  4231. orb.Name = "Ring"
  4232. orb.Material = "Neon"
  4233. orb.Size = Vector3.new(1, 1, 1)
  4234. orb.Transparency = 0
  4235. orb.TopSurface = 0
  4236. orb.BottomSurface = 0
  4237. local orbm = Instance.new("SpecialMesh", orb)
  4238. orbm.MeshType = "Sphere"
  4239. orb.CFrame = positted
  4240. orbm.Name = "SizeMesh"
  4241. orbm.Scale = vt(1,1,1)
  4242. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4243. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4244. for i = 0, 2 do
  4245. 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)
  4246. end
  4247. coroutine.resume(coroutine.create(function()
  4248. wait(timer)
  4249. CameraEnshaking(3,2)
  4250. orb.Transparency = 1
  4251. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4252. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4253. for i = 0, 4 do
  4254. 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)
  4255. end
  4256. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4257. wait(3)
  4258. orb:Destroy()
  4259. end))
  4260. end
  4261.  
  4262. function scattercorrupt()
  4263. attack = true
  4264. local rot = 0
  4265. local randomrotations = math.random(1,2)
  4266. local lookv = 2.5
  4267. local power = 5
  4268. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4269. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4270. for i = 0, 9 do
  4271. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4272. end
  4273. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4274. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4275. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4276. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4277. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4278. local hite = Instance.new("Part", char)
  4279. hite.Anchored = true
  4280. hite.CanCollide = false
  4281. hite.FormFactor = 3
  4282. hite.Name = "Ring"
  4283. hite.Material = "Neon"
  4284. hite.Size = Vector3.new(1, 1, 1)
  4285. hite.Transparency = 1
  4286. hite.TopSurface = 0
  4287. hite.BottomSurface = 0
  4288. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4289. local rem = Instance.new("Part", char)
  4290. rem.Anchored = true
  4291. rem.CanCollide = false
  4292. rem.FormFactor = 3
  4293. rem.Name = "Ring"
  4294. rem.Material = "Neon"
  4295. rem.Size = Vector3.new(1, 1, 1)
  4296. rem.Transparency = 1
  4297. rem.TopSurface = 0
  4298. rem.BottomSurface = 0
  4299. rem.CFrame = hite.CFrame
  4300. local rem2 = rem:Clone()
  4301. rem2.Parent = char
  4302. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4303. local rem3 = rem:Clone()
  4304. rem3.Parent = char
  4305. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4306. local rem4 = rem:Clone()
  4307. rem4.Parent = char
  4308. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4309. hite:Destroy()
  4310. coroutine.resume(coroutine.create(function()
  4311. for i = 0, 24 do
  4312. swait(1)
  4313. if randomrotations == 1 then
  4314. rot = rot + 1
  4315. elseif randomrotations == 2 then
  4316. rot = rot - 1
  4317. end
  4318. power = power + 0.5
  4319. lookv = lookv + 7.5
  4320. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4321. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4322. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4323. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4324. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4325. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4326. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4327. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4328. end
  4329. end))
  4330. attack = false
  4331. end
  4332. function yinyangi()
  4333. attack = true
  4334. for i = 0, 2, 0.1 do
  4335. swait()
  4336. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4337. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4338. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4339. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4342. end
  4343. local bv = Instance.new("BodyVelocity")
  4344. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4345. bv.velocity = root.CFrame.lookVector*175
  4346. bv.Parent = root
  4347. for Rotations = 0, 9 do
  4348. for i = 0, 1, 0.5 do
  4349. swait()
  4350. bv.velocity = root.CFrame.lookVector*175
  4351. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4352. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4353. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4354. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4355. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4356. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4357. end
  4358. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4359. for i = 0, 1, 0.5 do
  4360. swait()
  4361. bv.velocity = root.CFrame.lookVector*175
  4362. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4363. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4364. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4365. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4366. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4367. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4368. end
  4369. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4370. for i = 0, 1, 0.5 do
  4371. swait()
  4372. bv.velocity = root.CFrame.lookVector*175
  4373. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4374. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4375. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4376. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4377. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4378. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4379. end
  4380. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4381. for i = 0, 1, 0.5 do
  4382. swait()
  4383. bv.velocity = root.CFrame.lookVector*175
  4384. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4385. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4388. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4389. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4390. end
  4391. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4392. end
  4393. bv:Destroy()
  4394. attack = false
  4395. end
  4396.  
  4397. function Wip()
  4398. attack = true
  4399.  
  4400. local rngb = Instance.new("Part", char)
  4401. rngb.Anchored = true
  4402. rngb.BrickColor = origcolor
  4403. rngb.CanCollide = false
  4404. rngb.FormFactor = 3
  4405. rngb.Name = "Ring"
  4406. rngb.Material = "Neon"
  4407. rngb.Size = Vector3.new(1, 0.05, 1)
  4408. rngb.Transparency = 1
  4409. rngb.TopSurface = 0
  4410. rngb.BottomSurface = 0
  4411. local rngmb = Instance.new("SpecialMesh", rngb)
  4412. rngmb.MeshType = "Brick"
  4413. rngmb.Name = "SizeMesh"
  4414. rngmb.Scale = vt(0,1,0)
  4415.  
  4416. local orb = rngb:Clone()
  4417. orb.Parent = char
  4418. orb.Transparency = 0
  4419. orb.BrickColor = BrickColor.new("White")
  4420. orb.Size = vt(1,1,1)
  4421. local orbmish = orb.SizeMesh
  4422. orbmish.Scale = vt(0,0,0)
  4423. orbmish.MeshType = "Sphere"
  4424.  
  4425. local orbe = rngb:Clone()
  4426. orbe.Parent = char
  4427. orbe.Transparency = 0.5
  4428. orbe.BrickColor = BrickColor.new("New Yeller")
  4429. orbe.Size = vt(1,1,1)
  4430. local orbmish2 = orbe.SizeMesh
  4431. orbmish2.Scale = vt(0,0,0)
  4432. orbmish2.MeshType = "Sphere"
  4433. orbe.Color = Color3.new(r/255,g/255,b/255)
  4434.  
  4435. rngb:Destroy()
  4436. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4437. local scaled = 1
  4438. for i = 0,5,0.1 do
  4439. swait()
  4440. scaled = scaled - 0.02
  4441. if rainbowmode == true then
  4442. orbe.Color = Color3.new(r/255,g/255,b/255)
  4443. end
  4444. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4445. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4446. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4447. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4448. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4449. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4450. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4451. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4452. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4453. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4454. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4455. RootPart.CFrame = FaceMouse()[1]
  4456. end]]--
  4457. for i = 0,5,0.1 do
  4458. swait()
  4459. if rainbowmode == true then
  4460. orbe.Color = Color3.new(r/255,g/255,b/255)
  4461. end
  4462. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4463. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4464. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4465. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4466. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4467. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4468. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4469. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4470. RootPart.CFrame = FaceMouse()[1]
  4471. end
  4472. orbe.Transparency = 1
  4473. orb.Transparency = 1
  4474. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4475. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4476. local a = Instance.new("Part",Character)
  4477. a.Name = "Direction"
  4478. a.Anchored = true
  4479. a.BrickColor = bc("White")
  4480. a.Material = "Neon"
  4481. a.Transparency = 0
  4482. a.Shape = "Cylinder"
  4483. a.CanCollide = false
  4484. local a2 = Instance.new("Part",Character)
  4485. a2.Name = "Direction"
  4486. a2.Anchored = true
  4487. a2.BrickColor = bc("New Yeller")
  4488. a2.Color = Color3.new(r/255,g/255,b/255)
  4489. a2.Material = "Neon"
  4490. a2.Transparency = 0.5
  4491. a2.Shape = "Cylinder"
  4492. a2.CanCollide = false
  4493. local ba = Instance.new("Part",Character)
  4494. ba.Name = "HitDirect"
  4495. ba.Anchored = true
  4496. ba.BrickColor = bc("Cool yellow")
  4497. ba.Material = "Neon"
  4498. ba.Transparency = 1
  4499. ba.CanCollide = false
  4500. local ray = Ray.new(
  4501. orb.CFrame.p, -- origin
  4502. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4503. )
  4504. local ignore = Character
  4505. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4506. a.BottomSurface = 10
  4507. a.TopSurface = 10
  4508. a2.BottomSurface = 10
  4509. a2.TopSurface = 10
  4510. local distance = (orb.CFrame.p - position).magnitude
  4511. a.Size = Vector3.new(distance, 1, 1)
  4512. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4513. a2.Size = Vector3.new(distance, 1, 1)
  4514. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4515. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4516. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4517. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4518. game:GetService("Debris"):AddItem(a, 20)
  4519. game:GetService("Debris"):AddItem(a2, 20)
  4520. game:GetService("Debris"):AddItem(ba, 20)
  4521. local msh = Instance.new("SpecialMesh",a)
  4522. msh.MeshType = "Cylinder"
  4523. msh.Scale = vt(1,5*5,5*5)
  4524. local msh2 = Instance.new("SpecialMesh",a2)
  4525. msh2.MeshType = "Cylinder"
  4526. msh2.Scale = vt(1,6*5,6*5)
  4527.  
  4528. for i = 0,10,0.1 do
  4529. swait()
  4530. CameraEnshaking(1,5)
  4531. a2.Color = Color3.new(r/255,g/255,b/255)
  4532. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4533. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4534. ray = Ray.new(
  4535. orb.CFrame.p, -- origin
  4536. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4537. )
  4538. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4539. distance = (orb.CFrame.p - position).magnitude
  4540. if typrot == 1 then
  4541. rotation = rotation + 2.5
  4542. elseif typrot == 2 then
  4543. rotation = rotation - 2.5
  4544. end
  4545. RootPart.CFrame = FaceMouse()[1]
  4546. a.Size = Vector3.new(distance, 1, 1)
  4547. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4548. a2.Size = Vector3.new(distance, 1, 1)
  4549. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4550. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4551. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4552. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4553. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4554. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4555. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4556. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4557. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4558. end
  4559. a:Destroy()
  4560. a2:Destroy()
  4561. ba:Destroy()
  4562. orb:Destroy()
  4563. orbe:Destroy()
  4564. attack = false
  4565. end
  4566. function HolyBarrier()
  4567. attack = true
  4568. shielding = true
  4569. for i = 0, 2, 0.1 do
  4570. swait()
  4571. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4572. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  4573. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4575. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4576. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4577. end
  4578. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4579. stash = Instance.new("Model",workspace)
  4580. local barrier = Instance.new("Part",stash)
  4581. barrier.Anchored = true
  4582. barrier.CanCollide = false
  4583. barrier.Size = Vector3.new(20,20,20)
  4584. barrier.CFrame = root.CFrame
  4585. barrier.Transparency = 0.6
  4586. barrier.BrickColor = MAINRUINCOLOR
  4587. barrier.Material = Enum.Material.Neon
  4588. barrier.Shape = Enum.PartType.Ball
  4589. barrier.CFrame = root.CFrame
  4590. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4591. Torso.Anchored = true
  4592. for i=1,50 do
  4593. local p = Instance.new("Part",stash)
  4594. p.Anchored = true
  4595. p.Transparency = 1
  4596. p.Size = Vector3.new(11,11,11)
  4597. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4598. end
  4599. repeat
  4600. swait(5)
  4601. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
  4602. until shielding == false
  4603. stash:Remove()
  4604. Torso.Anchored = false
  4605. shielding = false
  4606. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4607. attack = false
  4608. end
  4609. function Judgement()
  4610. attack = true
  4611. judgement = true
  4612. hum.WalkSpeed = 0
  4613. local p = Instance.new("Part",root)
  4614. p.Anchored = true
  4615. p.CanCollide = false
  4616. p.BrickColor = MAINRUINCOLOR
  4617. p.Material = Enum.Material.Neon
  4618. p.Size = Vector3.new(1,1,1)
  4619. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4620. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4621. local m = Instance.new("SpecialMesh",p)
  4622. m.MeshType = "Cylinder"
  4623. m.Scale = Vector3.new(2000,2,2)
  4624. local targ = Instance.new("Part",root)
  4625. targ.Anchored = true
  4626. targ.Transparency = 1
  4627. targ.CanCollide = false
  4628. targ.Size = Vector3.new(1,1,1)
  4629. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4630. local s = Instance.new("Sound",targ)
  4631. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4632. s.Looped = true
  4633. s.Pitch = 1.2
  4634. s.Volume = 3
  4635. spawn(function()
  4636. swait(15)
  4637. s:Play()
  4638. end)
  4639. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4640. for i = 1,15 do
  4641. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4642. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4643. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4644. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4645. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4646. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  4647. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  4648. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4649. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4650. m.Scale = m.Scale+Vector3.new(0,1,1)
  4651. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4652. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4653. swait()
  4654. end
  4655. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  4656. repeat
  4657. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4658. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4659. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4660. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4661. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4662. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4663. swait()
  4664. until judgement == false
  4665. for i =1,15 do
  4666. m.Scale = m.Scale-Vector3.new(1,1,1)
  4667. p.Transparency = i / 15
  4668. s.Pitch = s.Pitch - 0.4
  4669. swait()
  4670. end
  4671. p:Destroy()
  4672. hum.WalkSpeed = storehumanoidWS
  4673. attack = false
  4674. end
  4675.  
  4676. function UniversalSpark()
  4677. attack = true
  4678.  
  4679. local rngb = Instance.new("Part", char)
  4680. rngb.Anchored = true
  4681. rngb.BrickColor = origcolor
  4682. rngb.CanCollide = false
  4683. rngb.FormFactor = 3
  4684. rngb.Name = "Ring"
  4685. rngb.Material = "Neon"
  4686. rngb.Size = Vector3.new(1, 0.05, 1)
  4687. rngb.Transparency = 1
  4688. rngb.TopSurface = 0
  4689. rngb.BottomSurface = 0
  4690. local rngmb = Instance.new("SpecialMesh", rngb)
  4691. rngmb.MeshType = "Brick"
  4692. rngmb.Name = "SizeMesh"
  4693. rngmb.Scale = vt(0,1,0)
  4694.  
  4695. local orb = rngb:Clone()
  4696. orb.Parent = char
  4697. orb.Transparency = 0
  4698. orb.BrickColor = BrickColor.new("White")
  4699. orb.Size = vt(1,1,1)
  4700. local orbmish = orb.SizeMesh
  4701. orbmish.Scale = vt(0,0,0)
  4702. orbmish.MeshType = "Sphere"
  4703.  
  4704. local orbe = rngb:Clone()
  4705. orbe.Parent = char
  4706. orbe.Transparency = 0.5
  4707. orbe.BrickColor = BrickColor.new("New Yeller")
  4708. orbe.Size = vt(1,1,1)
  4709. local orbmish2 = orbe.SizeMesh
  4710. orbmish2.Scale = vt(0,0,0)
  4711. orbmish2.MeshType = "Sphere"
  4712. orbe.Color = Color3.new(r/255,g/255,b/255)
  4713.  
  4714. rngb:Destroy()
  4715. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4716. local scaled = 1
  4717. for i = 0,5,0.1 do
  4718. swait()
  4719. scaled = scaled - 0.02
  4720. if rainbowmode == true then
  4721. orbe.Color = Color3.new(r/255,g/255,b/255)
  4722. end
  4723. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4724. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4725. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4726. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4727. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4728. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4729. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4730. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4731. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4732. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4733. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4734. RootPart.CFrame = FaceMouse()[1]
  4735. end]]--
  4736. for i = 0,5,0.1 do
  4737. swait()
  4738. if rainbowmode == true then
  4739. orbe.Color = Color3.new(r/255,g/255,b/255)
  4740. end
  4741. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4742. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4743. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4744. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4745. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4746. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4747. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4748. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4749. RootPart.CFrame = FaceMouse()[1]
  4750. end
  4751. orbe.Transparency = 1
  4752. orb.Transparency = 1
  4753. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4754. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4755. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4756. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4757.  
  4758. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4759. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4760. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4761. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4762. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4763. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4764. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4765. local xd= Instance.new("Sound",char)
  4766. xd.SoundId = "rbxassetid://445796828"
  4767. xd.Pitch = 0.75
  4768. xd.Looped = true
  4769. xd.Volume = 1.25
  4770. xd:Play()
  4771. local a = Instance.new("Part",Character)
  4772. a.Name = "Direction"
  4773. a.Anchored = true
  4774. a.BrickColor = bc("Alder")
  4775. a.Color = MAINRUINCOLOR.Color
  4776. a.Material = "Neon"
  4777. a.Transparency = 0.5
  4778. a.Shape = "Cylinder"
  4779. a.CanCollide = false
  4780. local a2 = Instance.new("Part",Character)
  4781. a2.Name = "Direction"
  4782. a2.Anchored = true
  4783. a2.BrickColor = bc("New Yeller")
  4784. a2.Color = MAINRUINCOLOR.Color
  4785. a2.Material = "Neon"
  4786. a2.Transparency = 0.5
  4787. a2.Shape = "Cylinder"
  4788. a2.CanCollide = false
  4789. local ba = Instance.new("Part",Character)
  4790. ba.Name = "HitDirect"
  4791. ba.Anchored = true
  4792. ba.BrickColor = bc("Cool yellow")
  4793. ba.Material = "Neon"
  4794. ba.Transparency = 1
  4795. ba.CanCollide = false
  4796. local ray = Ray.new(
  4797. orb.CFrame.p, -- origin
  4798. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4799. )
  4800. local ignore = Character
  4801. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4802. a.BottomSurface = 10
  4803. a.TopSurface = 10
  4804. a2.BottomSurface = 10
  4805. a2.TopSurface = 10
  4806. local distance = (orb.CFrame.p - position).magnitude
  4807. a.Size = Vector3.new(distance, 1, 1)
  4808. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4809. a2.Size = Vector3.new(distance, 1, 1)
  4810. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4811. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4812. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4813. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4814. game:GetService("Debris"):AddItem(a, 60)
  4815. game:GetService("Debris"):AddItem(a2, 60)
  4816. game:GetService("Debris"):AddItem(ba, 60)
  4817. local outerscale = 0
  4818. local msh = Instance.new("SpecialMesh",a)
  4819. msh.MeshType = "Cylinder"
  4820. msh.Scale = vt(1,0,0)
  4821. local msh2 = Instance.new("SpecialMesh",a2)
  4822. msh2.MeshType = "Cylinder"
  4823. msh2.Scale = vt(1,0,0)
  4824. for i = 0,2,0.1 do
  4825. swait()
  4826. CameraEnshaking(1,1)
  4827. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4828. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4829. outerscale = outerscale - 0.015
  4830. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4831. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4832. ray = Ray.new(
  4833. orb.CFrame.p, -- origin
  4834. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4835. )
  4836. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4837. distance = (orb.CFrame.p - position).magnitude
  4838. if typrot == 1 then
  4839. rotation = rotation + 2.5
  4840. elseif typrot == 2 then
  4841. rotation = rotation - 2.5
  4842. end
  4843. RootPart.CFrame = FaceMouse()[1]
  4844. a.Size = Vector3.new(distance, 1, 1)
  4845. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4846. a2.Size = Vector3.new(distance, 1, 1)
  4847. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4848. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4849. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4850. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4851. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4852. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4853. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4854. end
  4855. for z = 0, 2 do
  4856. for i = 0,4,0.1 do
  4857. swait()
  4858. CameraEnshaking(1,1)
  4859. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4860. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4861. outerscale = outerscale + 0.015
  4862. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4863. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4864. ray = Ray.new(
  4865. orb.CFrame.p, -- origin
  4866. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4867. )
  4868. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4869. distance = (orb.CFrame.p - position).magnitude
  4870. if typrot == 1 then
  4871. rotation = rotation + 2.5
  4872. elseif typrot == 2 then
  4873. rotation = rotation - 2.5
  4874. end
  4875. RootPart.CFrame = FaceMouse()[1]
  4876. a.Size = Vector3.new(distance, 1, 1)
  4877. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4878. a2.Size = Vector3.new(distance, 1, 1)
  4879. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4880. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4881. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4882. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4883. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4884. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4885. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4886. end
  4887. for i = 0,4,0.1 do
  4888. swait()
  4889. CameraEnshaking(1,1)
  4890. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4891. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4892. outerscale = outerscale - 0.015
  4893. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4894. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4895. ray = Ray.new(
  4896. orb.CFrame.p, -- origin
  4897. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4898. )
  4899. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4900. distance = (orb.CFrame.p - position).magnitude
  4901. if typrot == 1 then
  4902. rotation = rotation + 2.5
  4903. elseif typrot == 2 then
  4904. rotation = rotation - 2.5
  4905. end
  4906. RootPart.CFrame = FaceMouse()[1]
  4907. a.Size = Vector3.new(distance, 1, 1)
  4908. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4909. a2.Size = Vector3.new(distance, 1, 1)
  4910. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4911. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4912. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4913. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4914. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4915. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4916. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4917. end
  4918. end
  4919. for i = 0,4,0.1 do
  4920. swait()
  4921. CameraEnshaking(1,1)
  4922. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4923. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4924. xd.Volume = xd.Volume - 0.025
  4925. a.Transparency = a.Transparency + 0.025
  4926. a2.Transparency = a2.Transparency + 0.025
  4927. outerscale = outerscale - 0.015
  4928. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4929. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4930. ray = Ray.new(
  4931. orb.CFrame.p, -- origin
  4932. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4933. )
  4934. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4935. distance = (orb.CFrame.p - position).magnitude
  4936. if typrot == 1 then
  4937. rotation = rotation + 2.5
  4938. elseif typrot == 2 then
  4939. rotation = rotation - 2.5
  4940. end
  4941. RootPart.CFrame = FaceMouse()[1]
  4942. a.Size = Vector3.new(distance, 1, 1)
  4943. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4944. a2.Size = Vector3.new(distance, 1, 1)
  4945. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4946. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4947. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4948. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4949. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4950. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4951. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4952. end
  4953. xd:Destroy()
  4954. a:Destroy()
  4955. a2:Destroy()
  4956. ba:Destroy()
  4957. orb:Destroy()
  4958. orbe:Destroy()
  4959. attack = false
  4960. end
  4961.  
  4962.  
  4963. function resetmode()
  4964. rainbowmode = false
  4965. chaosmode = false
  4966. tl1.Enabled = false
  4967. tl2.Enabled = false
  4968. tl3.Enabled = false
  4969. ModeOfGlitch = 1
  4970. storehumanoidWS = 16
  4971. coroutine.resume(coroutine.create(function()
  4972. attack = true
  4973. hum.WalkSpeed = 0
  4974. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4975. for i = 0,4,0.1 do
  4976. swait()
  4977. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  4978. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  4979. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  4980. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  4981. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  4982. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4983. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4984. end
  4985. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4986. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4987. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4988. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4989. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4990. CameraEnshaking(5,2.5)
  4991. MAINRUINCOLOR = BrickColor.new("Really red")
  4992. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4993. for i = 0, 49 do
  4994. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  4995. end
  4996. for i = 0,3,0.1 do
  4997. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4998. end
  4999. for i, v in pairs(mw2:GetChildren()) do
  5000. if v:IsA("Part") then
  5001. v.BrickColor = BrickColor.new("Really red")
  5002. v.Material = "Neon"
  5003. end
  5004. end
  5005. for i, v in pairs(mw1:GetChildren()) do
  5006. if v:IsA("Part") then
  5007. v.Transparency = 1
  5008. v.BrickColor = BrickColor.new("Really red")
  5009. v.Material = "Neon"
  5010. end
  5011. end
  5012. for i, v in pairs(m:GetChildren()) do
  5013. if v:IsA("Part") then
  5014. v.BrickColor = BrickColor.new("Really black")
  5015. v.Material = "Glass"
  5016. end
  5017. end
  5018. for i, v in pairs(m2:GetChildren()) do
  5019. if v:IsA("Part") then
  5020. v.BrickColor = BrickColor.new("Crimson")
  5021. v.Material = "Granite"
  5022. end
  5023. end
  5024. for i, v in pairs(m3:GetChildren()) do
  5025. if v:IsA("Part") then
  5026. v.BrickColor = BrickColor.new("Really red")
  5027. v.Material = "Neon"
  5028. end
  5029. end
  5030. for i, v in pairs(extrawingmod1:GetChildren()) do
  5031. if v:IsA("Part") then
  5032. v.Transparency = 1
  5033. v.BrickColor = BrickColor.new("White")
  5034. v.Material = "Neon"
  5035. end
  5036. end
  5037. for i, v in pairs(extrawingmod2:GetChildren()) do
  5038. if v:IsA("Part") then
  5039. v.Transparency = 1
  5040. v.BrickColor = BrickColor.new("White")
  5041. v.Material = "Neon"
  5042. end
  5043. end
  5044. for i = 0,2,0.1 do
  5045. swait()
  5046. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  5047. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  5048. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5049. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5050. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5051. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5052. end
  5053. hum.WalkSpeed = storehumanoidWS
  5054. attack = false
  5055. end))
  5056. newTheme("rbxassetid://614032233",48.6,1,0.3)
  5057. end
  5058.  
  5059. function attackone()
  5060. attack = true
  5061. for i = 0,1,0.1 do
  5062. swait()
  5063. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  5064. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  5065. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5066. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5067. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  5068. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  5069. end
  5070. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  5071.  
  5072. local hitb = Instance.new("Part", char)
  5073. hitb.Anchored = true
  5074. hitb.CanCollide = false
  5075. hitb.FormFactor = 3
  5076. hitb.Name = "Ring"
  5077. hitb.Material = "Neon"
  5078. hitb.Size = Vector3.new(1, 1, 1)
  5079. hitb.Transparency = 1
  5080. hitb.TopSurface = 0
  5081. hitb.BottomSurface = 0
  5082. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5083. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5084. hitb:Destroy()
  5085. for i = 0,1,0.1 do
  5086. swait()
  5087. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5088. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5089. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5090. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5091. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  5092. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  5093. end
  5094.  
  5095. attack = false
  5096. end
  5097.  
  5098. function attacktwo()
  5099. attack = true
  5100. for i = 0,1,0.1 do
  5101. swait()
  5102. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5103. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5104. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5105. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5106. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  5107. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  5108. end
  5109. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5110. local hitb = Instance.new("Part", char)
  5111. hitb.Anchored = true
  5112. hitb.CanCollide = false
  5113. hitb.FormFactor = 3
  5114. hitb.Name = "Ring"
  5115. hitb.Material = "Neon"
  5116. hitb.Size = Vector3.new(1, 1, 1)
  5117. hitb.Transparency = 1
  5118. hitb.TopSurface = 0
  5119. hitb.BottomSurface = 0
  5120. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5121. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5122. hitb:Destroy()
  5123. for i = 0,1,0.1 do
  5124. swait()
  5125. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5126. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5127. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5128. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5129. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  5130. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  5131. end
  5132. attack = false
  5133. end
  5134.  
  5135. function attackthree()
  5136. attack = true
  5137. for i = 0,1,0.1 do
  5138. swait()
  5139. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5140. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5141. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5142. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5143. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  5144. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  5145. end
  5146. local distlook = 5
  5147. for i = 0, 4 do
  5148. swait(2)
  5149. CameraEnshaking(2,3)
  5150. local hite = Instance.new("Part", char)
  5151. hite.Anchored = true
  5152. hite.CanCollide = false
  5153. hite.FormFactor = 3
  5154. hite.Name = "Ring"
  5155. hite.Material = "Neon"
  5156. hite.Size = Vector3.new(1, 1, 1)
  5157. hite.Transparency = 1
  5158. hite.TopSurface = 0
  5159. hite.BottomSurface = 0
  5160. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5161. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5162. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5163. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5164. for i = 0, 2 do
  5165. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5166. sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5167. sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5168. end
  5169. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5170. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5171. game:GetService("Debris"):AddItem(hite, 5)
  5172. distlook = distlook + 10
  5173. end
  5174. attack = false
  5175. end
  5176.  
  5177. local ActiveGia = false
  5178. function THEHELLITSTHATBIG()
  5179. ActiveGia = true
  5180. attack = true
  5181. hum.WalkSpeed = 0
  5182. for i = 0,2,0.1 do
  5183. swait()
  5184. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5185. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5186. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5187. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5188. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5189. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5190. end
  5191. for i = 0,1,0.1 do
  5192. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5193. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5194. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5195. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5196. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5197. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5198. end
  5199. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5200. secrleg.Transparency = 0.5
  5201. seclleg.Transparency = 0.5
  5202. secrarm.Transparency = 0.5
  5203. seclarm.Transparency = 0.5
  5204. seched.Transparency = 0.5
  5205. sectors.Transparency = 0.5
  5206. for i = 0,25,0.1 do
  5207. swait()
  5208. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*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.1,MAINRUINCOLOR,-10)
  5209. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5210. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5211. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5212. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5213. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5214. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5215. end
  5216. --[[secrleg.Transparency = 1
  5217. seclleg.Transparency = 1
  5218. secrarm.Transparency = 1
  5219. seclarm.Transparency = 1
  5220. seched.Transparency = 1
  5221. sectors.Transparency = 1]]--
  5222. torsweld.Part0 = root
  5223. hum.WalkSpeed = storehumanoidWS
  5224. attack = false
  5225. end
  5226.  
  5227. function removelol()
  5228. ActiveGia = false
  5229. attack = true
  5230. hum.WalkSpeed = 0
  5231. for i = 0,2,0.1 do
  5232. swait()
  5233. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5234. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5235. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5236. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5237. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5238. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5239. end
  5240. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5241. for i = 0,25,0.1 do
  5242. swait()
  5243. secrleg.Transparency = secrleg.Transparency + 0.00225
  5244. seclleg.Transparency = secrleg.Transparency
  5245. secrarm.Transparency = secrleg.Transparency
  5246. seclarm.Transparency = secrleg.Transparency
  5247. seched.Transparency = secrleg.Transparency
  5248. sectors.Transparency = secrleg.Transparency
  5249. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*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.1,MAINRUINCOLOR,-10)
  5250. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5251. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5252. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5253. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5254. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5255. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5256. end
  5257. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5258. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5259. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5260. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5261. secrleg.Transparency = 1
  5262. seclleg.Transparency = 1
  5263. secrarm.Transparency = 1
  5264. seclarm.Transparency = 1
  5265. seched.Transparency = 1
  5266. sectors.Transparency = 1
  5267. torsweld.Part0 = root
  5268. hum.WalkSpeed = storehumanoidWS
  5269. attack = false
  5270. end
  5271.  
  5272. function FinalCalamity()
  5273. end
  5274.  
  5275. local attacktype = 1
  5276. mouse.Button1Down:connect(function()
  5277. if attack == false and attacktype == 1 then
  5278. attacktype = 2
  5279. attackone()
  5280. elseif attack == false and attacktype == 2 then
  5281. attacktype = 3
  5282. attacktwo()
  5283. elseif attack == false and attacktype == 3 then
  5284. attacktype = 1
  5285. attackthree()
  5286. elseif attack == false and attacktype == 4 then
  5287. attacktype = 1
  5288. --attackfour()
  5289. end
  5290. end)
  5291. mouse.KeyDown:connect(function(k)
  5292. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5293. ModeOfGlitch = 2
  5294. storehumanoidWS = 16
  5295. hum.WalkSpeed = 16
  5296. rainbowmode = false
  5297. chaosmode = false
  5298. tl1.Enabled = false
  5299. tl2.Enabled = false
  5300. tl3.Enabled = false
  5301. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5302. newTheme("rbxassetid://1539245059",0,1,0.3)
  5303. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5304. for i, v in pairs(mw2:GetChildren()) do
  5305. if v:IsA("Part") then
  5306. v.BrickColor = MAINRUINCOLOR
  5307. v.Material = "Neon"
  5308. end
  5309. end
  5310. for i, v in pairs(mw1:GetChildren()) do
  5311. if v:IsA("Part") then
  5312. v.Transparency = 1
  5313. v.BrickColor = MAINRUINCOLOR
  5314. v.Material = "Neon"
  5315. end
  5316. end
  5317. for i, v in pairs(m:GetChildren()) do
  5318. if v:IsA("Part") then
  5319. v.BrickColor = BrickColor.new("White")
  5320. v.Material = "Ice"
  5321. end
  5322. end
  5323. for i, v in pairs(m2:GetChildren()) do
  5324. if v:IsA("Part") then
  5325. v.BrickColor = BrickColor.new("Pastel light blue")
  5326. v.Material = "Glass"
  5327. end
  5328. end
  5329. for i, v in pairs(m3:GetChildren()) do
  5330. if v:IsA("Part") then
  5331. v.BrickColor = BrickColor.new("Toothpaste")
  5332. v.Material = "Neon"
  5333. end
  5334. end
  5335. for i, v in pairs(extrawingmod1:GetChildren()) do
  5336. if v:IsA("Part") then
  5337. v.Transparency = 1
  5338. v.BrickColor = BrickColor.new("White")
  5339. v.Material = "Neon"
  5340. end
  5341. end
  5342. for i, v in pairs(extrawingmod2:GetChildren()) do
  5343. if v:IsA("Part") then
  5344. v.Transparency = 1
  5345. v.BrickColor = BrickColor.new("White")
  5346. v.Material = "Neon"
  5347. end
  5348. end
  5349. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5350. resetmode()
  5351. end
  5352. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5353. ModeOfGlitch = 3
  5354. storehumanoidWS = 16
  5355. hum.WalkSpeed = 16
  5356. rainbowmode = false
  5357. chaosmode = false
  5358. tl1.Enabled = false
  5359. tl2.Enabled = false
  5360. tl3.Enabled = false
  5361. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5362. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5363. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5364. for i, v in pairs(mw2:GetChildren()) do
  5365. if v:IsA("Part") then
  5366. v.BrickColor = MAINRUINCOLOR
  5367. v.Material = "Neon"
  5368. end
  5369. end
  5370. for i, v in pairs(mw1:GetChildren()) do
  5371. if v:IsA("Part") then
  5372. v.Transparency = 1
  5373. v.BrickColor = MAINRUINCOLOR
  5374. v.Material = "Neon"
  5375. end
  5376. end
  5377. for i, v in pairs(m:GetChildren()) do
  5378. if v:IsA("Part") then
  5379. v.BrickColor = BrickColor.new("Black")
  5380. v.Material = "Ice"
  5381. end
  5382. end
  5383. for i, v in pairs(m2:GetChildren()) do
  5384. if v:IsA("Part") then
  5385. v.BrickColor = BrickColor.new("Dark indigo")
  5386. v.Material = "Glass"
  5387. end
  5388. end
  5389. for i, v in pairs(m3:GetChildren()) do
  5390. if v:IsA("Part") then
  5391. v.BrickColor = BrickColor.new("Royal purple")
  5392. v.Material = "Neon"
  5393. end
  5394. end
  5395. for i, v in pairs(extrawingmod1:GetChildren()) do
  5396. if v:IsA("Part") then
  5397. v.Transparency = 1
  5398. v.BrickColor = BrickColor.new("White")
  5399. v.Material = "Neon"
  5400. end
  5401. end
  5402. for i, v in pairs(extrawingmod2:GetChildren()) do
  5403. if v:IsA("Part") then
  5404. v.Transparency = 1
  5405. v.BrickColor = BrickColor.new("White")
  5406. v.Material = "Neon"
  5407. end
  5408. end
  5409. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5410. resetmode()
  5411. end
  5412. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5413. ModeOfGlitch = 4
  5414. storehumanoidWS = 16
  5415. hum.WalkSpeed = 16
  5416. rainbowmode = false
  5417. chaosmode = true
  5418. tl1.Enabled = true
  5419. tl2.Enabled = true
  5420. tl3.Enabled = true
  5421. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5422. newTheme("rbxassetid://1369263130",0,1,1)
  5423. MAINRUINCOLOR = BrickColor.new("Black")
  5424. for i, v in pairs(mw2:GetChildren()) do
  5425. if v:IsA("Part") then
  5426. v.BrickColor = MAINRUINCOLOR
  5427. v.Material = "Neon"
  5428. end
  5429. end
  5430. for i, v in pairs(mw1:GetChildren()) do
  5431. if v:IsA("Part") then
  5432. v.Transparency = 0.75
  5433. v.BrickColor = BrickColor.random()
  5434. v.Material = "Neon"
  5435. end
  5436. end
  5437. for i, v in pairs(m:GetChildren()) do
  5438. if v:IsA("Part") then
  5439. v.BrickColor = BrickColor.new("Black")
  5440. v.Material = "Neon"
  5441. end
  5442. end
  5443. for i, v in pairs(m2:GetChildren()) do
  5444. if v:IsA("Part") then
  5445. v.BrickColor = BrickColor.random()
  5446. v.Material = "Neon"
  5447. end
  5448. end
  5449. for i, v in pairs(m3:GetChildren()) do
  5450. if v:IsA("Part") then
  5451. v.BrickColor = BrickColor.new("Black")
  5452. v.Material = "Neon"
  5453. end
  5454. end
  5455. for i, v in pairs(extrawingmod1:GetChildren()) do
  5456. if v:IsA("Part") then
  5457. v.Transparency = 1
  5458. v.BrickColor = BrickColor.new("White")
  5459. v.Material = "Neon"
  5460. end
  5461. end
  5462. for i, v in pairs(extrawingmod2:GetChildren()) do
  5463. if v:IsA("Part") then
  5464. v.Transparency = 1
  5465. v.BrickColor = BrickColor.new("White")
  5466. v.Material = "Neon"
  5467. end
  5468. end
  5469. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5470. resetmode()
  5471. end
  5472. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5473. ModeOfGlitch = 5
  5474. storehumanoidWS = 16
  5475. hum.WalkSpeed = 16
  5476. rainbowmode = false
  5477. chaosmode = false
  5478. tl1.Enabled = true
  5479. tl2.Enabled = true
  5480. tl3.Enabled = true
  5481. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5482. newTheme("rbxassetid://661079869",0,1.02,1)
  5483. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5484. for i, v in pairs(mw2:GetChildren()) do
  5485. if v:IsA("Part") then
  5486. v.BrickColor = MAINRUINCOLOR
  5487. v.Material = "Neon"
  5488. end
  5489. end
  5490. for i, v in pairs(mw1:GetChildren()) do
  5491. if v:IsA("Part") then
  5492. v.Transparency = 0
  5493. v.BrickColor = MAINRUINCOLOR
  5494. v.Material = "Neon"
  5495. end
  5496. end
  5497. for i, v in pairs(m:GetChildren()) do
  5498. if v:IsA("Part") then
  5499. v.BrickColor = BrickColor.new("Cool yellow")
  5500. v.Material = "Ice"
  5501. end
  5502. end
  5503. for i, v in pairs(m2:GetChildren()) do
  5504. if v:IsA("Part") then
  5505. v.BrickColor = BrickColor.new("Bright yellow")
  5506. v.Material = "Ice"
  5507. end
  5508. end
  5509. for i, v in pairs(m3:GetChildren()) do
  5510. if v:IsA("Part") then
  5511. v.BrickColor = BrickColor.new("Bright yellow")
  5512. v.Material = "Neon"
  5513. end
  5514. end
  5515. for i, v in pairs(extrawingmod1:GetChildren()) do
  5516. if v:IsA("Part") then
  5517. v.Transparency = 1
  5518. v.BrickColor = BrickColor.new("White")
  5519. v.Material = "Neon"
  5520. end
  5521. end
  5522. for i, v in pairs(extrawingmod2:GetChildren()) do
  5523. if v:IsA("Part") then
  5524. v.Transparency = 1
  5525. v.BrickColor = BrickColor.new("White")
  5526. v.Material = "Neon"
  5527. end
  5528. end
  5529. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5530. resetmode()
  5531. end
  5532. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5533. ModeOfGlitch = 6
  5534. storehumanoidWS = 75
  5535. hum.WalkSpeed = 75
  5536. rainbowmode = false
  5537. chaosmode = false
  5538. tl1.Enabled = true
  5539. tl2.Enabled = true
  5540. tl3.Enabled = true
  5541. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  5542. newTheme("rbxassetid://395351949",0,1,1)
  5543. MAINRUINCOLOR = BrickColor.new("White")
  5544. for i, v in pairs(mw2:GetChildren()) do
  5545. if v:IsA("Part") then
  5546. v.BrickColor = MAINRUINCOLOR
  5547. v.Material = "Neon"
  5548. end
  5549. end
  5550. for i, v in pairs(mw1:GetChildren()) do
  5551. if v:IsA("Part") then
  5552. v.Transparency = 0
  5553. v.BrickColor = MAINRUINCOLOR
  5554. v.Material = "Neon"
  5555. end
  5556. end
  5557. for i, v in pairs(m:GetChildren()) do
  5558. if v:IsA("Part") then
  5559. v.BrickColor = BrickColor.new("White")
  5560. v.Material = "Ice"
  5561. end
  5562. end
  5563. for i, v in pairs(m2:GetChildren()) do
  5564. if v:IsA("Part") then
  5565. v.BrickColor = BrickColor.new("Really black")
  5566. v.Material = "Ice"
  5567. end
  5568. end
  5569. for i, v in pairs(m3:GetChildren()) do
  5570. if v:IsA("Part") then
  5571. v.BrickColor = BrickColor.new("White")
  5572. v.Material = "Neon"
  5573. end
  5574. end
  5575. for i, v in pairs(extrawingmod1:GetChildren()) do
  5576. if v:IsA("Part") then
  5577. v.Transparency = 1
  5578. v.BrickColor = BrickColor.new("White")
  5579. v.Material = "Neon"
  5580. end
  5581. end
  5582. for i, v in pairs(extrawingmod2:GetChildren()) do
  5583. if v:IsA("Part") then
  5584. v.Transparency = 1
  5585. v.BrickColor = BrickColor.new("White")
  5586. v.Material = "Neon"
  5587. end
  5588. end
  5589. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5590. resetmode()
  5591. end
  5592. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5593. ModeOfGlitch = 6127843
  5594. storehumanoidWS = 50
  5595. hum.WalkSpeed = 50
  5596. rainbowmode = true
  5597. chaosmode = false
  5598. tl1.Enabled = true
  5599. tl2.Enabled = true
  5600. tl3.Enabled = true
  5601. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  5602. newTheme("rbxassetid://147930134",0,1,1)
  5603. MAINRUINCOLOR = BrickColor.new("White")
  5604. for i, v in pairs(mw2:GetChildren()) do
  5605. if v:IsA("Part") then
  5606. v.BrickColor = MAINRUINCOLOR
  5607. v.Material = "Neon"
  5608. end
  5609. end
  5610. for i, v in pairs(mw1:GetChildren()) do
  5611. if v:IsA("Part") then
  5612. v.Transparency = 0
  5613. v.BrickColor = MAINRUINCOLOR
  5614. v.Material = "Neon"
  5615. end
  5616. end
  5617. for i, v in pairs(m:GetChildren()) do
  5618. if v:IsA("Part") then
  5619. v.BrickColor = BrickColor.new("White")
  5620. v.Material = "Neon"
  5621. end
  5622. end
  5623. for i, v in pairs(m2:GetChildren()) do
  5624. if v:IsA("Part") then
  5625. v.BrickColor = BrickColor.new("White")
  5626. v.Material = "Neon"
  5627. end
  5628. end
  5629. for i, v in pairs(m3:GetChildren()) do
  5630. if v:IsA("Part") then
  5631. v.BrickColor = BrickColor.new("White")
  5632. v.Material = "Neon"
  5633. end
  5634. end
  5635. for i, v in pairs(extrawingmod1:GetChildren()) do
  5636. if v:IsA("Part") then
  5637. v.Transparency = 1
  5638. v.BrickColor = BrickColor.new("White")
  5639. v.Material = "Neon"
  5640. end
  5641. end
  5642. for i, v in pairs(extrawingmod2:GetChildren()) do
  5643. if v:IsA("Part") then
  5644. v.Transparency = 1
  5645. v.BrickColor = BrickColor.new("White")
  5646. v.Material = "Neon"
  5647. end
  5648. end
  5649. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5650. resetmode()
  5651. end
  5652. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5653. ModeOfGlitch = 1000000
  5654. storehumanoidWS = 100
  5655. hum.WalkSpeed = 100
  5656. rainbowmode = false
  5657. chaosmode = false
  5658. tl1.Enabled = true
  5659. tl2.Enabled = true
  5660. tl3.Enabled = true
  5661. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5662. newTheme("rbxassetid://1359036559",0,1,1)
  5663. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5664. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5665. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5666. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5667. for i, v in pairs(mw2:GetChildren()) do
  5668. if v:IsA("Part") then
  5669. v.BrickColor = MAINRUINCOLOR
  5670. v.Material = "Neon"
  5671. end
  5672. end
  5673. for i, v in pairs(mw1:GetChildren()) do
  5674. if v:IsA("Part") then
  5675. v.Transparency = 0
  5676. v.BrickColor = MAINRUINCOLOR
  5677. v.Material = "Neon"
  5678. end
  5679. end
  5680. for i, v in pairs(m:GetChildren()) do
  5681. if v:IsA("Part") then
  5682. v.Color = Color3.new(0.5,0,1)
  5683. v.Material = "Neon"
  5684. end
  5685. end
  5686. for i, v in pairs(m2:GetChildren()) do
  5687. if v:IsA("Part") then
  5688. v.Color = Color3.new(0.25,0,1)
  5689. v.Material = "Neon"
  5690. end
  5691. end
  5692. for i, v in pairs(m3:GetChildren()) do
  5693. if v:IsA("Part") then
  5694. v.Color = Color3.new(0.45,0,1)
  5695. v.Material = "Neon"
  5696. end
  5697. end
  5698. for i, v in pairs(extrawingmod1:GetChildren()) do
  5699. if v:IsA("Part") then
  5700. v.Transparency = 0.75
  5701. v.Color = Color3.new(0.25,0,1)
  5702. v.Material = "Neon"
  5703. end
  5704. end
  5705. for i, v in pairs(extrawingmod2:GetChildren()) do
  5706. if v:IsA("Part") then
  5707. v.Transparency = 0.75
  5708. v.Color = Color3.new(0.5,0,1)
  5709. v.Material = "Neon"
  5710. end
  5711. end
  5712. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5713. resetmode()
  5714. end
  5715. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5716. newThemeCust("rbxassetid://1504604335",0,1,1)
  5717. attack = true
  5718. hum.WalkSpeed = 0
  5719. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5720. for i = 0, 24, 0.1 do
  5721. swait()
  5722. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5723. 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)
  5724. 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)
  5725. 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)
  5726. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5727. 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)
  5728. 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)
  5729. end
  5730. CameraEnshaking(1,1)
  5731. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5732. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5733. wait(0.55)
  5734. CameraEnshaking(1,2)
  5735. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5736. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5737. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5738. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5739. wait(0.55)
  5740. CameraEnshaking(1,3)
  5741. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5742. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5743. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5744. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5745. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5746. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5747. wait(0.55)
  5748. CameraEnshaking(10,5)
  5749. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5750. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5751. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5752. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5753. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5754. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5755. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5756. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5757. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5758. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5759. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5760. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5761. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5762. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5763. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5764. for i = 0, 49 do
  5765. 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)
  5766. 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)
  5767. 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)
  5768. 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)
  5769. end
  5770. ModeOfGlitch = 12345678987654321
  5771. storehumanoidWS = 200
  5772. hum.WalkSpeed = 200
  5773. rainbowmode = false
  5774. chaosmode = false
  5775. tl1.Enabled = true
  5776. tl2.Enabled = true
  5777. tl3.Enabled = true
  5778. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5779. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5780. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5781. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5782. for i, v in pairs(mw2:GetChildren()) do
  5783. if v:IsA("Part") then
  5784. v.BrickColor = MAINRUINCOLOR
  5785. v.Material = "Neon"
  5786. end
  5787. end
  5788. for i, v in pairs(mw1:GetChildren()) do
  5789. if v:IsA("Part") then
  5790. v.Transparency = 0
  5791. v.BrickColor = MAINRUINCOLOR
  5792. v.Material = "Neon"
  5793. end
  5794. end
  5795. for i, v in pairs(m:GetChildren()) do
  5796. if v:IsA("Part") then
  5797. v.Color = Color3.new(0.5,0,1)
  5798. v.Material = "Neon"
  5799. end
  5800. end
  5801. for i, v in pairs(m2:GetChildren()) do
  5802. if v:IsA("Part") then
  5803. v.Color = Color3.new(0.5,0,1)
  5804. v.Material = "Neon"
  5805. end
  5806. end
  5807. for i, v in pairs(m3:GetChildren()) do
  5808. if v:IsA("Part") then
  5809. v.Color = Color3.new(0.5,0,1)
  5810. v.Material = "Neon"
  5811. end
  5812. end
  5813. for i, v in pairs(extrawingmod1:GetChildren()) do
  5814. if v:IsA("Part") then
  5815. v.Transparency = 0
  5816. v.Color = Color3.new(0.5,0,1)
  5817. v.Material = "Neon"
  5818. end
  5819. end
  5820. for i, v in pairs(extrawingmod2:GetChildren()) do
  5821. if v:IsA("Part") then
  5822. v.Transparency = 0
  5823. v.Color = Color3.new(0.5,0,1)
  5824. v.Material = "Neon"
  5825. end
  5826. attack = false
  5827. end
  5828. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5829. resetmode()
  5830. end
  5831. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5832. newThemeCust("rbxassetid://723652641",0,1,1)
  5833. attack = true
  5834. hum.WalkSpeed = 0
  5835. MAINRUINCOLOR = BrickColor.new("Crimson")
  5836. for i = 0, 24, 0.1 do
  5837. swait()
  5838. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5839. 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)
  5840. 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)
  5841. 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)
  5842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5843. 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)
  5844. 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)
  5845. end
  5846. CameraEnshaking(1,1)
  5847. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5848. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5849. wait(0.55)
  5850. CameraEnshaking(1,2)
  5851. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5852. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5853. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5854. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5855. wait(0.55)
  5856. CameraEnshaking(1,3)
  5857. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5858. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5859. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5860. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5861. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5862. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5863. wait(0.55)
  5864. CameraEnshaking(10,5)
  5865. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5866. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5867. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5868. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5869. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5870. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5871. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5872. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5873. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5874. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5875. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5876. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5877. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5878. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5879. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5880. for i = 0, 49 do
  5881. 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)
  5882. 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)
  5883. 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)
  5884. 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)
  5885. end
  5886. ModeOfGlitch = 666
  5887. storehumanoidWS = 16
  5888. hum.WalkSpeed = 16
  5889. rainbowmode = false
  5890. chaosmode = false
  5891. tl1.Enabled = true
  5892. tl2.Enabled = true
  5893. tl3.Enabled = true
  5894. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5895. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5896. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5897. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5898. for i, v in pairs(mw2:GetChildren()) do
  5899. if v:IsA("Part") then
  5900. v.BrickColor = MAINRUINCOLOR
  5901. v.Material = "Neon"
  5902. end
  5903. end
  5904. for i, v in pairs(mw1:GetChildren()) do
  5905. if v:IsA("Part") then
  5906. v.Transparency = 0
  5907. v.BrickColor = MAINRUINCOLOR
  5908. v.Material = "Neon"
  5909. end
  5910. end
  5911. for i, v in pairs(m:GetChildren()) do
  5912. if v:IsA("Part") then
  5913. v.Color = Color3.new(1,0,0)
  5914. v.Material = "Neon"
  5915. end
  5916. end
  5917. for i, v in pairs(m2:GetChildren()) do
  5918. if v:IsA("Part") then
  5919. v.Color = Color3.new(1,0,0)
  5920. v.Material = "Neon"
  5921. end
  5922. end
  5923. for i, v in pairs(m3:GetChildren()) do
  5924. if v:IsA("Part") then
  5925. v.Color = Color3.new(1,0,0)
  5926. v.Material = "Neon"
  5927. end
  5928. end
  5929. for i, v in pairs(extrawingmod1:GetChildren()) do
  5930. if v:IsA("Part") then
  5931. v.Transparency = 0
  5932. v.Color = Color3.new(1,0,0)
  5933. v.Material = "Neon"
  5934. end
  5935. end
  5936. for i, v in pairs(extrawingmod2:GetChildren()) do
  5937. if v:IsA("Part") then
  5938. v.Transparency = 0
  5939. v.Color = Color3.new(1,0,0)
  5940. v.Material = "Neon"
  5941. end
  5942. attack = false
  5943. end
  5944. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5945. resetmode()
  5946. end
  5947. if k == "l" and toggleTag == false then
  5948. toggleTag = true
  5949. text.TextTransparency = 0
  5950. text.TextStrokeTransparency = 0
  5951. elseif k == "l" and toggleTag == true then
  5952. toggleTag = false
  5953. text.TextTransparency = 1
  5954. text.TextStrokeTransparency = 1
  5955. end
  5956. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5957. ExtinctiveHeartbreak()
  5958. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5959. PureBomb()
  5960. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5961. scattercorrupt()
  5962. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5963. ChaosGroundStrike()
  5964. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5965. Judgement()
  5966. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5967. HolyBarrier()
  5968. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5969. Starfall()
  5970. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5971. yinyangi()
  5972. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5973. MeteorStrike()
  5974. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5975. Wip()
  5976. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5977. StarfallEX()
  5978. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5979. FinalCalam()
  5980. end
  5981. if k == "n" and attack == false then
  5982. Blink()
  5983. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5984. StarDivision()
  5985. end
  5986. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5987. UniversalCollapse()
  5988. end
  5989. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5990. hum.WalkSpeed = 16 + 184
  5991. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5992. hum.WalkSpeed = 200 - 184
  5993. end
  5994. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5995. UniversalSpark()
  5996. end
  5997. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5998. StarDivision()
  5999. end
  6000. if k == "x" and attack == false and ModeOfGlitch == 666 then
  6001. Starfall()
  6002. end
  6003. if k == "m" and attack == false and ModeOfGlitch == 4 then
  6004. ChaosBegone()
  6005. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  6006. THEHELLITSTHATBIG()
  6007. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  6008. removelol()
  6009. end
  6010. end)
  6011. mouse.KeyUp:connect(function(k)
  6012. if k == "f" and ModeOfGlitch == 5 then
  6013. shielding = false
  6014. end
  6015. if k == "z" and ModeOfGlitch == 5 then
  6016. judgement = false
  6017. end
  6018. end)
  6019. coroutine.resume(coroutine.create(function()
  6020. while true do
  6021. swait(2)
  6022. if rainbowmode == true or ModeOfGlitch == 6 then
  6023. if eff == true then
  6024. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  6025. end
  6026. end
  6027. end
  6028. end))
  6029. coroutine.resume(coroutine.create(function()
  6030. while true do
  6031. swait(2)
  6032. if shielding == true then
  6033. end
  6034. end
  6035. end))
  6036.  
  6037.  
  6038. coroutine.resume(coroutine.create(function()
  6039. while true do
  6040. if ModeOfGlitch == 1000000 then
  6041. swait(0.5)
  6042. end
  6043. swait()
  6044. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6045. sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
  6046. end
  6047. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6048. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  6049. end
  6050. end
  6051. end))
  6052.  
  6053.  
  6054. coroutine.resume(coroutine.create(function()
  6055. while true do
  6056. swait(2)
  6057. if chaosmode == true then
  6058. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6059. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6060. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6061. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  6062. for i, v in pairs(mw1:GetChildren()) do
  6063. if v:IsA("Part") then
  6064. v.Transparency = 0.75
  6065. v.BrickColor = BrickColor.random()
  6066. v.Material = "Neon"
  6067. end
  6068. end
  6069. for i, v in pairs(m2:GetChildren()) do
  6070. if v:IsA("Part") then
  6071. v.BrickColor = BrickColor.random()
  6072. v.Material = "Neon"
  6073. end
  6074. end
  6075. for i, v in pairs(secondchar:GetChildren()) do
  6076. if v:IsA("Part") then
  6077. v.BrickColor = BrickColor.random()
  6078. v.Material = "Neon"
  6079. end
  6080. end
  6081. end
  6082. end
  6083. end))
  6084. Humanoid.Name = "STARGLITCHER"
  6085. Humanoid.MaxHealth = math.huge
  6086. Humanoid.Health = math.huge
  6087. Instance.new("ForceField",char).Visible = false
  6088. Humanoid.Animator.Parent = nil
  6089. idleanim=.4
  6090. while true do
  6091. if rainbowmode == false then
  6092. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6093. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6094. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6095. for i, v in pairs(secondchar:GetChildren()) do
  6096. if v:IsA("Part") then
  6097. v.BrickColor = MAINRUINCOLOR
  6098. v.Material = "Neon"
  6099. end
  6100. end
  6101. if chaosmode == false then
  6102. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6103. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6104. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6105. for i, v in pairs(secondchar:GetChildren()) do
  6106. if v:IsA("Part") then
  6107. v.BrickColor = MAINRUINCOLOR
  6108. v.Material = "Neon"
  6109. end
  6110. end
  6111. end
  6112. end
  6113. if rainbowmode == true then
  6114. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6115. MAINRUINCOLOR = BrickColor.new("White")
  6116. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6117. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6118. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6119. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6120. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6121. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6122. for i, v in pairs(m:GetChildren()) do
  6123. if v:IsA("Part") then
  6124. v.Color = Color3.new(r/255,g/255,b/255)
  6125. end
  6126. end
  6127. for i, v in pairs(m2:GetChildren()) do
  6128. if v:IsA("Part") then
  6129. v.Color = Color3.new(r/255,g/255,b/255)
  6130. end
  6131. end
  6132. for i, v in pairs(secondchar:GetChildren()) do
  6133. if v:IsA("Part") then
  6134. v.Color = Color3.new(r/255,g/255,b/255)
  6135. v.Material = "Neon"
  6136. end
  6137. end
  6138. for i, v in pairs(m3:GetChildren()) do
  6139. if v:IsA("Part") then
  6140. v.Color = Color3.new(r/255,g/255,b/255)
  6141. end
  6142. end
  6143. for i, v in pairs(mw1:GetChildren()) do
  6144. if v:IsA("Part") then
  6145. v.Color = Color3.new(r/255,g/255,b/255)
  6146. v.Material = "Neon"
  6147. end
  6148. end
  6149. for i, v in pairs(mw2:GetChildren()) do
  6150. if v:IsA("Part") then
  6151. v.Color = Color3.new(r/255,g/255,b/255)
  6152. v.Material = "Neon"
  6153. end
  6154. end
  6155. end
  6156. CameraManager()
  6157. swait()
  6158. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  6159. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  6160. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  6161. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  6162. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  6163. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  6164.  
  6165. if attack == false and ActiveGia == false then
  6166. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6167. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6168. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6169. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6170. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6171. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6172. elseif attack == false and ActiveGia == true then
  6173. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6174. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  6175. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6176. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6177. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6178. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6179. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6180. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6181. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  6182. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6183. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6184. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  6185. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6186. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6187. end
  6188. end
  6189.  
  6190. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  6191. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  6192. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  6193. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  6194. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  6195. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  6196. sine = sine + change
  6197. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6198. local velderp=RootPart.Velocity.y
  6199. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6200. if equipped==true or equipped==false then
  6201. if attack==false then
  6202. idle=idle+1
  6203. else
  6204. idle=0
  6205. end
  6206. if idle>=500 then
  6207. if attack==false then
  6208. --Sheath()
  6209. end
  6210. end
  6211. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6212. Anim="Jump"
  6213. if attack==false then
  6214. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6215. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6216. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6217. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6218. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  6219. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  6220. end
  6221. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6222. Anim="Fall"
  6223. if attack==false then
  6224. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6225. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6226. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6227. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6228. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6229. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6230. end
  6231. elseif torvel<1 and hitfloor~=nil then
  6232. Anim="Idle"
  6233. if attack==false then
  6234. if ModeOfGlitch == 1 then
  6235. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6236. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6237. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6238. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  6239. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6240. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6241.  
  6242. elseif ModeOfGlitch == 666 then
  6243. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6244. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6245. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6246. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6247. 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)
  6248. 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)
  6249.  
  6250. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6251. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6252. 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)
  6253. 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)
  6254. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6255. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6256. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6257.  
  6258. elseif ModeOfGlitch == 3 then
  6259. 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)
  6260. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6261. 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(-20)),.1)
  6262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  6263. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6264. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6265.  
  6266. elseif ModeOfGlitch == 4 then
  6267. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  6268. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  6269. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6270. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6271. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6272. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6273.  
  6274. elseif ModeOfGlitch == 5 then
  6275. 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)
  6276. 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)
  6277. 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)
  6278. 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)
  6279. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  6280. 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)
  6281.  
  6282. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6283. 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)
  6284. 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)
  6285. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6286. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6287. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  6288. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  6289.  
  6290. elseif ModeOfGlitch == 12345678987654321 then
  6291. 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)
  6292. 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)
  6293. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  6294. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6295. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6296. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6297. end
  6298. end
  6299. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6300. Anim="Walk"
  6301. if attack==false then
  6302. if ModeOfGlitch == 1 then
  6303. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6304. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6307. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6308. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6309.  
  6310. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6311. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  6312. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  6313. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  6314. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6315. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6316. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6317.  
  6318. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6319. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6320. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6321. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6322. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6323. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6324. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  6325. end
  6326. end
  6327. elseif torvel>=22 and hitfloor~=nil then
  6328. Anim="Run"
  6329. if attack==false then
  6330. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6331. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6332. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  6334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  6335. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6336. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6337. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6338. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  6339. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  6340. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  6341. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6342. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6343. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6344. end
  6345. end
  6346. end
  6347. end
  6348. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement