SHARE
TWEET

My edit

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