Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players:WaitForChild(_G.target)
- local Mouse,mouse,UserInputService,ContextActionService
- do
- script.Parent = Player.Character
- local CAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true}
- t.Connect = function(self,f)self.Function=f end
- t.connect = t.Connect
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- function CAS:BindAction(name,fun,touch,...)
- CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CAS:UnbindAction(name)
- CAS.Actions[name] = nil
- end
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- else
- for n,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputBegan",io,false)
- else
- m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- script:WaitForChild("LoadLibrary")
- script.LoadLibrary.Parent = game:GetService("ReplicatedStorage")
- local RbxUtility = require(game.ReplicatedStorage:WaitForChild("LoadLibrary").RbxUtility)
- local RbxStamper = require(game.ReplicatedStorage:WaitForChild("LoadLibrary").RbxStamper)
- local RbxGui = require(game.ReplicatedStorage:WaitForChild("LoadLibrary").RbxGui)
- local Create = require(game:GetService("ReplicatedStorage"):WaitForChild("LoadLibrary"):WaitForChild("RbxUtility")).Create
- local loudnesses={}
- local Func = Instance.new("RemoteFunction")
- Func.Name = "GetClientProperty"
- Func.Parent = Player.Character
- function GetClientProperty(inst,prop)
- if(prop == 'PlaybackLoudness' and loudnesses[inst])then
- return loudnesses[inst]
- elseif(prop == 'PlaybackLoudness')then
- end
- end
- -- Change all localplayer/username with Player
- -- Remove all getmouse()
- -- Paste script here
- -- __________________
- Player = Player
- local Song = script.Song
- Song.Parent = Player.Character
- Song:Play()
- Character = Player.Character
- Character.Humanoid.WalkSpeed = 20
- Character.Humanoid.Animator.Parent = nil
- local char = Character
- local hum = char:FindFirstChildOfClass'Humanoid'
- local hed = char.Head
- local root = char:FindFirstChild'HumanoidRootPart'
- local rootj = root.RootJoint
- local tors = char.Torso
- local ra = char["Right Arm"]
- local la = char["Left Arm"]
- local rl = char["Right Leg"]
- local ll = char["Left Leg"]
- local neck = tors["Neck"]
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- local maincolor = BrickColor.new("Institutional white")
- local Mode = "Neutral"
- cam = game.Workspace.CurrentCamera
- CF = CFrame.new
- angles = CFrame.Angles
- local attack = Instance.new("BoolValue",char)
- attack.Name = "attack"
- attack.Value = false
- Euler = CFrame.fromEulerAnglesXYZ
- Rad = math.rad
- IT = Instance.new
- BrickC = BrickColor.new
- Cos = math.cos
- Acos = math.acos
- Sin = math.sin
- Asin = math.asin
- Abs = math.abs
- Mrandom = math.random
- Floor = math.floor
- necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RSH, LSH = nil, nil
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- RH = tors["Right Hip"]
- LH = tors["Left Hip"]
- RSH = tors["Right Shoulder"]
- LSH = tors["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "RW"
- RW.Part0 = tors
- RW.C0 = CF(1.5, 0.5, 0)
- RW.C1 = CF(0, 0.5, 0)
- RW.Part1 = ra
- RW.Parent = tors
- LW.Name = "LW"
- LW.Part0 = tors
- LW.C0 = CF(-1.5, 0.5, 0)
- LW.C1 = CF(0, 0.5, 0)
- LW.Part1 = la
- LW.Parent = tors
- Effects = {}
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- newWeld(tors, ll, -0.5, -1, 0)
- ll.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(tors, rl, 0.5, -1, 0)
- rl.Weld.C1 = CFrame.new(0, 1, 0)
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local halocolor = BrickColor.new("Pastel light blue")
- local halocolor2 = BrickColor.new("Cool yellow")
- local starcolor = BrickColor.new("Bright yellow")
- local lunacolor = BrickColor.new("Navy blue")
- local lunacolor2 = BrickColor.new("Bright blue")
- local wepcolor = BrickColor.new("Really black")
- local maincolor = BrickColor.new("Really black")
- local m = Instance.new("Model",char)
- m.Name = "m"
- local m2 = Instance.new("Model",char)
- local m3 = Instance.new("Model",char)
- local mw1 = Instance.new("Model",char)
- mw1.Name = "mw1"
- local mw2 = Instance.new("Model",char)
- mw2.Name = "mw2"
- local extrawingmod1 = Instance.new("Model",char)
- local extrawingmod2 = Instance.new("Model",char)
- remote = Instance.new("RemoteEvent",char)
- remote.Name = "KeyRemote"
- -- Server --
- remote.OnServerEvent:Connect(function(player, key)
- remote:FireAllClients(key)
- end)
- function CreateParta(parent,transparency,reflectance,material,brickcolor)
- local p = Instance.new("Part")
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = parent
- p.Size = Vector3.new(0.1,0.1,0.1)
- p.Transparency = transparency
- p.Reflectance = reflectance
- p.CanCollide = false
- p.Locked = true
- p.BrickColor = brickcolor
- p.Material = material
- return p
- end
- function CreateMesh(parent,meshtype,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = meshtype
- mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
- return mesh
- end
- function CreateSpecialMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.Scale = Vector3.new(x1,y1,z1)
- return mesh
- end
- function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
- mesh.Scale = Vector3.new(x1,y1,z1)
- mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
- return mesh
- end
- function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
- local weld = Instance.new("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
- weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
- return weld
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = IT(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = tors.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- function WWeld(a, b, acf)
- local we = Instance.new("Weld", a)
- we.Part0 = a
- we.Part1 = b
- we.C0 = acf
- end
- FirstModeWings = script.ModeOfGlitch1
- FirstModeWings.Name = "FirstModeWings"
- FirstModeWings.Parent = char
- local FirstModeWingWeld1 = Instance.new("Weld",char)
- FirstModeWingWeld1.Name = "FirstModeWingWeld1"
- FirstModeWingWeld1.Part1 = FirstModeWings.WeldA
- FirstModeWingWeld1.Part0 = tors
- local Ring1Weld = Instance.new("Weld",char)
- Ring1Weld.Part1 = FirstModeWings.WeldA
- Ring1Weld.Part0 = script.Ring1
- Ring1Weld.C0 = CFrame.new(0,2,-1.5) * CFrame.Angles(math.rad(90),math.rad(0),0)
- local Ring2Weld = Instance.new("Weld",char)
- Ring2Weld.Part1 = FirstModeWings.WeldA
- Ring2Weld.Part0 = script.Ring2
- Ring2Weld.C0 = CFrame.new(0,2,-1.5) * CFrame.Angles(math.rad(90),math.rad(0),0)
- script.Ring1.Parent = char
- script.Ring2.Parent = char
- warn([[
- For Anyone Who Even Reads These, Calamity Glitcher Has Loaded.
- Changelog:
- All modes done, for now, and f has its first main attack.
- ]])
- plr = Player
- char = plr.Character
- for i,v in pairs(char:GetChildren())do
- if v.Name == "Ring" or v.Name == "Effect" then
- v:Destroy()
- end
- end
- hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- Camera = cam
- local CamInterrupt = false
- local TwoD = false
- local TargetInfo = {nil, nil}
- cam.CameraType = "Custom"
- t = char.Torso
- h = char.Head
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- tors = char.Torso
- lleg = char["Left Leg"]
- root = char.HumanoidRootPart
- hed = char.Head
- rleg = char["Right Leg"]
- rarm = char["Right Arm"]
- larm = char["Left Arm"]
- radian = math.rad
- random = math.random
- Vec3 = Vector3.new
- Inst = Instance.new
- cFrame = CFrame.new
- Euler = CFrame.fromEulerAnglesXYZ
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- ModeOfGlitch = 1
- local rootj = root.RootJoint
- local neck = tors["Neck"]
- RW = tors:WaitForChild("RW")
- LW = tors:WaitForChild("LW")
- kan = char:WaitForChild("Song")
- --------- SazEreno's Artificial HB --------------
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- Frame_Speed = 1 / 60
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- ------------------
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.Color = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = vt(x1,y1,z1)
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- else
- break
- end
- end
- end))
- end
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- function HeartEffect(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = script.CreateHeart:Clone()
- rng.Parent = char
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.Color = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
- end
- rng.CanCollide = false
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- rng.Size = vt(x1,y1,z1)
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- else
- break
- end
- end
- end))
- end
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rng.Size = rng.Size + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- MAINRUINCOLOR = BrickColor.new("Alder")
- Sin = math.sin
- function clerp(a, b, t)
- local qa = {
- QuaternionFromCFrame(a)
- }
- local qb = {
- QuaternionFromCFrame(b)
- }
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m00 < m11 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s
- return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- 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))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp
- if cosTheta >= 1.0E-4 then
- if 1 - cosTheta > 1.0E-4 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / Sin(theta)
- startInterp = Sin((1 - t) * theta) * invSinTheta
- finishInterp = Sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- elseif 1 + cosTheta > 1.0E-4 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / Sin(theta)
- startInterp = Sin((t - 1) * theta) * invSinTheta
- finishInterp = Sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- 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
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- CF = CFrame.new
- Player_Size = 1
- necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- CF = CFrame.new
- angles = CFrame.Angles
- local tempattack = char:WaitForChild("attack")
- Euler = CFrame.fromEulerAnglesXYZ
- Rad = math.rad
- IT = Instance.new
- BrickC = BrickColor.new
- Cos = math.cos
- Acos = math.acos
- Sin = math.sin
- Asin = math.asin
- Abs = math.abs
- Mrandom = math.random
- Floor = math.floor
- sine = 0
- change = 1
- m = char:WaitForChild("m")
- mw1 = char:WaitForChild("mw1")
- function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.BrickColor = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- local scaler2c = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- scaler2c = 1*value3
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- scaler2c = 1/value3
- end
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
- else
- break
- end
- end
- end))
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- scaler2c = scaler2c - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- scaler2c = scaler2c - 0.01/value*bonuspeed
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function sphere3(bonuspeed,type,pos,scale,value,value2,value3,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.Color = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- local scaler2c = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- scaler2c = 1*value3
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- scaler2c = 1/value3
- end
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
- else
- break
- end
- end
- end))
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- scaler2c = scaler2c - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- scaler2c = scaler2c - 0.01/value*bonuspeed
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function CameraEnshaking(Length,Intensity)
- coroutine.resume(coroutine.create(function()
- local intensity = 1*Intensity
- local rotM = 0.01*Intensity
- for i = 0, Length, 0.1 do
- swait()
- intensity = intensity - 0.05*Intensity/Length
- rotM = rotM - 0.0005*Intensity/Length
- hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
- 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)
- end
- hum.CameraOffset = Vec3(0, 0, 0)
- end))
- end
- local Anim="Idle"
- local sunval = 0.01
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Name = "EffectSoundo",
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 10)
- end))
- end;
- };
- ["LongSound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 60)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
- return
- end
- local c = Create("ObjectValue")({
- Name = "creator",
- Value = Player,
- Parent = h
- })
- game:GetService("Debris"):AddItem(c, 0.5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil and block.className == "IntValue" and block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- if blocked == false then
- HitHealth = h.Health
- h.MaxHealth = 100
- h.Health = h.Health - Damage
- if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
- print("gained kill")
- dmg(h.Parent)
- end
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- else
- h.Health = h.Health - Damage / 2
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
- local bodvol = Create("BodyVelocity")({
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- local rl = Create("BodyAngularVelocity")({
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodvol, 0.5)
- game:GetService("Debris"):AddItem(rl, 0.5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity")({
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
- })
- if knockback > 0 then
- vp.Parent = hit.Parent.Head
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Leech" then
- local hum = hit.Parent.Humanoid
- if hum ~= nil then
- for i = 0, 2 do
- 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)
- end
- Humanoid.Health = Humanoid.Health + 10
- end
- elseif Type == "UpKnock" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- if hum ~= nil then
- hitr = true
- end
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(5)
- HHumanoid.PlatformStand = false
- hitr = false
- end), hum)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition")({
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Slashnare" then
- Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
- for i = 1, math.random(4, 5) do
- 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)
- end
- local bp = Create("BodyPosition")({
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Spike" then
- CreateBigIceSword(hit.Parent.Torso.CFrame)
- local bp = Create("BodyPosition")({
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition")({
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- local BodGy = Create("BodyGyro")({
- maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
- P = 20000,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame
- })
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue")({
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true
- })
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = plr
- c.Parent = h
- game:GetService("Debris"):AddItem(c, 0.5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = 0.03333333333333333
- local Pos = Pos or Vector3.new(0, 0, 0)
- local Text = Text or ""
- local Time = Time or 2
- local Color = Color or Color3.new(1, 0, 1)
- local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui")({
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart
- })
- local TextLabel = Create("TextLabel")({
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- TextColor3 = Color,
- TextScaled = true,
- Font = Enum.Font.ArialBold,
- Parent = BillboardGui
- })
- game.Debris:AddItem(EffectPart, Time + 0.1)
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = Time / Rate
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = Frame / Frames
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= plr.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, root, 0.1, "rbxassetid://231917784", 1)
- end
- end
- end
- end
- end
- function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
- end
- end
- end
- end
- end
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- local RCHOICE = MRANDOM(1,7)
- local Hue = 0;
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = tors.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- local S = IT("Sound")
- function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = S:Clone()
- NEWSOUND.Parent = PARENT
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- NEWSOUND:play()
- if DOESLOOP == true then
- NEWSOUND.Looped = true
- else
- repeat wait(1) until NEWSOUND.Playing == false
- NEWSOUND:remove()
- end
- end))
- return NEWSOUND
- end
- function WACKYEFFECT(Table)
- local TYPE = (Table.EffectType or "Sphere")
- local SIZE = (Table.Size or VT(1,1,1))
- local ENDSIZE = (Table.Size2 or VT(0,0,0))
- local TRANSPARENCY = (Table.Transparency or 0)
- local ENDTRANSPARENCY = (Table.Transparency2 or 1)
- local CFRAME = (Table.CFrame or tors.CFrame)
- local MOVEDIRECTION = (Table.MoveToPos or nil)
- local ROTATION1 = (Table.RotationX or 0)
- local ROTATION2 = (Table.RotationY or 0)
- local ROTATION3 = (Table.RotationZ or 0)
- local MATERIAL = (Table.Material or "Neon")
- local COLOR = (Table.Color or C3(1,1,1))
- local TIME = (Table.Time or 45)
- local SOUNDID = (Table.SoundID or nil)
- local SOUNDPITCH = (Table.SoundPitch or nil)
- local SOUNDVOLUME = (Table.SoundVolume or nil)
- coroutine.resume(coroutine.create(function()
- local PLAYSSOUND = false
- local SOUND = nil
- local EFFECT = CreatePart(3, char, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
- if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
- PLAYSSOUND = true
- SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
- end
- EFFECT.Color = COLOR
- local MSH = nil
- if TYPE == "Sphere" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
- elseif TYPE == "Block" or TYPE == "Box" then
- MSH = IT("BlockMesh",EFFECT)
- MSH.Scale = SIZE
- elseif TYPE == "Wave" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
- elseif TYPE == "Ring" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
- elseif TYPE == "Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Round Slash" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
- elseif TYPE == "Swirl" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
- elseif TYPE == "Skull" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
- elseif TYPE == "Crystal" then
- MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
- end
- if MSH ~= nil then
- local MOVESPEED = nil
- if MOVEDIRECTION ~= nil then
- MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
- end
- local GROWTH = SIZE - ENDSIZE
- local TRANS = TRANSPARENCY - ENDTRANSPARENCY
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = CFRAME
- end
- for LOOP = 1, TIME+1 do
- swait()
- MSH.Scale = MSH.Scale - GROWTH/TIME
- if TYPE == "Wave" then
- MSH.Offset = VT(0,0,-MSH.Scale.X/8)
- end
- EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
- if TYPE == "Block" then
- EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
- else
- EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
- end
- if MOVEDIRECTION ~= nil then
- local ORI = EFFECT.Orientation
- EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
- EFFECT.Orientation = ORI
- end
- end
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- else
- if PLAYSSOUND == false then
- EFFECT:remove()
- else
- repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
- EFFECT:remove()
- end
- end
- end))
- end
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- function Chat(text,color)
- coroutine.wrap(function()
- if(char:FindFirstChild'ChatGUI')then char.ChatGUI:destroy() end
- local BBG = NewInstance("BillboardGui",char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=Vector3.new(0,3,0),Adornee=hed})
- local offset = 0;
- local xsize = 0;
- for i = 1, #text do
- offset = offset - 16
- xsize = xsize + 32
- delay(i/25, function()
- local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,0,0,300),BackgroundTransparency=1,TextColor3=(typeof(color) == 'string' and color:lower() == 'rainbow' and C3.HSV(Hue/360,1,1)) or color,BorderSizePixel=0,Font=Enum.Font.Arcade,TextSize=40,TextStrokeTransparency=0,Size=UDim2.new(1,0,.5,0)})
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- Txt.TextColor3 = MAINRUINCOLOR.Color
- end
- end))
- offset = offset + 32
- if(Txt.Parent)then Txt:TweenPosition(UDim2.new(0,offset,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic,1) end
- end)
- end
- BBG.Size = UDim2.new(0,xsize,0,40)
- delay((#text/25)+3, function()
- for _,v in next, BBG:children() do
- v:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Linear,1)
- end
- wait(1.15)
- BBG:destroy()
- end)
- end)()
- end
- function onChatted(msg)
- Chat(msg,MAINRUINCOLOR.Color)
- end
- plr.Chatted:connect(onChatted)
- local FirstModeWings = char:WaitForChild("FirstModeWings")
- for i,v in pairs(FirstModeWings:GetChildren())do
- v.CanCollide = false
- end
- FirstModeWingWeld1 = char:WaitForChild("FirstModeWings").WeldA.Weld1
- FirstModeWingWeld2 = char:WaitForChild("FirstModeWings").WeldA.Weld2
- FirstModeWingWeld3 = char:WaitForChild("FirstModeWings").WeldA.Weld3
- FirstModeWingWeld4 = char:WaitForChild("FirstModeWings").WeldA.Weld4
- FirstModeWingWeld5 = char:WaitForChild("FirstModeWings").WeldA.Weld5
- FirstModeWingWeld6 = char:WaitForChild("FirstModeWings").WeldA.Weld6
- function RecolorThingWithBrickColor(Color1,Color2,ColorThree,Color4,Color5,Color6)
- if ModeOfGlitch == 7 then
- char.Ring1.Transparency = 1
- char.Ring2.Transparency = 1
- elseif ModeOfGlitch ~= 7 then
- char.Ring1.Transparency = 0
- char.Ring2.Transparency = 0
- end
- MAINRUINCOLOR = Color1
- char.Ring1.BrickColor = Color1
- char.Ring2.BrickColor = Color2
- FirstModeWings.WingOne.BrickColor = Color1
- FirstModeWings.WingTwo.BrickColor = Color2
- FirstModeWings.WingThree.BrickColor = ColorThree
- FirstModeWings.WingFour.BrickColor = Color4
- FirstModeWings.WingFive.BrickColor = Color5
- FirstModeWings.WingSix.BrickColor = Color6
- end
- function RecolorThingWithColor(Color1,Color2,ColorThree,Color4,Color5,Color6)
- if ModeOfGlitch == 7 then
- char.Ring1.Transparency = 1
- char.Ring2.Transparency = 1
- elseif ModeOfGlitch ~= 7 then
- char.Ring1.Transparency = 0
- char.Ring2.Transparency = 0
- end
- char.Ring1.Color = Color1
- char.Ring2.Color = Color2
- FirstModeWings.WingOne.Color = Color1
- MAINRUINCOLOR = FirstModeWings.WingOne.BrickColor
- FirstModeWings.WingTwo.Color = Color2
- FirstModeWings.WingThree.Color = ColorThree
- FirstModeWings.WingFour.Color = Color4
- FirstModeWings.WingFive.Color = Color5
- FirstModeWings.WingSix.Color = Color6
- end
- --sphereMK(1,1,"Add",tors.CFrame,5,5,5,0.5,MAINRUINCOLOR.Color,0)
- function ResetCrap()
- ModeOfGlitch = 1
- hum.WalkSpeed = 20
- kan.SoundId = "rbxassetid://923445685"
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithBrickColor(BrickColor.new("Alder"),BrickColor.new("Pastel light blue"),BrickColor.new("Alder"),BrickColor.new("Pastel light blue"),BrickColor.new("Alder"),BrickColor.new("Pastel light blue"))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- local Red = 255
- local Green = 0
- local Blue = 0
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i = 0, 254/5 do
- swait()
- Green = Green + 5
- end
- for i = 0, 254/5 do
- swait()
- Red = Red - 5
- end
- for i = 0, 254/5 do
- swait()
- Blue = Blue + 5
- end
- for i = 0, 254/5 do
- swait()
- Green = Green - 5
- end
- for i = 0, 254/5 do
- swait()
- Red = Red + 5
- end
- for i = 0, 254/5 do
- swait()
- Blue = Blue - 5
- end
- end
- end))
- plr = Player
- lplr = game:GetService("Players").Player
- remote = char:WaitForChild("KeyRemote")
- mouse.KeyDown:Connect(function(key)
- if lplr == plr then
- remote:FireServer(key)
- end
- end)
- function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
- local type = type
- local rotenable = rotatingop
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- if typeoftrans == "In" then
- rng.Transparency = 1
- end
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "FileMesh"
- if typeofshape == "Normal" then
- rngm.MeshId = "rbxassetid://662586858"
- elseif typeofshape == "Round" then
- rngm.MeshId = "rbxassetid://662585058"
- end
- rngm.Scale = scale
- local scaler2 = 1/10
- if type == "Add" then
- scaler2 = 1*value/10
- elseif type == "Divide" then
- scaler2 = 1/value/10
- end
- local randomrot = math.random(1,2)
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed/10
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed/10
- end
- if rotenable == true then
- if randomrot == 1 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
- elseif randomrot == 2 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
- end
- end
- if typeoftrans == "Out" then
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- elseif typeoftrans == "In" then
- rng.Transparency = rng.Transparency - 0.01*bonuspeed
- end
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
- end
- rng:Destroy()
- end))
- end
- function placeholderFunction()
- warn("wat")
- end
- remote.OnServerEvent:Connect(function(k)
- if k == "q" and tempattack.Value == false and ModeOfGlitch ~= 1 then
- ResetCrap()
- end
- if k == "e" and tempattack.Value == false and ModeOfGlitch ~= 2 then
- ModeOfGlitch = 2
- kan.SoundId = "rbxassetid://2475400182"
- hum.WalkSpeed = 40
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithBrickColor(BrickColor.new("Crimson"),BrickColor.new("Black"),BrickColor.new("Crimson"),BrickColor.new("Black"),BrickColor.new("Crimson"),BrickColor.new("Black"))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- if k == "r" and tempattack.Value == false and ModeOfGlitch ~= 3 then
- ModeOfGlitch = 3
- kan.SoundId = "rbxassetid://894718134"
- hum.WalkSpeed = 20
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithBrickColor(BrickColor.new("Carnation pink"),BrickColor.new("Hot pink"),BrickColor.new("Carnation pink"),BrickColor.new("Hot pink"),BrickColor.new("Carnation pink"),BrickColor.new("Hot pink"))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- if k == "t" and tempattack.Value == false and ModeOfGlitch ~= 4 then
- ModeOfGlitch = 4
- kan.SoundId = "rbxassetid://982687613"
- hum.WalkSpeed = 60
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithColor(Color3.fromRGB(245, 205, 48),Color3.fromRGB(217, 248, 59),Color3.fromRGB(245, 205, 48),Color3.fromRGB(217, 248, 59),Color3.fromRGB(245, 205, 48),Color3.fromRGB(217, 248, 59))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- if k == "y" and tempattack.Value == false and ModeOfGlitch ~= 5 then
- ModeOfGlitch = 5
- kan.SoundId = "rbxassetid://544291208"
- hum.WalkSpeed = 40
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithColor(Color3.fromRGB(98, 37, 209),Color3.fromRGB(0,0,0),Color3.fromRGB(98, 37, 209),Color3.fromRGB(0,0,0),Color3.fromRGB(98, 37, 209),Color3.fromRGB(0,0,0))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- if k == "u" and tempattack.Value == false and ModeOfGlitch ~= 6 then
- ModeOfGlitch = 6
- kan.SoundId = "rbxassetid://1076836481"
- hum.WalkSpeed = 70
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithColor(Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- if ModeOfGlitch == 6 then
- RecolorThingWithColor(Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500),Color3.new(Red/500,Green/500, Blue/500))
- end
- until ModeOfGlitch ~= 6
- end))
- end
- if k == "p" and tempattack.Value == false and ModeOfGlitch ~= 7 then
- ModeOfGlitch = 7
- kan.SoundId = "rbxassetid://2404024634"
- hum.WalkSpeed = 20
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithBrickColor(BrickColor.new("Electric blue"),BrickColor.new("Deep blue"),BrickColor.new("Electric blue"),BrickColor.new("Deep blue"),BrickColor.new("Electric blue"),BrickColor.new("Deep blue"))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- if k == "f" and tempattack.Value == false and ModeOfGlitch ~= 8 then
- ModeOfGlitch = 8
- kan.SoundId = "rbxassetid://1093686785"
- hum.WalkSpeed = 20
- kan:Play()
- CFuncs.Sound.Create("rbxassetid://410543238",root,3,1)
- RecolorThingWithBrickColor(BrickColor.new("Persimmon"),BrickColor.new("Sunrise"),BrickColor.new("Persimmon"),BrickColor.new("Sunrise"),BrickColor.new("Persimmon"),BrickColor.new("Sunrise"))
- sphereMK(3,0,"Add",tors.CFrame,1,1,5,1,MAINRUINCOLOR.Color,0)
- end
- if k == "z" and tempattack.Value == false then
- AttackOne()
- end
- if k == "x" and tempattack.Value == false then
- AttackTwo()
- end
- if k == "c" and tempattack.Value == false then
- AttackThree()
- end
- end)
- function AttackOne()
- if ModeOfGlitch == 1 then
- tempattack.Value = true
- hum.WalkSpeed = 0
- local Sphere = Instance.new("Part",char)
- Sphere.Name = "Sphere"
- Sphere.Shape = "Ball"
- Sphere.Size = Vector3.new(0.5,0.5,0.5)
- Sphere.Material = Enum.Material.Neon
- Sphere.CanCollide = false
- Sphere.BrickColor = MAINRUINCOLOR
- Sphere.Anchored = true
- local absval = 0
- for i = 0,20 do
- swait()
- Sphere.CFrame = ra.CFrame * CFrame.new(0,-1.5 + -i/2,0)
- absval = absval + 0.005
- sphere2(8,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(i/100,i/100,i/100),0,0,0,MAINRUINCOLOR,MAINRUINCOLOR)
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(200), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-0 - 5 * math.cos(sine / 30))), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-0), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(0 + 5 * math.cos(sine / 32))), 0.1)
- end
- CFuncs.Sound.Create("rbxassetid://862198133",char,3,1.3)
- coroutine.resume(coroutine.create(function()
- hed.face.Transparency = 1
- for i,v in pairs(char:GetChildren())do
- if v:IsA("BasePart") then
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- swait()
- v.Transparency = v.Transparency + 0.1
- end
- end))
- end
- coroutine.resume(coroutine.create(function()
- if v:IsA("Accessory") then
- for i = 1,25 do
- swait()
- v.Handle.Transparency = v.Handle.Transparency + 0.1
- end
- end
- end))
- end
- for i,v in pairs(char.FirstModeWings:GetChildren())do
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- swait()
- v.Transparency = v.Transparency + 0.1
- end
- end))
- end
- end))
- for i = 0,50 do
- swait()
- Sphere.CFrame = Sphere.CFrame * CFrame.new(0,-i/20,0)
- Sphere.Size = Vector3.new(i/100,i/100,i/100)
- sphere2(8,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(i/100,i/100,i/100),-0.01 + i/200,0.05 + i/200,-0.01 + i/200,MAINRUINCOLOR,MAINRUINCOLOR)
- sphere2(4,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),absval*2.5,absval*2.5,absval*2.5,MAINRUINCOLOR)
- sphere2(4,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),absval*5,absval*5,absval*5,MAINRUINCOLOR)
- end
- for i = 0,400 do
- swait()
- kan.PlaybackSpeed = 1 - i/1000
- sphere2(4,"Add",Sphere.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Sphere.Size,0.1,0.1,0.1,MAINRUINCOLOR)
- sphere2(4,"Add",Sphere.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Sphere.Size,0.1,0.1,0.1,MAINRUINCOLOR)
- sphere2(8,"Add",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(i/100,i/100,i/100),-0.01 + i/200,0.05 + i/200,-0.01 + i/200,MAINRUINCOLOR,MAINRUINCOLOR)
- end
- Sphere.Size = Vector3.new(400,400,400)
- Sphere.Transparency = 1
- for i = 0, 4 do
- slash(math.random(10,50)/10,5,true,"Round","Add","Out",Sphere.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(absval/2,0.01,absval/2),math.random(50,5000)/100,BrickColor.new("Really black"))
- end
- Sphere:Destroy()
- CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.25)
- CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.5)
- CFuncs["Sound"].Create("rbxassetid://1368637781", char, 5, 0.75)
- CFuncs["Sound"].Create("rbxassetid://1368637781", char, 7.5, 1)
- CFuncs["Sound"].Create("rbxassetid://1368605755", char, 7.5, 1)
- CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.5)
- CFuncs["Sound"].Create("rbxassetid://763718160", char, 10, 0.25)
- CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 1)
- CFuncs["Sound"].Create("rbxassetid://782353443", char, 10, 0.75)
- CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.5)
- CFuncs["LongSound"].Create("rbxassetid://782353443", char, 10, 0.25)
- kan.PlaybackSpeed = 1
- coroutine.resume(coroutine.create(function()
- hed.face.Transparency = 0
- for i,v in pairs(char:GetChildren())do
- if v:IsA("BasePart") then
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- swait()
- v.Transparency = v.Transparency - 0.1
- end
- end))
- end
- coroutine.resume(coroutine.create(function()
- if v:IsA("Accessory") then
- for i = 1,25 do
- swait()
- v.Handle.Transparency = v.Handle.Transparency - 0.1
- end
- end
- end))
- end
- for i,v in pairs(char.FirstModeWings:GetChildren())do
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- swait()
- v.Transparency = v.Transparency - 0.1
- end
- end))
- end
- end))
- hum.WalkSpeed = 20
- tempattack.Value = false
- elseif ModeOfGlitch == 2 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 3 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 4 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 5 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 6 then
- tempattack.Value = true
- local attaccerpart = Instance.new("Part",char)
- attaccerpart.Name = "Ring"
- attaccerpart.Anchored = true
- attaccerpart.CanCollide = false
- attaccerpart.CFrame = tors.CFrame * CFrame.new(0,-4.2,0) * CFrame.new(50,0,0)
- attaccerpart.Transparency = 1
- tempcframe = tors.CFrame
- totallytempcframe = tempcframe
- coroutine.resume(coroutine.create(function()
- for i = 0,10 do
- swait()
- tors.CFrame = clerp(tors.CFrame,totallytempcframe * CFrame.new(0,80,0),0.2)
- end
- tors.Anchored = true
- end))
- CFuncs.Sound.Create("rbxassetid://1036016638",char,5,0.3)
- local BeamsSeatOrADickOk = Instance.new("Part",char)
- BeamsSeatOrADickOk.Name = "Ring"
- BeamsSeatOrADickOk.Anchored = true
- BeamsSeatOrADickOk.CanCollide = false
- BeamsSeatOrADickOk.Transparency = 1
- for i = 0,500 do
- swait()
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(20)),.2)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2* math.cos(sine/12)),math.rad(0),math.rad(-19)),.2)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(95),math.rad(0),math.rad(0)),.2)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(109 - 5 * math.cos(sine / 30))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-110 + 5 * math.cos(sine / 32))), 0.2)
- BeamsSeatOrADickOk.CFrame = tors.CFrame*CFrame.new(0,0,-1.6 - i/50)
- sphere3(8,"Add",tors.CFrame*CFrame.new(0,0,-1.6 - i/50)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2 + i/50,2 + i/50,2 + i/50),-0.01,-0.01,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
- sphere3(8,"Add",tors.CFrame*CFrame.new(0,0,-1.6 - i/50)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),-0.01,0.5,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
- end
- local BeamChan = Instance.new("Part",char)
- BeamChan.Name = "Ring"
- BeamChansPanties = Instance.new("SpecialMesh",BeamChan)
- BeamChansPanties.Name = "BeamChansPanties"
- BeamChan.Anchored = true
- BeamChan.CanCollide = false
- BeamChan.Material = Enum.Material.Neon
- BeamChan.Color = Color3.new(Red/255,Green/255,Blue/255)
- BeamChan.Size = Vector3.new(200,200,8)
- BeamChansPanties.MeshType = Enum.MeshType.Cylinder
- BeamChan.CFrame = BeamsSeatOrADickOk.CFrame * CFrame.new(0,0,-100) * CFrame.Angles(0,math.rad(90),0)
- CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1.1)
- for i = 0,70 do
- swait()
- CameraEnshaking(4,i/10)
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(20)),.2)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2* math.cos(sine/12)),math.rad(0),math.rad(-19)),.2)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(95),math.rad(0),math.rad(0)),.2)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.2)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(109 - 5 * math.cos(sine / 30))), 0.2)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-110 + 5 * math.cos(sine / 32))), 0.2)
- sphere3(8,"Add",BeamsSeatOrADickOk.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2 + 500/50,2 + 500/50,2 + 500/50),-0.01,-0.01,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
- sphere3(8,"Add",BeamsSeatOrADickOk.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),-0.01,0.5,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
- BeamChan.CFrame = BeamsSeatOrADickOk.CFrame * CFrame.new(0,0 + i,-100) * CFrame.Angles(0,math.rad(90),math.rad(0 + i/2))
- BeamChan.Size = Vector3.new(200 + i/2,200,8)
- BeamChan.Color = Color3.new(Red/255,Green/255,Blue/255)
- end
- tors.Anchored = false
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do
- swait()
- BeamChan.Transparency = BeamChan.Transparency + 0.1
- end
- end))
- tempattack.Value = false
- elseif ModeOfGlitch == 7 then
- tempattack.Value = true
- hum.WalkSpeed = 0
- if math.random(1,4) == 1 then
- Chat("I Cant Fight..",MAINRUINCOLOR.Color)
- elseif math.random(1,4) == 2 then
- Chat("..eh...",MAINRUINCOLOR.Color)
- elseif math.random(1,4) == 3 then
- Chat("Let Me Be. ..Alone..",MAINRUINCOLOR.Color)
- elseif math.random(1,4) == 4 then
- Chat("Go Away...",MAINRUINCOLOR.Color)
- end
- hum.WalkSpeed = 20
- tempattack.Value = false
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 8 then
- tempattack.Value = true
- hum.WalkSpeed = 0
- for i = 0,10 do
- swait()
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.45 + 0.05 * math.sin(sine / 30), -0.2) * angles(math.rad(40), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-30 - 5 * math.cos(sine / 30))), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.45 + 0.05 * math.cos(sine / 30), -0.2) * angles(math.rad(41), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(30 + 5 * math.cos(sine / 32))), 0.4)
- end
- CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
- coroutine.resume(coroutine.create(function()
- for i = 0,3 do
- swait()
- HeartEffect(2 + i,0.5,"Add",tors.CFrame,0.01,0.01,0.01,0.2,MAINRUINCOLOR.Color,0)
- end
- end))
- for i = 0,20 do
- swait()
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.45 + 0.05 * math.sin(sine / 30), -0.2) * angles(math.rad(120), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(30 - 5 * math.cos(sine / 30))), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.45 + 0.05 * math.cos(sine / 30), -0.2) * angles(math.rad(121), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-30 + 5 * math.cos(sine / 32))), 0.4)
- end
- hum.WalkSpeed = 20
- tempattack.Value = false
- end
- end
- function AttackTwo()
- if ModeOfGlitch == 1 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 2 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 3 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 4 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 5 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 6 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 7 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 8 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- end
- end
- function AttackThree()
- if ModeOfGlitch == 1 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 2 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 3 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 4 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 5 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 6 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 7 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- elseif ModeOfGlitch == 8 then
- print("ModeOfGlitch ".." "..ModeOfGlitch.."".." has no attack")
- end
- end
- while true do
- swait()
- if(Hue > 360)then Hue = 0 end
- Hue = Hue + 1
- sine = sine + change
- if ModeOfGlitch ~= 7 then
- FirstModeWingWeld1.C0 = clerp(FirstModeWingWeld1.C0, CFrame.new(-4,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(10 * math.cos(sine / 26))), 0.4)
- FirstModeWingWeld2.C0 = clerp(FirstModeWingWeld2.C0, CFrame.new(4,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-10 * math.cos(-sine / 26))), 0.4)
- FirstModeWingWeld3.C0 = clerp(FirstModeWingWeld3.C0, CFrame.new(-7,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(15 * math.cos(sine / 26))), 0.4)
- FirstModeWingWeld4.C0 = clerp(FirstModeWingWeld4.C0, CFrame.new(7,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-15 * math.cos(-sine / 26))), 0.4)
- FirstModeWingWeld5.C0 = clerp(FirstModeWingWeld5.C0, CFrame.new(-10,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(20 * math.cos(sine / 26))), 0.4)
- FirstModeWingWeld6.C0 = clerp(FirstModeWingWeld6.C0, CFrame.new(10,-2,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-20 * math.cos(-sine / 26))), 0.4)
- elseif ModeOfGlitch == 7 then
- FirstModeWingWeld1.C0 = clerp(FirstModeWingWeld1.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(60 + kan.PlaybackLoudness/20 + sine)), 0.4)
- FirstModeWingWeld2.C0 = clerp(FirstModeWingWeld2.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(120 + kan.PlaybackLoudness/20 + sine)), 0.4)
- FirstModeWingWeld3.C0 = clerp(FirstModeWingWeld3.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(180 + kan.PlaybackLoudness/20 + sine)), 0.4)
- FirstModeWingWeld4.C0 = clerp(FirstModeWingWeld4.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(240 + kan.PlaybackLoudness/20 + sine)), 0.4)
- FirstModeWingWeld5.C0 = clerp(FirstModeWingWeld5.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(300 + kan.PlaybackLoudness/20 + sine)), 0.4)
- FirstModeWingWeld6.C0 = clerp(FirstModeWingWeld6.C0, CFrame.new(0,-3,-1.5) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(360 + kan.PlaybackLoudness/20 + sine)), 0.4)
- end
- if ModeOfGlitch == 1 then
- if hitfloor ~= nil then
- if MRANDOM(1,9) == 1 then
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(15,30)/30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- if MRANDOM(1,7) == 1 then
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- end
- end
- if ModeOfGlitch == 4 then
- if hitfloor ~= nil then
- if MRANDOM(1,6) == 1 then
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(15,30)/30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -30, RotationZ = 0, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- if MRANDOM(1,3) == 1 then
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0.4, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.5+ 0.5 * math.cos(sine / 24),0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = -0.4, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- end
- end
- if ModeOfGlitch == 5 then
- if hitfloor ~= nil then
- sphereMK(3,0,"Add",tors.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(math.rad(90),0,0),1,1,1,0.1,MAINRUINCOLOR.Color,0)
- end
- end
- if ModeOfGlitch == 6 then
- if hitfloor ~= nil then
- if MRANDOM(1,2) == 1 then
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8,0), MoveToPos = nil, RotationX = 0, RotationY = 30, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0,0.05,0), Size2 = VT(0.25,0.05,0.25), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2.8,0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = FirstModeWings.WingTwo.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- sphere3(8,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2 + kan.PlaybackLoudness/1000,2+ kan.PlaybackLoudness/1000,2+ kan.PlaybackLoudness/1000),-0.01,-0.01,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
- sphere3(8,"Add",la.CFrame*CFrame.new(0,-1.6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),-0.01,0.5,-0.01,FirstModeWings.WingTwo.Color,FirstModeWings.WingTwo.Color)
- end
- end
- end
- if ModeOfGlitch == 7 then
- if hitfloor ~= nil then
- if MRANDOM(1,2) == 1 then
- WACKYEFFECT({EffectType = "Slash", Size = VT(0 * math.cos(sine/30),0.05 * math.cos(sine/30),0 * math.cos(sine/30)), Size2 = VT(0.25 * math.cos(sine/30),0.05 * math.cos(sine/30),0.25 * math.cos(sine/30)), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = MAINRUINCOLOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- WACKYEFFECT({EffectType = "Round Slash", Size = VT(0 * math.cos(sine/30),0.05 * math.cos(sine/30),0 * math.cos(sine/30)), Size2 = VT(0.25 * math.cos(sine/30),0.05 * math.cos(sine/30),0.25 * math.cos(sine/30)), Transparency = 0, Transparency2 = 1, CFrame = root.CFrame*CF(0,-2,0), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = BrickColor.new("Deep blue").Color , SoundID = nil, SoundPitch = nil, SoundVolume = nil})
- end
- end
- end
- local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=root.Velocity.y
- hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
- if tempattack.Value == false then
- if root.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-0.4 - 0.05 * math.cos(sine / 28),-0.4)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-0.8 - 0.05 * math.cos(sine / 28),-0.5)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/4),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if ModeOfGlitch == 1 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(5 - 6 * math.cos(sine / 28)),math.rad(0 - 6 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-16 - 5 * math.cos(sine / 30))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(18 + 5 * math.cos(sine / 32))), 0.1)
- elseif ModeOfGlitch == 2 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(6 - 5 * math.cos(sine / 10))),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(31.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 10))),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 1 * math.cos(sine / 13))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(-30)),.1)
- if math.random(1,10) == 5 then
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(math.random(-20,20)),math.rad(0),math.rad(math.random(-20,20))),.4)
- end
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(18 + 2 * math.cos(sine / 13)), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(5 - 5 * math.cos(sine / 10))), 0.1)
- sphere2(8,"Add",ra.CFrame*CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(50/100,50/100,50/100),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(20 - 2.5 * math.cos(sine / 13)), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-5 + 5 * math.cos(sine / 10))), 0.1)
- sphere2(8,"Add",la.CFrame*CFrame.new(0,-1.2,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(50/100,50/100,50/100),-0.01,0.05,-0.01,BrickColor.new("Black"),BrickColor.new("Black"))
- elseif ModeOfGlitch == 3 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-0 + 2 * math.cos(sine/12)),math.rad(0),math.rad(-5)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(20 + 7 * math.cos(sine/34)),math.rad(0),math.rad(0)),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(16 - 0.5 * math.cos(sine / 16))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-18 + 0.5 * math.cos(sine / 16))), 0.1)
- elseif ModeOfGlitch == 4 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.5 + 0.05 * math.sin(sine / 30), -0.5) * angles(math.rad(0), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-86)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5 + 0.05 * math.cos(sine / 30), -0.5) * angles(math.rad(20), math.rad(27 + 2 * math.cos(sine / 43)), math.rad(90)), 0.1)
- elseif ModeOfGlitch == 5 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(10),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(20),math.rad(0)),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(0), math.rad(-0 - 2 * math.cos(sine / 43)), math.rad(-20)), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(0), math.rad(-0 + 2 * math.cos(sine / 43)), math.rad(20)), 0.1)
- elseif ModeOfGlitch == 6 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
- LW.C0=clerp(LW.C0,cf(-1.4,1.17 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(190 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(-30 + 5 * math.cos(sine / 46))),.4)
- elseif ModeOfGlitch == 7 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-40.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-50.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(-80),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*CFrame.new(0,-0.4,0)*angles(math.rad(60),math.rad(0),math.rad(0)),.1)
- RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.7 + 0.05 * math.sin(sine / 30), -0) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(220 - 5 * math.cos(sine / 30))), 0.1)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.7 + 0.05 * math.cos(sine / 30), -0) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(-216 + 5 * math.cos(sine / 32))), 0.1)
- elseif ModeOfGlitch == 8 then
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(5)),.4)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 27) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.4)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),2 + 0.5 * math.cos(sine / 24))*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(10),math.rad(10)),.4)
- RW.C0 = clerp(RW.C0, CFrame.new(0.85, 0.5 + 0.05 * math.sin(sine / 30), 0.6) * angles(math.rad(-5), math.rad(0 - 2 * math.cos(sine / 43)), math.rad(-26 - 5 * math.cos(sine / 30))), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 + 0.05 * math.cos(sine / 30), 0.63) * angles(math.rad(-5), math.rad(0 + 2 * math.cos(sine / 43)), math.rad(28 + 5 * math.cos(sine / 32))), 0.4)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 - 3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(14 - 2.5 * Sin(sine / 20))), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 + 4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-14 + 2.5 * Sin(sine / 20))), 0.1)
- elseif torvel>22 and hitfloor~=nil then
- Anim="Run"
- rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 1.2 + 0.3 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-10.5 + 2 * math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 + 0.1 * math.sin(sine / 12) - 0.05 * math.cos(sine / 28),-0.3)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-30.5 + 2* math.cos(sine/12)),math.rad(0),math.rad(0)),.1)
- RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 - 3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(14 - 2.5 * Sin(sine / 20))), 0.1)
- LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-55 + 4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-14 + 2.5 * Sin(sine / 20))), 0.1)
- elseif root.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- rl.Weld.C0=clerp(rl.Weld.C0,cf(.5,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
- ll.Weld.C0=clerp(ll.Weld.C0,cf(-.5,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/2),math.rad(0),math.rad(0)),.1)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
- end
- end
- end
Add Comment
Please, Sign In to add comment