Advertisement
Baldeagle22

Glitcher (convertedO

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