Advertisement
ManOhMan

Untitled

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