SHARE
TWEET

w

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