Advertisement
PiterMosskva_TV

aaaagainn

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