Advertisement
Sheckles

USG

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