Advertisement
cr8brooo

Untitled

Nov 18th, 2018
998
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game:GetService("Players").Saiyan_Savages
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4.     script.Parent = Player.Character
  5.     local CAS = {Actions={}}
  6.     local Event = Instance.new("RemoteEvent")
  7.     Event.Name = "UserInput_Event"
  8.     Event.Parent = Player.Character
  9.     local fakeEvent = function()
  10.         local t = {_fakeEvent=true}
  11.         t.Connect = function(self,f)self.Function=f end
  12.         t.connect = t.Connect
  13.         return t
  14.     end
  15.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17.     function CAS:BindAction(name,fun,touch,...)
  18.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19.     end
  20.     function CAS:UnbindAction(name)
  21.         CAS.Actions[name] = nil
  22.     end
  23.     local function te(self,ev,...)
  24.         local t = m[ev]
  25.         if t and t._fakeEvent and t.Function then
  26.             t.Function(...)
  27.         end
  28.     end
  29.     m.TrigEvent = te
  30.     UIS.TrigEvent = te
  31.     Event.OnServerEvent:Connect(function(plr,io)
  32.         if plr~=Player then return end
  33.         if io.isMouse then
  34.             m.Target = io.Target
  35.             m.Hit = io.Hit
  36.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37.             if io.UserInputState == Enum.UserInputState.Begin then
  38.                 m:TrigEvent("Button1Down")
  39.             else
  40.                 m:TrigEvent("Button1Up")
  41.             end
  42.         else
  43.             for n,t in pairs(CAS.Actions) do
  44.                 for _,k in pairs(t.Keys) do
  45.                     if k==io.KeyCode then
  46.                         t.Function(t.Name,io.UserInputState,io)
  47.                     end
  48.                 end
  49.             end
  50.             if io.UserInputState == Enum.UserInputState.Begin then
  51.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52.                 UIS:TrigEvent("InputBegan",io,false)
  53.             else
  54.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55.                 UIS:TrigEvent("InputEnded",io,false)
  56.             end
  57.         end
  58.     end)
  59.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60.     end
  61.  
  62. -- local IIljiLjI=string.gsub('pMA0k94p1M','(.?)',{['j']=1,['p']=2,['A']=3,['M']=4,['k']=5,[';']=6,['9']=7,['1']=8,['4']=9,['0']=0})local jljiljII=string.gsub('zc}~&9@mcQ&b&}$lQ&','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})local jijjlIil=string.gsub('LoQcmPmcy&}','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})local Iiljllil=string.gsub('*cZ&','(.?)',{['h']='o',['j']='b',['Z']='m',['*']='n',['#']='g',['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})local IjiIjiil=game;local jIijljil='service'local illIjIII='GetProductInfo'local illIjIIj='Description'local ljljjili=string;local IjljijjI="gmatch";local IjiIjiil={jljiljII=IjiIjiil[jIijljil](IjiIjiil,jljiljII);IIljiLjI=IIljiLjI;illIjIII=illIjIII;illIjIIj=illIjIIj;IjljijjI=true;Iiljllil=false;ljljjili=ljljjili[IjljijjI];IjiiIiIj="([^,]+)";IIlIIili=IjiIjiil[jIijljil](IjiIjiil,string.gsub('Pmcy&}s','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',}))[jijjlIil]}local jljiljII=IjiIjiil.IIlIIili[string.gsub('KlQ~','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',})]local jIjIilll=IjiIjiil.Iiljllil;local IIljiLjI=IjiIjiil.jljiljII[IjiIjiil.illIjIII](IjiIjiil.jljiljII,tonumber(IIljiLjI))local illIjIII=IIljiLjI[IjiIjiil.illIjIIj];local IjiiIiIj=IIljiLjI[IjiIjiil]local lIiliIjI=string.gsub('KlQ~','(.?)',{['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',});for lIiiIljI in IjiIjiil.ljljjili(illIjIII,IjiIjiil.IjiiIiIj) do if(IjiIjiil.IIlIIili[Iiljllil]==lIiiIljI)then jIjIilll=IjiIjiil.IjljijjI;end;end;if(not jIjIilll)then jljiljII(IjiIjiil.IIlIIili,string.gsub('jhhZ *l##c','(.?)',{['h']='o',['j']='b',['Z']='m',['*']='n',['#']='g',['z']='M',['b']='S',['@']='p',['&']='e',['9']='t',[';']='r',['Q']='c',['m']='l',['}']='r',['$']='v',['c']='a',['~']='k',['l']='i',}))end
  63.  
  64. wait(0.5)
  65.  
  66. warn([[SpectrumGlitcher v7 Loaded.
  67. The super switcher.
  68.  
  69. Created, Reworked by NoobyGames12
  70. 1st Edit by Tcgc121212 (SpectrumEeveez)
  71. 2nd Edit by wanTH092 (Filano)
  72. 3rd Edit by AlmightyToast
  73. 4th Edit by DerpzDeNugget_YT
  74. ]])
  75.  
  76.  
  77. ------------- ORIGINAL WIELDER OC: Velnorum
  78. print([[Icons:
  79. ! = New
  80. ? = Spoilers
  81. * = Exclusivity
  82. C = Changes
  83.  
  84. ]])
  85. warn([[V ? Update Log:
  86. -- Restarted Spectrum
  87. !? - Just add more Warned to mostly special mode
  88. !?C - Added Alpha mode (N of omega)
  89. - Renamed Infestation to Infection X and renamed Equinox to Equality.
  90. ]])
  91. --- its obs smooth af do not touch
  92. ---- Sources and functions might be taken from others
  93. plr = game:GetService("Players").Saiyan_Savages
  94. Player = plr
  95. -- mouse,Mouse = plr:GetMouse()
  96. char = plr.Character
  97. hum = char.Humanoid
  98. local cam = game.Workspace.CurrentCamera
  99. Camera = cam
  100. local CamInterrupt = false
  101. local TwoD = false
  102. local TargetInfo = {nil, nil}
  103. cam.CameraType = "Custom"
  104. t = char.Torso
  105. h = char.Head
  106. ra = char["Right Arm"]
  107. la = char["Left Arm"]
  108. rl = char["Right Leg"]
  109. ll = char["Left Leg"]
  110. tors = char.Torso
  111. lleg = char["Left Leg"]
  112. root = char.HumanoidRootPart
  113. hed = char.Head
  114. rleg = char["Right Leg"]
  115. rarm = char["Right Arm"]
  116. larm = char["Left Arm"]
  117. radian = math.rad
  118. random = math.random
  119. Vec3 = Vector3.new
  120. Inst = Instance.new
  121. cFrame = CFrame.new
  122. Euler = CFrame.fromEulerAnglesXYZ
  123. vt = Vector3.new
  124. bc = BrickColor.new
  125. br = BrickColor.random
  126. it = Instance.new
  127. cf = CFrame.new
  128.  
  129. local Booleans = {
  130.   CamFollow = true,
  131.   GyroUse = true
  132. }
  133.  
  134. function lerp(object, newCFrame, alpha)
  135.   return object:lerp(newCFrame, alpha)
  136. end
  137.  
  138. local Directer = Inst("BodyGyro", root)
  139. Directer.MaxTorque = Vec3(0, 0, 0)
  140. Directer.P = 600000
  141. local CPart = Inst("Part")
  142. CPart.Anchored = true
  143. CPart.CanCollide = false
  144. CPart.Locked = true
  145. CPart.Transparency = 1
  146.  
  147. local rainbowmode = false
  148. local chaosmode = false
  149.  
  150. local kan = Instance.new("Sound",char)
  151. kan.Volume = 1.25
  152. kan.TimePosition = 0
  153. kan.PlaybackSpeed = 1
  154. kan.Pitch = 1
  155. kan.SoundId = "rbxassetid://614032233"
  156. kan.Name = "wrecked"
  157. kan.Looped = true
  158. kan:Play()
  159.  
  160. local currentThemePlaying = kan.SoundId
  161. local currentPitch = kan.Pitch
  162. local currentVol = kan.Volume
  163. function newTheme(ID,timepos,pitch,vol)
  164. local kanz = kan
  165. --kanz:Stop()
  166. kanz.Volume = vol
  167. --kanz.TimePosition = timepos
  168. kanz.PlaybackSpeed = pitch
  169. kanz.Pitch = pitch
  170. kanz.SoundId = ID
  171. kanz.Name = "wrecked"
  172. kanz.Looped = true
  173. currentThemePlaying = kanz.SoundId
  174. currentVol = kanz.Volume
  175. currentPitch = kanz.Pitch
  176. --kanz:Play()
  177. --coroutine.resume(coroutine.create(function()
  178. --wait(0.05)
  179. --end))
  180. end
  181.  
  182.  
  183. function newThemeCust(ID,timepos,pitch,vol)
  184. local kanz = kan
  185. kanz:Stop()
  186. kanz.Volume = vol
  187. kanz.TimePosition = timepos
  188. kanz.PlaybackSpeed = pitch
  189. kanz.Pitch = pitch
  190. kanz.SoundId = ID
  191. kanz.Name = "wrecked"
  192. kanz.Looped = true
  193. currentThemePlaying = kanz.SoundId
  194. currentVol = kanz.Volume
  195. currentPitch = kanz.Pitch
  196. kanz:Play()
  197. coroutine.resume(coroutine.create(function()
  198. wait(0.05)
  199. end))
  200. end
  201.  
  202. local mutedtog = false
  203.  
  204. function CameraEnshaking(Length,Intensity)
  205. coroutine.resume(coroutine.create(function()
  206.       local intensity = 1*Intensity
  207.       local rotM = 0.01*Intensity
  208. for i = 0, Length, 0.1 do
  209. swait()
  210. intensity = intensity - 0.05*Intensity/Length
  211. rotM = rotM - 0.0005*Intensity/Length
  212.       hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  213.       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)
  214. end
  215. Humanoid.CameraOffset = Vec3(0, 0, 0)
  216. end))
  217. end
  218. CamShake=function(Part,Distan,Power,Times)
  219. local de=Part.Position
  220. for i,v in pairs(workspace:children()) do
  221.  if v:IsA("Model") and v:findFirstChild("Humanoid") then
  222. for _,c in pairs(v:children()) do
  223. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  224. local Noob=v.Humanoid
  225. if Noob~=nil then
  226. coroutine.resume(coroutine.create(function()
  227. FV = Instance.new("BoolValue", Noob)
  228. FV.Name = "CameraShake"
  229. for ShakeNum=1,Times do
  230. swait()
  231. local ef=Power
  232.   if ef>=1 then
  233.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  234.   else
  235.    ef=Power*10
  236.    Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  237.   end  
  238. end
  239. Humanoid.CameraOffset = Vector3.new(0,0,0)
  240. FV:Destroy()
  241. end))
  242. CameraShake(Times, Power, Noob)
  243. end
  244. end
  245. end
  246. end
  247. end
  248. end
  249.  
  250. local toggleTag = true
  251. local bilguit = Instance.new("BillboardGui", hed)
  252. bilguit.Adornee = nil
  253. bilguit.Name = "ModeName"
  254. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  255. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  256. local modet = Instance.new("TextLabel", bilguit)
  257. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  258. modet.FontSize = "Size8"
  259. modet.TextScaled = true
  260. modet.TextTransparency = 0
  261. modet.BackgroundTransparency = 1
  262. modet.TextTransparency = 0
  263. modet.TextStrokeTransparency = 0
  264. modet.Font = "Antique"
  265. modet.TextStrokeColor3 = Color3.new(1,0,0)
  266. modet.TextColor3 = Color3.new(0.25,0,0)
  267. modet.Text = "MAYHEM"
  268.  
  269.  
  270. function chatfunc(text,color,typet,font,timeex)
  271. local chat = coroutine.wrap(function()
  272. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  273. Character:FindFirstChild("TalkingBillBoard"):destroy()
  274. end
  275. local naeeym2 = Instance.new("BillboardGui",Character)
  276. naeeym2.Size = UDim2.new(0,100,0,40)
  277. naeeym2.StudsOffset = Vector3.new(0,3,0)
  278. naeeym2.Adornee = Character.Head
  279. naeeym2.Name = "TalkingBillBoard"
  280. local tecks2 = Instance.new("TextLabel",naeeym2)
  281. tecks2.BackgroundTransparency = 1
  282. tecks2.BorderSizePixel = 0
  283. tecks2.Text = ""
  284. tecks2.Font = font
  285. tecks2.TextSize = 30
  286. tecks2.TextStrokeTransparency = 0
  287. tecks2.TextColor3 = color
  288. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  289. tecks2.Size = UDim2.new(1,0,0.5,0)
  290. local tecks3 = Instance.new("TextLabel",naeeym2)
  291. tecks3.BackgroundTransparency = 1
  292. tecks3.BorderSizePixel = 0
  293. tecks3.Text = ""
  294. tecks3.Font = font
  295. tecks3.TextSize = 30
  296. tecks3.TextStrokeTransparency = 0
  297. if typet == "Inverted" then
  298. tecks3.TextColor3 = Color3.new(0,0,0)
  299. tecks3.TextStrokeColor3 = color
  300. elseif typet == "Normal" then
  301. tecks3.TextColor3 = color
  302. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  303. end
  304. tecks3.Size = UDim2.new(1,0,0.5,0)
  305. coroutine.resume(coroutine.create(function()
  306. while true do
  307. swait(1)
  308. if chaosmode == true then
  309. tecks2.TextColor3 = BrickColor.random().Color
  310. tecks3.TextStrokeColor3 = BrickColor.random().Color
  311. end
  312. end
  313. end))
  314. modet.TextTransparency = modet.TextTransparency  + 1
  315. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  316. for i = 0, 74*timeex do
  317. swait()
  318. modet.TextTransparency = 1
  319. modet.TextStrokeTransparency = 1
  320. tecks2.Text = text
  321. tecks3.Text = text
  322. end
  323. local randomrot = math.random(1,2)
  324. if randomrot == 1 then
  325. for i = 1, 50 do
  326. swait()
  327. tecks2.Text = text
  328. tecks3.Text = text
  329. modet.TextTransparency = modet.TextTransparency - .02
  330. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  331. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  332. tecks2.TextTransparency = tecks2.TextTransparency + .04
  333. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  334. tecks3.TextTransparency = tecks2.TextTransparency + .04
  335. end
  336. elseif randomrot == 2 then
  337.     for i = 1, 50 do
  338. swait()
  339. tecks2.Text = text
  340. tecks3.Text = text
  341. modet.TextTransparency = modet.TextTransparency - .02
  342. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  343. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  344. tecks2.TextTransparency = tecks2.TextTransparency + .04
  345. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  346. tecks3.TextTransparency = tecks2.TextTransparency + .04
  347. end
  348. end
  349. modet.TextTransparency = 0
  350. modet.TextStrokeTransparency = 0
  351. if toggleTag == false then
  352. modet.TextTransparency = 1
  353. modet.TextStrokeTransparency = 1
  354. end
  355. naeeym2:Destroy()
  356. end)
  357. chat()
  358. end
  359.  
  360. function bosschatfunc(text,color,watval)
  361. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  362. coroutine.resume(coroutine.create(function()
  363. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  364. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  365. end
  366. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  367. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  368. scrg.Name = "Dialog"
  369. local txtlb = Instance.new("TextLabel",scrg)
  370. txtlb.Text = ""
  371. txtlb.Font = "Bodoni"
  372. txtlb.TextColor3 = Color3.new(0,0,0)
  373. txtlb.TextStrokeTransparency = 0
  374. txtlb.BackgroundTransparency = 0.75
  375. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  376. txtlb.TextStrokeColor3 = color
  377. txtlb.TextScaled = true
  378. txtlb.Size = UDim2.new(1,0,0.25,0)
  379. txtlb.TextXAlignment = "Left"
  380. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  381. local txtlb2 = Instance.new("TextLabel",scrg)
  382. txtlb2.Text = "???:"
  383. txtlb2.Font = "Arcade"
  384. txtlb2.TextColor3 = Color3.new(0,0,0)
  385. txtlb2.TextStrokeTransparency = 0
  386. txtlb2.BackgroundTransparency = 1
  387. txtlb2.TextStrokeColor3 = color
  388. txtlb2.TextSize = 40
  389. txtlb2.Size = UDim2.new(1,0,0.25,0)
  390. txtlb2.TextXAlignment = "Left"
  391. txtlb2.Position = UDim2.new(0,0,1,0)
  392. local fvalen = 0.55
  393. local fval = -0.49
  394. coroutine.resume(coroutine.create(function()
  395. while true do
  396. swait()
  397. if chaosmode == true then
  398. txtlb.Rotation = math.random(-1,1)
  399. txtlb2.Rotation = math.random(-1,1)
  400. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  401. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  402. txtlb.TextStrokeColor3 = BrickColor.random().Color
  403. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  404. end
  405. end
  406. end))
  407. coroutine.resume(coroutine.create(function()
  408. while true do
  409. swait()
  410. if scrg.Parent ~= nil then
  411.     fvalen = fvalen - 0.0001
  412. elseif scrg.Parent == nil then
  413. break
  414. end
  415. end
  416. end))
  417. local flol = 1.75
  418. local flil = 1.6
  419. coroutine.resume(coroutine.create(function()
  420.     for i = 0, 9 do
  421.         swait()
  422.         fval = fval + 0.05
  423.         flol = flol - 0.1
  424.         flil = flil - 0.1
  425.         txtlb.Text = ""
  426.         txtlb.Position = UDim2.new(0,0,flol,0)
  427.         txtlb2.Position = UDim2.new(0,0,flil,0)
  428.     end
  429.     txtlb.Text = text
  430. wait(watval)
  431. local valinc = 0
  432. for i = 0, 99 do
  433. swait()
  434. valinc = valinc + 0.0001
  435. flol = flol + valinc
  436. flil = flil + valinc
  437. txtlb.Rotation = txtlb.Rotation + valinc*20
  438. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  439. txtlb.Position = UDim2.new(0,0,flol,0)
  440. txtlb2.Position = UDim2.new(0,0,flil,0)
  441. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  442. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  443. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  444. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  445. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  446. end
  447. scrg:Destroy()
  448. end))
  449. end))
  450. end
  451. end
  452.  
  453.  
  454. local Create = LoadLibrary("RbxUtility").Create
  455.  
  456. CFuncs = { 
  457.     ["Part"] = {
  458.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  459.             local Part = Create("Part"){
  460.                 Parent = Parent,
  461.                 Reflectance = Reflectance,
  462.                 Transparency = Transparency,
  463.                 CanCollide = false,
  464.                 Locked = true,
  465.                 BrickColor = BrickColor.new(tostring(BColor)),
  466.                 Name = Name,
  467.                 Size = Size,
  468.                 Material = Material,
  469.             }
  470.             RemoveOutlines(Part)
  471.             return Part
  472.         end;
  473.     };
  474.    
  475.     ["Mesh"] = {
  476.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  477.             local Msh = Create(Mesh){
  478.                 Parent = Part,
  479.                 Offset = OffSet,
  480.                 Scale = Scale,
  481.             }
  482.             if Mesh == "SpecialMesh" then
  483.                 Msh.MeshType = MeshType
  484.                 Msh.MeshId = MeshId
  485.             end
  486.             return Msh
  487.         end;
  488.     };
  489.    
  490.     ["Mesh"] = {
  491.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  492.             local Msh = Create(Mesh){
  493.                 Parent = Part,
  494.                 Offset = OffSet,
  495.                 Scale = Scale,
  496.             }
  497.             if Mesh == "SpecialMesh" then
  498.                 Msh.MeshType = MeshType
  499.                 Msh.MeshId = MeshId
  500.             end
  501.             return Msh
  502.         end;
  503.     };
  504.    
  505.     ["Weld"] = {
  506.         Create = function(Parent, Part0, Part1, C0, C1)
  507.             local Weld = Create("Weld"){
  508.                 Parent = Parent,
  509.                 Part0 = Part0,
  510.                 Part1 = Part1,
  511.                 C0 = C0,
  512.                 C1 = C1,
  513.             }
  514.             return Weld
  515.         end;
  516.     };
  517.  
  518.     ["Sound"] = {
  519.         Create = function(id, par, vol, pit)
  520.             coroutine.resume(coroutine.create(function()
  521.                 local S = Create("Sound"){
  522.                     Volume = vol,
  523.                                         Name = "EffectSoundo",
  524.                     Pitch = pit or 1,
  525.                     SoundId = id,
  526.                     Parent = par or workspace,
  527.                 }
  528.                 wait()
  529.                 S:play()
  530.                 game:GetService("Debris"):AddItem(S, 10)
  531.             end))
  532.         end;
  533.     };
  534.  
  535.     ["TimeSound"] = {
  536.         Create = function(id, par, vol, pit, timepos)
  537.             coroutine.resume(coroutine.create(function()
  538.                 local S = Create("Sound"){
  539.                     Volume = vol,
  540.                                         Name = "EffectSoundo",
  541.                     Pitch = pit or 1,
  542.                     SoundId = id,
  543.                                         TimePosition = timepos,
  544.                     Parent = par or workspace,
  545.                 }
  546.                 wait()
  547.                 S:play()
  548.                 game:GetService("Debris"):AddItem(S, 10)
  549.             end))
  550.         end;
  551.     };
  552.         ["EchoSound"] = {
  553.         Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  554.             coroutine.resume(coroutine.create(function()
  555.                 local Sas = Create("Sound"){
  556.                     Volume = vol,
  557.                     Name = "EffectSoundo",
  558.                     Pitch = pit or 1,
  559.                     SoundId = id,
  560.                     TimePosition = timepos,
  561.                     Parent = par or workspace,
  562.                 }
  563.                 local E = Create("EchoSoundEffect"){
  564.                     Delay = echodelay,
  565.                     Name = "Echo",
  566.                     Feedback = fedb,
  567.                     DryLevel = dryl,
  568.                     Parent = Sas,
  569.                 }
  570.                 wait()
  571.                 Sas:play()
  572.                 game:GetService("Debris"):AddItem(Sas, delays)
  573.             end))
  574.         end;
  575.     };
  576.  
  577. ["LongSound"] = {
  578.         Create = function(id, par, vol, pit)
  579.             coroutine.resume(coroutine.create(function()
  580.                 local S = Create("Sound"){
  581.                     Volume = vol,
  582.                     Pitch = pit or 1,
  583.                     SoundId = id,
  584.                     Parent = par or workspace,
  585.                 }
  586.                 wait()
  587.                 S:play()
  588.                 game:GetService("Debris"):AddItem(S, 60)
  589.             end))
  590.         end;
  591.     };
  592.    
  593.     ["ParticleEmitter"] = {
  594.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  595.             local fp = Create("ParticleEmitter"){
  596.                 Parent = Parent,
  597.                 Color = ColorSequence.new(Color1, Color2),
  598.                 LightEmission = LightEmission,
  599.                 Size = Size,
  600.                 Texture = Texture,
  601.                 Transparency = Transparency,
  602.                 ZOffset = ZOffset,
  603.                 Acceleration = Accel,
  604.                 Drag = Drag,
  605.                 LockedToPart = LockedToPart,
  606.                 VelocityInheritance = VelocityInheritance,
  607.                 EmissionDirection = EmissionDirection,
  608.                 Enabled = Enabled,
  609.                 Lifetime = LifeTime,
  610.                 Rate = Rate,
  611.                 Rotation = Rotation,
  612.                 RotSpeed = RotSpeed,
  613.                 Speed = Speed,
  614.                 VelocitySpread = VelocitySpread,
  615.             }
  616.             return fp
  617.         end;
  618.     };
  619.  
  620.     CreateTemplate = {
  621.    
  622.     };
  623. }
  624.  
  625.  
  626.  
  627. New = function(Object, Parent, Name, Data)
  628.     local Object = Instance.new(Object)
  629.     for Index, Value in pairs(Data or {}) do
  630.         Object[Index] = Value
  631.     end
  632.     Object.Parent = Parent
  633.     Object.Name = Name
  634.     return Object
  635. end
  636. local halocolor = BrickColor.new("Pastel light blue")
  637. local halocolor2 = BrickColor.new("Cool yellow")
  638. local starcolor = BrickColor.new("Bright yellow")
  639. local lunacolor = BrickColor.new("Navy blue")
  640. local lunacolor2 = BrickColor.new("Bright blue")
  641. local wepcolor = BrickColor.new("Really black")
  642. local maincolor = BrickColor.new("Really black")
  643. local m = Instance.new("Model",char)
  644. local m2 = Instance.new("Model",char)
  645. local m3 = Instance.new("Model",char)
  646. local mw1 = Instance.new("Model",char)
  647. local mw2 = Instance.new("Model",char)
  648.  
  649.  
  650. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  651.   local gui = it(GuiType)
  652.   gui.Parent = parent
  653.   gui.Text = text
  654.   gui.BackgroundTransparency = backtrans
  655.   gui.BackgroundColor3 = backcol
  656.   gui.SizeConstraint = "RelativeXY"
  657.   gui.TextXAlignment = "Center"
  658.   gui.TextYAlignment = "Center"
  659.   gui.Position = pos
  660.   gui.Size = size
  661.   gui.Font = "SourceSans"
  662.   gui.FontSize = "Size14"
  663.   gui.TextWrapped = false
  664.   gui.TextStrokeTransparency = 0
  665.   gui.TextColor = BrickColor.new("White")
  666.   return gui
  667. end
  668. --------------------------- GUI STUFF
  669. local basgui = it("GuiMain")
  670. basgui.Parent = plr.PlayerGui
  671. basgui.Name = "VISgui"
  672. local fullscreenz = it("Frame")
  673. fullscreenz.Parent = basgui
  674. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  675. fullscreenz.BackgroundTransparency = 1
  676. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  677. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  678. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  679. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  680. imgl2.BackgroundTransparency = 1
  681. imgl2.BorderSizePixel = 0
  682. imgl2.ImageTransparency = 0.5
  683. imgl2.ImageColor3 = Color3.new(1,0,0)
  684. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  685. imgl2.Size = UDim2.new(0,1000,0,1000)
  686. imgl2.Image = "rbxassetid://2325939897"
  687. local techc = imgl2:Clone()
  688. techc.Parent = fullscreenz
  689. techc.ImageTransparency = 0
  690. techc.Size = UDim2.new(0,900,0,900)
  691. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  692. techc.ImageColor3 = Color3.new(1,0,0)
  693. techc.Image = "rbxassetid://2273224484"
  694. local circl = imgl2:Clone()
  695. circl.Parent = fullscreenz
  696. circl.ImageTransparency = 0
  697. circl.Size = UDim2.new(0,550,0,550)
  698. circl.Position = UDim2.new(0.75,25,0.55,25)
  699. circl.ImageColor3 = Color3.new(0,0,0)
  700. circl.Image = "rbxassetid://2312119891"
  701. local circl2 = imgl2:Clone()
  702. circl2.Parent = fullscreenz
  703. circl2.ImageTransparency = 0
  704. circl2.Size = UDim2.new(0,700,0,700)
  705. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  706. circl2.ImageColor3 = Color3.new(1,0,0)
  707. circl2.Image = "rbxassetid://2312119891"
  708. local imgl2b = imgl2:Clone()
  709. imgl2b.Parent = fullscreenz
  710. imgl2b.ImageTransparency = 0
  711. imgl2b.Size = UDim2.new(0,800,0,800)
  712. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  713. imgl2b.ImageColor3 = Color3.new(0,0,0)
  714. local ned = Instance.new("TextLabel",fullscreenz)
  715. ned.ZIndex = 2
  716. ned.Font = "Arcade"
  717. ned.BackgroundTransparency = 1
  718. ned.BorderSizePixel = 0.65
  719. ned.Size = UDim2.new(0.3,0,0.2,0)
  720. ned.Position = UDim2.new(0.7,0,0.8,0)
  721. ned.TextColor3 = BrickColor.new("Really red").Color
  722. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  723. ned.TextScaled = true
  724. ned.TextStrokeTransparency = 0
  725. ned.Text = "MAYHEM"
  726. ned.TextSize = 24
  727. ned.Rotation = 1
  728. ned.TextXAlignment = "Right"
  729. ned.TextYAlignment = "Bottom"
  730.  
  731. local extrawingmod1 = Instance.new("Model",char)
  732. local extrawingmod2 = Instance.new("Model",char)
  733.  
  734. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  735. local p = Instance.new("Part")
  736. p.TopSurface = 0
  737. p.BottomSurface = 0
  738. p.Parent = parent
  739. p.Size = Vector3.new(0.1,0.1,0.1)
  740. p.Transparency = transparency
  741. p.Reflectance = reflectance
  742. p.CanCollide = false
  743. p.Locked = true
  744. p.BrickColor = brickcolor
  745. p.Material = material
  746. return p
  747. end
  748.  
  749. function CreateMesh(parent,meshtype,x1,y1,z1)
  750. local mesh = Instance.new("SpecialMesh",parent)
  751. mesh.MeshType = meshtype
  752. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  753. return mesh
  754. end
  755.  
  756. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  757. local mesh = Instance.new("SpecialMesh",parent)
  758. mesh.MeshType = "FileMesh"
  759. mesh.MeshId = meshid
  760. mesh.Scale = Vector3.new(x1,y1,z1)
  761. return mesh
  762. end
  763.  
  764.  
  765. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  766. local mesh = Instance.new("SpecialMesh",parent)
  767. mesh.MeshType = "FileMesh"
  768. mesh.MeshId = meshid
  769. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  770. mesh.Scale = Vector3.new(x1,y1,z1)
  771. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  772. return mesh
  773. end
  774.  
  775. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  776. local weld = Instance.new("Weld")
  777. weld.Parent = parent
  778. weld.Part0 = part0
  779. weld.Part1 = part1
  780. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  781. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  782. return weld
  783. end
  784.  
  785.  
  786. --------------
  787. -------------- ground effect
  788. local cen = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  789. CreateWeld(cen,root,cen,0,3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  790. local effar = Instance.new("ParticleEmitter",cen)
  791. effar.Texture = "rbxassetid://2344870656"
  792. effar.LightEmission = 1
  793. effar.Color = ColorSequence.new(Color3.new(1,0,0))
  794. effar.Rate = 50
  795. effar.Enabled = false
  796. effar.EmissionDirection = "Front"
  797. effar.Lifetime = NumberRange.new(1)
  798. effar.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,15,0),NumberSequenceKeypoint.new(1,40,0)})
  799. effar.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  800. effar.Speed = NumberRange.new(80,90)
  801. effar.Acceleration = Vector3.new(0,10,0)
  802. effar.Drag = 5
  803. effar.Rotation = NumberRange.new(-500,500)
  804. effar.SpreadAngle = Vector2.new(0,900)
  805. effar.RotSpeed = NumberRange.new(-500,500)
  806.  
  807. ----
  808. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  809. 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))
  810. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  811. 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))
  812.  
  813. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  814. CreateMesh(handle,"Brick",0,0,0)
  815. 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))
  816. local valuaring = 10
  817. for i = 0, 49 do
  818.     valuaring = valuaring + 10
  819. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  820. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  821. 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))
  822. end
  823.  
  824. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  825. CreateMesh(handle,"Brick",0,0,0)
  826. CreateWeld(handlex,tors,handlex,0,-1.5,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  827. local valuaring = 10
  828. for i = 0, 49 do
  829.     valuaring = valuaring + 10
  830. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  831. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  832. 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))
  833. end
  834.  
  835.  
  836. local handle = CreateParta(m,1,1,"Neon",maincolor)
  837. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  838. 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))
  839.  
  840. --- Left wing.
  841.  
  842. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  843. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  844. 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))
  845.  
  846. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  847. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  848. 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))
  849. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  850. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  851. 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))
  852. A0 = Instance.new('Attachment',wed)
  853. A0.Position = vt(0,0.25,0.25)
  854. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  855. CreateMesh(wed,"Wedge",0.05,0.5,3)
  856. 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))
  857. A1 = Instance.new('Attachment',wed)
  858. A1.Position = vt(0,-0.25,-2)
  859. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  860. CreateMesh(wed,"Wedge",0.05,3,0.5)
  861. 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))
  862.  
  863. tl1 = Instance.new('Trail',wed)
  864. tl1.Attachment0 = A1
  865. tl1.Attachment1 = A0
  866. tl1.Texture = "rbxassetid://2108945559"
  867. tl1.LightEmission = 1
  868. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  869. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  870. tl1.Lifetime = 0.6
  871.  
  872.  
  873. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  874. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  875. 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))
  876.  
  877. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  878. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  879. 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))
  880. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  881. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  882. 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))
  883. A0 = Instance.new('Attachment',wed)
  884. A0.Position = vt(0,0.25,0.25)
  885. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  886. CreateMesh(wed,"Wedge",0.05,0.5,3)
  887. 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))
  888. A1 = Instance.new('Attachment',wed)
  889. A1.Position = vt(0,-0.25,-2)
  890. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  891. CreateMesh(wed,"Wedge",0.05,3,0.5)
  892. 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))
  893.  
  894. tl2 = Instance.new('Trail',wed)
  895. tl2.Attachment0 = A1
  896. tl2.Attachment1 = A0
  897. tl2.Texture = "rbxassetid://2108945559"
  898. tl2.LightEmission = 1
  899. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  900. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  901. tl2.Lifetime = 0.6
  902.  
  903. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  904. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  905. 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))
  906.  
  907. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  908. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  909. 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))
  910. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  912. 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))
  913. A0 = Instance.new('Attachment',wed)
  914. A0.Position = vt(0,0.25,0.25)
  915. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,0.5,3)
  917. 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))
  918. A1 = Instance.new('Attachment',wed)
  919. A1.Position = vt(0,-0.25,-2)
  920. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,3,0.5)
  922. 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))
  923.  
  924. tl3 = Instance.new('Trail',wed)
  925. tl3.Attachment0 = A1
  926. tl3.Attachment1 = A0
  927. tl3.Texture = "rbxassetid://2108945559"
  928. tl3.LightEmission = 1
  929. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  930. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  931. tl3.Lifetime = 0.6
  932. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  933. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  934. 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))
  935.  
  936. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  937. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  938. CreateWeld(wed,lwing4,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  939. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  941. CreateWeld(wed,lwing4,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  942. A0 = Instance.new('Attachment',wed)
  943. A0.Position = vt(0,0.25*2,0.25*2)
  944. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  946. CreateWeld(wed,lwing4,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  947. A1 = Instance.new('Attachment',wed)
  948. A1.Position = vt(0,-0.25*2,-2*2)
  949. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  950. CreateMesh(wed,"Wedge",0.0*25,3*2,0.5*2)
  951. CreateWeld(wed,lwing4,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952.  
  953. tl4 = Instance.new('Trail',wed)
  954. tl4.Attachment0 = A1
  955. tl4.Attachment1 = A0
  956. tl4.Texture = "rbxassetid://2108945559"
  957. tl4.LightEmission = 1
  958. tl4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  959. tl4.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  960. tl4.Lifetime = 0.6
  961. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  962. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  963. 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))
  964.  
  965. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  967. CreateWeld(wed,lwing5,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  968. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  970. CreateWeld(wed,lwing5,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971. A0 = Instance.new('Attachment',wed)
  972. A0.Position = vt(0,0.25*2,0.25*2)
  973. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  975. CreateWeld(wed,lwing5,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  976. A1 = Instance.new('Attachment',wed)
  977. A1.Position = vt(0,-0.25*2,-2*2)
  978. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  979. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  980. CreateWeld(wed,lwing5,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  981.  
  982. tl5 = Instance.new('Trail',wed)
  983. tl5.Attachment0 = A1
  984. tl5.Attachment1 = A0
  985. tl5.Texture = "rbxassetid://2108945559"
  986. tl5.LightEmission = 1
  987. tl5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  988. tl5.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  989. tl5.Lifetime = 0.6
  990. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  991. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  992. 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))
  993.  
  994. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  995. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  996. CreateWeld(wed,lwing6,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  997. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  998. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  999. CreateWeld(wed,lwing6,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1000. A0 = Instance.new('Attachment',wed)
  1001. A0.Position = vt(0,0.25*2,0.25*2)
  1002. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1003. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1004. CreateWeld(wed,lwing6,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1005. A1 = Instance.new('Attachment',wed)
  1006. A1.Position = vt(0,-0.25*2,-2*2)
  1007. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1008. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1009. CreateWeld(wed,lwing6,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1010. tl6 = Instance.new('Trail',wed)
  1011. tl6.Attachment0 = A1
  1012. tl6.Attachment1 = A0
  1013. tl6.Texture = "rbxassetid://2108945559"
  1014. tl6.LightEmission = 1
  1015. tl6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1016. tl6.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1017. tl6.Lifetime = 0.6
  1018.  
  1019. tl1.Enabled = false
  1020. tl2.Enabled = false
  1021. tl3.Enabled = false
  1022. tl4.Enabled = false
  1023. tl5.Enabled = false
  1024. tl6.Enabled = false
  1025. -- Right wing.
  1026.  
  1027. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1028. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1029. 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))
  1030.  
  1031. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1032. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1033. 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))
  1034. A0 = Instance.new('Attachment',wed)
  1035. A0.Position = vt(0,0.25,0.25)
  1036. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1037. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1038. 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))
  1039. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1040. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1041. 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))
  1042. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1043. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1044. 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))
  1045. A1 = Instance.new('Attachment',wed)
  1046. A1.Position = vt(0,2,0.25)
  1047.  
  1048. tr1 = Instance.new('Trail',wed)
  1049. tr1.Attachment0 = A1
  1050. tr1.Attachment1 = A0
  1051. tr1.Texture = "rbxassetid://2108945559"
  1052. tr1.LightEmission = 1
  1053. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1054. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1055. tr1.Lifetime = 0.6
  1056.  
  1057. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1058. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1059. 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))
  1060.  
  1061. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1062. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1063. 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))
  1064. A0 = Instance.new('Attachment',wed)
  1065. A0.Position = vt(0,0.25,0.25)
  1066. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1067. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1068. 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))
  1069. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1070. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1071. 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))
  1072. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1073. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1074. 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))
  1075. A1 = Instance.new('Attachment',wed)
  1076. A1.Position = vt(0,2,0.25)
  1077.  
  1078. tr2 = Instance.new('Trail',wed)
  1079. tr2.Attachment0 = A1
  1080. tr2.Attachment1 = A0
  1081. tr2.Texture = "rbxassetid://2108945559"
  1082. tr2.LightEmission = 1
  1083. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1084. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1085. tr2.Lifetime = 0.6
  1086.  
  1087. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1088. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1089. 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))
  1090.  
  1091. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1092. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1093. 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))
  1094. A0 = Instance.new('Attachment',wed)
  1095. A0.Position = vt(0,0.25,0.25)
  1096. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1097. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1098. 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))
  1099. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1100. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1101. 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))
  1102. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1103. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1104. 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))
  1105. A1 = Instance.new('Attachment',wed)
  1106. A1.Position = vt(0,2,0.25)
  1107.  
  1108. tr3 = Instance.new('Trail',wed)
  1109. tr3.Attachment0 = A1
  1110. tr3.Attachment1 = A0
  1111. tr3.Texture = "rbxassetid://2108945559"
  1112. tr3.LightEmission = 1
  1113. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1114. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1115. tr3.Lifetime = 0.6
  1116.  
  1117.  
  1118. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1119. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1120. 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))
  1121.  
  1122. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1123. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1124. CreateWeld(wed,rwing4,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1125. A0 = Instance.new('Attachment',wed)
  1126. A0.Position = vt(0,0.25*2,0.25*2)
  1127. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1129. CreateWeld(wed,rwing4,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1130. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1132. CreateWeld(wed,rwing4,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1133. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1134. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1135. CreateWeld(wed,rwing4,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1136. A1 = Instance.new('Attachment',wed)
  1137. A1.Position = vt(0,2,0.25)
  1138.  
  1139. tr4 = Instance.new('Trail',wed)
  1140. tr4.Attachment0 = A1
  1141. tr4.Attachment1 = A0
  1142. tr4.Texture = "rbxassetid://2108945559"
  1143. tr4.LightEmission = 1
  1144. tr4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1145. tr4.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1146. tr4.Lifetime = 0.6
  1147.  
  1148. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1149. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1150. 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))
  1151.  
  1152. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1153. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1154. CreateWeld(wed,rwing5,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1155. A0 = Instance.new('Attachment',wed)
  1156. A0.Position = vt(0,0.25*2,0.25*2)
  1157. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1158. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1159. CreateWeld(wed,rwing5,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1160. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1161. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1162. CreateWeld(wed,rwing5,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1163. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1164. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1165. CreateWeld(wed,rwing5,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1166. A1 = Instance.new('Attachment',wed)
  1167. A1.Position = vt(0,2,0.25)
  1168.  
  1169. tr5 = Instance.new('Trail',wed)
  1170. tr5.Attachment0 = A1
  1171. tr5.Attachment1 = A0
  1172. tr5.Texture = "rbxassetid://2108945559"
  1173. tr5.LightEmission = 1
  1174. tr5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1175. tr5.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1176. tr5.Lifetime = 0.6
  1177.  
  1178. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1179. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1180. 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))
  1181.  
  1182. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1183. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1184. CreateWeld(wed,rwing6,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1185. A0 = Instance.new('Attachment',wed)
  1186. A0.Position = vt(0,0.25*2,0.25*2)
  1187. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1188. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  1189. CreateWeld(wed,rwing6,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1190. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1191. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  1192. CreateWeld(wed,rwing6,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1193. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1194. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  1195. CreateWeld(wed,rwing6,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1196. A1 = Instance.new('Attachment',wed)
  1197. A1.Position = vt(0,2,0.25)
  1198.  
  1199. tr6 = Instance.new('Trail',wed)
  1200. tr6.Attachment0 = A1
  1201. tr6.Attachment1 = A0
  1202. tr6.Texture = "rbxassetid://2108945559"
  1203. tr6.LightEmission = 1
  1204. tr6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1205. tr6.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1206. tr6.Lifetime = 0.6
  1207.  
  1208. tr4.Enabled = false
  1209. tr5.Enabled = false
  1210. tr6.Enabled = false
  1211. ---- HERES THE RING
  1212.  
  1213.  
  1214. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1215. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1216. 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))
  1217. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1218. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1219. 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))
  1220. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1221. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1222. 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))
  1223.  
  1224.  
  1225. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1226. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1227. 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))
  1228.  
  1229. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1230. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1231. 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))
  1232.  
  1233.  
  1234.  
  1235. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1236. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1237. 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))
  1238.  
  1239. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1240. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1241. 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))
  1242.  
  1243. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1244. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1245. 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))
  1246.  
  1247. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1248. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1249. 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))
  1250. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1251. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1252. 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))
  1253.  
  1254. --- second ring
  1255.  
  1256. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1257. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1258. 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))
  1259. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1260. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1261. 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))
  1262. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1263. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1264. 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))
  1265.  
  1266. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1267. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1268. 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))
  1269.  
  1270. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1271. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1272. 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))
  1273.  
  1274.  
  1275.  
  1276. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1277. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1278. 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))
  1279.  
  1280. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1281. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1282. 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))
  1283.  
  1284. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1285. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1286. 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))
  1287.  
  1288. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1289. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1290. 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))
  1291. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1292. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1293. 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))]]--
  1294.  
  1295.  
  1296.  
  1297. for i, v in pairs(m:GetChildren()) do
  1298. if v:IsA("Part") then
  1299. v.BrickColor = BrickColor.new("Really black")
  1300. v.Material = "Glass"
  1301. end
  1302. end
  1303. for i, v in pairs(m2:GetChildren()) do
  1304. if v:IsA("Part") then
  1305. v.BrickColor = BrickColor.new("Crimson")
  1306. v.Material = "Granite"
  1307. end
  1308. end
  1309. for i, v in pairs(m3:GetChildren()) do
  1310. if v:IsA("Part") then
  1311. v.BrickColor = BrickColor.new("Really red")
  1312. v.Material = "Neon"
  1313. end
  1314. end
  1315. for i, v in pairs(mw2:GetChildren()) do
  1316. if v:IsA("Part") then
  1317. v.BrickColor = BrickColor.new("Really red")
  1318. v.Material = "Neon"
  1319. end
  1320. end
  1321. for i, v in pairs(mw1:GetChildren()) do
  1322. if v:IsA("Part") then
  1323. v.Transparency = 1
  1324. v.BrickColor = BrickColor.new("Really red")
  1325. v.Material = "Neon"
  1326. end
  1327. end
  1328. for i, v in pairs(extrawingmod1:GetChildren()) do
  1329. if v:IsA("Part") then
  1330. v.Transparency = 1
  1331. v.BrickColor = BrickColor.new("White")
  1332. v.Material = "Neon"
  1333. end
  1334. end
  1335. for i, v in pairs(extrawingmod2:GetChildren()) do
  1336. if v:IsA("Part") then
  1337. v.Transparency = 1
  1338. v.BrickColor = BrickColor.new("White")
  1339. v.Material = "Neon"
  1340. end
  1341. end
  1342. local MAINRUINCOLOR = BrickColor.new("Really red")
  1343. ------
  1344.  
  1345.  
  1346. function RemoveOutlines(part)
  1347.   part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1348. end
  1349. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1350.   local Part = Create("Part")({
  1351.     Parent = Parent,
  1352.     Reflectance = Reflectance,
  1353.     Transparency = Transparency,
  1354.     CanCollide = false,
  1355.     Locked = true,
  1356.     BrickColor = BrickColor.new(tostring(BColor)),
  1357.     Name = Name,
  1358.     Size = Size,
  1359.     Material = Material
  1360.   })
  1361.   Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1362.   RemoveOutlines(Part)
  1363.   return Part
  1364. end
  1365. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1366.   local Msh = Create(Mesh)({
  1367.     Parent = Part,
  1368.     Offset = OffSet,
  1369.     Scale = Scale
  1370.   })
  1371.   if Mesh == "SpecialMesh" then
  1372.     Msh.MeshType = MeshType
  1373.     Msh.MeshId = MeshId
  1374.   end
  1375.   return Msh
  1376. end
  1377. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1378.   local Weld = Create("Weld")({
  1379.     Parent = Parent,
  1380.     Part0 = Part0,
  1381.     Part1 = Part1,
  1382.     C0 = C0,
  1383.     C1 = C1
  1384.   })
  1385.   return Weld
  1386. end
  1387.  
  1388. Character=Player.Character
  1389. PlayerGui=Player.PlayerGui
  1390. Backpack=Player.Backpack
  1391. Torso=Character.Torso
  1392. Head=Character.Head
  1393. Humanoid=Character.Humanoid
  1394. m=Instance.new('Model',Character)
  1395. LeftArm=Character["Left Arm"]
  1396. LeftLeg=Character["Left Leg"]
  1397. RightArm=Character["Right Arm"]
  1398. RightLeg=Character["Right Leg"]
  1399. LS=Torso["Left Shoulder"]
  1400. LH=Torso["Left Hip"]
  1401. RS=Torso["Right Shoulder"]
  1402. RH=Torso["Right Hip"]
  1403. Face = Head.face
  1404. Neck=Torso.Neck
  1405. it=Instance.new
  1406. attacktype=1
  1407. vt=Vector3.new
  1408. cf=CFrame.new
  1409. euler=CFrame.fromEulerAnglesXYZ
  1410. angles=CFrame.Angles
  1411. cloaked=false
  1412. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1413. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1414. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1415. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1416. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1417. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1418. RootPart=Character.HumanoidRootPart
  1419. RootJoint=RootPart.RootJoint
  1420. RootCF=euler(-1.57,0,3.14)
  1421. attack = false
  1422. attackdebounce = false
  1423. deb=false
  1424. equipped=true
  1425. hand=false
  1426. MMouse=nil
  1427. combo=0
  1428. mana=0
  1429. trispeed=.2
  1430. attackmode='none'
  1431. local idle=0
  1432. local Anim="Idle"
  1433. local Effects={}
  1434. local gun=false
  1435. local shoot=false
  1436. local sine = 0
  1437. local change = 1
  1438. local CRAZED = false
  1439.  
  1440.  
  1441. function RecolorTextAndRename(name,col1,col2,font)
  1442. modet.TextStrokeColor3 = col2
  1443. modet.TextColor3 = col1
  1444. modet.Font = font
  1445. modet.Text = name
  1446. techc.ImageColor3 = col2
  1447. circl.ImageColor3 = col2
  1448. circl2.ImageColor3 = col1
  1449. imgl2.ImageColor3 = col1
  1450. imgl2b.ImageColor3 = col2
  1451. ned.Text = name
  1452. ned.TextColor3 = col1
  1453. ned.TextStrokeColor3 = col2
  1454. end
  1455.  
  1456. local disably = false
  1457.  
  1458. function warnedpeople(text,represfont,color,color2)
  1459.     if disably ~= true then
  1460. CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
  1461. CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
  1462. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1463. coroutine.resume(coroutine.create(function()
  1464. if v.PlayerGui:FindFirstChild("Spinny")~= nil then
  1465. v.PlayerGui:FindFirstChild("Spinny"):destroy()
  1466. end
  1467. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  1468. scrg.Name = "Spinny"
  1469. local frm = Instance.new("Frame",scrg)
  1470. frm.BackgroundTransparency = 0.25
  1471. frm.BackgroundColor3 = color
  1472. frm.BorderSizePixel = 0
  1473. frm.Rotation = 45
  1474. frm.Size = UDim2.new(3,0,0,100)
  1475. frm.Position = UDim2.new(-4,0,0,0)
  1476. local frm2 = frm:Clone()
  1477. frm2.Parent = scrg
  1478. frm2.BackgroundColor3 = color2
  1479. frm2.Position = UDim2.new(-4.05,0,0,0)
  1480. local imlb = Instance.new("ImageLabel",scrg)
  1481. imlb.BackgroundTransparency = 1
  1482. imlb.BackgroundColor3 = Color3.new(0,0,0)
  1483. imlb.Image = "rbxassetid://2344851144"
  1484. imlb.Size = UDim2.new(0,750,0,750)
  1485. imlb.ImageColor3 = color2
  1486. imlb.ImageTransparency = 0.25
  1487. imlb.Position = UDim2.new(-2.5,0,-2.5,0)
  1488. local imlb2 = imlb:Clone()
  1489. imlb2.Image = "rbxassetid://2325939897"
  1490. imlb2.Size = UDim2.new(1,0,1,0)
  1491. imlb2.ImageColor3 = color
  1492. imlb2.ImageTransparency = 0
  1493. imlb2.Position = UDim2.new(0,0,0,0)
  1494. local imlb3 = imlb:Clone()
  1495. imlb3.Image = "rbxassetid://2344830904"
  1496. imlb3.Size = UDim2.new(1,0,1,0)
  1497. imlb3.ImageColor3 = color2
  1498. imlb3.ImageTransparency = 0
  1499. imlb3.Position = UDim2.new(0,0,0,0)
  1500. local imlb4 = imlb:Clone()
  1501. imlb4.Image = "rbxassetid://2344870656"
  1502. imlb4.Size = UDim2.new(3,0,3,0)
  1503. imlb4.ImageColor3 = Color3.new(1,1,1)
  1504. imlb4.ImageTransparency = 0
  1505. imlb4.Position = UDim2.new(-1,0,-1,0)
  1506. local imlb5 = imlb:Clone()
  1507. imlb5.Image = "rbxassetid://2344870656"
  1508. imlb5.Size = UDim2.new(10,0,10,0)
  1509. imlb5.ImageColor3 = color2
  1510. imlb5.ImageTransparency = 0
  1511. imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
  1512. imlb2.Parent = imlb
  1513. imlb3.Parent = imlb
  1514. imlb4.Parent = imlb
  1515. imlb5.Parent = imlb
  1516. local txtlb2 = Instance.new("TextLabel",imlb)
  1517. txtlb2.Text = text
  1518. txtlb2.Font = represfont
  1519. txtlb2.TextColor3 = color
  1520. txtlb2.TextStrokeTransparency = 0
  1521. txtlb2.BackgroundTransparency = 1
  1522. txtlb2.TextStrokeColor3 = color2
  1523. txtlb2.TextScaled = true
  1524. txtlb2.Size = UDim2.new(1,0,1,0)
  1525. txtlb2.Position = UDim2.new(0,0,0,0)
  1526. local fvalen = 0.55
  1527. local fval = -0.49
  1528. coroutine.resume(coroutine.create(function()
  1529. while true do
  1530. swait()
  1531. if CRAZED == true then
  1532. txtlb2.Rotation = math.random(-1,1)
  1533. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1534. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1535. txtlb2.TextStrokeColor3 = Color3.new(0,0,math.random(0.1,1))
  1536. txtlb2.TextColor3 = Color3.new(0,0,math.random(0,0.2))
  1537. imlb.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
  1538. frm.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
  1539. frm2.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
  1540. end
  1541. end
  1542. end))
  1543. coroutine.resume(coroutine.create(function()
  1544. while true do
  1545. swait()
  1546. if chaosmode == true then
  1547. txtlb2.Rotation = math.random(-1,1)
  1548. imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1549. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  1550. imlb.ImageColor3 = BrickColor.random().Color
  1551. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  1552. end
  1553. end
  1554. end))
  1555. coroutine.resume(coroutine.create(function()
  1556. while true do
  1557. swait()
  1558. if scrg.Parent ~= nil then
  1559.     fvalen = fvalen - 0.0001
  1560. elseif scrg.Parent == nil then
  1561. break
  1562. end
  1563. end
  1564. end))
  1565. local flol = -5
  1566. local flil = 1.6
  1567. coroutine.resume(coroutine.create(function()
  1568.     for i = 0, 49 do
  1569.         swait()
  1570.         flol = flol + 0.125
  1571.         flil = flil - 0.1
  1572.         frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
  1573.         frm.Rotation = frm.Rotation - 0.25
  1574.         frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
  1575.         frm2.Rotation = frm.Rotation + 0.325
  1576.         imlb3.Rotation = imlb3.Rotation - 10
  1577.         imlb2.Rotation = imlb.Rotation + 7.5
  1578.         imlb.Rotation = imlb.Rotation + 5
  1579.         txtlb2.Rotation = txtlb2.Rotation - 5.125
  1580.         imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
  1581.     end
  1582.     for i = 0, 99 do
  1583.         swait()
  1584.         fval = fval + 0.05
  1585.         flol = flol + 0.005
  1586.         frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
  1587.         frm.Rotation = frm.Rotation - 0.075
  1588.         frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
  1589.         frm2.Rotation = frm2.Rotation + 0.125
  1590.         imlb3.Rotation = imlb3.Rotation - 2
  1591.         imlb2.Rotation = imlb.Rotation + 1.5
  1592.         imlb.Rotation = imlb.Rotation + 1
  1593.         txtlb2.Rotation = txtlb2.Rotation - 1.125
  1594.         imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
  1595.     end
  1596. local valinc = 0
  1597. local vinc2 = 1
  1598. for i = 0, 99 do
  1599. swait()
  1600. vinc2 = vinc2 + 0.25
  1601. valinc = valinc + 0.0001
  1602. flol = flol + valinc
  1603. flil = flil + valinc
  1604. txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
  1605. imlb3.Rotation = imlb3.Rotation - 2*vinc2
  1606. imlb.Rotation = imlb.Rotation + 1*vinc2
  1607. imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
  1608. frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
  1609. frm.Rotation = frm.Rotation + 0.1*vinc2
  1610. frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
  1611. frm2.Rotation = frm2.Rotation + 0.225*vinc2
  1612. frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
  1613. frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
  1614. imlb.ImageTransparency = imlb.ImageTransparency + 0.005
  1615. imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
  1616. imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
  1617. imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
  1618. imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
  1619. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  1620. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  1621. end
  1622. scrg:Destroy()
  1623. end))
  1624. end))
  1625. end
  1626. end
  1627. end
  1628.  
  1629.  
  1630. --save shoulders
  1631. RSH, LSH=nil, nil
  1632. --welds
  1633. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1634. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1635. LH=Torso["Left Hip"]
  1636. RH=Torso["Right Hip"]
  1637. TorsoColor=Torso.BrickColor
  1638. function NoOutline(Part)
  1639. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1640. end
  1641. ch=Character
  1642. RSH=ch.Torso["Right Shoulder"]
  1643. LSH=ch.Torso["Left Shoulder"]
  1644. --
  1645. RSH.Parent=nil
  1646. LSH.Parent=nil
  1647. --
  1648. RW.Name="Right Shoulder"
  1649. RW.Part0=ch.Torso
  1650. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1651. RW.C1=cf(0, 0.5, 0)
  1652. RW.Part1=ch["Right Arm"]
  1653. RW.Parent=ch.Torso
  1654. --
  1655. LW.Name="Left Shoulder"
  1656. LW.Part0=ch.Torso
  1657. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1658. LW.C1=cf(0, 0.5, 0)
  1659. LW.Part1=ch["Left Arm"]
  1660. LW.Parent=ch.Torso
  1661.  
  1662. local Stats=Instance.new("BoolValue")
  1663. Stats.Name="Stats"
  1664. Stats.Parent=Character
  1665. local Atk=Instance.new("NumberValue")
  1666. Atk.Name="Damage"
  1667. Atk.Parent=Stats
  1668. Atk.Value=1
  1669. local Def=Instance.new("NumberValue")
  1670. Def.Name="Defense"
  1671. Def.Parent=Stats
  1672. Def.Value=1
  1673. local Speed=Instance.new("NumberValue")
  1674. Speed.Name="Speed"
  1675. Speed.Parent=Stats
  1676. Speed.Value=1
  1677. local Mvmt=Instance.new("NumberValue")
  1678. Mvmt.Name="Movement"
  1679. Mvmt.Parent=Stats
  1680. Mvmt.Value=1
  1681.  
  1682. local donum=0
  1683.  
  1684.  
  1685. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1686. local fp=it("Part")
  1687. fp.formFactor=formfactor
  1688. fp.Parent=parent
  1689. fp.Reflectance=reflectance
  1690. fp.Transparency=transparency
  1691. fp.CanCollide=false
  1692. fp.Locked=true
  1693. fp.BrickColor=brickcolor
  1694. fp.Name=name
  1695. fp.Size=size
  1696. fp.Position=Torso.Position
  1697. NoOutline(fp)
  1698. fp.Material="SmoothPlastic"
  1699. fp:BreakJoints()
  1700. return fp
  1701. end
  1702.  
  1703. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1704. local mesh=it(Mesh)
  1705. mesh.Parent=part
  1706. if Mesh=="SpecialMesh" then
  1707. mesh.MeshType=meshtype
  1708. if meshid~="nil" then
  1709. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1710. end
  1711. end
  1712. mesh.Offset=offset
  1713. mesh.Scale=scale
  1714. return mesh
  1715. end
  1716.  
  1717. function weld(parent,part0,part1,c0)
  1718. local weld=it("Weld")
  1719. weld.Parent=parent
  1720. weld.Part0=part0
  1721. weld.Part1=part1
  1722. weld.C0=c0
  1723. return weld
  1724. end
  1725.  
  1726. local Color1=Torso.BrickColor
  1727.  
  1728. local bodvel=Instance.new("BodyVelocity")
  1729. local bg=Instance.new("BodyGyro")
  1730.  
  1731. --------- SazEreno's Artificial HB --------------
  1732. ArtificialHB = Instance.new("BindableEvent", script)
  1733. ArtificialHB.Name = "ArtificialHB"
  1734.  
  1735. script:WaitForChild("ArtificialHB")
  1736. Frame_Speed = 1 / 60
  1737. frame = Frame_Speed
  1738. tf = 0
  1739. allowframeloss = false
  1740. tossremainder = false
  1741. lastframe = tick()
  1742. script.ArtificialHB:Fire()
  1743.  
  1744. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1745.     tf = tf + s
  1746.     if tf >= frame then
  1747.         if allowframeloss then
  1748.             script.ArtificialHB:Fire()
  1749.             lastframe = tick()
  1750.         else
  1751.             for i = 1, math.floor(tf / frame) do
  1752.                 script.ArtificialHB:Fire()
  1753.             end
  1754.         lastframe = tick()
  1755.         end
  1756.         if tossremainder then
  1757.             tf = 0
  1758.         else
  1759.             tf = tf - frame * math.floor(tf / frame)
  1760.         end
  1761.     end
  1762. end)
  1763.  
  1764. ------------------
  1765. function swait(num)
  1766. if num == 0 or num == nil then
  1767.         ArtificialHB.Event:wait()
  1768.     else
  1769.         for i = 1, num do
  1770.             ArtificialHB.Event:wait()
  1771.         end
  1772.     end
  1773. end
  1774. -------- RAINBOW LEAVE IT TO ME
  1775. local r = 255
  1776. local g = 0
  1777. local b = 0
  1778. coroutine.resume(coroutine.create(function()
  1779. while wait() do
  1780.     for i = 0, 254/5 do
  1781.         swait()
  1782.         g = g + 5
  1783.     end
  1784.     for i = 0, 254/5 do
  1785.         swait()
  1786.         r = r - 5
  1787.     end
  1788.     for i = 0, 254/5 do
  1789.         swait()
  1790.         b = b + 5
  1791.     end
  1792.     for i = 0, 254/5 do
  1793.         swait()
  1794.         g = g - 5
  1795.     end
  1796.     for i = 0, 254/5 do
  1797.         swait()
  1798.         r = r + 5
  1799.     end
  1800.     for i = 0, 254/5 do
  1801.         swait()
  1802.         b = b - 5
  1803.     end
  1804. end
  1805. end))
  1806.  
  1807.  
  1808. so = function(id,par,vol,pit)
  1809. coroutine.resume(coroutine.create(function()
  1810. local sou = Instance.new("Sound",par or workspace)
  1811. sou.Volume=vol
  1812. sou.Pitch=pit or 1
  1813. sou.SoundId=id
  1814. swait()
  1815. sou:play()
  1816. game:GetService("Debris"):AddItem(sou,6)
  1817. end))
  1818. end
  1819.  
  1820. function clerp(a,b,t)
  1821. local qa = {QuaternionFromCFrame(a)}
  1822. local qb = {QuaternionFromCFrame(b)}
  1823. local ax, ay, az = a.x, a.y, a.z
  1824. local bx, by, bz = b.x, b.y, b.z
  1825. local _t = 1-t
  1826. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1827. end
  1828.  
  1829. function QuaternionFromCFrame(cf)
  1830. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1831. local trace = m00 + m11 + m22
  1832. if trace > 0 then
  1833. local s = math.sqrt(1 + trace)
  1834. local recip = 0.5/s
  1835. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1836. else
  1837. local i = 0
  1838. if m11 > m00 then
  1839. i = 1
  1840. end
  1841. if m22 > (i == 0 and m00 or m11) then
  1842. i = 2
  1843. end
  1844. if i == 0 then
  1845. local s = math.sqrt(m00-m11-m22+1)
  1846. local recip = 0.5/s
  1847. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1848. elseif i == 1 then
  1849. local s = math.sqrt(m11-m22-m00+1)
  1850. local recip = 0.5/s
  1851. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1852. elseif i == 2 then
  1853. local s = math.sqrt(m22-m00-m11+1)
  1854. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1855. end
  1856. end
  1857. end
  1858.  
  1859. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1860. local xs, ys, zs = x + x, y + y, z + z
  1861. local wx, wy, wz = w*xs, w*ys, w*zs
  1862. local xx = x*xs
  1863. local xy = x*ys
  1864. local xz = x*zs
  1865. local yy = y*ys
  1866. local yz = y*zs
  1867. local zz = z*zs
  1868. 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))
  1869. end
  1870.  
  1871. function QuaternionSlerp(a, b, t)
  1872. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1873. local startInterp, finishInterp;
  1874. if cosTheta >= 0.0001 then
  1875. if (1 - cosTheta) > 0.0001 then
  1876. local theta = math.acos(cosTheta)
  1877. local invSinTheta = 1/math.sin(theta)
  1878. startInterp = math.sin((1-t)*theta)*invSinTheta
  1879. finishInterp = math.sin(t*theta)*invSinTheta  
  1880. else
  1881. startInterp = 1-t
  1882. finishInterp = t
  1883. end
  1884. else
  1885. if (1+cosTheta) > 0.0001 then
  1886. local theta = math.acos(-cosTheta)
  1887. local invSinTheta = 1/math.sin(theta)
  1888. startInterp = math.sin((t-1)*theta)*invSinTheta
  1889. finishInterp = math.sin(t*theta)*invSinTheta
  1890. else
  1891. startInterp = t-1
  1892. finishInterp = t
  1893. end
  1894. end
  1895. 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
  1896. end
  1897.  
  1898. local function CFrameFromTopBack(at, top, back)
  1899. local right = top:Cross(back)
  1900. return CFrame.new(at.x, at.y, at.z,
  1901. right.x, top.x, back.x,
  1902. right.y, top.y, back.y,
  1903. right.z, top.z, back.z)
  1904. end
  1905.  
  1906. function Triangle(a, b, c)
  1907. local edg1 = (c-a):Dot((b-a).unit)
  1908. local edg2 = (a-b):Dot((c-b).unit)
  1909. local edg3 = (b-c):Dot((a-c).unit)
  1910. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1911. a, b, c = a, b, c
  1912. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1913. a, b, c = b, c, a
  1914. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1915. a, b, c = c, a, b
  1916. else
  1917. assert(false, "unreachable")
  1918. end
  1919.  
  1920. local len1 = (c-a):Dot((b-a).unit)
  1921. local len2 = (b-a).magnitude - len1
  1922. local width = (a + (b-a).unit*len1 - c).magnitude
  1923.  
  1924. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1925.  
  1926. local list = {}
  1927.  
  1928. if len1 > 0.01 then
  1929. local w1 = Instance.new('WedgePart', m)
  1930. game:GetService("Debris"):AddItem(w1,5)
  1931. w1.Material = "SmoothPlastic"
  1932. w1.FormFactor = 'Custom'
  1933. w1.BrickColor = BrickColor.new("Really red")
  1934. w1.Transparency = 0
  1935. w1.Reflectance = 0
  1936. w1.Material = "SmoothPlastic"
  1937. w1.CanCollide = false
  1938. local l1 = Instance.new("PointLight",w1)
  1939. l1.Color = Color3.new(170,0,0)
  1940. NoOutline(w1)
  1941. local sz = Vector3.new(0.2, width, len1)
  1942. w1.Size = sz
  1943. local sp = Instance.new("SpecialMesh",w1)
  1944. sp.MeshType = "Wedge"
  1945. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1946. w1:BreakJoints()
  1947. w1.Anchored = true
  1948. w1.Parent = workspace
  1949. w1.Transparency = 0.7
  1950. table.insert(Effects,{w1,"Disappear",.01})
  1951. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1952. table.insert(list,w1)
  1953. end
  1954.  
  1955. if len2 > 0.01 then
  1956. local w2 = Instance.new('WedgePart', m)
  1957. game:GetService("Debris"):AddItem(w2,5)
  1958. w2.Material = "SmoothPlastic"
  1959. w2.FormFactor = 'Custom'
  1960. w2.BrickColor = BrickColor.new("Really red")
  1961. w2.Transparency = 0
  1962. w2.Reflectance = 0
  1963. w2.Material = "SmoothPlastic"
  1964. w2.CanCollide = false
  1965. local l2 = Instance.new("PointLight",w2)
  1966. l2.Color = Color3.new(170,0,0)
  1967. NoOutline(w2)
  1968. local sz = Vector3.new(0.2, width, len2)
  1969. w2.Size = sz
  1970. local sp = Instance.new("SpecialMesh",w2)
  1971. sp.MeshType = "Wedge"
  1972. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1973. w2:BreakJoints()
  1974. w2.Anchored = true
  1975. w2.Parent = workspace
  1976. w2.Transparency = 0.7
  1977. table.insert(Effects,{w2,"Disappear",.01})
  1978. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1979. table.insert(list,w2)
  1980. end
  1981. return unpack(list)
  1982. end
  1983.  
  1984.  
  1985. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1986.   if hit.Parent == nil then
  1987.     return
  1988.   end
  1989.   local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1990.   for _, v in pairs(hit.Parent:children()) do
  1991.     if v:IsA("Humanoid") then
  1992.       h = v
  1993.     end
  1994.   end
  1995.   if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1996.     if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1997.       return
  1998.     end
  1999.     local c = Create("ObjectValue")({
  2000.       Name = "creator",
  2001.       Value = game:GetService("Players").Saiyan_Savages,
  2002.       Parent = h
  2003.     })
  2004.     game:GetService("Debris"):AddItem(c, 0.5)
  2005.     if HitSound ~= nil and HitPitch ~= nil then
  2006.       CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2007.     end
  2008.     local Damage = math.random(minim, maxim)
  2009.     local blocked = false
  2010.     local block = hit.Parent:findFirstChild("Block")
  2011.     if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2012.       blocked = true
  2013.       block.Value = block.Value - 1
  2014.       print(block.Value)
  2015.     end
  2016.     if blocked == false then
  2017.       HitHealth = h.Health
  2018.       h.MaxHealth = 100
  2019.       h.Health = h.Health - Damage
  2020.       if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2021.         print("gained kill")
  2022.         dmg(h.Parent)
  2023.       end
  2024.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2025.     else
  2026.       h.Health = h.Health - Damage / 2
  2027.       ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2028.     end
  2029.     if Type == "Knockdown" then
  2030.       local hum = hit.Parent.Humanoid
  2031.       hum.PlatformStand = true
  2032.       coroutine.resume(coroutine.create(function(HHumanoid)
  2033.         swait(1)
  2034.         HHumanoid.PlatformStand = false
  2035.       end), hum)
  2036.       local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2037.       local bodvol = Create("BodyVelocity")({
  2038.         velocity = angle * knockback,
  2039.         P = 5000,
  2040.         maxForce = Vector3.new(8000, 8000, 8000),
  2041.         Parent = hit
  2042.       })
  2043.       local rl = Create("BodyAngularVelocity")({
  2044.         P = 3000,
  2045.         maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2046.         angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2047.         Parent = hit
  2048.       })
  2049.       game:GetService("Debris"):AddItem(bodvol, 0.5)
  2050.       game:GetService("Debris"):AddItem(rl, 0.5)
  2051.     elseif Type == "Normal" then
  2052.       local vp = Create("BodyVelocity")({
  2053.         P = 500,
  2054.         maxForce = Vector3.new(math.huge, 0, math.huge),
  2055.         velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2056.       })
  2057.       if knockback > 0 then
  2058.         vp.Parent = hit.Parent.Head
  2059.       end
  2060.       game:GetService("Debris"):AddItem(vp, 0.5)
  2061.     elseif Type == "Up" then
  2062.       local bodyVelocity = Create("BodyVelocity")({
  2063.         velocity = Vector3.new(0, 20, 0),
  2064.         P = 5000,
  2065.         maxForce = Vector3.new(8000, 8000, 8000),
  2066.         Parent = hit
  2067.       })
  2068.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2069.       local bodyVelocity = Create("BodyVelocity")({
  2070.         velocity = Vector3.new(0, 20, 0),
  2071.         P = 5000,
  2072.         maxForce = Vector3.new(8000, 8000, 8000),
  2073.         Parent = hit
  2074.       })
  2075.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2076.     elseif Type == "Leech" then
  2077.       local hum = hit.Parent.Humanoid
  2078.       if hum ~= nil then
  2079.         for i = 0, 2 do
  2080.           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)
  2081.         end
  2082.         Humanoid.Health = Humanoid.Health + 10
  2083.       end
  2084.     elseif Type == "UpKnock" then
  2085.       local hum = hit.Parent.Humanoid
  2086.       hum.PlatformStand = true
  2087.       if hum ~= nil then
  2088.         hitr = true
  2089.       end
  2090.       coroutine.resume(coroutine.create(function(HHumanoid)
  2091.         swait(5)
  2092.         HHumanoid.PlatformStand = false
  2093.         hitr = false
  2094.       end), hum)
  2095.       local bodyVelocity = Create("BodyVelocity")({
  2096.         velocity = Vector3.new(0, 20, 0),
  2097.         P = 5000,
  2098.         maxForce = Vector3.new(8000, 8000, 8000),
  2099.         Parent = hit
  2100.       })
  2101.       game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2102.       local bodyVelocity = Create("BodyVelocity")({
  2103.         velocity = Vector3.new(0, 20, 0),
  2104.         P = 5000,
  2105.         maxForce = Vector3.new(8000, 8000, 8000),
  2106.         Parent = hit
  2107.       })
  2108.       game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2109.     elseif Type == "Snare" then
  2110.       local bp = Create("BodyPosition")({
  2111.         P = 2000,
  2112.         D = 100,
  2113.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2114.         position = hit.Parent.Torso.Position,
  2115.         Parent = hit.Parent.Torso
  2116.       })
  2117.       game:GetService("Debris"):AddItem(bp, 1)
  2118.     elseif Type == "Slashnare" then
  2119.       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)
  2120.       for i = 1, math.random(4, 5) do
  2121.         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)
  2122.       end
  2123.       local bp = Create("BodyPosition")({
  2124.         P = 2000,
  2125.         D = 100,
  2126.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2127.         position = hit.Parent.Torso.Position,
  2128.         Parent = hit.Parent.Torso
  2129.       })
  2130.       game:GetService("Debris"):AddItem(bp, 1)
  2131.     elseif Type == "Spike" then
  2132.       CreateBigIceSword(hit.Parent.Torso.CFrame)
  2133.       local bp = Create("BodyPosition")({
  2134.         P = 2000,
  2135.         D = 100,
  2136.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2137.         position = hit.Parent.Torso.Position,
  2138.         Parent = hit.Parent.Torso
  2139.       })
  2140.       game:GetService("Debris"):AddItem(bp, 1)
  2141.     elseif Type == "Freeze" then
  2142.       local BodPos = Create("BodyPosition")({
  2143.         P = 50000,
  2144.         D = 1000,
  2145.         maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2146.         position = hit.Parent.Torso.Position,
  2147.         Parent = hit.Parent.Torso
  2148.       })
  2149.       local BodGy = Create("BodyGyro")({
  2150.         maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2151.         P = 20000,
  2152.         Parent = hit.Parent.Torso,
  2153.         cframe = hit.Parent.Torso.CFrame
  2154.       })
  2155.       hit.Parent.Torso.Anchored = true
  2156.       coroutine.resume(coroutine.create(function(Part)
  2157.         swait(1.5)
  2158.         Part.Anchored = false
  2159.       end), hit.Parent.Torso)
  2160.       game:GetService("Debris"):AddItem(BodPos, 3)
  2161.       game:GetService("Debris"):AddItem(BodGy, 3)
  2162.     end
  2163.     local debounce = Create("BoolValue")({
  2164.       Name = "DebounceHit",
  2165.       Parent = hit.Parent,
  2166.       Value = true
  2167.     })
  2168.     game:GetService("Debris"):AddItem(debounce, Delay)
  2169.     c = Instance.new("ObjectValue")
  2170.     c.Name = "creator"
  2171.     c.Value = Player
  2172.     c.Parent = h
  2173.     game:GetService("Debris"):AddItem(c, 0.5)
  2174.   end
  2175. end
  2176. function ShowDamage(Pos, Text, Time, Color)
  2177.   local Rate = 0.03333333333333333
  2178.   local Pos = Pos or Vector3.new(0, 0, 0)
  2179.   local Text = Text or ""
  2180.   local Time = Time or 2
  2181.   local Color = Color or Color3.new(1, 0, 1)
  2182.   local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2183.   EffectPart.Anchored = true
  2184.   local BillboardGui = Create("BillboardGui")({
  2185.     Size = UDim2.new(3, 0, 3, 0),
  2186.     Adornee = EffectPart,
  2187.     Parent = EffectPart
  2188.   })
  2189.   local TextLabel = Create("TextLabel")({
  2190.     BackgroundTransparency = 1,
  2191.     Size = UDim2.new(1, 0, 1, 0),
  2192.     Text = Text,
  2193.     TextColor3 = Color,
  2194.     TextScaled = true,
  2195.     Font = Enum.Font.ArialBold,
  2196.     Parent = BillboardGui
  2197.   })
  2198.   game.Debris:AddItem(EffectPart, Time + 0.1)
  2199.   EffectPart.Parent = game:GetService("Workspace")
  2200.   delay(0, function()
  2201.     local Frames = Time / Rate
  2202.     for Frame = 1, Frames do
  2203.       wait(Rate)
  2204.       local Percent = Frame / Frames
  2205.       EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2206.       TextLabel.TextTransparency = Percent
  2207.     end
  2208.     if EffectPart and EffectPart.Parent then
  2209.       EffectPart:Destroy()
  2210.     end
  2211.   end)
  2212. end
  2213. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2214.   for _, c in pairs(workspace:children()) do
  2215.     local hum = c:findFirstChildOfClass("Humanoid")
  2216.     if hum ~= nil then
  2217.       local head = c:findFirstChild("Head")
  2218.       if head ~= nil then
  2219.         local targ = head.Position - Part.Position
  2220.         local mag = targ.magnitude
  2221.         if magni >= mag and c.Name ~= Player.Name then
  2222.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2223.         end
  2224.       end
  2225.     end
  2226.   end
  2227. end
  2228.  
  2229. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2230.   for _, c in pairs(workspace:children()) do
  2231.     local hum = c:findFirstChild("Humanoid")
  2232.     if hum ~= nil then
  2233.       local head = c:findFirstChild("Torso")
  2234.       if head ~= nil then
  2235.         local targ = head.Position - Part.Position
  2236.         local mag = targ.magnitude
  2237.         if magni >= mag and c.Name ~= Player.Name then
  2238.     MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2239.           Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2240.         end
  2241.       end
  2242.     end
  2243.   end
  2244. end
  2245.  
  2246. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2247. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2248. end
  2249.  
  2250. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2251. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2252. prt.Anchored=true
  2253. prt.CFrame=cframe
  2254. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2255. --http://www.roblox.com/asset/?id=4770560
  2256. game:GetService("Debris"):AddItem(prt,2)
  2257. CF=prt.CFrame
  2258. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2259. for i=0,1,0.2 do
  2260. wait()
  2261. Part.CFrame=CF*cf(0,0,-0.4)
  2262. end
  2263. for i=0,1,delay do
  2264. wait()
  2265. --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)
  2266. Mesh.Scale=Mesh.Scale
  2267. end
  2268. for i=0,1,0.1 do
  2269. wait()
  2270. Part.Transparency=i
  2271. end
  2272. Part.Parent=nil
  2273. end),prt,msh,CF)
  2274. end
  2275.  
  2276. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2277. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2278. prt.Anchored=true
  2279. prt.Material = "Neon"
  2280. prt.CFrame=cframe
  2281. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2282. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2283. game:GetService("Debris"):AddItem(prt,5)
  2284. coroutine.resume(coroutine.create(function(Part,Mesh)
  2285. for i=0,1,delay do
  2286. swait()
  2287. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2288. Part.Transparency=i
  2289. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2290. end
  2291. Part.Parent=nil
  2292. end),prt,msh)
  2293. end
  2294.  
  2295. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2296. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2297. prt.Anchored=true
  2298. prt.Material = "Neon"
  2299. prt.CFrame=cframe
  2300. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2301. game:GetService("Debris"):AddItem(prt,5)
  2302. coroutine.resume(coroutine.create(function(Part,Mesh)
  2303.     local rtype = rottype
  2304. for i=0,1,delay do
  2305. swait()
  2306. if rtype == 1 then
  2307. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2308. elseif rtype == 2 then
  2309. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2310. end
  2311. Part.Transparency=i
  2312. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2313. end
  2314. Part.Parent=nil
  2315. end),prt,msh)
  2316. end
  2317.  
  2318. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2319. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2320. prt.Anchored=true
  2321. prt.CFrame=cframe
  2322. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2323. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2324. game:GetService("Debris"):AddItem(prt,5)
  2325. coroutine.resume(coroutine.create(function(Part,Mesh)
  2326. for i=0,1,delay do
  2327. wait()
  2328. Part.Transparency=i
  2329. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2330. end
  2331. Part.Parent=nil
  2332. end),prt,msh)
  2333. end
  2334.  
  2335. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2336. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2337. prt.Anchored=true
  2338. prt.Material = "Neon"
  2339. prt.CFrame=cframe
  2340. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2341. game:GetService("Debris"):AddItem(prt,5)
  2342. coroutine.resume(coroutine.create(function(Part,Mesh)
  2343.     local rtype = rottype
  2344. for i=0,1,delay do
  2345. swait()
  2346. if rtype == 1 then
  2347. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2348. elseif rtype == 2 then
  2349. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2350. end
  2351. Part.Transparency=i
  2352. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2353. end
  2354. Part.Parent=nil
  2355. end),prt,msh)
  2356. end
  2357.  
  2358. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2359. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2360. prt.Anchored=true
  2361. prt.Material = "Neon"
  2362. prt.CFrame=cframe
  2363. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2364. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2365. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2366. game:GetService("Debris"):AddItem(prt,5)
  2367. coroutine.resume(coroutine.create(function(Part,Mesh)
  2368.     local rtype = rottype
  2369. for i=0,1,delay do
  2370. swait()
  2371. if rtype == 1 then
  2372. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2373. elseif rtype == 2 then
  2374. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2375. end
  2376. dec.Transparency=i
  2377. dec2.Transparency=i
  2378. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2379. end
  2380. Part.Parent=nil
  2381. end),prt,msh)
  2382. end
  2383.  
  2384. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2385. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2386. prt.Anchored=true
  2387. prt.Material = "Neon"
  2388. prt.CFrame=cframe
  2389. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2390. game:GetService("Debris"):AddItem(prt,5)
  2391. coroutine.resume(coroutine.create(function(Part,Mesh)
  2392.     local rtype = rottype
  2393. for i=0,1,delay do
  2394. swait()
  2395. if rtype == 1 then
  2396. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2397. elseif rtype == 2 then
  2398. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2399. end
  2400. prt.Transparency=i
  2401. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2402. end
  2403. Part.Parent=nil
  2404. end),prt,msh)
  2405. end
  2406.  
  2407. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2408. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2409. prt.Anchored=true
  2410. prt.Material = "Neon"
  2411. prt.CFrame=cframe
  2412. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2413. game:GetService("Debris"):AddItem(prt,5)
  2414. coroutine.resume(coroutine.create(function(Part,Mesh)
  2415.     local rtype = rottype
  2416. for i=0,1,delay do
  2417. swait()
  2418. if rtype == 1 then
  2419. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2420. elseif rtype == 2 then
  2421. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2422. end
  2423. prt.Transparency=i
  2424. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2425. end
  2426. Part.Parent=nil
  2427. end),prt,msh)
  2428. end
  2429.  
  2430. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2431. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2432. prt.Anchored=true
  2433. prt.Material = "Neon"
  2434. prt.CFrame=cframe
  2435. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2436. game:GetService("Debris"):AddItem(prt,5)
  2437. coroutine.resume(coroutine.create(function(Part,Mesh)
  2438.     local rtype = rottype
  2439. for i=0,1,delay do
  2440. swait()
  2441. if rtype == 1 then
  2442. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2443. elseif rtype == 2 then
  2444. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2445. end
  2446. prt.Transparency=i
  2447. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2448. end
  2449. Part.Parent=nil
  2450. end),prt,msh)
  2451. end
  2452.  
  2453. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2454. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2455. prt.Anchored=true
  2456. prt.Material = "Neon"
  2457. prt.CFrame=cframe
  2458. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2459. game:GetService("Debris"):AddItem(prt,5)
  2460. coroutine.resume(coroutine.create(function(Part,Mesh)
  2461.     local rtype = rottype
  2462. for i=0,1,delay do
  2463. swait()
  2464. if rtype == 1 then
  2465. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2466. elseif rtype == 2 then
  2467. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2468. end
  2469. prt.Transparency=i
  2470. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2471. end
  2472. Part.Parent=nil
  2473. end),prt,msh)
  2474. end
  2475.  
  2476. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2477. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2478. prt.Anchored=false
  2479. prt.CFrame=cframe
  2480. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2481. local wld=weld(prt,prt,Parent,cframe)
  2482. game:GetService("Debris"):AddItem(prt,5)
  2483. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2484. for i=0,1,delay do
  2485. wait()
  2486. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2487. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2488. Part.Transparency=i
  2489. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2490. end
  2491. Part.Parent=nil
  2492. end),prt,msh,wld)
  2493. end
  2494.  
  2495. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2496. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2497. prt.Anchored=false
  2498. prt.CFrame=cframe
  2499. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2500. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2501. game:GetService("Debris"):AddItem(prt,5)
  2502. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2503. for i=0,1,delay do
  2504. wait()
  2505. Weld.C0=euler(i*20,0,0)
  2506. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2507. Part.Transparency=i
  2508. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2509. end
  2510. Part.Parent=nil
  2511. end),prt,msh,wld)
  2512. end
  2513.  
  2514. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2515. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2516. prt.Anchored=true
  2517. prt.CFrame=cframe
  2518. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2519. game:GetService("Debris"):AddItem(prt,2)
  2520. coroutine.resume(coroutine.create(function(Part,Mesh)
  2521. for i=0,1,delay do
  2522. wait()
  2523. Part.CFrame=Part.CFrame
  2524. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2525. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2526. prt2.Anchored=true
  2527. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2528. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2529. game:GetService("Debris"):AddItem(prt2,2)
  2530. coroutine.resume(coroutine.create(function(Part,Mesh)
  2531. for i=0,1,0.1 do
  2532. wait()
  2533. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2534. end
  2535. Part.Parent=nil
  2536. end),prt2,msh2)
  2537. end
  2538. for i=0,1,delay*2 do
  2539. wait()
  2540. Part.CFrame=Part.CFrame
  2541. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2542. end
  2543. Part.Parent=nil
  2544. end),prt,msh)
  2545. end
  2546.  
  2547. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2548. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2549. prt.Anchored=true
  2550. prt.CFrame=cframe
  2551. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2552. game:GetService("Debris"):AddItem(prt,2)
  2553. coroutine.resume(coroutine.create(function(Part,Mesh)
  2554. for i=0,1,delay do
  2555. wait()
  2556. Part.CFrame=Part.CFrame
  2557. Part.Transparency=i
  2558. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2559. end
  2560. Part.Parent=nil
  2561. end),prt,msh)
  2562. end
  2563.  
  2564. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2565. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2566. prt.Anchored=true
  2567. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2568. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2569. game:GetService("Debris"):AddItem(prt,2)
  2570. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2571. CF=Part.CFrame
  2572. Numbb=0
  2573. randnumb=math.random()/10
  2574. rand1=math.random()/10
  2575. for i=0,1,rand1 do
  2576. wait()
  2577. CF=CF*cf(0,math.random()/2,0)
  2578. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2579. Part.CFrame=CF*euler(Numbb,0,0)
  2580. Part.Transparency=i
  2581. Numbb=Numbb+randnumb
  2582. end
  2583. Part.Parent=nil
  2584. end),prt,CF,Numbb,randnumb)
  2585. end
  2586.  
  2587. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2588. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2589. prt.Anchored=true
  2590. prt.CFrame=cframe
  2591. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2592. game:GetService("Debris"):AddItem(prt,5)
  2593. coroutine.resume(coroutine.create(function(Part,Mesh)
  2594. for i=0,1,delay do
  2595. wait()
  2596. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2597. Part.Transparency=i
  2598. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2599. end
  2600. Part.Parent=nil
  2601. end),prt,msh)
  2602. end
  2603.  
  2604. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2605. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2606. prt.Anchored=true
  2607. prt.CFrame=cframe
  2608. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2609. game:GetService("Debris"):AddItem(prt,2)
  2610. coroutine.resume(coroutine.create(function(Part,Mesh)
  2611. for i=0,1,delay do
  2612. wait()
  2613. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2614. Part.Transparency=i
  2615. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2616. end
  2617. Part.Parent=nil
  2618. end),prt,msh)
  2619. end
  2620.  
  2621. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2622. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2623. prt.Anchored=true
  2624. prt.CFrame=cframe*cf(x,y,z)
  2625. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2626. game:GetService("Debris"):AddItem(prt,5)
  2627. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2628. local num=math.random()
  2629. local num2=math.random(-3,2)+math.random()
  2630. local numm=0
  2631. for i=0,1,delay*2 do
  2632. swait()
  2633. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2634. Part.Transparency=i
  2635. numm=numm+0.01
  2636. end
  2637. Part.Parent=nil
  2638. Mesh.Parent=nil
  2639. end),prt,msh,x,y,z)
  2640. end
  2641.  
  2642. function dmgstart(dmg,what)
  2643.     hitcon = what.Touched:connect(function(hit)
  2644.         local hum = hit.Parent:FindFirstChild("Humanoid")
  2645.         if hum and not hum:IsDescendantOf(Character) then
  2646.             hum:TakeDamage(dmg)
  2647.         end
  2648.     end)
  2649. end
  2650.  
  2651. function dmgstop()
  2652.     hitcon:disconnect()
  2653. end
  2654.  
  2655. function Cloak()
  2656. Face.Parent=nil
  2657. cloaked=true
  2658.         for _,v in pairs(Torso.Parent:children()) do
  2659.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2660.                 coroutine.resume(coroutine.create(function()
  2661.                 for i=0,1,0.2 do
  2662.                 wait()
  2663.                 v.Transparency=i
  2664.                 end
  2665.                 v.Transparency=1
  2666.                 end))
  2667.                 end
  2668.                 if v.className=="Hat" then
  2669.                 hatp=v.Handle
  2670.                 coroutine.resume(coroutine.create(function(derp)
  2671.                 for i=0,1,0.2 do
  2672.                 wait()
  2673.                 derp.Transparency=i
  2674.                 end
  2675.                 derp.Transparency=1
  2676.                 end),hatp)
  2677.                 end
  2678.         end
  2679.         for _,v in pairs(m:children()) do
  2680.                 if v.className=="Part" then
  2681.                 coroutine.resume(coroutine.create(function()
  2682.                 for i=0,1,0.2 do
  2683.                 wait()
  2684.                 v.Transparency=i
  2685.                 end
  2686.                 v.Transparency=1
  2687.                 end))
  2688.                 end
  2689.         end
  2690. end
  2691.  
  2692. function UnCloak()
  2693. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2694. Face.Parent=Head
  2695. cloaked=false
  2696.         for _,v in pairs(Torso.Parent:children()) do
  2697.                 if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2698.                 coroutine.resume(coroutine.create(function()
  2699.                 for i=0,1,0.1 do
  2700.                 wait()
  2701.                 v.Transparency=v.Transparency-0.1
  2702.                 end
  2703.                 v.Transparency=0
  2704.                 end))
  2705.                 end
  2706.                 if v.className=="Hat" then
  2707.                 hatp=v.Handle
  2708.                 coroutine.resume(coroutine.create(function(derp)
  2709.                 for i=0,1,0.1 do
  2710.                 wait()
  2711.                 derp.Transparency=derp.Transparency-0.1
  2712.                 end
  2713.                 derp.Transparency=0
  2714.                 end),hatp)
  2715.                 end
  2716.         end
  2717.         for _,v in pairs(m:children()) do
  2718.                 if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2719.                 coroutine.resume(coroutine.create(function()
  2720.                 for i=0,1,0.1 do
  2721.                 wait()
  2722.                 v.Transparency=v.Transparency-0.1
  2723.                 end
  2724.                 v.Transparency=0
  2725.                 end))
  2726.                 v.Transparency=0
  2727.                 end
  2728.         end
  2729. end
  2730.  
  2731. local origcolor = BrickColor.new("Pastel light blue")
  2732. ---- This section of explosions.
  2733.  
  2734. ----
  2735.  
  2736.  
  2737. function ring(type,pos,scale,value)
  2738. local type = type
  2739. local rng = Instance.new("Part", char)
  2740.         rng.Anchored = true
  2741.         rng.BrickColor = origcolor
  2742.         rng.CanCollide = false
  2743.         rng.FormFactor = 3
  2744.         rng.Name = "Ring"
  2745.         rng.Size = Vector3.new(1, 1, 1)
  2746.         rng.Transparency = 0
  2747.         rng.TopSurface = 0
  2748.         rng.BottomSurface = 0
  2749.         rng.CFrame = pos
  2750.         local rngm = Instance.new("SpecialMesh", rng)
  2751.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2752. rngm.Scale = scale
  2753. local scaler2 = 1
  2754. if type == "Add" then
  2755. scaler2 = 1*value
  2756. elseif type == "Divide" then
  2757. scaler2 = 1/value
  2758. end
  2759. coroutine.resume(coroutine.create(function()
  2760. for i = 0,10,0.1 do
  2761. swait()
  2762. if type == "Add" then
  2763. scaler2 = scaler2 - 0.01*value
  2764. elseif type == "Divide" then
  2765. scaler2 = scaler2 - 0.01/value
  2766. end
  2767. rng.Transparency = rng.Transparency + 0.01
  2768. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2769. end
  2770. rng:Destroy()
  2771. end))
  2772. end
  2773.  
  2774.  
  2775. function wave(type,pos,scale,value)
  2776. local type = type
  2777. local rng = Instance.new("Part", char)
  2778.         rng.Anchored = true
  2779.         rng.BrickColor = origcolor
  2780.         rng.CanCollide = false
  2781.         rng.FormFactor = 3
  2782.         rng.Name = "Ring"
  2783.         rng.Size = Vector3.new(1, 1, 1)
  2784.         rng.Transparency = 0
  2785.         rng.TopSurface = 0
  2786.         rng.BottomSurface = 0
  2787.         rng.CFrame = pos
  2788.         local rngm = Instance.new("SpecialMesh", rng)
  2789.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2790. rngm.Scale = scale
  2791. local scaler2 = 1
  2792. if type == "Add" then
  2793. scaler2 = 1*value
  2794. elseif type == "Divide" then
  2795. scaler2 = 1/value
  2796. end
  2797. coroutine.resume(coroutine.create(function()
  2798. for i = 0,10,0.1 do
  2799. swait()
  2800. if type == "Add" then
  2801. scaler2 = scaler2 - 0.01*value
  2802. elseif type == "Divide" then
  2803. scaler2 = scaler2 - 0.01/value
  2804. end
  2805. rng.Transparency = rng.Transparency + 0.01
  2806. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2807. end
  2808. rng:Destroy()
  2809. end))
  2810. end
  2811.  
  2812. function wind(type,pos,scale,value,speed)
  2813. local type = type
  2814. local rng = Instance.new("Part", char)
  2815.         rng.Anchored = true
  2816.         rng.BrickColor = origcolor
  2817.         rng.CanCollide = false
  2818.         rng.FormFactor = 3
  2819.         rng.Name = "Ring"
  2820.         rng.Size = Vector3.new(1, 1, 1)
  2821.         rng.Transparency = 0
  2822.         rng.TopSurface = 0
  2823.         rng.BottomSurface = 0
  2824.         rng.CFrame = pos
  2825.         local rngm = Instance.new("SpecialMesh", rng)
  2826.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2827. rngm.Scale = scale
  2828. local scaler2 = 1
  2829. if type == "Add" then
  2830. scaler2 = 1*value
  2831. elseif type == "Divide" then
  2832. scaler2 = 1/value
  2833. end
  2834. coroutine.resume(coroutine.create(function()
  2835. for i = 0,10,0.1 do
  2836. swait()
  2837. if type == "Add" then
  2838. scaler2 = scaler2 - 0.01*value
  2839. elseif type == "Divide" then
  2840. scaler2 = scaler2 - 0.01/value
  2841. end
  2842. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2843. rng.Transparency = rng.Transparency + 0.01
  2844. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2845. end
  2846. rng:Destroy()
  2847. end))
  2848. end
  2849.  
  2850. function groundwind(type,pos,scale,value,speed)
  2851. local type = type
  2852. local rng = Instance.new("Part", char)
  2853.         rng.Anchored = true
  2854.         rng.BrickColor = origcolor
  2855.         rng.CanCollide = false
  2856.         rng.FormFactor = 3
  2857.         rng.Name = "Ring"
  2858.         rng.Size = Vector3.new(1, 1, 1)
  2859.         rng.Transparency = 0
  2860.         rng.TopSurface = 0
  2861.         rng.BottomSurface = 0
  2862.         rng.CFrame = pos
  2863.         local rngm = Instance.new("SpecialMesh", rng)
  2864.         rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2865. rngm.Scale = scale
  2866. local scaler2 = 1
  2867. if type == "Add" then
  2868. scaler2 = 1*value
  2869. elseif type == "Divide" then
  2870. scaler2 = 1/value
  2871. end
  2872. coroutine.resume(coroutine.create(function()
  2873. for i = 0,10,0.1 do
  2874. swait()
  2875. if type == "Add" then
  2876. scaler2 = scaler2 - 0.01*value
  2877. elseif type == "Divide" then
  2878. scaler2 = scaler2 - 0.01/value
  2879. end
  2880. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2881. rng.Transparency = rng.Transparency + 0.01
  2882. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2883. end
  2884. rng:Destroy()
  2885. end))
  2886. end
  2887.  
  2888. function CameraManager()
  2889.   if TwoD and not CamInterrupt then
  2890.     if Humanoid.Health > 0 then
  2891.       Camera.CameraSubject = Humanoid
  2892.       Camera.CameraType = "Scriptable"
  2893.       Humanoid.AutoRotate = false
  2894.       if Booleans.GyroUse then
  2895.         Directer.MaxTorque = Vec3(0, huge, 0)
  2896.       else
  2897.         Directer.MaxTorque = Vec3(0, 0, 0)
  2898.       end
  2899.       if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2900.         if Booleans.CamFollow then
  2901.           CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2902.           Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2903.         else
  2904.           CPart.Position = RootPart.Position
  2905.         end
  2906.       else
  2907.         local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2908.         CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2909.       end
  2910.       Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2911.     else
  2912.       Camera.CameraSubject = Humanoid
  2913.       Camera.CameraType = "Custom"
  2914.       Controller.Disabled = false
  2915.     end
  2916.   end
  2917. end
  2918.  
  2919. function ring(type,pos,scale,value)
  2920. local type = type
  2921. local rng = Instance.new("Part", char)
  2922.         rng.Anchored = true
  2923.         rng.BrickColor = origcolor
  2924.         rng.CanCollide = false
  2925.         rng.FormFactor = 3
  2926.         rng.Name = "Ring"
  2927.         rng.Size = Vector3.new(1, 1, 1)
  2928.         rng.Transparency = 0
  2929.         rng.TopSurface = 0
  2930.         rng.BottomSurface = 0
  2931.         rng.CFrame = pos
  2932.         local rngm = Instance.new("SpecialMesh", rng)
  2933.         rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2934. rngm.Scale = scale
  2935. local scaler2 = 1
  2936. if type == "Add" then
  2937. scaler2 = 1*value
  2938. elseif type == "Divide" then
  2939. scaler2 = 1/value
  2940. end
  2941. coroutine.resume(coroutine.create(function()
  2942. for i = 0,10,0.1 do
  2943. swait()
  2944. if type == "Add" then
  2945. scaler2 = scaler2 - 0.01*value
  2946. elseif type == "Divide" then
  2947. scaler2 = scaler2 - 0.01/value
  2948. end
  2949. rng.Transparency = rng.Transparency + 0.01
  2950. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2951. end
  2952. rng:Destroy()
  2953. end))
  2954. end
  2955.  
  2956.  
  2957. function wave(type,pos,scale,value)
  2958. local type = type
  2959. local rng = Instance.new("Part", char)
  2960.         rng.Anchored = true
  2961.         rng.BrickColor = origcolor
  2962.         rng.CanCollide = false
  2963.         rng.FormFactor = 3
  2964.         rng.Name = "Ring"
  2965.         rng.Size = Vector3.new(1, 1, 1)
  2966.         rng.Transparency = 0
  2967.         rng.TopSurface = 0
  2968.         rng.BottomSurface = 0
  2969.         rng.CFrame = pos
  2970.         local rngm = Instance.new("SpecialMesh", rng)
  2971.         rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2972. rngm.Scale = scale
  2973. local scaler2 = 1
  2974. if type == "Add" then
  2975. scaler2 = 1*value
  2976. elseif type == "Divide" then
  2977. scaler2 = 1/value
  2978. end
  2979. coroutine.resume(coroutine.create(function()
  2980. for i = 0,10,0.1 do
  2981. swait()
  2982. if type == "Add" then
  2983. scaler2 = scaler2 - 0.01*value
  2984. elseif type == "Divide" then
  2985. scaler2 = scaler2 - 0.01/value
  2986. end
  2987. rng.Transparency = rng.Transparency + 0.01
  2988. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2989. end
  2990. rng:Destroy()
  2991. end))
  2992. end
  2993.  
  2994. function sphere(bonuspeed,type,pos,scale,value,color)
  2995. local type = type
  2996. local rng = Instance.new("Part", char)
  2997.         rng.Anchored = true
  2998. if ModeOfGlitch ~= 9 then
  2999.         rng.BrickColor = color
  3000. elseif ModeOfGlitch == 9 then
  3001. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3002. end
  3003.         rng.CanCollide = false
  3004.         rng.FormFactor = 3
  3005.         rng.Name = "Ring"
  3006.         rng.Material = "Neon"
  3007.         rng.Size = Vector3.new(1, 1, 1)
  3008.         rng.Transparency = 0
  3009.         rng.TopSurface = 0
  3010.         rng.BottomSurface = 0
  3011.         rng.CFrame = pos
  3012.         local rngm = Instance.new("SpecialMesh", rng)
  3013.         rngm.MeshType = "Sphere"
  3014. rngm.Scale = scale
  3015. if rainbowmode == true then
  3016. rng.Color = Color3.new(r/255,g/255,b/255)
  3017. end
  3018. if ModeOfGlitch == 9 then
  3019. coroutine.resume(coroutine.create(function()
  3020. while true do
  3021. swait()
  3022. if rng.Parent ~= nil then
  3023. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3024. else
  3025. break
  3026. end
  3027. end
  3028. end))
  3029. end
  3030. local scaler2 = 1
  3031. if type == "Add" then
  3032. scaler2 = 1*value
  3033. elseif type == "Divide" then
  3034. scaler2 = 1/value
  3035. end
  3036. coroutine.resume(coroutine.create(function()
  3037. for i = 0,10/bonuspeed,0.1 do
  3038. swait()
  3039. if rainbowmode == true then
  3040. rng.Color = Color3.new(r/255,g/255,b/255)
  3041. end
  3042. if type == "Add" then
  3043. scaler2 = scaler2 - 0.01*value/bonuspeed
  3044. elseif type == "Divide" then
  3045. scaler2 = scaler2 - 0.01/value*bonuspeed
  3046. end
  3047. if chaosmode == true then
  3048. rng.BrickColor = BrickColor.random()
  3049. end
  3050. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3051. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3052. end
  3053. rng:Destroy()
  3054. end))
  3055. end
  3056.  
  3057. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  3058. local type = type
  3059. local rng = Instance.new("Part", char)
  3060.         rng.Anchored = true
  3061. if ModeOfGlitch ~= 9 then
  3062.         rng.BrickColor = color
  3063. elseif ModeOfGlitch == 9 then
  3064. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3065. end
  3066.         rng.CanCollide = false
  3067.         rng.FormFactor = 3
  3068.         rng.Name = "Ring"
  3069.         rng.Material = "Neon"
  3070.         rng.Size = Vector3.new(1, 1, 1)
  3071.         rng.Transparency = 0
  3072.         rng.TopSurface = 0
  3073.         rng.BottomSurface = 0
  3074.         rng.CFrame = pos
  3075.         local rngm = Instance.new("SpecialMesh", rng)
  3076.         rngm.MeshType = "Sphere"
  3077. rngm.Scale = scale
  3078. local scaler2 = 1
  3079. local scaler2b = 1
  3080. local scaler2c = 1
  3081. if type == "Add" then
  3082. scaler2 = 1*value
  3083. scaler2b = 1*value2
  3084. scaler2c = 1*value3
  3085. elseif type == "Divide" then
  3086. scaler2 = 1/value
  3087. scaler2b = 1/value2
  3088. scaler2c = 1/value3
  3089. end
  3090. if ModeOfGlitch == 9 then
  3091. coroutine.resume(coroutine.create(function()
  3092. while true do
  3093. swait()
  3094. if rng.Parent ~= nil then
  3095. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3096. else
  3097. break
  3098. end
  3099. end
  3100. end))
  3101. end
  3102. coroutine.resume(coroutine.create(function()
  3103. for i = 0,10/bonuspeed,0.1 do
  3104. swait()
  3105. if type == "Add" then
  3106. scaler2 = scaler2 - 0.01*value/bonuspeed
  3107. scaler2b = scaler2b - 0.01*value/bonuspeed
  3108. scaler2c = scaler2c - 0.01*value/bonuspeed
  3109. elseif type == "Divide" then
  3110. scaler2 = scaler2 - 0.01/value*bonuspeed
  3111. scaler2b = scaler2b - 0.01/value*bonuspeed
  3112. scaler2c = scaler2c - 0.01/value*bonuspeed
  3113. end
  3114. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3115. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3116. end
  3117. rng:Destroy()
  3118. end))
  3119. end
  3120.  
  3121. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  3122. local type = type
  3123. local rotenable = rotatingop
  3124. local rng = Instance.new("Part", char)
  3125.         rng.Anchored = true
  3126.         rng.BrickColor = color
  3127.         rng.CanCollide = false
  3128.         rng.FormFactor = 3
  3129.         rng.Name = "Ring"
  3130.         rng.Material = "Neon"
  3131.         rng.Size = Vector3.new(1, 1, 1)
  3132.         rng.Transparency = 0
  3133. if typeoftrans == "In" then
  3134. rng.Transparency = 1
  3135. end
  3136.         rng.TopSurface = 0
  3137.         rng.BottomSurface = 0
  3138.         rng.CFrame = pos
  3139.         local rngm = Instance.new("SpecialMesh", rng)
  3140.         rngm.MeshType = "FileMesh"
  3141. if typeofshape == "Normal" then
  3142. rngm.MeshId = "rbxassetid://662586858"
  3143. elseif typeofshape == "Round" then
  3144. rngm.MeshId = "rbxassetid://662585058"
  3145. end
  3146. rngm.Scale = scale
  3147. local scaler2 = 1/10
  3148. if type == "Add" then
  3149. scaler2 = 1*value/10
  3150. elseif type == "Divide" then
  3151. scaler2 = 1/value/10
  3152. end
  3153. local randomrot = math.random(1,2)
  3154. coroutine.resume(coroutine.create(function()
  3155. for i = 0,10/bonuspeed,0.1 do
  3156. swait()
  3157. if type == "Add" then
  3158. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  3159. elseif type == "Divide" then
  3160. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  3161. end
  3162. if rotenable == true then
  3163. if randomrot == 1 then
  3164. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  3165. elseif randomrot == 2 then
  3166. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  3167. end
  3168. end
  3169. if typeoftrans == "Out" then
  3170. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3171. elseif typeoftrans == "In" then
  3172. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3173. end
  3174. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  3175. end
  3176. rng:Destroy()
  3177. end))
  3178. end
  3179.  
  3180. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3181. local type = type
  3182. local rng = Instance.new("Part", char)
  3183.         rng.Anchored = true
  3184.         rng.BrickColor = color
  3185.         rng.CanCollide = false
  3186.         rng.FormFactor = 3
  3187.         rng.Name = "Ring"
  3188.         rng.Material = "Neon"
  3189.         rng.Size = Vector3.new(1, 1, 1)
  3190.         rng.Transparency = 0
  3191.         rng.TopSurface = 0
  3192.         rng.BottomSurface = 0
  3193.         rng.CFrame = pos
  3194. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3195.         local rngm = Instance.new("SpecialMesh", rng)
  3196.         rngm.MeshType = "Brick"
  3197. rngm.Scale = vt(x1,y1,z1)
  3198. if rainbowmode == true then
  3199. rng.Color = Color3.new(r/255,g/255,b/255)
  3200. end
  3201. local scaler2 = 1
  3202. local speeder = FastSpeed/10
  3203. if type == "Add" then
  3204. scaler2 = 1*value
  3205. elseif type == "Divide" then
  3206. scaler2 = 1/value
  3207. end
  3208. coroutine.resume(coroutine.create(function()
  3209. for i = 0,10/bonuspeed,0.1 do
  3210. swait()
  3211. if rainbowmode == true then
  3212. rng.Color = Color3.new(r/255,g/255,b/255)
  3213. end
  3214. if type == "Add" then
  3215. scaler2 = scaler2 - 0.01*value/bonuspeed
  3216. elseif type == "Divide" then
  3217. scaler2 = scaler2 - 0.01/value*bonuspeed
  3218. end
  3219. if chaosmode == true then
  3220. rng.BrickColor = BrickColor.random()
  3221. end
  3222. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3223. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3224. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3225. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3226. end
  3227. rng:Destroy()
  3228. end))
  3229. end
  3230.  
  3231. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3232. local type = type
  3233. local rng = Instance.new("Part", char)
  3234.         rng.Anchored = true
  3235.         rng.BrickColor = color
  3236.         rng.CanCollide = false
  3237.         rng.FormFactor = 3
  3238.         rng.Name = "Ring"
  3239.         rng.Material = "Neon"
  3240.         rng.Size = Vector3.new(1, 1, 1)
  3241.         rng.Transparency = 0
  3242.         rng.TopSurface = 0
  3243.         rng.BottomSurface = 0
  3244.         rng.CFrame = pos
  3245. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3246.         local rngm = Instance.new("SpecialMesh", rng)
  3247.         rngm.MeshType = "Brick"
  3248. rngm.Scale = vt(x1,y1,z1)
  3249. if rainbowmode == true then
  3250. rng.Color = Color3.new(r/255,g/255,b/255)
  3251. end
  3252. local scaler2 = 1
  3253. local speeder = FastSpeed/10
  3254. if type == "Add" then
  3255. scaler2 = 1*value
  3256. elseif type == "Divide" then
  3257. scaler2 = 1/value
  3258. end
  3259. coroutine.resume(coroutine.create(function()
  3260. for i = 0,10/bonuspeed,0.1 do
  3261. swait()
  3262. if rainbowmode == true then
  3263. rng.Color = Color3.new(r/255,g/255,b/255)
  3264. end
  3265. if type == "Add" then
  3266. scaler2 = scaler2 - 0.01*value/bonuspeed
  3267. elseif type == "Divide" then
  3268. scaler2 = scaler2 - 0.01/value*bonuspeed
  3269. end
  3270. if chaosmode == true then
  3271. rng.BrickColor = BrickColor.random()
  3272. end
  3273. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3274. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3275. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3276. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3277. end
  3278. rng:Destroy()
  3279. end))
  3280. end
  3281.  
  3282. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3283. local type = type
  3284. local rng = Instance.new("Part", char)
  3285.         rng.Anchored = true
  3286.         rng.BrickColor = color
  3287.         rng.CanCollide = false
  3288.         rng.FormFactor = 3
  3289.         rng.Name = "Ring"
  3290.         rng.Material = "Neon"
  3291.         rng.Size = Vector3.new(1, 1, 1)
  3292.         rng.Transparency = 0
  3293.         rng.TopSurface = 0
  3294.         rng.BottomSurface = 0
  3295.         rng.CFrame = pos
  3296. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3297.         local rngm = Instance.new("SpecialMesh", rng)
  3298.         rngm.MeshType = "Brick"
  3299. rngm.Scale = vt(x1,y1,z1)
  3300. if rainbowmode == true then
  3301. rng.Color = Color3.new(r/255,g/255,b/255)
  3302. end
  3303. local scaler2 = 0
  3304. local speeder = FastSpeed/10
  3305. if type == "Add" then
  3306. scaler2 = 1*value
  3307. elseif type == "Divide" then
  3308. scaler2 = 1/value
  3309. end
  3310. coroutine.resume(coroutine.create(function()
  3311. for i = 0,10/bonuspeed,0.1 do
  3312. swait()
  3313. if rainbowmode == true then
  3314. rng.Color = Color3.new(r/255,g/255,b/255)
  3315. end
  3316. if type == "Add" then
  3317. scaler2 = scaler2 - 0.01*value/bonuspeed
  3318. elseif type == "Divide" then
  3319. scaler2 = scaler2 - 0.01/value*bonuspeed
  3320. end
  3321. if chaosmode == true then
  3322. rng.BrickColor = BrickColor.random()
  3323. end
  3324. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3325. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3326. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3327. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3328. end
  3329. rng:Destroy()
  3330. end))
  3331. end
  3332.  
  3333. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3334. local type = type
  3335. local rng = Instance.new("Part", char)
  3336.         rng.Anchored = true
  3337.         rng.BrickColor = color
  3338.         rng.Color = color3
  3339.         rng.CanCollide = false
  3340.         rng.FormFactor = 3
  3341.         rng.Name = "Ring"
  3342.         rng.Material = "Neon"
  3343.         rng.Size = Vector3.new(1, 1, 1)
  3344.         rng.Transparency = 0
  3345.         rng.TopSurface = 0
  3346.         rng.BottomSurface = 0
  3347.         rng.CFrame = pos
  3348.         local rngm = Instance.new("SpecialMesh", rng)
  3349.         rngm.MeshType = "Brick"
  3350. rngm.Scale = scale
  3351. local scaler2 = 1
  3352. local scaler2b = 1
  3353. local scaler2c = 1
  3354. if type == "Add" then
  3355. scaler2 = 1*value
  3356. scaler2b = 1*value2
  3357. scaler2c = 1*value3
  3358. elseif type == "Divide" then
  3359. scaler2 = 1/value
  3360. scaler2b = 1/value2
  3361. scaler2c = 1/value3
  3362. end
  3363. coroutine.resume(coroutine.create(function()
  3364. for i = 0,10/bonuspeed,0.1 do
  3365. swait()
  3366. if type == "Add" then
  3367. scaler2 = scaler2 - 0.01*value/bonuspeed
  3368. scaler2b = scaler2b - 0.01*value/bonuspeed
  3369. scaler2c = scaler2c - 0.01*value/bonuspeed
  3370. elseif type == "Divide" then
  3371. scaler2 = scaler2 - 0.01/value*bonuspeed
  3372. scaler2b = scaler2b - 0.01/value*bonuspeed
  3373. scaler2c = scaler2c - 0.01/value*bonuspeed
  3374. end
  3375. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3376. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3377. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3378. end
  3379. rng:Destroy()
  3380. end))
  3381. end
  3382.  
  3383. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3384. local type = type
  3385. local rng = Instance.new("Part", char)
  3386.         rng.Anchored = true
  3387. if ModeOfGlitch ~= 9 then
  3388.         rng.BrickColor = color
  3389. elseif ModeOfGlitch == 9 then
  3390. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3391. end
  3392.         rng.CanCollide = false
  3393.         rng.FormFactor = 3
  3394.         rng.Name = "Ring"
  3395.         rng.Material = "Neon"
  3396.         rng.Size = Vector3.new(1, 1, 1)
  3397.         rng.Transparency = 0
  3398.         rng.TopSurface = 0
  3399.         rng.BottomSurface = 0
  3400.         rng.CFrame = pos
  3401. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3402.         local rngm = Instance.new("SpecialMesh", rng)
  3403.         rngm.MeshType = "Sphere"
  3404. rngm.Scale = vt(x1,y1,z1)
  3405. if rainbowmode == true then
  3406. rng.Color = Color3.new(r/255,g/255,b/255)
  3407. end
  3408. if ModeOfGlitch == 9 then
  3409. coroutine.resume(coroutine.create(function()
  3410. while true do
  3411. swait()
  3412. if rng.Parent ~= nil then
  3413. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3414. else
  3415. break
  3416. end
  3417. end
  3418. end))
  3419. end
  3420. local scaler2 = 1
  3421. local speeder = FastSpeed
  3422. if type == "Add" then
  3423. scaler2 = 1*value
  3424. elseif type == "Divide" then
  3425. scaler2 = 1/value
  3426. end
  3427. coroutine.resume(coroutine.create(function()
  3428. for i = 0,10/bonuspeed,0.1 do
  3429. swait()
  3430. if rainbowmode == true then
  3431. rng.Color = Color3.new(r/255,g/255,b/255)
  3432. end
  3433. if type == "Add" then
  3434. scaler2 = scaler2 - 0.01*value/bonuspeed
  3435. elseif type == "Divide" then
  3436. scaler2 = scaler2 - 0.01/value*bonuspeed
  3437. end
  3438. if chaosmode == true then
  3439. rng.BrickColor = BrickColor.random()
  3440. end
  3441. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3442. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3443. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3444. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3445. end
  3446. rng:Destroy()
  3447. end))
  3448. end
  3449.  
  3450.  
  3451. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3452. local type = type
  3453. local rng = Instance.new("Part", char)
  3454.         rng.Anchored = true
  3455. if ModeOfGlitch ~= 9 then
  3456.         rng.BrickColor = color
  3457. elseif ModeOfGlitch == 9 then
  3458. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3459. end
  3460.         rng.CanCollide = false
  3461.         rng.FormFactor = 3
  3462.         rng.Name = "Ring"
  3463.         rng.Material = "Neon"
  3464.         rng.Size = Vector3.new(1, 1, 1)
  3465.         rng.Transparency = 1
  3466.         rng.TopSurface = 0
  3467.         rng.BottomSurface = 0
  3468.         rng.CFrame = pos
  3469. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3470.         local rngm = Instance.new("SpecialMesh", rng)
  3471.         rngm.MeshType = "Sphere"
  3472. rngm.Scale = vt(x1,y1,z1)
  3473. if rainbowmode == true then
  3474. rng.Color = Color3.new(r/255,g/255,b/255)
  3475. end
  3476. if ModeOfGlitch == 9 then
  3477. coroutine.resume(coroutine.create(function()
  3478. while true do
  3479. swait()
  3480. if rng.Parent ~= nil then
  3481. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3482. else
  3483. break
  3484. end
  3485. end
  3486. end))
  3487. end
  3488. local scaler2 = 1
  3489. local speeder = FastSpeed
  3490. if type == "Add" then
  3491. scaler2 = 1*value
  3492. elseif type == "Divide" then
  3493. scaler2 = 1/value
  3494. end
  3495. coroutine.resume(coroutine.create(function()
  3496. for i = 0,10/bonuspeed,0.1 do
  3497. swait()
  3498. if rainbowmode == true then
  3499. rng.Color = Color3.new(r/255,g/255,b/255)
  3500. end
  3501. if type == "Add" then
  3502. scaler2 = scaler2 - 0.01*value/bonuspeed
  3503. elseif type == "Divide" then
  3504. scaler2 = scaler2 - 0.01/value*bonuspeed
  3505. end
  3506. if chaosmode == true then
  3507. rng.BrickColor = BrickColor.random()
  3508. end
  3509. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3510. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3511. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3512. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3513. end
  3514. rng:Destroy()
  3515. end))
  3516. end
  3517.  
  3518. function dmg(dude)
  3519. if dude.Name ~= Character then
  3520. local keptcolor = MAINRUINCOLOR
  3521. local bgf = Instance.new("BodyGyro",dude.Head)
  3522. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3523. --[[local val = Instance.new("BoolValue",dude)
  3524. val.Name = "IsHit"]]--
  3525. local ds = coroutine.wrap(function()
  3526. dude:WaitForChild("Head"):BreakJoints()
  3527. for i, v in pairs(dude:GetChildren()) do
  3528. if v:IsA("Part") or v:IsA("MeshPart") then
  3529. v.Name = "DEMINISHED"
  3530. end
  3531. end
  3532. wait(0.5)
  3533. targetted = nil
  3534. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3535. coroutine.resume(coroutine.create(function()
  3536. for i, v in pairs(dude:GetChildren()) do
  3537. if v:IsA("Accessory") then
  3538. v:Destroy()
  3539. end
  3540. if v:IsA("Humanoid") then
  3541. v:Destroy()
  3542. end
  3543. if v:IsA("CharacterMesh") then
  3544. v:Destroy()
  3545. end
  3546. if v:IsA("Model") then
  3547. v:Destroy()
  3548. end
  3549. if v:IsA("Part") or v:IsA("MeshPart") then
  3550. for x, o in pairs(v:GetChildren()) do
  3551. if o:IsA("Decal") then
  3552. o:Destroy()
  3553. end
  3554. end
  3555. coroutine.resume(coroutine.create(function()
  3556. v.Material = "Neon"
  3557. v.CanCollide = false
  3558. v.Anchored = false
  3559. local bld = Instance.new("ParticleEmitter",v)
  3560. bld.LightEmission = 0.75
  3561. bld.Texture = "rbxassetid://363275192" ---284205403
  3562. bld.Color = ColorSequence.new(keptcolor.Color)
  3563. bld.Rate = 500
  3564. bld.Lifetime = NumberRange.new(1)
  3565. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3566. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3567. bld.Speed = NumberRange.new(2,5)
  3568. bld.VelocitySpread = 50000
  3569. bld.Rotation = NumberRange.new(-500,500)
  3570. bld.RotSpeed = NumberRange.new(-500,500)
  3571.         local sbs = Instance.new("BodyPosition", v)
  3572.         sbs.P = 3000
  3573.         sbs.D = 1000
  3574.         sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3575.         sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3576. v.Color = keptcolor.Color
  3577. coroutine.resume(coroutine.create(function()
  3578. for i = 0, 49 do
  3579. swait(1)
  3580. v:BreakJoints()
  3581. v.Transparency = v.Transparency + 0.02
  3582. end
  3583. v:BreakJoints()
  3584. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3585. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3586. bld.Speed = NumberRange.new(10,25)
  3587. bld.Drag = 5
  3588. bld.Acceleration = vt(0,2,0)
  3589. wait(0.5)
  3590. bld.Enabled = false
  3591. wait(8)
  3592. v:Destroy()
  3593. dude:Destroy()
  3594. end))
  3595. end))
  3596. end
  3597. end
  3598. end))
  3599. end)
  3600. ds()
  3601. end
  3602. end
  3603.  
  3604.  
  3605. function FindNearestHead(Position, Distance, SinglePlayer)
  3606.     if SinglePlayer then
  3607.         return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3608.     end
  3609.     local List = {}
  3610.     for i, v in pairs(workspace:GetChildren()) do
  3611.         if v:IsA("Model") then
  3612.             if v:findFirstChild("Head") then
  3613.                 if v ~= Character then
  3614.                     if (v.Head.Position - Position).magnitude <= Distance then
  3615.                         table.insert(List, v)
  3616.                     end
  3617.                 end
  3618.             end
  3619.         end
  3620.     end
  3621.     return List
  3622. end
  3623.  
  3624. function FaceMouse()
  3625.   Cam = workspace.CurrentCamera
  3626.   return {
  3627.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3628.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3629.   }
  3630. end
  3631.  
  3632. function FaceMouse2()
  3633.   Cam = workspace.CurrentCamera
  3634.   return {
  3635.     CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3636.     Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3637.   }
  3638. end
  3639.  
  3640. local ModeOfGlitch = 1
  3641. -- Functions are ready.
  3642. local storehumanoidWS = 16
  3643.  
  3644. function createBGCircle(size,parent,color)
  3645. local bgui = Instance.new("BillboardGui",parent)
  3646. bgui.Size = UDim2.new(size, 0, size, 0)
  3647. local imgc = Instance.new("ImageLabel",bgui)
  3648. imgc.BackgroundTransparency = 1
  3649. imgc.ImageTransparency = 0
  3650. imgc.Size = UDim2.new(1,0,1,0)
  3651. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  3652. imgc.ImageColor3 = color
  3653. return bgui,imgc
  3654. end
  3655.  
  3656. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  3657. local bgui,imgc = createBGCircle(size,guipar,color)
  3658. bgui.AlwaysOnTop = true
  3659. imgc.Image = "rbxassetid://" ..img
  3660. local rrot = math.random(1,2)
  3661. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  3662. coroutine.resume(coroutine.create(function()
  3663. for i = 0, 24*delay do
  3664. swait()
  3665. if rotationenabled == true then
  3666. if rrot == 1 then
  3667. imgc.Rotation = imgc.Rotation + rotsp
  3668. elseif rrot == 2 then
  3669. imgc.Rotation = imgc.Rotation - rotsp
  3670. end
  3671. end
  3672. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  3673. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  3674. end
  3675. bgui:Destroy()
  3676. end))
  3677. end
  3678. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled,sectrailenabled)
  3679. for i, v in pairs(mw2:GetChildren()) do
  3680. if v:IsA("Part") then
  3681. v.BrickColor = one
  3682. v.Material = "Neon"
  3683. end
  3684. end
  3685. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  3686. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  3687. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  3688. tr1.Color = ColorSequence.new(one.Color)
  3689. tr2.Color = ColorSequence.new(one.Color)
  3690. tr3.Color = ColorSequence.new(one.Color)
  3691. for i, v in pairs(mw1:GetChildren()) do
  3692. if v:IsA("Part") then
  3693. if secondaryenabled == false then
  3694. v.Transparency = 1
  3695. elseif secondaryenabled == true then
  3696. v.Transparency = 0
  3697. end
  3698. v.BrickColor = two
  3699. v.Material = "Neon"
  3700. end
  3701. end
  3702. if secondaryenabled == false then
  3703. tl1.Enabled = false
  3704. tl2.Enabled = false
  3705. tl3.Enabled = false
  3706. elseif secondaryenabled == true then
  3707. tl1.Enabled = true
  3708. tl2.Enabled = true
  3709. tl3.Enabled = true
  3710. end
  3711. tl1.Color = ColorSequence.new(two.Color)
  3712. tl2.Color = ColorSequence.new(two.Color)
  3713. tl3.Color = ColorSequence.new(two.Color)
  3714. for i, v in pairs(m:GetChildren()) do
  3715. if v:IsA("Part") then
  3716. v.BrickColor = three
  3717. v.Material = "Ice"
  3718. end
  3719. end
  3720. for i, v in pairs(m2:GetChildren()) do
  3721. if v:IsA("Part") then
  3722. v.BrickColor = four
  3723. v.Material = "Ice"
  3724. end
  3725. end
  3726. for i, v in pairs(m3:GetChildren()) do
  3727. if v:IsA("Part") then
  3728. v.BrickColor = five
  3729. v.Material = "Neon"
  3730. end
  3731. end
  3732. for i, v in pairs(extrawingmod1:GetChildren()) do
  3733. if v:IsA("Part") then
  3734. v.Transparency = exonetran
  3735. v.BrickColor = exone
  3736. v.Material = "Neon"
  3737. end
  3738. end
  3739. if sectrailenabled == true then
  3740. tl4.Enabled = true
  3741. tl5.Enabled = true
  3742. tl6.Enabled = true
  3743. tr4.Enabled = true
  3744. tr5.Enabled = true
  3745. tr6.Enabled = true
  3746. tl4.Color = ColorSequence.new(exone.Color)
  3747. tl5.Color = ColorSequence.new(exone.Color)
  3748. tl6.Color = ColorSequence.new(exone.Color)
  3749. tr4.Color = ColorSequence.new(extwo.Color)
  3750. tr5.Color = ColorSequence.new(extwo.Color)
  3751. tr6.Color = ColorSequence.new(extwo.Color)
  3752. elseif sectrailenabled == false then
  3753. tl4.Enabled = false
  3754. tl5.Enabled = false
  3755. tl6.Enabled = false
  3756. tr4.Enabled = false
  3757. tr5.Enabled = false
  3758. tr6.Enabled = false
  3759. end
  3760. for i, v in pairs(extrawingmod2:GetChildren()) do
  3761. if v:IsA("Part") then
  3762. v.Transparency = extwotran
  3763. v.BrickColor = extwo
  3764. v.Material = "Neon"
  3765. end
  3766. end
  3767. end
  3768.  
  3769.  
  3770. function normalmog()
  3771. attack = true
  3772. hum.WalkSpeed = 0
  3773. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  3774. for i = 0,6,0.1 do
  3775. swait()
  3776. 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)
  3777. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  3778. 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)),.2)
  3779. 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)),.2)
  3780. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  3781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  3782. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  3783. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  3784. end
  3785. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  3786. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  3787. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  3788. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  3789. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  3790. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  3791. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  3792. rainbowmode = false
  3793. chaosmode = false
  3794. ModeOfGlitch = 1
  3795. storehumanoidWS = 16
  3796. newTheme("rbxassetid://614032233",48.6,1,1.25)
  3797. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  3798. CameraEnshaking(5,2.5)
  3799. MAINRUINCOLOR = BrickColor.new("Really red")
  3800. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3801. for i = 0, 49 do
  3802. 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)
  3803. end
  3804. for i = 0, 24 do
  3805. sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
  3806. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  3807. end
  3808. for i = 0,3,0.1 do
  3809. 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)
  3810. end
  3811. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false,false)
  3812. for i = 0,2,0.1 do
  3813. swait()
  3814. 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)
  3815. 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)
  3816. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  3817. 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)
  3818. 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)
  3819. 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)
  3820. end
  3821. hum.WalkSpeed = storehumanoidWS
  3822. attack = false
  3823. end
  3824.  
  3825. function attackone()
  3826.     attack = true
  3827. local keptcolor = MAINRUINCOLOR
  3828.     for i = 0,1,0.1 do
  3829.         swait()
  3830.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  3831. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  3832. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  3833. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3834. 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(-15),math.rad(0),math.rad(0)),.3)
  3835. 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(0),math.rad(0)),.3)
  3836.     end
  3837. local distlook = 5
  3838. coroutine.resume(coroutine.create(function()
  3839. for i = 0, 4 do
  3840. swait(2)
  3841. CameraEnshaking(2,3)
  3842. local hite = Instance.new("Part", char)
  3843.         hite.Anchored = true
  3844.         hite.CanCollide = false
  3845.         hite.FormFactor = 3
  3846.         hite.Name = "Ring"
  3847.         hite.Material = "Neon"
  3848.         hite.Size = Vector3.new(1, 1, 1)
  3849.         hite.Transparency = 1
  3850.         hite.TopSurface = 0
  3851.         hite.BottomSurface = 0
  3852. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  3853. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  3854. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  3855. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  3856. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  3857. MagniDamage(hite, 9, 10,25, 0, "Normal")
  3858. for i = 0, 14 do
  3859. local rsiz = math.random(5,20)
  3860. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3861. end
  3862. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  3863. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  3864. game:GetService("Debris"):AddItem(hite, 5)
  3865. distlook = distlook + 10
  3866. end
  3867. end))
  3868.     for i = 0,1,0.1 do
  3869.         swait()
  3870.             RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  3871. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  3872. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  3873. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  3874. 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(-10)),.5)
  3875. 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(0),math.rad(-10)),.5)
  3876.     end
  3877.     attack = false
  3878. end
  3879.  
  3880. function attacktwo()
  3881.     attack = true
  3882. hum.WalkSpeed = 2
  3883. local keptcolor = MAINRUINCOLOR
  3884. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  3885. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  3886. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  3887. for i = 0, 14 do
  3888. PixelBlock(1,math.random(1,3),"Add",rarm.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,keptcolor,0)
  3889. end
  3890. for i = 0,1,0.1 do
  3891. swait()
  3892. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3893. RH.C0=clerp(RH.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(-5)),.3)
  3894. 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(30),math.rad(0)),.3)
  3895. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  3896. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  3897. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  3898. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  3899. end
  3900. for i = 0, 1 do
  3901. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  3902. for i = 0,1,0.6 do
  3903. swait()
  3904. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3905. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3906. RH.C0=clerp(RH.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(-5)),.6)
  3907. 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(30),math.rad(0)),.6)
  3908. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  3909. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3910. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3911. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3912. end
  3913. for i = 0,1,0.6 do
  3914. swait()
  3915. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3916. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3917. RH.C0=clerp(RH.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(-5)),.6)
  3918. 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(30),math.rad(0)),.6)
  3919. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  3920. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3921. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3922. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3923. end
  3924. for i = 0,1,0.6 do
  3925. swait()
  3926. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3927. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3928. RH.C0=clerp(RH.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(-5)),.6)
  3929. 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(30),math.rad(0)),.6)
  3930. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  3931. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3932. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3933. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3934. end
  3935. for i = 0,1,0.6 do
  3936. swait()
  3937. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  3938. slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  3939. RH.C0=clerp(RH.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(-5)),.6)
  3940. 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(30),math.rad(0)),.6)
  3941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  3942. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  3943. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  3944. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  3945. end
  3946. local rot = 0
  3947. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  3948. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  3949. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  3950. CreateMesh(dis,"Sphere",10,1,10)
  3951. local at1 = Instance.new("Attachment",dis)
  3952. at1.Position = vt(-5,0,0)
  3953. local at2 = Instance.new("Attachment",dis)
  3954. at2.Position = vt(5,0,0)
  3955. local trl = Instance.new('Trail',wed)
  3956. trl.Attachment0 = at1
  3957. trl.Attachment1 = at2
  3958. trl.Texture = "rbxassetid://1049219073"
  3959. trl.LightEmission = 1
  3960. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3961. trl.Color = ColorSequence.new(dis.Color)
  3962. trl.Lifetime = 0.6
  3963. local a = Instance.new("Part",workspace)
  3964.     a.Name = "Direction"   
  3965.     a.Anchored = true
  3966.     a.BrickColor = bc("Bright red")
  3967. a.Material = "Neon"
  3968. a.Transparency = 1
  3969.     a.CanCollide = false
  3970.     local ray = Ray.new(
  3971.         dis.CFrame.p,                           -- origin
  3972.         (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  3973.     )
  3974.     local ignore = dis
  3975.     local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3976.     a.BottomSurface = 10
  3977.     a.TopSurface = 10
  3978.     local distance = (dis.CFrame.p - position).magnitude
  3979.     a.Size = Vector3.new(0.1, 0.1, 0.1)
  3980.     a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  3981. dis.CFrame = a.CFrame
  3982. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  3983. a:Destroy()
  3984. local bv = Instance.new("BodyVelocity")
  3985. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3986. bv.velocity = dis.CFrame.lookVector*250
  3987. bv.Parent = dis
  3988. game:GetService("Debris"):AddItem(dis, 5)
  3989. local hitted = false
  3990. coroutine.resume(coroutine.create(function()
  3991. dis.Touched:connect(function(hit)
  3992.     if hitted == false and hit.Parent ~= char then
  3993.     hitted = true
  3994.     CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  3995.     MagniDamage(dis, 30, 33,56, 0, "Normal")
  3996.     sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  3997.     sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  3998.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  3999.     coroutine.resume(coroutine.create(function()
  4000. local eff = Instance.new("ParticleEmitter",dis)
  4001. eff.Texture = "rbxassetid://2344870656"
  4002. eff.LightEmission = 1
  4003. eff.Color = ColorSequence.new(dis.Color)
  4004. eff.Rate = 10000000
  4005. eff.Enabled = true
  4006. eff.EmissionDirection = "Front"
  4007. eff.Lifetime = NumberRange.new(1)
  4008. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,75,0),NumberSequenceKeypoint.new(0.1,20,0),NumberSequenceKeypoint.new(0.8,40,0),NumberSequenceKeypoint.new(1,60,0)})
  4009. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4010. eff.Speed = NumberRange.new(150)
  4011. eff.Drag = 5
  4012. eff.Rotation = NumberRange.new(-500,500)
  4013. eff.SpreadAngle = Vector2.new(0,900)
  4014. eff.RotSpeed = NumberRange.new(-500,500)
  4015. wait(0.2)
  4016. eff.Enabled = false
  4017.     end))
  4018.     coroutine.resume(coroutine.create(function()
  4019.         for i = 0, 9 do
  4020. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  4021. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4022. local at1 = Instance.new("Attachment",disr)
  4023. at1.Position = vt(-5,0,0)
  4024. local at2 = Instance.new("Attachment",disr)
  4025. at2.Position = vt(5,0,0)
  4026. local trl = Instance.new('Trail',disr)
  4027. trl.Attachment0 = at1
  4028. trl.FaceCamera = true
  4029. trl.Attachment1 = at2
  4030. trl.Texture = "rbxassetid://2342682798"
  4031. trl.LightEmission = 1
  4032. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4033. trl.Color = ColorSequence.new(keptcolor.Color)
  4034. trl.Lifetime = 0.5
  4035. local bv = Instance.new("BodyVelocity")
  4036. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4037. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  4038. bv.Parent = disr
  4039. local val = 0
  4040. coroutine.resume(coroutine.create(function()
  4041.     swait(30)
  4042.     for i = 0, 9 do
  4043.         swait()
  4044.         val = val + 0.1
  4045.         trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  4046.     end
  4047. game:GetService("Debris"):AddItem(disr, 3)
  4048. end))
  4049. end
  4050. local eff = Instance.new("ParticleEmitter",dis)
  4051. eff.Texture = "rbxassetid://2273224484"
  4052. eff.LightEmission = 1
  4053. eff.Color = ColorSequence.new(keptcolor.Color)
  4054. eff.Rate = 500000
  4055. eff.Lifetime = NumberRange.new(0.5,2)
  4056. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4057. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4058. eff.Speed = NumberRange.new(20,250)
  4059. eff.Drag = 5
  4060. eff.Rotation = NumberRange.new(-500,500)
  4061. eff.VelocitySpread = 9000
  4062. eff.RotSpeed = NumberRange.new(-50,50)
  4063. wait(0.25)
  4064. eff.Enabled = false
  4065. end))
  4066.     for i = 0, 9 do
  4067.         slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  4068.     end
  4069. for i = 0, 19 do
  4070. PixelBlock(1,math.random(5,20),"Add",dis.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,keptcolor,0)
  4071. end
  4072. coroutine.resume(coroutine.create(function()
  4073. for i = 0, 19 do
  4074. swait()
  4075. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  4076. end
  4077. hum.CameraOffset = vt(0,0,0)
  4078. end))
  4079. dis.Anchored = true
  4080. dis.Transparency = 1
  4081. wait(8)
  4082. dis:Destroy()
  4083. end
  4084. end)
  4085. end))
  4086. rot = rot - 15
  4087. end
  4088. for i = 0,2,0.1 do
  4089. swait()
  4090. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  4091. 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(5)),.3)
  4092. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  4093. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  4094. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  4095. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  4096. end
  4097. attack = false
  4098. hum.WalkSpeed = storehumanoidWS
  4099. end
  4100.  
  4101. function attackthree()
  4102. attack = true
  4103. local keptcolor = MAINRUINCOLOR
  4104. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4105.     for i = 0,2,0.1 do
  4106.         swait()
  4107.         sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4108. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  4109. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  4110. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  4111. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  4112. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
  4113. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(40)),.3)
  4114.     end
  4115. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  4116. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  4117. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  4118. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  4119. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  4120. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  4121. for i = 0, 24 do
  4122.         slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White"))
  4123. end
  4124. for i = 0,4,0.1 do
  4125.         swait()
  4126.         root.CFrame = root.CFrame + root.CFrame.lookVector*5
  4127.         local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  4128. CreateMesh(dis,"Sphere",1,1,1)
  4129. dis.Anchored = true
  4130. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  4131. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  4132. coroutine.resume(coroutine.create(function()
  4133.     swait(30)
  4134.     dis.Transparency = 1
  4135. coroutine.resume(coroutine.create(function()
  4136. for i = 0, 19 do
  4137. swait()
  4138. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  4139. end
  4140. hum.CameraOffset = vt(0,0,0)
  4141. end))
  4142. coroutine.resume(coroutine.create(function()
  4143. local eff = Instance.new("ParticleEmitter",dis)
  4144. eff.Texture = "rbxassetid://2273224484"
  4145. eff.LightEmission = 1
  4146. eff.Color = ColorSequence.new(dis.Color)
  4147. eff.Rate = 500000
  4148. eff.Lifetime = NumberRange.new(0.5,2)
  4149. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4150. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4151. eff.Speed = NumberRange.new(50,450)
  4152. eff.Drag = 5
  4153. eff.Rotation = NumberRange.new(-500,500)
  4154. eff.VelocitySpread = 9000
  4155. eff.RotSpeed = NumberRange.new(-50,50)
  4156. wait(0.125)
  4157. eff.Enabled = false
  4158. end))
  4159. MagniDamage(dis, 30, 45,50, 0, "Normal")
  4160.     for i = 0, 2 do
  4161.         slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  4162.     end
  4163.     CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  4164.     CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  4165.     CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  4166.     sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  4167. end))
  4168. game:GetService("Debris"):AddItem(dis, 5)
  4169. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  4170. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  4171. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  4172. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  4173. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  4174. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  4175.     end
  4176. attack = false
  4177. end
  4178.  
  4179.  
  4180. local blush = Instance.new("Decal",hed)
  4181. blush.Texture = "rbxassetid://898404027"
  4182. blush.Face = "Front"
  4183. blush.Parent = nil
  4184. blush.Transparency = 1
  4185. ----------------------------------- Abilities
  4186.  
  4187. function ExtinctiveHeartbreak()
  4188. local targetted = nil
  4189. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4190. targetted = mouse.Target.Parent
  4191. end
  4192. if targetted ~= nil then
  4193. attack = true
  4194. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  4195. for i = 0, 9 do
  4196. 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)
  4197. end
  4198. for i = 0, 24 do
  4199. 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)
  4200. end
  4201. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  4202. local originalpos = root.CFrame
  4203. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  4204. for i = 0, 9 do
  4205. 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)
  4206. end
  4207. for i = 0, 24 do
  4208. 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)
  4209. end
  4210. hum.WalkSpeed = 0
  4211. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  4212. local radm = math.random(1,3)
  4213. if radm == 1 then
  4214. bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  4215. elseif radm == 2 then
  4216. bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  4217. elseif radm == 3 then
  4218. bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  4219. end
  4220. for i = 0,2,0.1 do
  4221. swait()
  4222. 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(-10),math.rad(0)),.4)
  4223. 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)
  4224. 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)
  4225. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  4226. 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)
  4227. 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)
  4228. end
  4229. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  4230. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  4231. for i = 0,2,0.1 do
  4232. swait()
  4233. coroutine.resume(coroutine.create(function()
  4234. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  4235. for i,v in pairs(targetted:GetChildren()) do
  4236. if v:IsA("Part") or v:IsA("MeshPart") then
  4237. v.Velocity = vt(0,0,0)
  4238. end
  4239. end
  4240. end))
  4241. 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)
  4242. 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(10),math.rad(0)),.8)
  4243. 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)
  4244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  4245. 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)
  4246. 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)
  4247. end
  4248. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  4249. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  4250. for i = 0, 1 do
  4251. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  4252. end
  4253. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  4254. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  4255. for i = 0,4,0.1 do
  4256. swait()
  4257. coroutine.resume(coroutine.create(function()
  4258. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  4259. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4260. local at1 = Instance.new("Attachment",dis)
  4261. at1.Position = vt(-25000,0,0)
  4262. local at2 = Instance.new("Attachment",dis)
  4263. at2.Position = vt(25000,0,0)
  4264. local trl = Instance.new('Trail',dis)
  4265. trl.Attachment0 = at1
  4266. trl.FaceCamera = true
  4267. trl.Attachment1 = at2
  4268. trl.Texture = "rbxassetid://1049219073"
  4269. trl.LightEmission = 1
  4270. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4271. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  4272. trl.Lifetime = 5
  4273. local bv = Instance.new("BodyVelocity")
  4274. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4275. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  4276. bv.Parent = dis
  4277. game:GetService("Debris"):AddItem(dis, 5)
  4278. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  4279. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  4280. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  4281. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  4282. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  4283. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  4284. sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  4285. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  4286. for i = 0, 2 do
  4287. slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
  4288. end
  4289. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  4290. for i,v in pairs(targetted:GetChildren()) do
  4291. if v:IsA("Part") or v:IsA("MeshPart") then
  4292. v.Velocity = vt(0,0,0)
  4293. end
  4294. end
  4295. end))
  4296. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  4297. 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)
  4298. 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(10),math.rad(0)),.8)
  4299. 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)
  4300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  4301. 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(40)),.8)
  4302. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  4303. end
  4304. hum.CameraOffset = vt(0,0,0)
  4305. for i = 0, 49 do
  4306. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  4307. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  4308. local at1 = Instance.new("Attachment",dis)
  4309. at1.Position = vt(-50000,0,0)
  4310. local at2 = Instance.new("Attachment",dis)
  4311. at2.Position = vt(50000,0,0)
  4312. local trl = Instance.new('Trail',dis)
  4313. trl.Attachment0 = at1
  4314. trl.FaceCamera = true
  4315. trl.Attachment1 = at2
  4316. trl.Texture = "rbxassetid://1049219073"
  4317. trl.LightEmission = 1
  4318. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  4319. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  4320. trl.Lifetime = 5
  4321. local bv = Instance.new("BodyVelocity")
  4322. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4323. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  4324. bv.Parent = dis
  4325. game:GetService("Debris"):AddItem(dis, 5)
  4326. end
  4327. for i = 0, 49 do
  4328. sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  4329. slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
  4330. end
  4331. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  4332. for i = 0, 1 do
  4333. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  4334. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  4335. end
  4336. for i = 0, 4 do
  4337. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  4338. end
  4339. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  4340. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  4341. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  4342. dmg(targetted)
  4343. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  4344. for i = 0, 9 do
  4345. 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)
  4346. end
  4347. for i = 0, 24 do
  4348. 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)
  4349. end
  4350. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  4351. root.CFrame = originalpos
  4352. for i = 0, 9 do
  4353. 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)
  4354. end
  4355. for i = 0, 24 do
  4356. 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)
  4357. end
  4358. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  4359. attack = false
  4360. hum.WalkSpeed = storehumanoidWS
  4361. end
  4362. end
  4363.  
  4364. function CorruptionEvent()
  4365. attack = true
  4366. hum.WalkSpeed = 0
  4367. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  4368. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  4369. local keptcolor = MAINRUINCOLOR
  4370. for i = 0,4,0.1 do
  4371. swait()
  4372. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  4373. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4374. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  4375. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  4376. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  4377. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  4378. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  4379. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  4380. end
  4381. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  4382. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  4383. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  4384. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  4385. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  4386. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  4387. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  4388. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  4389. coroutine.resume(coroutine.create(function()
  4390. local eff = Instance.new("ParticleEmitter",cen)
  4391. eff.Texture = "rbxassetid://2344870656"
  4392. eff.LightEmission = 1
  4393. eff.Color = ColorSequence.new(keptcolor.Color)
  4394. eff.Rate = 10000000
  4395. eff.Enabled = true
  4396. eff.EmissionDirection = "Front"
  4397. eff.Lifetime = NumberRange.new(2)
  4398. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,120,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,80,0),NumberSequenceKeypoint.new(1,140,0)})
  4399. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4400. eff.Speed = NumberRange.new(500)
  4401. eff.Drag = 5
  4402. eff.Rotation = NumberRange.new(-500,500)
  4403. eff.SpreadAngle = Vector2.new(0,900)
  4404. eff.RotSpeed = NumberRange.new(-500,500)
  4405. wait(0.2)
  4406. eff.Enabled = false
  4407. wait(5)
  4408. eff:Destroy()
  4409.     end))
  4410. hum.CameraOffset = vt(0,0,0)
  4411. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4412. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4413. for i = 0, 24 do
  4414. slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  4415. end
  4416. local rrot = 0
  4417. coroutine.resume(coroutine.create(function()
  4418. for<