Advertisement
Goo345

Untitled

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