Advertisement
Gememed

Untitled

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