Advertisement
Insanity_Mark

``````````````````````````````````

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