Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------[[Kirby Morph made by: DoogleFox]]-------------------------------------------------------------------------------------------------------------------------------------------------
- user = "TrystinGB"
- if script.Parent.className ~= "HopperBin" then
- bin = Instance.new("HopperBin")
- bin.Parent = game.Players[user].Backpack
- bin.Name = "Kirby"
- script.Parent = bin
- end
- bin = script.Parent
- m = Instance.new("Model")
- m.Parent = bin.Parent.Parent.Character
- m.Name = "KirbyMorph"
- p = Instance.new("Part")
- p.Parent = m
- p.Name = "MainBody"
- p.formFactor = ("Symmetric")
- p.Size = Vector3.new(4,4,4)
- p.CFrame = bin.Parent.Parent.Character.Torso.CFrame
- p.BrickColor = BrickColor.new("Light reddish violet")
- p.Locked = true
- p.CanCollide = true
- p.Shape = ("Ball")
- p.TopSurface = ("Smooth")
- p.BottomSurface = ("Smooth")
- d = Instance.new("Decal")
- d.Parent = p
- d.Face = ("Front")
- d.Texture = ("http://www.roblox.com/asset/?id=5732750")
- w = Instance.new("Weld")
- w.Parent = p
- w.Name = "BodyWeld"
- w.Part0 = p
- w.Part1 = bin.Parent.Parent.Character.Torso
- w.C0 = CFrame.new(0,0.2,0)
- a1 = Instance.new("Part")
- a1.Parent = m
- a1.Name = "Left Arm"
- a1.formFactor = ("Symmetric")
- a1.Size = Vector3.new(2,2,2)
- a1.CFrame = bin.Parent.Parent.Character["Left Arm"].CFrame
- a1.BrickColor = BrickColor.new("Light reddish violet")
- a1.Locked = true
- a1.CanCollide = true
- a1.Shape = ("Ball")
- a1.TopSurface = ("Smooth")
- a1.BottomSurface = ("Smooth")
- a1w = Instance.new("Weld")
- a1w.Parent = a1
- a1w.Name = "ArmWeld1"
- a1w.Part0 = a1
- a1w.Part1 = bin.Parent.Parent.Character["Left Arm"]
- a1w.C0 = CFrame.new(0.2,0.2,0)
- a2 = Instance.new("Part")
- a2.Parent = m
- a2.Name = "Right Arm"
- a2.formFactor = ("Symmetric")
- a2.Size = Vector3.new(2,2,2)
- a2.CFrame = bin.Parent.Parent.Character["Left Arm"].CFrame
- a2.BrickColor = BrickColor.new("Light reddish violet")
- a2.Locked = true
- a2.CanCollide = true
- a2.Shape = ("Ball")
- a2.TopSurface = ("Smooth")
- a2.BottomSurface = ("Smooth")
- a2w = Instance.new("Weld")
- a2w.Parent = a2
- a2w.Name = "ArmWeld2"
- a2w.Part0 = a2
- a2w.Part1 = bin.Parent.Parent.Character["Right Arm"]
- a2w.C0 = CFrame.new(-0.2,0.2,0)
- l = Instance.new("Part")
- l.Parent = m
- l.Name = "Left Leg"
- l.formFactor = ("Symmetric")
- l.Size = Vector3.new(2,2,2)
- l.CFrame = bin.Parent.Parent.Character["Left Leg"].CFrame
- l.BrickColor = BrickColor.new("Dusty Rose")
- l.Locked = true
- l.CanCollide = true
- l.Shape = ("Ball")
- l.TopSurface = ("Smooth")
- l.BottomSurface = ("Smooth")
- lm = Instance.new("SpecialMesh")
- lm.Parent = l
- lm.Name = "LegMesh"
- lm.MeshType = ("Sphere")
- lm.Scale = Vector3.new(0.9,0.9,1.2)
- lw = Instance.new("Weld")
- lw.Parent = l
- lw.Name = "LegWeld"
- lw.Part0 = l
- lw.Part1 = bin.Parent.Parent.Character["Left Leg"]
- lw.C0 = CFrame.new(0.25,0.2,0)
- l2 = Instance.new("Part")
- l2.Parent = m
- l2.Name = "Right Leg"
- l2.formFactor = ("Symmetric")
- l2.Size = Vector3.new(2,2,2)
- l2.CFrame = bin.Parent.Parent.Character["Right Leg"].CFrame
- l2.BrickColor = BrickColor.new("Dusty Rose")
- l2.Locked = true
- l2.CanCollide = true
- l2.Shape = ("Ball")
- l2.TopSurface = ("Smooth")
- l2.BottomSurface = ("Smooth")
- l2m = Instance.new("SpecialMesh")
- l2m.Parent = l2
- l2m.Name = "LegMesh"
- l2m.MeshType = ("Sphere")
- l2m.Scale = Vector3.new(0.9,0.9,1.2)
- l2w = Instance.new("Weld")
- l2w.Parent = l2
- l2w.Name = "LegWeld2"
- l2w.Part0 = l2
- l2w.Part1 = bin.Parent.Parent.Character["Right Leg"]
- l2w.C0 = CFrame.new(-0.25,0.2,0)
- c = bin.Parent.Parent.Character:GetChildren()
- for i = 1, #c do
- if c[i].className == "Part" then
- c[i].Transparency = 1
- end
- end
- for ii = 1, #c do
- if c[ii].className == "Hat" then
- c[ii]:remove()
- end
- end
- wait()
- if bin.Parent.Parent.Character.Head:findFirstChild("face") ~= nil then
- bin.Parent.Parent.Character.Head:findFirstChild("face"):remove()
- end
- ---------------------------------------------------------------------------------------------------------------------
- bp = Instance.new("BodyPosition")
- bp.Parent = bin
- bp.maxForce = Vector3.new(2000,2000,2000)
- enabled = true
- function onButton1Down(mouse)
- if mouse.Target ~= nil then
- if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
- if enabled == true then
- enabled = false
- name = mouse.Target.Parent.Name
- bp.Parent = mouse.Target.Parent:findFirstChild("Torso")
- mouse.Target.Parent.Humanoid.PlatformStand = true
- bp.position = bin.Parent.Parent.Character.Torso.Position
- function touch(hit)
- if hit.Name == "MainBody" then
- parts = workspace[name]:GetChildren()
- for i = 1, #parts do
- if parts[i].className == "Part" then
- parts[i]:remove()
- end
- enabled = true
- end
- else
- wait()
- end
- end
- mouse.Target.Parent:findFirstChild("Torso").Touched:connect(touch)
- else
- wait()
- end
- end
- end
- end
- bin.Selected:connect(function(mouse)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end)
- --//====================================================\\--
- --|| this part was CREATED BY SHACKLUSTER, and then copied into this kirby script by trystingb
- --\\====================================================//--
- wait(0.2)
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- local sick = Instance.new("Sound",Torso)
- sick.SoundId = "rbxassetid://12222242"
- sick.Looped = true
- sick.Pitch = 1
- sick.Volume = 10
- local succing = {}
- 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
- 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)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- --//=================================\\
- --|| CUSTOMIZATION
- --\\=================================//
- Class_Name = "Template"
- Weapon_Name = "Add-ons"
- Custom_Colors = {
- Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
- Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
- Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
- Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
- Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
- Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
- Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
- Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
- Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
- Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
- Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
- Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
- }
- Player_Size = 1 --Size of the player.
- Animation_Speed = 3
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 16
- local Effects2 = {}
- --//=================================\\
- --|| END OF CUSTOMIZATION
- --\\=================================//
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
- local acs = Instance.new("Part")
- acs.CanCollide = false
- acs.Anchored = false
- acs.Size = Vector3.new(0,0,0)
- acs.CFrame = attachmentpart.CFrame
- acs.Parent = Character
- acs.BrickColor = color
- local meshs = Instance.new("SpecialMesh")
- meshs.MeshId = mesh
- meshs.TextureId = texture
- meshs.Parent = acs
- meshs.Scale = scale
- meshs.Offset = offset
- weldBetween(attachmentpart,acs)
- end
- function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
- if TYPE == "Gem" then
- local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- elseif TYPE == "Skull" then
- local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- elseif TYPE == "Eye" then
- local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- end
- end
- --//=================================\\
- --|| USEFUL VALUES
- --\\=================================//
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local CO1 = 0
- local CO2 = 0
- local CO3 = 0
- local CO4 = 0
- local CHANGEDEFENSE = 0
- local CHANGEDAMAGE = 0
- local CHANGEMOVEMENT = 0
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = false
- local COMBO = 1
- local LASTPOINT = nil
- local BLCF = nil
- local SCFR = nil
- local STAGGERHITANIM = false
- local STAGGERANIM = false
- local STUNANIM = false
- local CRITCHANCENUMBER = 0
- local IDLENUMBER = 0
- local DONUMBER = 0
- local HANDIDLE = false
- local SINE = 0
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local WALK = 0
- local DISABLEJUMPING = false
- local HASBEENBLOCKED = false
- local STUNDELAYNUMBER = 0
- local MANADELAYNUMBER = 0
- local SECONDARYMANADELAYNUMBER = 0
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- --ROBLOXIDLEANIMATION.Parent = Humanoid
- local WEAPONGUI = IT("ScreenGui", nil)
- WEAPONGUI.Name = "Weapon GUI"
- local WEAPONTOOL = IT("HopperBin", nil)
- WEAPONTOOL.Name = Weapon_Name
- local Weapon = IT("Model")
- Weapon.Name = Weapon_Name
- local Effects = IT("Folder", Weapon)
- Effects.Name = "Effects"
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character.Animate
- local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
- local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
- local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
- local HITBLOCKSOUNDS = {"199148933", "199148947"}
- local UNANCHOR = true
- local MAGICPARTICLE = "655109389"
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| DEBUFFS / BUFFS
- --\\=================================//
- local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
- DEFENSECHANGE1.Name = "ChangeDefense"
- DEFENSECHANGE1.Value = 0
- local MOVEMENTCHANGE1 = IT("NumberValue", nil)
- MOVEMENTCHANGE1.Name = "ChangeMovement"
- MOVEMENTCHANGE1.Value = 0
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- 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)
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SOME FUNCTIONS
- --\\=================================//
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
- local label = IT("TextLabel")
- label.BackgroundTransparency = 1
- label.Size = UD2(1, 0, 1, 0)
- label.Position = UD2(0, 0, 0, 0)
- label.TextColor3 = C3(255, 255, 255)
- label.TextStrokeTransparency = STROKETRANSPARENCY
- label.TextTransparency = TRANSPARENCY
- label.FontSize = TEXTFONTSIZE
- label.Font = TEXTFONT
- label.BorderSizePixel = BORDERSIZEPIXEL
- label.TextScaled = true
- label.Text = TEXT
- label.Name = NAME
- label.Parent = PARENT
- return label
- end
- function NoOutlines(PART)
- PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
- 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 CreateSound(ID, PARENT, VOLUME, PITCH)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = IT("Sound", PARENT)
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- Swait()
- NEWSOUND:play()
- game:GetService("Debris"):AddItem(NEWSOUND, 10)
- end))
- return NEWSOUND
- end
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| WEAPON CREATION
- --\\=================================//
- if Player_Size ~= 1 then
- for _, v in pairs (Weapon:GetChildren()) do
- if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
- local p1 = v.Part1
- v.Part1 = nil
- local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
- v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
- v.Part1 = p1
- elseif v.ClassName == "Part" then
- for _, b in pairs (v:GetChildren()) do
- if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
- b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
- end
- end
- end
- end
- end
- for _, c in pairs(Weapon:GetChildren()) do
- if c.ClassName == "Part" then
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- end
- Weapon.Parent = Character
- Humanoid.Died:connect(function()
- ATTACK = true
- end)
- print(Class_Name.." loaded.")
- --//=================================\\
- --\\=================================//
- local backpack = IT("Part",Weapon)
- backpack.Size = VT(0.15,0.15,0.15)
- local mesh = IT("SpecialMesh",backpack)
- mesh.MeshId = "rbxassetid://84313478"
- mesh.TextureId = "http://www.roblox.com/asset/?id=84313638"
- backpack.CFrame = Torso.CFrame * CF(0,0.2,1)
- backpack.BrickColor = BRICKC("Black")
- weldBetween(Torso,backpack)
- local hose = IT("Part",Weapon)
- hose.Size = VT(0.15,0.15,0.15)
- local mesh = IT("SpecialMesh",hose)
- mesh.MeshId = "http://www.roblox.com/asset/?id=84313555"
- mesh.TextureId = "http://www.roblox.com/asset/?id=84313638"
- mesh.Scale = VT(2,2,2)
- mesh.Offset = VT(0, -0.4, -0.7)
- hose.CFrame = Torso.CFrame * CF(1.5,0.5,0.2) * ANGLES(RAD(90),RAD(35),RAD(180))
- hose.BrickColor = BRICKC("Black")
- weldBetween(Torso,hose)
- local succ = IT("Part",Weapon)
- succ.Size = VT(2,2,2)
- succ.CanCollide = false
- succ.CFrame = Torso.CFrame * CF(1.5,1.3,-4) * ANGLES(RAD(90),RAD(0),RAD(180))
- succ.Transparency = 1
- succ.BrickColor = BRICKC("Black")
- weldBetween(Torso,succ)
- for _, c in pairs(Weapon:GetChildren()) do
- if c.ClassName == "Part" then
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- end
- local EyeSizes={
- NumberSequenceKeypoint.new(0,0.5,0),
- NumberSequenceKeypoint.new(1,0.2,0)
- }
- local EyeTrans={
- NumberSequenceKeypoint.new(0,0,0),
- NumberSequenceKeypoint.new(1,1,0)
- }
- local PE=Instance.new("ParticleEmitter")
- PE.LightEmission=0.3
- PE.Size=NumberSequence.new(EyeSizes)
- PE.Transparency=NumberSequence.new(EyeTrans)
- PE.Rotation=NumberRange.new(0,360)
- PE.LockedToPart = false
- PE.Speed = NumberRange.new(0,0,0)
- PE.ZOffset = 0.3
- PE.Rate = 999
- PE.VelocitySpread = 25
- PE.Name = "Particles"
- function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
- local particle = nil
- coroutine.resume(coroutine.create(function(PART)
- particle = PE:Clone()
- Swait()
- particle.Rate = 999
- particle.Parent = art
- particle.Acceleration = accel
- if type == "Fire" then
- local EyeSizes={
- NumberSequenceKeypoint.new(0,size,size/2),
- NumberSequenceKeypoint.new(1,size/4,size/8)
- }
- particle.Size = NumberSequence.new(EyeSizes)
- elseif type == "Smoke" then
- local EyeSizes={
- NumberSequenceKeypoint.new(0,size/5,0),
- NumberSequenceKeypoint.new(1,size*2,0.5)
- }
- particle.Size = NumberSequence.new(EyeSizes)
- elseif type == "Solid" then
- local EyeSizes={
- NumberSequenceKeypoint.new(0,size,0),
- NumberSequenceKeypoint.new(1,size,0)
- }
- particle.Size = NumberSequence.new(EyeSizes)
- end
- particle.Lifetime=NumberRange.new(lifetime)
- particle.Drag = drag
- if locked == true then
- particle.LockedToPart = true
- end
- particle.Speed = NumberRange.new(speed*0.8,speed)
- particle.Texture = "http://www.roblox.com/asset/?id=1179557490"
- particle.Enabled = isenabledbydefault
- particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0))
- end))
- return particle
- end
- local poop = CreateParticles(succ,VT(0,0,0),5,2,"Smoke",false,false,5,35)
- local poop2 = CreateParticles(succ,VT(0,0,0),5,1,"Smoke",false,false,2,15)
- --//=================================\\
- --|| DAMAGING
- --\\=================================//
- function succnearest(position,range)
- for i,v in ipairs(workspace:GetChildren()) do
- local body = v:GetChildren()
- for part = 1, #body do
- if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
- if(body[part].Position - position).Magnitude < range then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(body[part].Position,succ.Position).lookVector*80
- bv.Parent = body[part]
- bv.Name = "SUCC"
- game:GetService("Debris"):AddItem(bv, 0.1)
- end
- end
- end
- if v.ClassName == "Part" then
- if v.Anchored == false and (v.Position - position).Magnitude < range then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(v.Position,succ.Position).lookVector*80
- bv.Parent = v
- bv.Name = "SUCC"
- game:GetService("Debris"):AddItem(bv, 0.1)
- end
- end
- end
- end
- function cover(position,range)
- for i,v in ipairs(workspace:GetChildren()) do
- local body = v:GetChildren()
- for part = 1, #body do
- if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
- if(body[part].Position - position).Magnitude < range then
- CreateParticles(body[part],VT(0,-2,0),5,1,"Smoke",true,false,0.3,0)
- if v:FindFirstChild("Humanoid") then
- v.Humanoid.PlatformStand = true
- end
- end
- end
- end
- if v.ClassName == "Part" then
- if v.Anchored == false and (v.Position - position).Magnitude < range then
- CreateParticles(v,VT(0,-2,0),5,1,"Smoke",true,false,0.3,0)
- end
- end
- end
- end
- function cough()
- CreateSound("328460122", succ, 3, 1)
- poop.VelocitySpread = 25
- poop:Emit(150)
- cover(CF(succ.Position)*CF(0,0,-1).p,15)
- end
- --//=================================\\
- --|| ATTACK FUNCTIONS AND STUFF
- --\\=================================//
- function CheckTableForString(Table, String)
- for i, v in pairs(Table) do
- if string.find(string.lower(String), string.lower(v)) then
- return true
- end
- end
- return false
- end
- function CheckIntangible(Hit)
- local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
- if Hit and Hit.Parent then
- if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
- return true
- end
- end
- return false
- end
- Debris = game:GetService("Debris")
- function CastRay(StartPos, Vec, Length, Ignore, DelayIfHit)
- local Direction = CFrame.new(StartPos, Vec).lookVector
- local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
- local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
- if RayHit and CheckIntangible(RayHit) then
- if DelayIfHit then
- wait()
- end
- RayHit, RayPos, RayNormal = CastRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
- end
- return RayHit, RayPos, RayNormal
- end
- function turnto(pos,part)
- part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z))
- end
- function vacuum()
- sick:Play()
- local nado = IT("Part")
- local mesh = IT("SpecialMesh",nado)
- mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
- nado.Transparency = 0.5
- nado.CanCollide = false
- nado.Anchored = true
- local loop = 0
- succing = {}
- local harm = succ.Touched:Connect(function(hit)
- if hit.Anchored == false then
- hit:remove()
- CreateSound("261732529", succ, 3, 1)
- poop2:Emit(1)
- end
- end)
- repeat
- Swait()
- loop = loop + 75
- nado.Parent = Effects
- local RayHit,RayPos = CastRay(succ.Position, Mouse.Hit.p, 1000, Character, false)
- local distance = (succ.Position - RayPos).magnitude
- mesh.Scale = VT(distance/12,distance/3.2,distance/12)
- nado.CFrame = CFrame.new(succ.Position, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(-90),RAD(loop),RAD(0))
- turnto(Mouse.Hit.p,RootPart)
- succnearest(RayPos,distance/2.5)
- if RayHit ~= nil then
- if RayHit.Anchored == false then
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = CF(RayHit.Position,succ.Position).lookVector*80
- bv.Parent = RayHit
- bv.Name = "SUCC"
- game:GetService("Debris"):AddItem(bv, 0.1)
- end
- end
- local TotalSuccs = math.ceil(distance / 65)
- local Direction = CFrame.new(RayPos, succ.Position).lookVector
- for i = 1, TotalSuccs do
- local NewPos = (RayPos + (Direction * (distance * (i / TotalSuccs))))
- succnearest(NewPos,distance/(i*2.5))
- end
- until HOLD == false
- if #succing>0 then
- for e=1,#succing do
- if succing[e]~=nil then
- local Thing=succing[e]
- Thing:remove()
- table.remove(succing,e)
- end
- end
- end
- succing = {}
- harm:disconnect()
- nado:remove()
- sick:Stop()
- end
- --//=================================\\
- --|| ASSIGN THINGS TO KEYS
- --\\=================================//
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
- Humanoid.Jump = false
- end
- end)
- function MouseDown(Mouse)
- HOLD = true
- vacuum()
- end
- function MouseUp(Mouse)
- HOLD = false
- end
- function KeyDown(Key)
- if Key == "t" and ATTACK == false then
- CreateSound("743953262", Head, 3, 1)
- end
- if Key == "e" and ATTACK == false then
- cough()
- end
- end
- function KeyUp(Key)
- end
- Mouse.Button1Down:connect(function(NEWKEY)
- MouseDown(NEWKEY)
- end)
- Mouse.Button1Up:connect(function(NEWKEY)
- MouseUp(NEWKEY)
- end)
- Mouse.KeyDown:connect(function(NEWKEY)
- KeyDown(NEWKEY)
- end)
- Mouse.KeyUp:connect(function(NEWKEY)
- KeyUp(NEWKEY)
- end)
- --//=================================\\
- --\\=================================//
- function unanchor()
- if UNANCHOR == true then
- g = Character:GetChildren()
- for i = 1, #g do
- if g[i].ClassName == "Part" then
- g[i].Anchored = false
- end
- end
- end
- end
- --//=================================\\
- --|| WRAP THE WHOLE SCRIPT UP
- --\\=================================//
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
- Humanoid.Jump = false
- end
- end)
- while true do
- Swait()
- if #Effects2>0 then
- for e=1,#Effects2 do
- if Effects2[e]~=nil then
- local Thing=Effects2[e]
- if Thing~=nil then
- local Part=Thing[1]
- local Mode=Thing[2]
- local Delay=Thing[3]
- local IncX=Thing[4]
- local IncY=Thing[5]
- local IncZ=Thing[6]
- local Part2=Thing[8]
- if Thing[1].Transparency<=1 then
- if Thing[2]=="Block1" then
- Thing[1].CFrame=Thing[1].CFrame
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder" then
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
- Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Elec" then
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Disappear" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- end
- else
- Part.Parent=nil
- table.remove(Effects2,e)
- end
- end
- end
- end
- end
- unanchor()
- Humanoid.MaxHealth = "inf"
- Humanoid.Health = "inf"
- if Rooted == false then
- Disable_Jump = false
- Humanoid.WalkSpeed = Speed
- elseif Rooted == true then
- Disable_Jump = true
- Humanoid.WalkSpeed = 0
- end
- if sick == nil then
- sick = Instance.new("Sound",Torso)
- sick.SoundId = "rbxassetid://319444224"
- sick.Looped = true
- sick.Pitch = 1
- sick.Volume = 1
- end
- if #succing>0 then
- for e=1,#succing do
- if succing[e]~=nil then
- local Thing=succing[e]
- Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*80
- if HOLD == false then
- Thing.velocity = CF(Thing.Parent.Position,succ.Position).lookVector*0
- Thing:remove()
- table.remove(succing,e)
- end
- end
- end
- end
- end
- --//=================================\\
- --\\=================================//
- --//====================================================\\--
- --|| END OF SCRIPT
- --\\====================================================//--
- --#Script Fixed And Edit By RADDIACTIVE
- --#SMILEY FACE :)
- wait()
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.Name == "Soundbar" then
- v:Destroy()
- end
- end
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- function cycle(num)
- local section=num % 1 * 3;
- local secondary=0.5 * math.pi * (section % 1);
- if section < 1 then
- return 1,1 - math.cos(secondary),1 - math.sin(secondary);
- elseif section < 2 then
- return 1 - math.sin(secondary),1,1 - math.cos(secondary);
- else
- return 1 - math.cos(secondary),1 - math.sin(secondary),1;
- end
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o1.Name = "Soundbar"
- o1.Parent = mas
- o2 = Instance.new("Part")
- o2.Name = "0"
- o2.Parent = o1
- o2.Position = Vector3.new(9.5, 0.200000018, 0)
- o2.Anchored = true
- o2.CFrame = CFrame.new(9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.CanCollide = false
- o2.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o3 = Instance.new("SpecialMesh")
- o3.Parent = o2
- o3.MeshId = "rbxassetid://990671252"
- o3.Scale = Vector3.new(1, 0.400000006, 1)
- o3.TextureId = "rbxassetid://2114473"
- o3.MeshType = Enum.MeshType.FileMesh
- o4 = Instance.new("Part")
- o4.Name = "9"
- o4.Parent = o1
- o4.Position = Vector3.new(5, 0.200000018, 0)
- o4.Anchored = true
- o4.CFrame = CFrame.new(5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.CanCollide = false
- o4.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.TopSurface = Enum.SurfaceType.Smooth
- o5 = Instance.new("SpecialMesh")
- o5.Parent = o4
- o5.MeshId = "rbxassetid://990671252"
- o5.Scale = Vector3.new(1, 0.400000006, 1)
- o5.TextureId = "rbxassetid://2114473"
- o5.MeshType = Enum.MeshType.FileMesh
- o6 = Instance.new("Part")
- o6.Name = "10"
- o6.Parent = o1
- o6.Position = Vector3.new(4.5, 0.200000018, 0)
- o6.Anchored = true
- o6.CFrame = CFrame.new(4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o6.CanCollide = false
- o6.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o6.BottomSurface = Enum.SurfaceType.Smooth
- o6.TopSurface = Enum.SurfaceType.Smooth
- o7 = Instance.new("SpecialMesh")
- o7.Parent = o6
- o7.MeshId = "rbxassetid://990671252"
- o7.Scale = Vector3.new(1, 0.400000006, 1)
- o7.TextureId = "rbxassetid://2114473"
- o7.MeshType = Enum.MeshType.FileMesh
- o8 = Instance.new("Part")
- o8.Name = "11"
- o8.Parent = o1
- o8.Position = Vector3.new(4, 0.200000018, 0)
- o8.Anchored = true
- o8.CFrame = CFrame.new(4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o8.CanCollide = false
- o8.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o8.BottomSurface = Enum.SurfaceType.Smooth
- o8.TopSurface = Enum.SurfaceType.Smooth
- o9 = Instance.new("SpecialMesh")
- o9.Parent = o8
- o9.MeshId = "rbxassetid://990671252"
- o9.Scale = Vector3.new(1, 0.400000006, 1)
- o9.TextureId = "rbxassetid://2114473"
- o9.MeshType = Enum.MeshType.FileMesh
- o10 = Instance.new("Part")
- o10.Name = "12"
- o10.Parent = o1
- o10.Position = Vector3.new(3.5, 0.200000018, 0)
- o10.Anchored = true
- o10.CFrame = CFrame.new(3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o10.CanCollide = false
- o10.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o10.BottomSurface = Enum.SurfaceType.Smooth
- o10.TopSurface = Enum.SurfaceType.Smooth
- o11 = Instance.new("SpecialMesh")
- o11.Parent = o10
- o11.MeshId = "rbxassetid://990671252"
- o11.Scale = Vector3.new(1, 0.400000006, 1)
- o11.TextureId = "rbxassetid://2114473"
- o11.MeshType = Enum.MeshType.FileMesh
- o12 = Instance.new("Part")
- o12.Name = "13"
- o12.Parent = o1
- o12.Position = Vector3.new(3, 0.200000018, 0)
- o12.Anchored = true
- o12.CFrame = CFrame.new(3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o12.CanCollide = false
- o12.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o12.BottomSurface = Enum.SurfaceType.Smooth
- o12.TopSurface = Enum.SurfaceType.Smooth
- o13 = Instance.new("SpecialMesh")
- o13.Parent = o12
- o13.MeshId = "rbxassetid://990671252"
- o13.Scale = Vector3.new(1, 0.400000006, 1)
- o13.TextureId = "rbxassetid://2114473"
- o13.MeshType = Enum.MeshType.FileMesh
- o14 = Instance.new("Part")
- o14.Name = "1"
- o14.Parent = o1
- o14.Position = Vector3.new(9, 0.200000018, 0)
- o14.Anchored = true
- o14.CFrame = CFrame.new(9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o14.CanCollide = false
- o14.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o14.BottomSurface = Enum.SurfaceType.Smooth
- o14.TopSurface = Enum.SurfaceType.Smooth
- o15 = Instance.new("SpecialMesh")
- o15.Parent = o14
- o15.MeshId = "rbxassetid://990671252"
- o15.Scale = Vector3.new(1, 0.400000006, 1)
- o15.TextureId = "rbxassetid://2114473"
- o15.MeshType = Enum.MeshType.FileMesh
- o16 = Instance.new("Part")
- o16.Name = "19"
- o16.Parent = o1
- o16.Position = Vector3.new(0, 0.200000018, 0)
- o16.Anchored = true
- o16.CFrame = CFrame.new(0, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o16.CanCollide = false
- o16.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o16.BottomSurface = Enum.SurfaceType.Smooth
- o16.TopSurface = Enum.SurfaceType.Smooth
- o17 = Instance.new("SpecialMesh")
- o17.Parent = o16
- o17.MeshId = "rbxassetid://990671252"
- o17.Scale = Vector3.new(1, 0.400000006, 1)
- o17.TextureId = "rbxassetid://2114473"
- o17.MeshType = Enum.MeshType.FileMesh
- o18 = Instance.new("Part")
- o18.Name = "20"
- o18.Parent = o1
- o18.Position = Vector3.new(-0.5, 0.200000018, 0)
- o18.Anchored = true
- o18.CFrame = CFrame.new(-0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o18.CanCollide = false
- o18.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o18.BottomSurface = Enum.SurfaceType.Smooth
- o18.TopSurface = Enum.SurfaceType.Smooth
- o19 = Instance.new("SpecialMesh")
- o19.Parent = o18
- o19.MeshId = "rbxassetid://990671252"
- o19.Scale = Vector3.new(1, 0.400000006, 1)
- o19.TextureId = "rbxassetid://2114473"
- o19.MeshType = Enum.MeshType.FileMesh
- o20 = Instance.new("Part")
- o20.Name = "21"
- o20.Parent = o1
- o20.Position = Vector3.new(-1, 0.200000018, 0)
- o20.Anchored = true
- o20.CFrame = CFrame.new(-1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o20.CanCollide = false
- o20.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o20.BottomSurface = Enum.SurfaceType.Smooth
- o20.TopSurface = Enum.SurfaceType.Smooth
- o21 = Instance.new("SpecialMesh")
- o21.Parent = o20
- o21.MeshId = "rbxassetid://990671252"
- o21.Scale = Vector3.new(1, 0.400000006, 1)
- o21.TextureId = "rbxassetid://2114473"
- o21.MeshType = Enum.MeshType.FileMesh
- o22 = Instance.new("Part")
- o22.Name = "22"
- o22.Parent = o1
- o22.Position = Vector3.new(-1.5, 0.200000018, 0)
- o22.Anchored = true
- o22.CFrame = CFrame.new(-1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o22.CanCollide = false
- o22.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o22.BottomSurface = Enum.SurfaceType.Smooth
- o22.TopSurface = Enum.SurfaceType.Smooth
- o23 = Instance.new("SpecialMesh")
- o23.Parent = o22
- o23.MeshId = "rbxassetid://990671252"
- o23.Scale = Vector3.new(1, 0.400000006, 1)
- o23.TextureId = "rbxassetid://2114473"
- o23.MeshType = Enum.MeshType.FileMesh
- o24 = Instance.new("Part")
- o24.Name = "23"
- o24.Parent = o1
- o24.Position = Vector3.new(-2, 0.200000018, 0)
- o24.Anchored = true
- o24.CFrame = CFrame.new(-2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o24.CanCollide = false
- o24.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o24.BottomSurface = Enum.SurfaceType.Smooth
- o24.TopSurface = Enum.SurfaceType.Smooth
- o25 = Instance.new("SpecialMesh")
- o25.Parent = o24
- o25.MeshId = "rbxassetid://990671252"
- o25.Scale = Vector3.new(1, 0.400000006, 1)
- o25.TextureId = "rbxassetid://2114473"
- o25.MeshType = Enum.MeshType.FileMesh
- o26 = Instance.new("Part")
- o26.Name = "2"
- o26.Parent = o1
- o26.Position = Vector3.new(8.5, 0.200000018, 0)
- o26.Anchored = true
- o26.CFrame = CFrame.new(8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o26.CanCollide = false
- o26.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o26.BottomSurface = Enum.SurfaceType.Smooth
- o26.TopSurface = Enum.SurfaceType.Smooth
- o27 = Instance.new("SpecialMesh")
- o27.Parent = o26
- o27.MeshId = "rbxassetid://990671252"
- o27.Scale = Vector3.new(1, 0.400000006, 1)
- o27.TextureId = "rbxassetid://2114473"
- o27.MeshType = Enum.MeshType.FileMesh
- o28 = Instance.new("Part")
- o28.Name = "29"
- o28.Parent = o1
- o28.Position = Vector3.new(-5, 0.200000018, 0)
- o28.Anchored = true
- o28.CFrame = CFrame.new(-5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o28.CanCollide = false
- o28.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o28.BottomSurface = Enum.SurfaceType.Smooth
- o28.TopSurface = Enum.SurfaceType.Smooth
- o29 = Instance.new("SpecialMesh")
- o29.Parent = o28
- o29.MeshId = "rbxassetid://990671252"
- o29.Scale = Vector3.new(1, 0.400000006, 1)
- o29.TextureId = "rbxassetid://2114473"
- o29.MeshType = Enum.MeshType.FileMesh
- o30 = Instance.new("Part")
- o30.Name = "30"
- o30.Parent = o1
- o30.Position = Vector3.new(-5.5, 0.200000018, 0)
- o30.Anchored = true
- o30.CFrame = CFrame.new(-5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o30.CanCollide = false
- o30.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o30.BottomSurface = Enum.SurfaceType.Smooth
- o30.TopSurface = Enum.SurfaceType.Smooth
- o31 = Instance.new("SpecialMesh")
- o31.Parent = o30
- o31.MeshId = "rbxassetid://990671252"
- o31.Scale = Vector3.new(1, 0.400000006, 1)
- o31.TextureId = "rbxassetid://2114473"
- o31.MeshType = Enum.MeshType.FileMesh
- o32 = Instance.new("Part")
- o32.Name = "31"
- o32.Parent = o1
- o32.Position = Vector3.new(-6, 0.200000018, 0)
- o32.Anchored = true
- o32.CFrame = CFrame.new(-6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o32.CanCollide = false
- o32.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o32.BottomSurface = Enum.SurfaceType.Smooth
- o32.TopSurface = Enum.SurfaceType.Smooth
- o33 = Instance.new("SpecialMesh")
- o33.Parent = o32
- o33.MeshId = "rbxassetid://990671252"
- o33.Scale = Vector3.new(1, 0.400000006, 1)
- o33.TextureId = "rbxassetid://2114473"
- o33.MeshType = Enum.MeshType.FileMesh
- o34 = Instance.new("Part")
- o34.Name = "32"
- o34.Parent = o1
- o34.Position = Vector3.new(-6.5, 0.200000018, 0)
- o34.Anchored = true
- o34.CFrame = CFrame.new(-6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o34.CanCollide = false
- o34.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o34.BottomSurface = Enum.SurfaceType.Smooth
- o34.TopSurface = Enum.SurfaceType.Smooth
- o35 = Instance.new("SpecialMesh")
- o35.Parent = o34
- o35.MeshId = "rbxassetid://990671252"
- o35.Scale = Vector3.new(1, 0.400000006, 1)
- o35.TextureId = "rbxassetid://2114473"
- o35.MeshType = Enum.MeshType.FileMesh
- o36 = Instance.new("Part")
- o36.Name = "33"
- o36.Parent = o1
- o36.Position = Vector3.new(-7, 0.200000018, 0)
- o36.Anchored = true
- o36.CFrame = CFrame.new(-7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o36.CanCollide = false
- o36.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o36.BottomSurface = Enum.SurfaceType.Smooth
- o36.TopSurface = Enum.SurfaceType.Smooth
- o37 = Instance.new("SpecialMesh")
- o37.Parent = o36
- o37.MeshId = "rbxassetid://990671252"
- o37.Scale = Vector3.new(1, 0.400000006, 1)
- o37.TextureId = "rbxassetid://2114473"
- o37.MeshType = Enum.MeshType.FileMesh
- o38 = Instance.new("Part")
- o38.Name = "3"
- o38.Parent = o1
- o38.Position = Vector3.new(8, 0.200000018, 0)
- o38.Anchored = true
- o38.CFrame = CFrame.new(8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o38.CanCollide = false
- o38.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o38.BottomSurface = Enum.SurfaceType.Smooth
- o38.TopSurface = Enum.SurfaceType.Smooth
- o39 = Instance.new("SpecialMesh")
- o39.Parent = o38
- o39.MeshId = "rbxassetid://990671252"
- o39.Scale = Vector3.new(1, 0.400000006, 1)
- o39.TextureId = "rbxassetid://2114473"
- o39.MeshType = Enum.MeshType.FileMesh
- o40 = Instance.new("Part")
- o40.Name = "14"
- o40.Parent = o1
- o40.Position = Vector3.new(2.5, 0.200000018, 0)
- o40.Anchored = true
- o40.CFrame = CFrame.new(2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o40.CanCollide = false
- o40.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o40.BottomSurface = Enum.SurfaceType.Smooth
- o40.TopSurface = Enum.SurfaceType.Smooth
- o41 = Instance.new("SpecialMesh")
- o41.Parent = o40
- o41.MeshId = "rbxassetid://990671252"
- o41.Scale = Vector3.new(1, 0.400000006, 1)
- o41.TextureId = "rbxassetid://2114473"
- o41.MeshType = Enum.MeshType.FileMesh
- o42 = Instance.new("Part")
- o42.Name = "24"
- o42.Parent = o1
- o42.Position = Vector3.new(-2.5, 0.200000018, 0)
- o42.Anchored = true
- o42.CFrame = CFrame.new(-2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o42.CanCollide = false
- o42.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o42.BottomSurface = Enum.SurfaceType.Smooth
- o42.TopSurface = Enum.SurfaceType.Smooth
- o43 = Instance.new("SpecialMesh")
- o43.Parent = o42
- o43.MeshId = "rbxassetid://990671252"
- o43.Scale = Vector3.new(1, 0.400000006, 1)
- o43.TextureId = "rbxassetid://2114473"
- o43.MeshType = Enum.MeshType.FileMesh
- o44 = Instance.new("Part")
- o44.Name = "4"
- o44.Parent = o1
- o44.Position = Vector3.new(7.5, 0.200000018, 0)
- o44.Anchored = true
- o44.CFrame = CFrame.new(7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o44.CanCollide = false
- o44.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o44.BottomSurface = Enum.SurfaceType.Smooth
- o44.TopSurface = Enum.SurfaceType.Smooth
- o45 = Instance.new("SpecialMesh")
- o45.Parent = o44
- o45.MeshId = "rbxassetid://990671252"
- o45.Scale = Vector3.new(1, 0.400000006, 1)
- o45.TextureId = "rbxassetid://2114473"
- o45.MeshType = Enum.MeshType.FileMesh
- o46 = Instance.new("Part")
- o46.Name = "34"
- o46.Parent = o1
- o46.Position = Vector3.new(-7.5, 0.200000018, 0)
- o46.Anchored = true
- o46.CFrame = CFrame.new(-7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o46.CanCollide = false
- o46.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o46.BottomSurface = Enum.SurfaceType.Smooth
- o46.TopSurface = Enum.SurfaceType.Smooth
- o47 = Instance.new("SpecialMesh")
- o47.Parent = o46
- o47.MeshId = "rbxassetid://990671252"
- o47.Scale = Vector3.new(1, 0.400000006, 1)
- o47.TextureId = "rbxassetid://2114473"
- o47.MeshType = Enum.MeshType.FileMesh
- o48 = Instance.new("Part")
- o48.Name = "15"
- o48.Parent = o1
- o48.Position = Vector3.new(2, 0.200000018, 0)
- o48.Anchored = true
- o48.CFrame = CFrame.new(2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o48.CanCollide = false
- o48.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o48.BottomSurface = Enum.SurfaceType.Smooth
- o48.TopSurface = Enum.SurfaceType.Smooth
- o49 = Instance.new("SpecialMesh")
- o49.Parent = o48
- o49.MeshId = "rbxassetid://990671252"
- o49.Scale = Vector3.new(1, 0.400000006, 1)
- o49.TextureId = "rbxassetid://2114473"
- o49.MeshType = Enum.MeshType.FileMesh
- o50 = Instance.new("Part")
- o50.Name = "25"
- o50.Parent = o1
- o50.Position = Vector3.new(-3, 0.200000018, 0)
- o50.Anchored = true
- o50.CFrame = CFrame.new(-3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o50.CanCollide = false
- o50.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o50.BottomSurface = Enum.SurfaceType.Smooth
- o50.TopSurface = Enum.SurfaceType.Smooth
- o51 = Instance.new("SpecialMesh")
- o51.Parent = o50
- o51.MeshId = "rbxassetid://990671252"
- o51.Scale = Vector3.new(1, 0.400000006, 1)
- o51.TextureId = "rbxassetid://2114473"
- o51.MeshType = Enum.MeshType.FileMesh
- o52 = Instance.new("Part")
- o52.Name = "5"
- o52.Parent = o1
- o52.Position = Vector3.new(7, 0.200000018, 0)
- o52.Anchored = true
- o52.CFrame = CFrame.new(7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o52.CanCollide = false
- o52.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o52.BottomSurface = Enum.SurfaceType.Smooth
- o52.TopSurface = Enum.SurfaceType.Smooth
- o53 = Instance.new("SpecialMesh")
- o53.Parent = o52
- o53.MeshId = "rbxassetid://990671252"
- o53.Scale = Vector3.new(1, 0.400000006, 1)
- o53.TextureId = "rbxassetid://2114473"
- o53.MeshType = Enum.MeshType.FileMesh
- o54 = Instance.new("Part")
- o54.Name = "35"
- o54.Parent = o1
- o54.Position = Vector3.new(-8, 0.200000018, 0)
- o54.Anchored = true
- o54.CFrame = CFrame.new(-8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o54.CanCollide = false
- o54.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o54.BottomSurface = Enum.SurfaceType.Smooth
- o54.TopSurface = Enum.SurfaceType.Smooth
- o55 = Instance.new("SpecialMesh")
- o55.Parent = o54
- o55.MeshId = "rbxassetid://990671252"
- o55.Scale = Vector3.new(1, 0.400000006, 1)
- o55.TextureId = "rbxassetid://2114473"
- o55.MeshType = Enum.MeshType.FileMesh
- o56 = Instance.new("Part")
- o56.Name = "16"
- o56.Parent = o1
- o56.Position = Vector3.new(1.5, 0.200000018, 0)
- o56.Anchored = true
- o56.CFrame = CFrame.new(1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o56.CanCollide = false
- o56.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o56.BottomSurface = Enum.SurfaceType.Smooth
- o56.TopSurface = Enum.SurfaceType.Smooth
- o57 = Instance.new("SpecialMesh")
- o57.Parent = o56
- o57.MeshId = "rbxassetid://990671252"
- o57.Scale = Vector3.new(1, 0.400000006, 1)
- o57.TextureId = "rbxassetid://2114473"
- o57.MeshType = Enum.MeshType.FileMesh
- o58 = Instance.new("Part")
- o58.Name = "6"
- o58.Parent = o1
- o58.Position = Vector3.new(6.5, 0.200000018, 0)
- o58.Anchored = true
- o58.CFrame = CFrame.new(6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o58.CanCollide = false
- o58.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o58.BottomSurface = Enum.SurfaceType.Smooth
- o58.TopSurface = Enum.SurfaceType.Smooth
- o59 = Instance.new("SpecialMesh")
- o59.Parent = o58
- o59.MeshId = "rbxassetid://990671252"
- o59.Scale = Vector3.new(1, 0.400000006, 1)
- o59.TextureId = "rbxassetid://2114473"
- o59.MeshType = Enum.MeshType.FileMesh
- o60 = Instance.new("Part")
- o60.Name = "26"
- o60.Parent = o1
- o60.Position = Vector3.new(-3.5, 0.200000018, 0)
- o60.Anchored = true
- o60.CFrame = CFrame.new(-3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o60.CanCollide = false
- o60.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o60.BottomSurface = Enum.SurfaceType.Smooth
- o60.TopSurface = Enum.SurfaceType.Smooth
- o61 = Instance.new("SpecialMesh")
- o61.Parent = o60
- o61.MeshId = "rbxassetid://990671252"
- o61.Scale = Vector3.new(1, 0.400000006, 1)
- o61.TextureId = "rbxassetid://2114473"
- o61.MeshType = Enum.MeshType.FileMesh
- o62 = Instance.new("Part")
- o62.Name = "36"
- o62.Parent = o1
- o62.Position = Vector3.new(-8.5, 0.200000018, 0)
- o62.Anchored = true
- o62.CFrame = CFrame.new(-8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o62.CanCollide = false
- o62.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o62.BottomSurface = Enum.SurfaceType.Smooth
- o62.TopSurface = Enum.SurfaceType.Smooth
- o63 = Instance.new("SpecialMesh")
- o63.Parent = o62
- o63.MeshId = "rbxassetid://990671252"
- o63.Scale = Vector3.new(1, 0.400000006, 1)
- o63.TextureId = "rbxassetid://2114473"
- o63.MeshType = Enum.MeshType.FileMesh
- o64 = Instance.new("Part")
- o64.Name = "17"
- o64.Parent = o1
- o64.Position = Vector3.new(1, 0.200000018, 0)
- o64.Anchored = true
- o64.CFrame = CFrame.new(1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o64.CanCollide = false
- o64.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o64.BottomSurface = Enum.SurfaceType.Smooth
- o64.TopSurface = Enum.SurfaceType.Smooth
- o65 = Instance.new("SpecialMesh")
- o65.Parent = o64
- o65.MeshId = "rbxassetid://990671252"
- o65.Scale = Vector3.new(1, 0.400000006, 1)
- o65.TextureId = "rbxassetid://2114473"
- o65.MeshType = Enum.MeshType.FileMesh
- o66 = Instance.new("Part")
- o66.Name = "27"
- o66.Parent = o1
- o66.Position = Vector3.new(-4, 0.200000018, 0)
- o66.Anchored = true
- o66.CFrame = CFrame.new(-4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o66.CanCollide = false
- o66.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o66.BottomSurface = Enum.SurfaceType.Smooth
- o66.TopSurface = Enum.SurfaceType.Smooth
- o67 = Instance.new("SpecialMesh")
- o67.Parent = o66
- o67.MeshId = "rbxassetid://990671252"
- o67.Scale = Vector3.new(1, 0.400000006, 1)
- o67.TextureId = "rbxassetid://2114473"
- o67.MeshType = Enum.MeshType.FileMesh
- o68 = Instance.new("Part")
- o68.Name = "7"
- o68.Parent = o1
- o68.Position = Vector3.new(6, 0.200000018, 0)
- o68.Anchored = true
- o68.CFrame = CFrame.new(6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o68.CanCollide = false
- o68.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o68.BottomSurface = Enum.SurfaceType.Smooth
- o68.TopSurface = Enum.SurfaceType.Smooth
- o69 = Instance.new("SpecialMesh")
- o69.Parent = o68
- o69.MeshId = "rbxassetid://990671252"
- o69.Scale = Vector3.new(1, 0.400000006, 1)
- o69.TextureId = "rbxassetid://2114473"
- o69.MeshType = Enum.MeshType.FileMesh
- o70 = Instance.new("Part")
- o70.Name = "37"
- o70.Parent = o1
- o70.Position = Vector3.new(-9, 0.200000018, 0)
- o70.Anchored = true
- o70.CFrame = CFrame.new(-9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o70.CanCollide = false
- o70.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o70.BottomSurface = Enum.SurfaceType.Smooth
- o70.TopSurface = Enum.SurfaceType.Smooth
- o71 = Instance.new("SpecialMesh")
- o71.Parent = o70
- o71.MeshId = "rbxassetid://990671252"
- o71.Scale = Vector3.new(1, 0.400000006, 1)
- o71.TextureId = "rbxassetid://2114473"
- o71.MeshType = Enum.MeshType.FileMesh
- o72 = Instance.new("Part")
- o72.Name = "8"
- o72.Parent = o1
- o72.Position = Vector3.new(5.5, 0.200000018, 0)
- o72.Anchored = true
- o72.CFrame = CFrame.new(5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o72.CanCollide = false
- o72.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o72.BottomSurface = Enum.SurfaceType.Smooth
- o72.TopSurface = Enum.SurfaceType.Smooth
- o73 = Instance.new("SpecialMesh")
- o73.Parent = o72
- o73.MeshId = "rbxassetid://990671252"
- o73.Scale = Vector3.new(1, 0.400000006, 1)
- o73.TextureId = "rbxassetid://2114473"
- o73.MeshType = Enum.MeshType.FileMesh
- o74 = Instance.new("Part")
- o74.Name = "18"
- o74.Parent = o1
- o74.Position = Vector3.new(0.5, 0.200000018, 0)
- o74.Anchored = true
- o74.CFrame = CFrame.new(0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o74.CanCollide = false
- o74.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o74.BottomSurface = Enum.SurfaceType.Smooth
- o74.TopSurface = Enum.SurfaceType.Smooth
- o75 = Instance.new("SpecialMesh")
- o75.Parent = o74
- o75.MeshId = "rbxassetid://990671252"
- o75.Scale = Vector3.new(1, 0.400000006, 1)
- o75.TextureId = "rbxassetid://2114473"
- o75.MeshType = Enum.MeshType.FileMesh
- o76 = Instance.new("Part")
- o76.Name = "28"
- o76.Parent = o1
- o76.Position = Vector3.new(-4.5, 0.200000018, 0)
- o76.Anchored = true
- o76.CFrame = CFrame.new(-4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o76.CanCollide = false
- o76.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o76.BottomSurface = Enum.SurfaceType.Smooth
- o76.TopSurface = Enum.SurfaceType.Smooth
- o77 = Instance.new("SpecialMesh")
- o77.Parent = o76
- o77.MeshId = "rbxassetid://990671252"
- o77.Scale = Vector3.new(1, 0.400000006, 1)
- o77.TextureId = "rbxassetid://2114473"
- o77.MeshType = Enum.MeshType.FileMesh
- o78 = Instance.new("Part")
- o78.Name = "38"
- o78.Parent = o1
- o78.Position = Vector3.new(-9.5, 0.200000018, 0)
- o78.Anchored = true
- o78.CFrame = CFrame.new(-9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o78.CanCollide = false
- o78.Size = Vector3.new(0.5, 0.200000003, 0.5)
- o78.BottomSurface = Enum.SurfaceType.Smooth
- o78.TopSurface = Enum.SurfaceType.Smooth
- o79 = Instance.new("SpecialMesh")
- o79.Parent = o78
- o79.MeshId = "rbxassetid://990671252"
- o79.Scale = Vector3.new(1, 0.400000006, 1)
- o79.TextureId = "rbxassetid://2114473"
- o79.MeshType = Enum.MeshType.FileMesh
- o80 = Instance.new("SpecialMesh")
- o80.Parent = o1
- o80.MeshId = "rbxassetid://990671252"
- o80.Scale = Vector3.new(40, 0.400000006, 2)
- o80.TextureId = "rbxassetid://2114473"
- o80.VertexColor = Vector3.new(0, 0, 0)
- o80.MeshType = Enum.MeshType.FileMesh
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game.Players.LocalPlayer.Character
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- local Height=20 -- Max height of the bars
- local plr=game.Players.LocalPlayer
- o81 = Instance.new("Sound")
- o81.Parent = plr.Character.Torso
- o81.SoundId = "rbxassetid://508162596"
- o81.Volume = 3
- o81.Looped = true
- -- Objects
- -- Objects
- local MusicGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local SongName = Instance.new("TextLabel")
- local SavedSongs = Instance.new("TextLabel")
- local OpenSaved = Instance.new("TextButton")
- local Play = Instance.new("TextButton")
- local Searchcat = Instance.new("TextBox")
- local ID = Instance.new("TextBox")
- local Search = Instance.new("TextButton")
- local Pause = Instance.new("TextButton")
- local Resume = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- local CurrentVolume = Instance.new("TextLabel")
- local VolUp = Instance.new("TextButton")
- local VolDown = Instance.new("TextButton")
- local Playlist = Instance.new("TextLabel")
- local check = Instance.new("TextButton")
- local skip = Instance.new("TextButton")
- local forward = Instance.new("TextButton")
- local rewind = Instance.new("TextButton")
- local previous = Instance.new("TextButton")
- local stime = Instance.new("TextLabel")
- local Settings = Instance.new("TextButton")
- local SavedList = Instance.new("Frame")
- local fav = Instance.new("TextButton")
- local close = Instance.new("TextButton")
- local song = Instance.new("TextButton")
- local Favs = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local close_2 = Instance.new("TextButton")
- local Open = Instance.new("TextButton")
- -- Properties
- MusicGui.Name = "Music Gui"
- MusicGui.Parent = game.Players.LocalPlayer.PlayerGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = MusicGui
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.BackgroundTransparency = 0.34999999403954
- MainFrame.BorderColor3 = Color3.new(0.403922, 0.403922, 0.403922)
- MainFrame.BorderSizePixel = 5
- MainFrame.Position = UDim2.new(0, 0, 0.349999994, 0)
- MainFrame.Size = UDim2.new(0.250000003, 0, 0.349999994, 0)
- SongName.Name = "SongName"
- SongName.Parent = MainFrame
- SongName.BackgroundColor3 = Color3.new(0, 0, 0)
- SongName.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
- SongName.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
- SongName.Font = Enum.Font.SourceSans
- SongName.FontSize = Enum.FontSize.Size14
- SongName.Text = "Song"
- SongName.TextColor3 = Color3.new(1, 1, 1)
- SongName.TextScaled = true
- SongName.TextWrapped = true
- SongName.TextXAlignment = Enum.TextXAlignment.Left
- SavedSongs.Name = "SavedSongs"
- SavedSongs.Parent = MainFrame
- SavedSongs.BackgroundColor3 = Color3.new(0, 0, 0)
- SavedSongs.Position = UDim2.new(0.100000001, 0, 0.400000006, 0)
- SavedSongs.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
- SavedSongs.Font = Enum.Font.SourceSans
- SavedSongs.FontSize = Enum.FontSize.Size14
- SavedSongs.Text = "Saved"
- SavedSongs.TextColor3 = Color3.new(1, 1, 1)
- SavedSongs.TextScaled = true
- SavedSongs.TextWrapped = true
- SavedSongs.TextXAlignment = Enum.TextXAlignment.Left
- OpenSaved.Name = "OpenSaved"
- OpenSaved.Parent = MainFrame
- OpenSaved.BackgroundColor3 = Color3.new(0, 0, 0)
- OpenSaved.Position = UDim2.new(0.800000012, 0, 0.400000006, 0)
- OpenSaved.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- OpenSaved.Font = Enum.Font.SourceSans
- OpenSaved.FontSize = Enum.FontSize.Size14
- OpenSaved.Text = ">"
- OpenSaved.TextColor3 = Color3.new(1, 1, 1)
- OpenSaved.TextScaled = true
- OpenSaved.TextWrapped = true
- Play.Name = "Play"
- Play.Parent = MainFrame
- Play.BackgroundColor3 = Color3.new(0, 0, 0)
- Play.Position = UDim2.new(0.819999993, 0, 0.25, 0)
- Play.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Play.Font = Enum.Font.SourceSans
- Play.FontSize = Enum.FontSize.Size14
- Play.Text = "Play"
- Play.TextColor3 = Color3.new(1, 1, 1)
- Play.TextScaled = true
- Play.TextWrapped = true
- Searchcat.Name = "Searchcat"
- Searchcat.Parent = MainFrame
- Searchcat.BackgroundColor3 = Color3.new(0, 0, 0)
- Searchcat.Position = UDim2.new(0.100000001, 0, 0.550000012, 0)
- Searchcat.Selectable = false
- Searchcat.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
- Searchcat.Font = Enum.Font.SourceSans
- Searchcat.FontSize = Enum.FontSize.Size14
- Searchcat.Text = "Search"
- Searchcat.TextColor3 = Color3.new(1, 1, 1)
- Searchcat.TextScaled = true
- Searchcat.TextWrapped = true
- Searchcat.TextXAlignment = Enum.TextXAlignment.Left
- ID.Name = "ID"
- ID.Parent = MainFrame
- ID.BackgroundColor3 = Color3.new(0, 0, 0)
- ID.Position = UDim2.new(0.100000001, 0, 0.25, 0)
- ID.Selectable = false
- ID.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
- ID.Font = Enum.Font.SourceSans
- ID.FontSize = Enum.FontSize.Size14
- ID.Text = "ID"
- ID.TextColor3 = Color3.new(1, 1, 1)
- ID.TextScaled = true
- ID.TextWrapped = true
- ID.TextXAlignment = Enum.TextXAlignment.Left
- Search.Name = "Search"
- Search.Parent = MainFrame
- Search.BackgroundColor3 = Color3.new(0, 0, 0)
- Search.Position = UDim2.new(0.819999993, 0, 0.550000012, 0)
- Search.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Search.Font = Enum.Font.SourceSans
- Search.FontSize = Enum.FontSize.Size14
- Search.Text = "Search"
- Search.TextColor3 = Color3.new(1, 1, 1)
- Search.TextScaled = true
- Search.TextWrapped = true
- Pause.Name = "Pause"
- Pause.Parent = MainFrame
- Pause.BackgroundColor3 = Color3.new(0, 0, 0)
- Pause.Position = UDim2.new(0.425000012, 0, 0.699999988, 0)
- Pause.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Pause.Font = Enum.Font.SourceSans
- Pause.FontSize = Enum.FontSize.Size14
- Pause.Text = "Pause"
- Pause.TextColor3 = Color3.new(1, 1, 1)
- Pause.TextScaled = true
- Pause.TextWrapped = true
- Resume.Name = "Resume"
- Resume.Parent = MainFrame
- Resume.BackgroundColor3 = Color3.new(0, 0, 0)
- Resume.Position = UDim2.new(0.550000012, 0, 0.699999988, 0)
- Resume.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- Resume.Font = Enum.Font.SourceSans
- Resume.FontSize = Enum.FontSize.Size14
- Resume.Text = "Play"
- Resume.TextColor3 = Color3.new(1, 1, 1)
- Resume.TextScaled = true
- Resume.TextWrapped = true
- Close.Name = "Close"
- Close.Parent = MainFrame
- Close.BackgroundColor3 = Color3.new(0, 0, 0)
- Close.Position = UDim2.new(0.949999988, 0, 0, 0)
- Close.Size = UDim2.new(0.0500000007, 0, 1, 0)
- Close.Font = Enum.Font.SourceSans
- Close.FontSize = Enum.FontSize.Size14
- Close.Text = "<"
- Close.TextColor3 = Color3.new(1, 1, 1)
- Close.TextWrapped = true
- CurrentVolume.Name = "CurrentVolume"
- CurrentVolume.Parent = MainFrame
- CurrentVolume.BackgroundColor3 = Color3.new(0, 0, 0)
- CurrentVolume.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
- CurrentVolume.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
- CurrentVolume.Font = Enum.Font.SourceSans
- CurrentVolume.FontSize = Enum.FontSize.Size14
- CurrentVolume.Text = "0"
- CurrentVolume.TextColor3 = Color3.new(1, 1, 1)
- VolUp.Name = "VolUp"
- VolUp.Parent = MainFrame
- VolUp.BackgroundColor3 = Color3.new(0, 0, 0)
- VolUp.Position = UDim2.new(0.800000012, 0, 0.699999988, 0)
- VolUp.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- VolUp.Font = Enum.Font.SourceSans
- VolUp.FontSize = Enum.FontSize.Size14
- VolUp.Text = "+"
- VolUp.TextColor3 = Color3.new(1, 1, 1)
- VolUp.TextScaled = true
- VolUp.TextWrapped = true
- VolDown.Name = "VolDown"
- VolDown.Parent = MainFrame
- VolDown.BackgroundColor3 = Color3.new(0, 0, 0)
- VolDown.Position = UDim2.new(0.675000012, 0, 0.699999988, 0)
- VolDown.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- VolDown.Font = Enum.Font.SourceSans
- VolDown.FontSize = Enum.FontSize.Size14
- VolDown.Text = "-"
- VolDown.TextColor3 = Color3.new(1, 1, 1)
- VolDown.TextScaled = true
- VolDown.TextWrapped = true
- Playlist.Name = "Playlist"
- Playlist.Parent = MainFrame
- Playlist.BackgroundColor3 = Color3.new(1, 1, 1)
- Playlist.BackgroundTransparency = 1
- Playlist.Position = UDim2.new(0.350000006, 0, 0.850000024, 0)
- Playlist.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- Playlist.Font = Enum.Font.SourceSans
- Playlist.FontSize = Enum.FontSize.Size14
- Playlist.Text = "Playlist"
- Playlist.TextColor3 = Color3.new(1, 1, 1)
- Playlist.TextScaled = true
- Playlist.TextWrapped = true
- check.Name = "check"
- check.Parent = MainFrame
- check.BackgroundColor3 = Color3.new(0, 0, 0)
- check.Position = UDim2.new(0.649999976, 0, 0.870000005, 0)
- check.Size = UDim2.new(0.0500000007, 0, 0.0700000003, 0)
- check.Font = Enum.Font.SourceSans
- check.FontSize = Enum.FontSize.Size14
- check.Text = ""
- check.TextColor3 = Color3.new(1, 1, 1)
- skip.Name = "skip"
- skip.Parent = MainFrame
- skip.BackgroundColor3 = Color3.new(0, 0, 0)
- skip.BorderColor3 = Color3.new(0, 0, 0)
- skip.Position = UDim2.new(0.310000002, 0, 0.699999988, 0)
- skip.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- skip.Font = Enum.Font.SourceSans
- skip.FontSize = Enum.FontSize.Size14
- skip.Text = ">>"
- skip.TextColor3 = Color3.new(1, 1, 1)
- skip.TextScaled = true
- skip.TextWrapped = true
- forward.Name = "forward"
- forward.Parent = MainFrame
- forward.BackgroundColor3 = Color3.new(0, 0, 0)
- forward.Position = UDim2.new(0.239999995, 0, 0.699999988, 0)
- forward.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- forward.Font = Enum.Font.SourceSans
- forward.FontSize = Enum.FontSize.Size14
- forward.Text = ">"
- forward.TextColor3 = Color3.new(1, 1, 1)
- forward.TextScaled = true
- forward.TextWrapped = true
- rewind.Name = "rewind"
- rewind.Parent = MainFrame
- rewind.BackgroundColor3 = Color3.new(0, 0, 0)
- rewind.Position = UDim2.new(0.170000002, 0, 0.699999988, 0)
- rewind.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- rewind.Font = Enum.Font.SourceSans
- rewind.FontSize = Enum.FontSize.Size14
- rewind.Text = "<"
- rewind.TextColor3 = Color3.new(1, 1, 1)
- rewind.TextScaled = true
- rewind.TextWrapped = true
- previous.Name = "previous"
- previous.Parent = MainFrame
- previous.BackgroundColor3 = Color3.new(0, 0, 0)
- previous.Position = UDim2.new(0.100000001, 0, 0.699999988, 0)
- previous.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- previous.Font = Enum.Font.SourceSans
- previous.FontSize = Enum.FontSize.Size14
- previous.Text = "<<"
- previous.TextColor3 = Color3.new(1, 1, 1)
- previous.TextScaled = true
- previous.TextWrapped = true
- stime.Name = "time"
- stime.Parent = MainFrame
- stime.BackgroundColor3 = Color3.new(1, 1, 1)
- stime.BackgroundTransparency = 1
- stime.Position = UDim2.new(0.100000001, 0, 0.850000024, 0)
- stime.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
- stime.Font = Enum.Font.SourceSans
- stime.FontSize = Enum.FontSize.Size14
- stime.Text = "--:--:--/--:--:--"
- stime.TextColor3 = Color3.new(1, 1, 1)
- Settings.Name = "Settings"
- Settings.Parent = MainFrame
- Settings.BackgroundColor3 = Color3.new(0, 0, 0)
- Settings.Position = UDim2.new(0.720000029, 0, 0.850000024, 0)
- Settings.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
- Settings.Font = Enum.Font.SourceSans
- Settings.FontSize = Enum.FontSize.Size14
- Settings.Text = "Settings"
- Settings.TextColor3 = Color3.new(1, 1, 1)
- Settings.TextScaled = true
- Settings.TextWrapped = true
- SavedList.Name = "SavedList"
- SavedList.Parent = MusicGui
- SavedList.BackgroundColor3 = Color3.new(0, 0, 0)
- SavedList.BackgroundTransparency = 0.25
- SavedList.Position = UDim2.new(0.2,0,-1.1,0)
- SavedList.Size = UDim2.new(0.200000003, 0, 1, 0)
- fav.Name = "fav"
- fav.Parent = SavedList
- fav.BackgroundColor3 = Color3.new(0, 0, 0)
- fav.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
- fav.Size = UDim2.new(1, 0, 0.0250000004, 0)
- fav.Font = Enum.Font.SourceSans
- fav.FontSize = Enum.FontSize.Size14
- fav.Text = "Favorites"
- fav.TextColor3 = Color3.new(1, 1, 1)
- fav.TextScaled = true
- fav.TextWrapped = true
- close.Name = "close"
- close.Parent = SavedList
- close.BackgroundColor3 = Color3.new(0, 0, 0)
- close.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
- close.Position = UDim2.new(0, 0, 0.975000024, 0)
- close.Size = UDim2.new(1, 0, 0.0250000004, 0)
- close.Font = Enum.Font.SourceSans
- close.FontSize = Enum.FontSize.Size14
- close.Text = "^"
- close.TextColor3 = Color3.new(1, 1, 1)
- close.TextScaled = true
- close.TextWrapped = true
- Favs.Name = "Favs"
- Favs.Parent = MusicGui
- Favs.BackgroundColor3 = Color3.new(0, 0, 0)
- Favs.BackgroundTransparency = 0.25
- Favs.Position = UDim2.new(0.4,0,-0.5,0)
- Favs.Size = UDim2.new(0.150000006, 0, 0.400000006, 0)
- Title.Name = "Title"
- Title.Parent = Favs
- Title.BackgroundColor3 = Color3.new(0, 0, 0)
- Title.BorderColor3 = Color3.new(0.407843, 0.407843, 0.407843)
- Title.Size = UDim2.new(1, 0, 0.0599999987, 0)
- Title.Font = Enum.Font.SourceSans
- Title.FontSize = Enum.FontSize.Size14
- Title.Text = "Favorites"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.TextWrapped = true
- close_2.Name = "close"
- close_2.Parent = Favs
- close_2.BackgroundColor3 = Color3.new(0, 0, 0)
- close_2.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
- close_2.Position = UDim2.new(0, 0, 0.939999998, 0)
- close_2.Size = UDim2.new(1, 0, 0.0599999987, 0)
- close_2.Font = Enum.Font.SourceSans
- close_2.FontSize = Enum.FontSize.Size14
- close_2.Text = "^"
- close_2.TextColor3 = Color3.new(1, 1, 1)
- close_2.TextScaled = true
- close_2.TextWrapped = true
- Open.Name = "Open"
- Open.Parent = MusicGui
- Open.BackgroundColor3 = Color3.new(0, 0, 0)
- Open.Position = UDim2.new(-0.5, 0, 0.349999994, 0)
- Open.Size = UDim2.new(0.00999999978, 0, 0.300000012, 0)
- Open.Font = Enum.Font.SourceSans
- Open.FontSize = Enum.FontSize.Size14
- Open.Text = ">"
- Open.TextColor3 = Color3.new(1, 1, 1)
- Open.TextWrapped = true
- wait()
- gui = game.Players.LocalPlayer.PlayerGui['Music Gui']
- favs = gui.Favs
- saved = gui.SavedList
- favopen = saved.fav
- main = gui.MainFrame
- mid = main.ID
- search = main.Search
- ops = main.OpenSaved
- play = main.Play
- resume = main.Resume
- pause = main.Pause
- name = main.SongName
- closegui = main.Close
- closesave = saved.close
- closefav = favs.close
- open = gui.Open
- vol = main.CurrentVolume
- vold = main.VolDown
- volu = main.VolUp
- check = main.check
- list = {}
- close = function()
- main:TweenPosition(UDim2.new(-0.4,0,0.35,0),"Out","Back",2,true)
- open:TweenPosition(UDim2.new(0,0,0.35,0),"Out","Back",1,true)
- if saved.Position ~= UDim2.new(0.2,0,-1.1,0) then do
- saved:TweenPosition(UDim2.new(0.2,0,-1.1,0),"Out","Back",2,true)
- end
- if favs.Position ~= UDim2.new(0.4,0,-0.5,0) then do
- favs:TweenPosition(UDim2.new(0.4,0,-0.5,0), "Out","Back",2,true)
- end
- end
- end
- end
- openmain = function()
- main:TweenPosition(UDim2.new(0,0,0.35,0),"Out","Back",1,true)
- open:TweenPosition(UDim2.new(-0.2,0,0.35,0),'Out',"Back",1,true)
- end
- closesaved = function()
- saved:TweenPosition(UDim2.new(0.2,0,-1.1,0),"Out","Back",2,true)
- if favs.Position ~= UDim2.new(0.4,0,-0.5,0) then do
- favs:TweenPosition(UDim2.new(0.4,0,-0.5,0),"Out","Back",2,true)
- end
- end
- end
- closefavs = function()
- favs:TweenPosition(UDim2.new(0.4,0,-0.5,0),"Out","Back",2,true)
- end
- opensaved = function()
- saved:TweenPosition(UDim2.new(0.2,0,0,0),"Out","Back",2,true)
- end
- favoriteopen = function()
- favs:TweenPosition(UDim2.new(0.4,0,0,0),"Out","Back",2,true)
- end
- open.MouseButton1Down:Connect(openmain)
- favopen.MouseButton1Down:connect(favoriteopen)
- ops.MouseButton1Down:Connect(opensaved)
- closefav.MouseButton1Down:Connect(closefavs)
- closegui.MouseButton1Down:connect(close)
- closesave.MouseButton1Down:connect(closesaved)
- local Soundbar=game.Players.LocalPlayer.Character.Soundbar
- local Sound=plr.Character.Torso.Sound
- local Bars={} for i,v in next,Soundbar:children() do
- if v:IsA'BasePart' then
- table.insert(Bars,v)
- end
- end Height=Height*2
- local nBars,Tweens=#Bars-1,{}
- -- EASING FUNCTIONS --
- local function quadIn(t,b,c,d) t=t/d; return c*t*t+b; end;
- local function quadOut(t,b,c,d) t=t/d; return -c*t*(t-2)+b; end;
- local function Quad(obj,val,ease,d)
- local t,f,con,nt,st,sd=tick()
- Tweens[obj]=t -- Set identifier
- st=obj.Scale.Y -- Start Value
- sd=val-st -- Change in Value
- f=ease=='In' and quadIn or quadOut -- Choose between Out/In
- con=game:GetService'RunService'.RenderStepped:connect(function() nt=tick()-t
- if Tweens[obj]~=t then -- Check for override
- con:disconnect()
- return
- end
- local nv=math.max(.2,f(math.min(d,nt),st,sd,d)) -- New Value
- obj.Scale=Vector3.new(.9,nv,.9)
- obj.Offset=Vector3.new(0,nv/4,0)
- obj.VertexColor=Vector3.new(cycle(tick()))
- if nt>d then -- Easing done?
- con:disconnect()
- if ease~='In' then
- Quad(obj,.2,'In',.3) -- Drop the bar
- end
- end
- end)
- end
- -- BAR MANIPULATION --
- local function CheckSet(N,S,D) -- Number, Scale, Direction
- local nS=Soundbar[tostring(N)].Mesh.Scale.Y
- if S>nS then
- Set(N,nS+(S-nS)/3,D)
- end
- end
- function Set(N,S,D) -- Number, Scale, Direction
- Quad(Soundbar[tostring(N)].Mesh,S,'Out',.1) -- Grabs the bar and tweens
- if N>0 and D~=1 then -- Checks left for smaller bars to manipulate
- CheckSet(N-1,S,-1)
- end
- if N<nBars and D~=-1 then -- Checks right...
- CheckSet(N+1,S,1)
- end
- end
- -- RENDER LOOP --
- local MPL,PL,curr=0 curr=Sound.SoundId
- spawn(function()
- game:service'RunService'.RenderStepped:connect(function()
- PL=Sound.PlaybackLoudness
- if Sound.IsPlaying and PL==PL then -- Sound is playing & PlaybackLoudness is not undefined
- if curr~=Sound.SoundId then MPL=0 -- Reset the relative Max PlaybackLoudness on song change
- curr=Sound.SoundId
- end
- MPL=math.max(PL,MPL) PL=PL/MPL -- Normalize PL based on relative Max PlaybackLoudness
- if PL==PL then
- Set(math.floor(PL*nBars),PL*Height*1) -- Modify bar relative to PlaybackLoudness
- end
- end
- end)
- end)
- local Locked
- idinput = function()
- local midcurrent = mid.Text
- Sound:Stop()
- Sound.SoundId='rbxassetid://'..midcurrent..''
- Sound:Play()
- end
- volup = function()
- Sound.Volume = Sound.Volume + 1
- end
- voldown = function()
- Sound.Volume = Sound.Volume - 1
- end
- updateinfo = function()
- vol.Text = ""..Sound.Volume..""
- stime.Text = ""..(math.floor(Sound.TimePosition)).."/"..(math.floor(Sound.TimeLength))..""
- end
- local function Chat(plr,msg)
- if msg:sub(1,6):lower()=='sound/' and (not Locked or plr.Name=='FangxWulf') then
- local id=tonumber(msg:match'%d+')
- if not id then return end
- Sound:Stop()
- Sound.SoundId='rbxassetid://'..msg:match'%d+'
- Sound:Play()
- elseif msg:lower()=='lock/' and plr.Name=='FangxWulf' then
- Locked=not Locked
- end
- end
- songs = 0
- newsong = function(name,id)
- songs = songs+1
- song = Instance.new('TextButton',saved)
- song.Name = ""..name..""
- song.BackgroundColor3 = Color3.new(0, 0, 0)
- song.Position = UDim2.new(0, 0, ((0.035 * songs)-0.035)+0.03, 0)
- song.Size = UDim2.new(1, 0, 0.0350, 0)
- song.Font = Enum.Font.SourceSans
- song.FontSize = Enum.FontSize.Size14
- song.Text = ""..name..""
- song.TextColor3 = Color3.new(1, 1, 1)
- ID = Instance.new("IntValue",song)
- ID.Name = "ID"
- ID.Value = ""..id..""
- list[""..songs..""] = ""..id..""
- end
- pauses = function()
- Sound:Pause()
- end
- plays = function()
- Sound:Resume()
- end
- local CRot = 1
- local rad,sin,ceil=math.rad,math.sin,math.ceil
- local p = game.Players.LocalPlayer
- p.Chatted:connect(function(m)
- Chat(p,m)
- end)
- Sound:Play()
- local Parts = {}
- for Index,v in pairs(o1:children'') do
- if v:IsA'Part' then
- table.insert(Parts,v)
- end
- end
- spawn(function()
- game:service'RunService'.RenderStepped:connect(function()
- for Index,v in pairs(o1:children'') do
- if v:IsA'Part' then
- v.CFrame = CFrame.new(plr.Character.Torso.Position)
- *CFrame.Angles(0,rad((360/#Parts*Index+(tick())*60/(#Parts ~= 0 and #Parts or 1))%360),0)
- *CFrame.new(0, -3, (5+#Parts)*.35+v.Size.X)
- *CFrame.Angles(0,90+CRot,0)
- end
- end
- end)
- end)
- ----playlist settings----
- pl = false
- pls = 1
- checkedp = function()
- if pl == false then
- pl = true
- check.Text = "X"
- else
- pl = false
- check.Text = ""
- end
- end
- plnext = function()
- print'pass'
- if pl == true then
- print'pass2'
- Sound.SoundId = "rbxassetid://"..list[''..pls..'']..""
- -- if pls < #list then
- pls = pls +1
- -- else
- -- pls = 1
- end
- end
- --end
- skips = function()
- if pl == true then
- Sound:Stop()
- pls = pls + 1
- Sound.SoundId = 'rbxassetid://'..list[''..pls..'']..''
- Sound:Play()
- end
- end
- previouss = function()
- if pl == true then
- Sound:Stop()
- pls = pls - 1
- Sound.SoundId = 'rbxassetid://'..list[''..pls..'']..''
- Sound:Play()
- end
- end
- ff = function()
- Sound.TimePosition = Sound.TimePosition + 10
- stime.Text = ""..(math.floor(Sound.TimePosition)).."/"..(math.floor(Sound.TimeLength))..""
- end
- rw = function()
- Sound.TimePosition = Sound.TimePosition - 10
- stime.Text = ""..(math.floor(Sound.TimePosition)).."/"..(math.floor(Sound.TimeLength))..""
- end
- ---------------------------------------------
- skip.MouseButton1Down:connect(skips)
- rewind.MouseButton1Down:connect(rw)
- forward.MouseButton1Down:connect(ff)
- Sound.DidLoop:connect(plnext)
- Sound.Changed:connect(updateinfo)
- volu.MouseButton1Down:connect(volup)
- vold.MouseButton1Down:connect(voldown)
- play.MouseButton1Down:connect(idinput)
- pause.MouseButton1Down:Connect(pauses)
- resume.MouseButton1Down:Connect(plays)
- check.MouseButton1Down:connect(checkedp)
- ------------------------Songs--------------------------------
- newsong("Life Goes On", 573853447)
- newsong("You'll Be Alright", 574538568)
- newsong("About You", 574539049)
- newsong("Starlights", 573894805)
- newsong("The Deeper Meaning", 574544171)
- newsong("The Pursuit", 573934790)
- newsong("About You", 574539049)
- newsong("Start Again", 574543658)
- newsong("All I Know", 573935454)
- newsong("God Mode", 539616479)
- -------------------------------------------------------------
- for i,v in pairs(saved:GetChildren()) do
- if v.Name ~= "close" and v.Name ~= "fav" then
- v.MouseButton1Down:Connect(function()
- mid.Text = v.ID.Value
- end)
- end
- end
- for i,v in pairs(list)do
- print(v)
- end
- --// SaviOS by SavageMunkey
- local Host = game:service'Players'.LocalPlayer
- local PlayerMouse = Host:GetMouse()
- local Character = Host.Character
- pcall(function()
- Character.Humanoid['SaviOS'..Host.Name].Disabled=true
- Character.Humanoid['SaviOS'..Host.Name]:Destroy()
- end)
- script.Name='SaviOS'..Host.Name
- local lrs = game:service'RunService'.RenderStepped
- local ud,c3 = UDim2.new,Color3.new
- local OS
- OS = {
- Backgrounds={263065080,122603145,510593355,167312453,119945204,38397690,167312682,192050536,152026398,167312652,120582545,167493039,274050234,454292754,466900315,177053058,229293848,122646263,159102803,321434238,120214481,120480107,129805827,251350099,134993390,294851220,91427420,159103087,161729354,451983167,111563465,224033486,159103552,490565976,419023708,159111488,254890271,72090809,148038665,201380429,235907960,118966085,184001465,158549839,135040161,569012987,124111954,617785055,127976057,157765107,172813012,261956734,229544221,381428334,141204418,130675970,114611763,569627808,165460147,165460277,123128917,65246335,113000488,210624979,86219936,542893768,485873381,133109970,147298379,147297851,133461415,248254225,542822127,536363798,167312652,542895503,89552732,65151650,101805028,103684980,385601310,57939071,304922993,13511519,473575489,256418140,136004272,46076174,497195310,28143702,158772801,557860938,483527125,125134380,129296064,436986440,331063936,162704842,108531974,156021502,546688542,192509200,193859832,78289792,339807971,156513166,305407040,363144648,60043055,621825797,621828236,179089950,501279669,403674379,275918945,247421728,126655771,478203228,25719408,50358414,7460070,415408253,91215756,85243064,135112694,161131570,684101235,467373053,65891746,24960278,318592132,424415675,17266396,64198567,230444445,156269405,179089950,248285466,202899851,156314932,151133945,514648696,};
- Properties = {'AllowClientInsertModels','BrickColor','Color','ShowDevelopmentGui','ResetPlayerGuiOnSpawn','Parent','CustomPhysicalProperties','WaterColor','WaterTransparency','WaterWaveSize','WaterWaveSpeed','AllowThirdPartySales','FilteringEnabled','StreamingEnabled','Gravity','FallenPartsDestroyHeight','Archivable','AbsolutePosition','AbsoluteSize','AccountAge','AccountAgeReplicate','Active','Adornee','AllowAmbientOcclusion','AllowTeamChangeOnTouch','AluminumQuality','AlwaysOnTop','Ambient','AmbientReverb','Anchored','Angularvelocity','AnimationId','Archivable','AreHingesDetected','AttachmentForward','AttachmentPoint','AttachmentPos','AttachmentRight','AttachmentUp','AutoAssignable','AutoButtonColor','AutoColorCharacters','AvailablePhysicalMemory','Axes','BackgroundColor','BackgroundColor3','BackgroundTransparency','BackSurface','BaseTextureId','BaseUrl','Bevel','Roundness','BinType','BlastPressure','BlastRadius','C0','C1','HeadColor','LeftArmColor','RightArmColor','LeftLegColor','RightLegColor','HumanoidRootPartColor','BodyColor','BodyPart','BorderColor','BorderColor3','BorderSizePixel','BottomSurface','BrickColor','Brightness','Browsable','BubbleChat','BubbleChatLifetime','BubbleChatMaxBubbles','Bulge','Button1DownConnectionCount','Button1UpConnectionCount','Button2DownConnectionCount','Button2UpConnectionCount','C0','C1','CameraMode','CameraSubject','CameraType','CanBeDropped','CanCollide','CartoonFactor','CastShadows','CelestialBodiesShown','CFrame','Cframe','Character','CharacterAppearance','CharacterAutoLoads','ChatScrollLength','ClassicChat','ClassName','ClearTextOnFocus','ClipsDescendants','CollisionSoundEnabled','CollisionSoundVolume','Color','ColorShift_Top','ColorShift_Bottom','Bottom','Top','ConstrainedValue','Contro'..'llingHumanoid','ControlMode','ConversationDistance','CoordinateFrame','CorrodedMetalQuality','CPU','CpuCount','CpuSpeed','CreatorId','CreatorType','CurrentAngle','CurrentCamera','CycleOffset','D','DataCap','DataComplexity','DataComplexityLimit','DataCost','DataReady','Deprecated','DeselectedConnectionCount','DesiredAngle','DiamondPlateQuality','Disabled','DistanceFactor','DistributedGameTime','DopplerScale','Draggable','DraggingV1','Duration','EditorFont','EditorFontSize','EditorTabWidth','ElapsedTime','Elasticity','Enabled','ExplosionType','ExtentsOffset','F0','F1','F2','F3','Face','FaceId','Faces','FieldOfView','Focus','FogColor','FogEnd','FogStart','Font','FontSize','Force','FormFactor','Friction','From','FrontSurface','GearGenreSetting','Genre','GeographicLatitude','GfxCard', 'GlobalShadows','Graphic','GrassQuality','Grip','GripForward','GripPos','GripRight','GripUp','Guest','HeadsUpDisplay','Health','Heat','Hit','Humanoid','IceQuality','Icon','IdleConnectionCount','Image','InitialPrompt','InOut','InUse','IsPaused','IsPlaying','JobId','Jump','KeyDownConnectionCount','KeyUpConnectionCount','LeftLeg','LeftRight','LeftSurface','LinkedSource','LocalPlayer','Location','Locked','LODX','LODY','Looped','Material','MaxActivationDistance','MaxCollisionSounds','MaxExtents','MaxForce','MaxHealth','MaxItems','MaxPlayers','MaxSpeed','MaxThrust','MaxTorque','MaxValue','MaxVelocity','MembershipType','MembershipTypeReplicate','MeshId','MeshType','MinValue','Modal','MouseButton1ClickConnectionCount','MouseButton1DownConnectionCount','MouseButton1UpConnectionCount','MouseButton2ClickConnectionCount','MouseButton2DownConnectionCount','MouseButton2UpConnectionCount','MouseDelta','MouseDragConnectionCount','MouseEnterConnectionCount','MouseHit','MouseLeaveConnectionCount','MouseLock','MouseMovedConnectionCount','MouseTarget','MouseTargetFilter','MouseTargetSurface','MoveConnectionCount','MoveState','MultiLine','Name','NameOcclusion','NetworkOw'..'ner','Neutral','NumPlayers','Offset','Opacity','Origin','OsPlatform','OsVer','OutdoorAmbient','OverlayTextureId','P','PantsTemplate','ParamA','ParamB','Parent','PrimaryPart','Part','Part0','Part1','Pitch','PixelShaderModel','PlaceId','PlasticQuality','PlatformStand','PlayCount','PlayerToHideFrom','PlayOnRemove','Point','Port','Position','Preliminary','PrimaryPart','PrivateWorkingSetBytes','Purpose','RAM','Reflectance','ReplicatedSelectedConnectionCount','ResizeableFaces','ResizeIncrement','Resolution','ResponseDialog','RightLeg','RightSurface','RiseVelocity','RobloxLocked','RobloxVersion','RolloffScale','RotVelocity','Scale','Score','ScriptsDisabled','SecondaryColor','Selected','ShadowColor','Shape','Shiny','ShirtTemplate','ShowDeprecatedObjects','ShowDevelopmentGui','ShowPreliminaryObjects','Sides','Sit','Size','SizeConstraint','SizeOffset','SkinColor','SkyboxBk','SkyboxDn','SkyboxFt','SkyboxLf','SkyboxRt','SkyboxUp','SlateQuality','SoundId','Source','SparkleColor','Specular','StarCount','Steer','StickyWheels','StudsBetweenTextures','StudsOffset','StudsPerTileU','StudsPerTileV','Style','Summary','SuperSa'..'feChatReplicate','Surface','Surface0','Surface1','SurfaceInput','Target','TargetFilter','TargetOffset','TargetPoint','TargetRadius','TargetSurface','TeamColor','Terrain','Text','TextBounds','TextColor','TextColor3','TextFits','TextScaled','TextStrokeColor3','TextStrokeTransparency','TextTransparency','Texture','TextureId','TextureSize','TextWrap','TextWrapped','TextXAlignment','TextYAlignment','Throttle','ThrustD','ThrustP','Ticket','Time','TimeOfDay','To','Tone','ToolTip','TopBottom','TopSurface','Torque','HumanoidRootPart','Transparency','TrussDetail','TurnD','TurnP','TurnSpeed','UnitRay','UserDialog','UserId','Value','Version','VertexColor','VideoCaptureEnabled','VideoMemory','VideoQuality','ViewSizeX','ViewSizeY','Visible','Volume','WalkDirection','WalkSpeed','WalkToPart','WalkToPoint','WheelBackwardConnectionCount','WheelForwardConnectionCount','WindowSize','WireRadius','WoodQuality','X','Y','Z'};
- DecalAssets={200182847};
- --//49,51,51,55,115,97,118
- Sounds = {
- 319758951,485859421,191035676,142312040,165065112,166471137,208240682,226788368,193399717,
- 274427825,155949200,209864226,211626338,232560219,172427188,180115728,170968526,
- 148492408,177956804,132399469,218530627,234627720,182411115,188712851,176454530,
- 685204898,736225554,267915404,180795185,263998927,181428192,266427268,215974232,
- 177297354,248794208,262158959,282890395,252612142,252614631,252613867,203275374,
- 244763119,169898604,173060483,181065299,294185225,657230380,574818336,
- };
- RecentlyUsedPrograms={};
- UIs={};
- Logins={
- {'SavageMunkey','abcd12',Color3.new(.1,.1,.1),Color3.new(1,1,1),497195310};--167312453};
- {'Artiecsal','sookithearth',c3(0,0,0),c3(1,1,1),122646263},
- {'Luke_Ames','xXfatphonesXx',c3(.5,0,0),c3(1,1,1),621828236},
- {'Lord_Azure','AzureIsGay',c3(.3,0,0),c3(1,1,1),215152878},
- };
- Administrators={
- 'SavageMunkey',
- 'Aeodile',
- };
- Effects={};
- Functions={};
- Assets={};
- Apps={
- Qeued={};
- Generated={};
- Open={};
- };
- Settings={
- Fonts = {
- Header = 'Code',
- Sub_Header = 'Highway',
- };
- };
- };
- Functions = OS.Functions
- Effects = OS.Effects
- OS.GenCode = math.random()*9e5
- local CurrentPlayerData=nil
- local Official=true
- function Functions:ConvertColor3(r,g,b)
- return c3(1-(1/r),1-(10/g),1-(10/b)) --//derped
- end
- function Functions:ReturnObjectProperties(Object)
- assert(pcall(function()
- assert(game.IsA(Object,'Instance'))
- end),'Should be ROBLOX instance')
- local Returns = {}
- for _, Value in next, OS.Properties do
- if pcall(function() return Object[Value] end) and (type(Object[Value]) ~= 'userdata' or not Object:FindFirstChild(Value)) then
- Returns[Value] = Object[Value]
- end
- end
- return Returns
- end;
- --print(Functions:ConvertColor3(170, 0, 255))
- function Functions:GrabHostData()
- local PlayerData=nil
- local Found=0
- for Index, Data in next, OS.Logins do
- if Data[1] == tostring(Host) then
- PlayerData=Data
- Found=Found+1
- end
- end
- if PlayerData then
- CurrentPlayerData=PlayerData
- else
- Official=false
- CurrentPlayerData={Host.Name,Host.Name:lower():sub(0,5)..'12'..math.random(-50,50),c3(.25,.25,.25),c3(1,1,1),OS.Backgrounds[math.random(1,#OS.Backgrounds)]};
- script:Destroy()
- end
- if Found > 1 then
- error('Found more than one('..Found..') data tables for '..Host.Name,2)
- end
- end
- Functions:GrabHostData()
- table.foreach(CurrentPlayerData,print)
- function Functions:GetPlayerImg(User)
- local ID = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username='..tostring(User)
- return ID
- end
- ypcall(function()
- --workspace['mon-mon']:Destroy()
- end)
- local Monitor, G, MainFrame
- function Functions:MakeMonitor()
- pcall(function() workspace['mon-mon'..Host.Name]:Destroy() end)
- local sc=Instance.new('Script', workspace)
- sc.Name='mon-mon'..Host.Name
- OS.Assets.FScript=sc
- Monitor = Instance.new('Part', sc)
- Monitor.Size = Vector3.new(24,14,.1)
- Monitor.Anchored = true
- Monitor.Locked=true
- Monitor.Transparency=0
- Monitor.Color=Color3.new(1,1,1)
- Monitor.Material='Neon'
- Monitor.Name='mon-mon'
- Instance.new('SurfaceLight',Monitor).Face='Back'
- Monitor.CanCollide = false
- Monitor.TopSurface,Monitor.BottomSurface=0,0
- local Flat = Instance.new('BlockMesh', Monitor)
- Flat.Scale = Vector3.new(1,1,0)
- spawn(function()
- for i = 0,1.025,.025 do
- --Monitor.Transparency = 1.3-i
- lrs:wait()
- end
- end)
- end
- function Functions:MakeNewUi(Type)
- local Ui = Instance.new(Type)
- local function TypeIsA(Table, Goal)
- for i,v in next, Table do
- if v:lower()==Type:lower() then
- Goal(Ui)
- end
- end
- end
- Ui.ClipsDescendants = true
- Ui.Size = ud(1,0,1,0)
- Ui.BackgroundTransparency = 1
- TypeIsA({'TextButton'}, function(tUi)
- Ui.AutoButtonColor = false
- end)
- Ui.BackgroundColor3 = CurrentPlayerData[3]
- Ui.BorderSizePixel = 0
- TypeIsA({'ImageLabel','ImageButton'}, function(tUi)
- end)
- TypeIsA({'TextButton','TextLabel','TextBox'}, function(tUi)
- tUi.TextColor3 = CurrentPlayerData[4]
- tUi.Font = OS.Settings.Fonts.Header
- tUi.Text=''
- tUi.FontSize = Enum.FontSize.Size18
- end)
- delay(.1,function()
- OS.UIs[Ui.Name]={Ui,true}
- local oUi=Ui
- spawn(function()
- repeat lrs:wait() until Ui.Parent == nil
- OS.UIs[oUi.Name]={nil,false}
- end)
- end)
- Ui.ZIndex=7
- return Ui
- end
- function Functions:Center(Ui)
- local co={Ui.Size.X.Offset/2,
- Ui.Size.Y.Offset/2};
- return ud(.5,-co[1],.5,-co[2])
- end
- function Functions:CenterOffset(Ui, Offset)
- local co={Ui.Size.X.Scale,
- Ui.Size.X.Offset/2,
- Ui.Size.Y.Scale,
- Ui.Size.Y.Offset/2
- };
- return ud(.5+Offset.X.Scale,-co[2]+Offset.X.Offset,.5+Offset.Y.Scale,-co[4]+Offset.Y.Offset)
- end
- local TypeDebs={};
- function Effects:Type(Ui, Text, Type, Delay)
- TypeDebs[Ui]=false
- if Type == 'In' then
- local Continue = true
- for i = 0,#Text do
- if TypeDebs[Ui] then
- Continue = false
- return
- end
- if not Continue then
- return
- end
- Ui.Text = Text:sub(0,i)..'|'
- wait(Delay)
- end
- Ui.Text = Text
- elseif Type == 'Out' then
- local Continue = true
- for i = 0,#Text do
- if TypeDebs[Ui] then
- Continue = false
- return
- end
- if not Continue then
- return
- end
- Ui.Text = Text:sub(0,1-i)..'|'
- wait(Delay)
- end
- Ui.Text = Text
- else
- error'Please enter a TransitionType (Out, In)'
- end
- end
- function Functions:Sound(Id ,Rmv)
- local snd=Instance.new('Sound', Character:WaitForChild'Head' or Monitor or workspace)
- if Rmv then
- for index,o in next, snd.Parent:children() do
- if o:IsA'Sound' and o ~= snd then
- o:Stop()
- o:Destroy()
- end
- end
- end
- snd.EmitterSize=20
- snd.SoundId=Functions:Asset(Id)
- snd.Volume=.6
- delay(8,function()
- if not snd.Looped and snd.IsPlaying==false then
- snd:Stop()
- snd:Destroy()
- end
- end)
- return snd
- end
- function Effects:Underline(Ui, YOffset, XThickness, YThickness, Color, Fade)
- local Label = Functions:MakeNewUi('TextLabel')
- Label.BackgroundColor3 = Color
- Label.BackgroundTransparency=.2
- Label.Size = ud(0,0,0,YThickness)
- Label.Position = Functions:CenterOffset(Label, ud(0,0,0,YOffset))
- Label.Parent = Ui
- Label.ZIndex = 9
- if Fade then
- Label.BackgroundTransparency = 1
- delay(.5,function()
- Label:TweenSizeAndPosition(ud(0,XThickness,0,YThickness),Functions:CenterOffset(Label,ud(0,-XThickness/2,0,YOffset)),'Out','Back',1,true)
- end)
- for i = 0,1.025,.025 do
- Label.BackgroundTransparency = (1.2 - i)
- lrs:wait()
- end
- else
- Label.Size = ud(0,XThickness,0,YThickness)
- Label.Position = Functions:CenterOffset(Label, ud(0,0,0,YOffset))
- end
- return Label
- end
- function Functions:Asset(Id)
- return 'rbxassetid://'..Id
- end
- function Functions:PlayerImage(User)
- return 'http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username='..tostring(User)
- end
- function Functions:LoginScreenGui(Size,ltbl,Fade)
- if Host.PlayerGui:FindFirstChild'nomnompw' then
- end
- local limit=16
- local SGui = Instance.new('ScreenGui', Host.PlayerGui)
- SGui.Name='nomnompw'
- local Box = Functions:MakeNewUi('TextBox')
- Box.ClearTextOnFocus=true
- Box.TextColor3 = CurrentPlayerData[3]
- Box.TextStrokeTransparency=.9
- Box.Size=Size
- Box.Text = 'Enter your Password'
- Box.Position=Functions:Center(Box)
- Box.BackgroundTransparency=1
- Box.TextStrokeColor3=CurrentPlayerData[3]
- Box.Parent=SGui
- Box.BackgroundColor3 = CurrentPlayerData[4]
- local enabled=true
- if Fade then
- Box.Position = Functions:CenterOffset(Box,ud(0,0,-.4,0))
- for i = 0,1,.05 do
- Box.BackgroundTransparency=1-i
- lrs:wait()
- end
- Box:CaptureFocus()
- end
- local ev
- ev=Box.Focused:connect(function()
- --ev:disconnect()
- Box.ClearTextOnFocus=false
- end)
- local ev2
- local lt=''
- ev2=Box.FocusLost:connect(function()
- if #Box.Text < 1 or Box.Text == 'Enter your Password' then
- Box.Text='Enter your Password'
- Box.ClearTextOnFocus=true
- end
- if Box.Text==CurrentPlayerData[2] then
- ev:disconnect()
- ev2:disconnect()
- Box.Active=false
- Box:TweenPosition(Functions:CenterOffset(Box,ud(0,0,-.55,0)),'Out','Linear',.5,true)
- Box.TextStrokeTransparency=1
- for i = 0,1,.05 do
- Box.BackgroundTransparency=i
- Box.TextTransparency=i
- lrs:wait()
- end
- lt=Box.Text
- SGui:Destroy()
- end
- end)
- Box.BackgroundTransparency=0
- if ltbl.loop then
- while SGui.Parent and enabled do
- lt=Box.Text
- if #Box.Text>limit and Box.Text ~= 'Enter your Password' then
- Box:ReleaseFocus()
- Box.Active=false
- local bft=Box.Text
- Box.Text='Password '..limit..' character limit.'
- wait(2)
- Box.Text=bft:sub(0,limit)
- Box.Active=true
- Box:CaptureFocus()
- end
- if #Box.Text>1 and Box.Text ~= 'Enter your Password' then
- local nt=''
- ltbl.ui.Text=nt
- for i = 1,#Box.Text do
- nt=nt..'*'
- end
- ltbl.ui.Text=nt
- elseif #Box.Text==0 then
- if Box.Text ~= 'Enter your Password' then
- Box.Text='Enter your Password'
- ltbl.ui.Text='Enter your Password'
- Box:ReleaseFocus()
- Box.ClearTextOnFocus=true
- end
- end
- lrs:wait()
- end
- end
- return lt
- end
- function Functions:IfRegistered(Player, Function)
- local Bool = false
- for Index, Data in next, OS.Logins do
- local user=Data[1]
- local pass=Data[2]
- if user == tostring(Player) then
- Bool = true
- end
- end
- Function(Bool)
- end
- function Functions:CreateProgram(Name, Id, Nick, Description, Click)
- table.insert(OS.Apps.Qeued,{tostring(Name), tonumber(Id), tostring(NickName), tostring(Description), Click})
- end;
- local Search
- function Functions:Search(Parent, Function)
- for Index, Object in next, Parent:children() do
- pcall(function()
- Function(Object)
- end)
- Functions:Search(Object, Function)
- end
- end
- function Functions:ShowChar()
- OS.Functions:Search(Character, function(Object)
- if (Object:IsA'BasePart' or Object:IsA'Decal') and Object.Name ~='HumanoidRootPart' then
- Object.Transparency = 0
- end
- end)
- end
- function Functions:HideChar()
- OS.Functions:Search(Character, function(Object)
- if (Object:IsA'BasePart' or Object:IsA'Decal') and Object.Name ~='HumanoidRootPart' then
- Object.Transparency = 1
- end
- end)
- end
- local Notes={};
- Functions:CreateProgram('Notepad++', 43360681, 'N++', 'Notepad for your... "personal" needs?', function(HF,TF,CF)
- local tb = Functions:MakeNewUi('TextButton')
- tb.Parent=CF
- tb.TextWrapped=true
- table.insert(Notes,tb)
- tb.Text = 'Notepad; '..#Notes
- tb.TextColor3=CurrentPlayerData[3]
- tb.BackgroundColor3=CurrentPlayerData[4]
- tb.Font=OS.Settings.Fonts.Sub_Header
- tb.TextStrokeTransparency=.9
- tb.TextStrokeColor3=CurrentPlayerData[3]
- tb.TextXAlignment='Left'
- tb.TextYAlignment='Top'
- local SGui
- tb.MouseButton1Click:connect(function()
- pcall(function()
- SGui:Destroy()
- end)
- if Host.PlayerGui:FindFirstChild'nomnoemnp' then Host.PlayerGui:FindFirstChild'nomnoemnp':Destroy() end
- SGui = Instance.new('ScreenGui', Host.PlayerGui)
- SGui.Name='nomnoemnp'
- local Box = Functions:MakeNewUi('TextBox')
- Box.ClearTextOnFocus=false
- Box.TextColor3 = CurrentPlayerData[3]
- Box.TextStrokeTransparency=.9
- Box.Size=ud(1,0,1,0)
- Box.Position=ud(-1,0,0,0)
- Box.Text = tb.Text
- Box.Visible = false
- Box.TextXAlignment='Left'
- --Box.MultiLine=true
- Box.TextYAlignment='Top'
- Box.BackgroundTransparency=1
- Box.TextStrokeColor3=CurrentPlayerData[3]
- Box.Parent=SGui
- Box.BackgroundColor3 = CurrentPlayerData[4]
- Box:CaptureFocus()
- Box.FocusLost:connect(function()
- SGui:Destroy()
- end)
- local isub = '|'
- local l=false
- spawn(function()
- if tb.Text:sub(#tb.Text,#tb.Text)=='|' then
- tb.Text=tb.Text:sub(1,#tb.Text-1)
- end
- local canc = false
- spawn(function()
- while not canc do
- wait(.6)
- l=not l
- if l == true then
- isub='|'
- else
- isub=''
- end
- end
- end)
- repeat
- tb.Text=Box.Text..isub
- lrs:wait()
- until SGui.Parent ~= Host.PlayerGui
- if l then
- tb.Text=tb.Text:sub(1,#tb.Text-1)
- end
- --print'canc'
- canc=true
- SGui=nil
- end)
- end)
- end)
- --script.Parent=Host.PlayerGui
- Functions:CreateProgram('Calculator', 45545182, 'Calc', 'Math stuff man', function(HF,TF,CF)
- HF.Size = UDim2.new(0,150,0,300)
- end)
- local osEVENT = game:service'SoundService':FindFirstChild'osEVENT'
- if osEVENT==nil then
- osEVENT = Instance.new('RemoteEvent',game:service'SoundService')
- osEVENT.Name='osEVENT'
- end
- if game.PlaceId == 691043264 then
- Functions:CreateProgram('Lua', 71157241, 'LUA', 'Execute stuff...', function(HF,TF,CF)
- local tb = Functions:MakeNewUi('TextButton')
- tb.Parent=CF
- tb.TextWrapped=true
- tb.Text = ''
- tb.TextColor3=CurrentPlayerData[3]
- tb.BackgroundColor3=CurrentPlayerData[4]
- tb.Font=OS.Settings.Fonts.Sub_Header
- tb.Size=ud(.6,0,.9,0)
- tb.TextXAlignment='Left'
- tb.TextYAlignment='Top'
- local run = Functions:MakeNewUi('TextButton')
- run.Parent=CF
- run.Text = 'Run Script'
- run.BackgroundTransparency=0
- run.TextColor3=CurrentPlayerData[4]
- run.BackgroundColor3=CurrentPlayerData[3]
- run.Font=OS.Settings.Fonts.Header
- run.Position=ud(0,0,.95,0)
- run.TextSize=11
- run.Size=ud(.6,0,.05,0)
- local cleartb = Functions:MakeNewUi('TextButton')
- cleartb.Parent=CF
- cleartb.Text = 'Clear Text'
- cleartb.BackgroundTransparency=0
- cleartb.TextColor3=CurrentPlayerData[4]
- cleartb.BackgroundColor3=CurrentPlayerData[3]
- cleartb.Font=OS.Settings.Fonts.Header
- cleartb.Position=ud(0,0,.9,0)
- cleartb.TextSize=11
- cleartb.Size=ud(.6,0,.05,0)
- local ipos = 0
- local timefromlast=0
- local longestx=0
- local clear = Functions:MakeNewUi('TextButton')
- clear.Parent=CF
- clear.Text = 'Clear Output'
- clear.BackgroundTransparency=0
- clear.TextColor3=CurrentPlayerData[4]
- clear.BackgroundColor3=CurrentPlayerData[3]
- clear.Font=OS.Settings.Fonts.Header
- clear.Position=ud(.6,0,.95,0)
- clear.TextSize=11
- clear.Size=ud(.4,0,.05,0)
- local output = Functions:MakeNewUi('ScrollingFrame')
- output.Parent=CF
- output.BackgroundColor3=CurrentPlayerData[3]
- output.Position=ud(.6,0,0,0)
- output.BackgroundTransparency=0
- output.Size=ud(.4,0,.95,0)
- function op(argz)
- local txt,code,clr = argz[1],argz[2],argz[3]
- clr=clr or Color3.new(1,1,1)
- txt=' > '..txt or 'NO_TEXT'
- --print(txt,code,clr)
- local is = (tostring(code)==tostring(OS.GenCode))
- if is then
- timefromlast=0
- local lbl = Functions:MakeNewUi('TextLabel')
- lbl.Parent=output
- lbl.Position=ud(0,0,0,ipos)
- lbl.TextSize=10
- if #txt > longestx then
- longextx=#txt
- end
- --txt=txt:gsub('\n','')
- lbl.TextColor3 = clr
- lbl.TextWrapped=true
- local count=0
- local notting=true
- lbl.TextXAlignment='Left'
- lbl.Text = txt
- lbl.BackgroundTransparency=1
- lbl.Size=ud(33,0,0,lbl.TextBounds.Y+5)
- ipos=ipos+lbl.TextBounds.Y+2
- spawn(function()
- while notting do
- lrs:wait()
- count=count+1
- local asx=output.AbsoluteSize.X
- local tbx=lbl.TextBounds.X
- --print(tbx,asx)
- if tbx > asx then
- lbl.Text=lbl.Text:sub(1+(asx*(count-1)),asx*count)..'\n'..lbl.Text:sub((asx*count)+1)
- else
- notting=false
- end
- end
- end)
- lbl.Size=ud(1,0,0,lbl.TextBounds.Y+5)
- end
- end
- op({'Hello world!', OS.GenCode, Color3.new(1,1,1)})
- clear.MouseButton1Click:connect(function()
- output:ClearAllChildren()
- ipos=0
- longestx=0
- timefromlast=0
- op({'Cleared output', OS.GenCode, BrickColor.new'Dark green'.Color})
- end)
- cleartb.MouseButton1Click:connect(function()
- tb.Text=''
- pcall(function()
- SGui.Text=''
- end)
- end)
- local oev = osEVENT.OnClientEvent:connect(function(Argz)
- op(Argz)
- end)
- spawn(function()
- local ii=0
- repeat lrs:wait()
- timefromlast=timefromlast+.05
- ii=Functions:IntegerLerp(ii,ipos,.15)
- if timefromlast < 5 then
- output.CanvasSize=ud(0,longestx,0,ii)
- output.CanvasPosition=Vector2.new(0,ii)
- end
- until run.Parent ~= CF
- oev:disconnect()
- --print'dis'
- end)
- run.MouseButton1Click:connect(function()
- local lscode = [[
- local owner = game:service'Players':WaitForChild(']]..Host.Name..[[')
- local event = game:service'SoundService':WaitForChild'osEVENT'
- local code = ]]..OS.GenCode..[[
- function print(...)
- local Data, Return = {...}, ""
- for Index,Value in pairs(Data) do
- Return = Return .. tostring(Value) .. (Index < #Data and ", " or "")
- end
- event:FireClient(owner,{Return,code,Color3.new(1,1,1)})
- end
- function warn(...)
- local Data, Return = {...}, ""
- for Index,Value in pairs(Data) do
- Return = Return .. tostring(Value) .. (Index < #Data and ", " or "")
- end
- event:FireClient(owner,{Return,code,Color3.new(1,.5,0)})
- end
- function ferror(...)
- local Data, Return = {...}, ""
- for Index,Value in pairs(Data) do
- Return = Return .. tostring(Value) .. (Index < #Data and ", " or "")
- end
- event:FireClient(owner,{Return,code,Color3.new(.8,0,0)})
- end
- delay(20,function()
- event:FireClient(owner,{'Auto removed script - delay ; 20',code,BrickColor.new'Dark green'.Color})
- script:Destroy()
- end)
- local script = workspace:WaitForChild(']]..tostring(OS.Assets.FScript.Name)..[[')
- ]]
- local formattedcode = [[
- pcall(function()
- local Success, Error = pcall(function()
- ]]..tb.Text..[[
- end)
- if not Success then
- local err = Error
- err=err:gsub('ScriptBuilderScript','OS.sb')
- err=err:gsub('544','1')
- ferror(err)
- local stacks = debug.traceback()
- stacks=stacks:gsub('ScriptBuilderScript','OS.sb')
- event:FireClient(owner,{stacks,code,BrickColor.new'Bright blue'.Color})
- else
- event:FireClient(owner,{'Ran script',code,BrickColor.new'Bright blue'.Color})
- end
- end)
- ]]
- NS(lscode..'\n\n'..formattedcode, workspace)
- end)
- local SGui
- tb.MouseButton1Click:connect(function()
- pcall(function()
- SGui:Destroy()
- end)
- if Host.PlayerGui:FindFirstChild'nomnoemnp' then Host.PlayerGui:FindFirstChild'nomnoemnp':Destroy() end
- SGui = Instance.new('ScreenGui', Host.PlayerGui)
- SGui.Name='nomnoemnp'
- local Box = Functions:MakeNewUi('TextBox')
- Box.ClearTextOnFocus=false
- Box.TextColor3 = CurrentPlayerData[3]
- Box.TextStrokeTransparency=.9
- Box.Size=ud(1,0,1,0)
- Box.Position=ud(-1,0,0,0)
- Box.Text = tb.Text
- Box.Visible = false
- Box.TextXAlignment='Left'
- --Box.MultiLine=true
- Box.TextYAlignment='Top'
- Box.BackgroundTransparency=1
- Box.TextStrokeColor3=CurrentPlayerData[3]
- Box.Parent=SGui
- Box.BackgroundColor3 = CurrentPlayerData[4]
- Box:CaptureFocus()
- Box.FocusLost:connect(function()
- SGui:Destroy()
- end)
- local isub = '|'
- local l=false
- spawn(function()
- if tb.Text:sub(#tb.Text,#tb.Text)=='|' then
- tb.Text=tb.Text:sub(1,#tb.Text-1)
- end
- local canc = false
- spawn(function()
- while not canc do
- wait(.6)
- l=not l
- if l == true then
- isub='|'
- else
- isub=''
- end
- end
- end)
- repeat
- tb.Text=Box.Text..isub
- lrs:wait()
- until SGui.Parent ~= Host.PlayerGui
- if l then
- tb.Text=tb.Text:sub(1,#tb.Text-1)
- end
- canc=true
- SGui=nil
- end)
- end)
- end)
- end
- Functions:CreateProgram('Settings',485882401,'Sett','Also self explanitory...',function(HF,TF,CF)
- end)
- spawn(function()
- local nw={};
- for i,v in next, OS.Backgrounds do
- delay(math.random()*5,function()
- nw[#nw+1]=v
- end)
- end
- repeat wait() until #nw==#OS.Backgrounds
- wait(.5)
- OS.Backgrounds=nw
- Functions:Notification('Formatted OS.Backgrounds', 4)
- end)
- spawn(function()
- local nw={};
- for i,v in next, OS.Sounds do
- delay(math.random()*5,function()
- nw[#nw+1]=v
- end)
- end
- repeat wait() until #nw==#OS.Sounds
- wait(.5)
- OS.Sounds=nw
- Functions:Notification('Formatted OS.Sounds', 4)
- end)
- Functions:CreateProgram('Gallery', 152445445, 'Images', 'View your favorite, saved, and default images', function(HF,TF,CF)
- local title = Functions:MakeNewUi('TextLabel')
- title.TextColor3 = CurrentPlayerData[3]
- title.TextStrokeTransparency=1
- title.Size=ud(1,0,.1,0)
- title.Text = 'Gallery - '..#OS.Backgrounds..' assets total'
- title.TextXAlignment='Center'
- title.TextYAlignment='Center'
- title.Font = OS.Settings.Fonts.Header
- title.BackgroundTransparency=1
- title.Parent=CF
- title.BackgroundColor3 = CurrentPlayerData[4]
- spawn(function()
- wait(1)
- Effects:Underline(title, 15, 300, 2, CurrentPlayerData[3], true)
- end)
- local scroll = Functions:MakeNewUi('ScrollingFrame')
- scroll.Size=ud(1,0,.9,0)
- scroll.Position = ud(0,0,.1,0)
- scroll.BackgroundTransparency=0
- scroll.TopImage=Functions:Asset(317839361)
- scroll.MidImage=Functions:Asset(317839361)
- scroll.BottomImage=Functions:Asset(317839361)
- scroll.ScrollBarThickness = 5
- scroll.Parent=CF
- scroll.BackgroundColor3 = CurrentPlayerData[4]
- local Loaded = 0
- local o,d = 0,0
- local curbg = nil
- local bgs={};
- for i, Id in next, OS.Backgrounds do
- --local Market = game:service'MarketplaceService'
- --local Asset = Market:GetProductInfo(Id)
- local Img = Functions:MakeNewUi('ImageButton')
- Img.Image = Functions:Asset(Id)
- local scl = 2
- local add = .005
- local sx,sy=(.089*scl),(.05*scl)
- Img.Size=ud(sx,0,0,34*2)
- Img.Position = ud(((sx+add)*o)+.05,0,0,((36*2)*d))
- o=o+1
- game:service'RunService'.RenderStepped:wait()
- if sx*(o+1) >= 1 then
- d=d+1
- o=0
- scroll.CanvasSize=ud(0,0,0,((36*2)*d))
- end
- Img.BackgroundColor3 = scroll.BackgroundColor3
- Img.BorderColor3 = CurrentPlayerData[3]
- Img.ImageTransparency=1
- Img.MouseButton1Down:connect(function()
- curbg = Img
- OS.Assets.Background.Image=Functions:Asset(Id)
- end)
- Img.Parent=scroll
- spawn(function()
- for i = 0,1.05,.05 do
- Img.ImageTransparency=1-i
- game:service'RunService'.RenderStepped:wait()
- end
- end)
- bgs[#bgs+1]=Img
- end
- while #bgs > 0 do
- lrs:wait()
- for i,Img in next, bgs do
- if Img == nil or Img.Parent == nil then
- table.remove(bgs,i)
- else
- if curbg == Img then
- Img.BorderSizePixel = 2
- else
- Img.BorderSizePixel=0
- end
- end
- end
- end
- end)
- Functions:CreateProgram('Explorer', 27854793, 'Expl', 'Explore the game\'s children', function(HF,TF,CF)
- local funcs = {};
- local title = Functions:MakeNewUi('TextLabel')
- title.TextColor3 = CurrentPlayerData[3]
- title.TextStrokeTransparency=1
- title.Size=ud(1,0,.2,0)
- title.Text = 'Services'
- title.TextXAlignment='Center'
- title.TextYAlignment='Center'
- title.BackgroundTransparency=1
- title.Parent=CF
- title.BackgroundColor3 = CurrentPlayerData[4]
- spawn(function()
- wait(1)
- Effects:Underline(title, 15, 80, 2, CurrentPlayerData[3], true)
- end)
- local scroll = Functions:MakeNewUi('ScrollingFrame')
- scroll.Size=ud(.8,0,.8,0)
- scroll.Position = ud(.1,0,.2,0)
- scroll.BackgroundTransparency=1
- scroll.TopImage=Functions:Asset(317839361)
- scroll.MidImage=Functions:Asset(317839361)
- scroll.BottomImage=Functions:Asset(317839361)
- scroll.ScrollBarThickness = 5
- scroll.Parent=CF
- scroll.BackgroundColor3 = CurrentPlayerData[4]
- function funcs:w()
- return wait(.05)
- end
- local buttons={};
- local t = 0
- function funcs:clearscroll()
- t=t+1
- buttons={};
- for i,v in next, scroll:children() do
- --funcs:w()
- pcall(function()
- spawn(function()
- v:TweenPosition(ud(1,0,v.Position.Y.Scale,v.Position.Y.Offset),'Out','Quint',2,true)
- for i = 0,1.05,.05 do
- pcall(function()
- v.TextTransparency=v.TextTransparency+.05
- end)
- pcall(function()
- v.BackgroundTransparency=v.BackgroundTransparency+.05
- end)
- pcall(function()
- v.TextStrokeTransparency=v.TextStrokeTransparency+.05
- end)
- lrs:wait()
- end
- v:Destroy()
- end)
- end)
- end
- wait(2)
- end
- function funcs:bt(i,txt,func)
- delay(0,function()
- if t == i then
- --funcs:w()
- local button = Functions:MakeNewUi('TextButton')
- local index = #buttons
- buttons[index+1]=button
- local y = 22*(index)
- scroll.CanvasSize=ud(0,0,0,y)
- button.TextColor3 = CurrentPlayerData[3]
- button.TextStrokeTransparency=.9
- button.Size=ud(1,0,0,20)
- button.Position=ud(1,0,0,y)
- button.Text = txt
- button.TextXAlignment='Left'
- button.TextTransparency=1
- button.TextSize = 12
- button.Font=OS.Settings.Fonts.Header
- --button.TextYAlignment='Top'
- button.BackgroundTransparency=.6
- button.TextStrokeColor3=CurrentPlayerData[3]
- button.Parent=scroll
- button.BackgroundColor3 = CurrentPlayerData[4]
- spawn(function()
- button:TweenPosition(ud(0,0,0,y),'Out','Quint',.5,true)
- for i = 0,1.05,.05 do
- button.TextTransparency=1-i
- lrs:wait()
- end
- end)
- local ev
- ev=button.MouseButton1Click:connect(function()
- ev:disconnect()
- func(button)
- end)
- return button
- else
- return nil
- end
- end)
- end
- function funcs:showoptions(obj)
- funcs:clearscroll()
- local st = t
- if obj:IsA'Instance' then
- title.Text = obj:GetFullName()
- if #obj:children() > 0 then
- local expl=funcs:bt(st,'Explore',function()
- funcs:showchildren(obj)
- end)
- end
- pcall(function()
- if obj ~= game and obj.Parent ~= game then
- local expl=funcs:bt(st,'Destroy',function()
- local par = obj.Parent
- local pn = obj.Name
- pcall(function()
- obj:Destroy()
- end)
- funcs:clearscroll()
- local nst = t
- funcs:bt(nst,'Return to '..pn..'\'s parent object',function()
- funcs:showchildren(par)
- end)
- funcs:bt(nst,'Destroyed '..pn,function()
- end)
- end)
- end
- end)
- if obj ~= game then
- local tag = 'Return to '..obj.Parent.Name..'\'s children'
- if obj.Parent==game then
- tag='Return to explorable services'
- end
- local ret=funcs:bt(st,tag,function()
- funcs:showchildren(obj.Parent)
- end)
- elseif obj.Parent == game then
- funcs:showservs()
- end
- local sprops=funcs:bt(st,'Show Properties',function()
- funcs:clearscroll()
- local st2 = t
- local rett=funcs:bt(st2,'Return to options for '..obj.Name,function()
- funcs:showoptions(obj)
- end)
- local Props = Functions:ReturnObjectProperties(obj)
- Props['Children'] = #obj:children()
- for index, value in next, Props do
- local prop=funcs:bt(st2,tostring(index)..': '..tostring(value),function()
- end)
- end
- end)
- end
- end
- function funcs:showchildren(prnt)
- funcs:clearscroll()
- local st = t
- if prnt:IsA'Instance' then
- local back=funcs:bt(st,'Show me options for '..prnt.Name,function()
- funcs:showoptions(prnt)
- end)
- for i,v in next, prnt:children() do
- pcall(function()
- if prnt:IsA'Instance' then
- local sub=' - '..v.ClassName
- pcall(function()
- if prnt==game then
- sub=''
- end
- end)
- local child=funcs:bt(st,v.Name..sub,function()
- funcs:showoptions(v)
- end)
- end
- end)
- end
- end
- end
- function funcs:showservs()
- funcs:clearscroll()
- local st = t
- local servs = {};
- for i,v in next, game:children() do
- pcall(function()
- if #v:children() > 0 then
- table.insert(servs,v)
- end
- end)
- end
- local child=funcs:bt(st,'SHOW ME ALL THE DAMN SERVICES!',function()
- funcs:showoptions(game)
- end)
- for i,v in next, servs do
- local child = funcs:bt(st,v.Name,function()
- funcs:showoptions(v)
- end)
- end
- end
- funcs:showservs()
- end)
- local Audios={};
- local CurrentPlaying = nil
- function Functions:AddSound(Id)
- for Index, Sound in next, Audios do
- if Sound:IsA'Sound' then
- Sound:Stop()
- Sound.PlayOnRemove=false
- end
- end
- local Sound = Instance.new('Sound', Monitor)
- Sound.SoundId=Functions:Asset(Id)
- Sound.Volume=.9
- CurrentPlaying = Sound
- table.insert(Audios, Sound)
- return Sound
- end
- function Functions:IntegerLerp(a,b,c)
- return a + (b - a) * c;
- end
- Functions:CreateProgram('Messenger',485845332,'MGR','Self explanitory... idiot', function(HF,TF,CF)
- end)
- local cur = nil
- local curSound = nil
- Functions:CreateProgram('SmAudio', 64646186, 'SmA', 'An archive of selected music just for you ;) with extra features as well', function(HF,TF,CF)
- local title = Functions:MakeNewUi('TextLabel')
- title.TextColor3 = CurrentPlayerData[3]
- title.TextStrokeTransparency=1
- title.Size=ud(1,0,.2,0)
- title.Text = 'SmAudio Alpha'
- title.TextXAlignment='Center'
- title.TextYAlignment='Center'
- title.Font = OS.Settings.Fonts.Header
- title.BackgroundTransparency=1
- title.Parent=CF
- title.BackgroundColor3 = CurrentPlayerData[4]
- spawn(function()
- wait(1)
- Effects:Underline(title, 15, 80, 2, CurrentPlayerData[3], true)
- end)
- local scroll = Functions:MakeNewUi('ScrollingFrame')
- scroll.Size=ud(.8,0,.8,0)
- scroll.Position = ud(.1,0,.2,0)
- scroll.BackgroundTransparency=0
- scroll.TopImage=Functions:Asset(317839361)
- scroll.MidImage=Functions:Asset(317839361)
- scroll.BottomImage=Functions:Asset(317839361)
- scroll.ScrollBarThickness = 5
- scroll.Parent=CF
- scroll.BackgroundColor3 = CurrentPlayerData[4]
- local max = 0
- spawn(function()
- local y = 0
- repeat game:service'RunService'.RenderStepped:wait()
- y=Functions:IntegerLerp(y,max,.02)
- --print(max)
- --print(y)
- --scroll.CanvasSize=ud(0,0,0,y)
- until CF.Parent == nil
- end)
- local play,pause,sound = Functions:Asset(745599404),Functions:Asset(745599001),Functions:Asset(176572847)
- local Loaded = 0
- for i, Id in next, OS.Sounds do
- delay((math.random()/(math.random()+.2))*3, function()
- local Market = game:service'MarketplaceService'
- local Asset = Market:GetProductInfo(Id)
- local Song = Functions:MakeNewUi('ImageButton')
- Song.Parent=scroll
- Song.Image = play
- local clr=CurrentPlayerData[3]
- local clr2=CurrentPlayerData[4]
- Song.BackgroundColor3=clr
- Song.Size=ud(0,45,0,45)
- Song.BackgroundTransparency=1
- local y = (Song.Size.Y.Offset+2)*(i-1)
- max=max+(Song.Size.Y.Offset+2)
- local x = Song.Size.X.Offset
- local author = Functions:MakeNewUi('TextLabel')
- author.TextColor3 = CurrentPlayerData[3]
- author.Size=ud(1,-x+10,0,20)
- author.Position = ud(0,x+10,0,y)
- author.Text = 'Author '..Asset.Creator.Name..' ; '..Asset.Creator.Id
- author.TextXAlignment='Left'
- author.TextYAlignment='Center'
- author.TextSize = 16
- author.Font = OS.Settings.Fonts.Header
- author.BackgroundTransparency=1
- author.TextTransparency=1
- author.Parent=scroll
- author.BackgroundColor3 = CurrentPlayerData[3]
- local name = Functions:MakeNewUi('TextLabel')
- name.TextColor3 = CurrentPlayerData[3]
- name.Size=ud(1,-x+10,0,20)
- name.Position = ud(0,x+10,0,y+(author.TextSize+2))
- name.Text = 'Name '..Asset.Name
- name.TextXAlignment='Left'
- name.TextYAlignment='Center'
- name.TextSize = 12
- name.TextTransparency=1
- name.Font = OS.Settings.Fonts.Header
- name.BackgroundTransparency=1
- name.Parent=scroll
- name.BackgroundColor3 = CurrentPlayerData[3]
- local desc = Functions:MakeNewUi('TextLabel')
- desc.TextColor3 = CurrentPlayerData[3]
- local alg = (((name.TextBounds.X+author.TextBounds.X)/1.5)+(10+(author.TextSize+name.TextSize)))
- desc.Size=ud(1,-x-(alg+scroll.ScrollBarThickness),0,46)
- desc.Position = ud(1,0,0,y-1)
- desc.Text = Asset.Creator.Name..': '..Asset.Description
- desc.BorderSizePixel=0
- desc.BorderColor3 = CurrentPlayerData[3]
- desc.TextWrapped=true
- desc.TextXAlignment='Left'
- desc.TextTransparency=1
- desc.TextYAlignment='Top'
- desc.TextSize = 12
- desc.Font = OS.Settings.Fonts.Header
- desc.BackgroundTransparency=1
- desc.Parent=scroll
- desc.BackgroundColor3 = scroll.BackgroundColor3
- desc.ClipsDescendants=false
- local line = Functions:MakeNewUi('TextLabel')
- line.TextColor3 = CurrentPlayerData[3]
- line.Size=ud(0,1,1,0)
- line.Position = ud(0,-4,0,0)
- line.Text = ''
- line.BackgroundTransparency=0
- line.BackgroundColor3 = CurrentPlayerData[3]
- line.Parent=desc
- if Asset.Description=='Audio' or Asset.Description=='RenderMesh' then
- desc:Destroy()
- else
- desc:TweenPosition(ud(0,x+alg,0,y-1),'Out','Quint',1,true)
- end
- Song.Position = ud(0,-x,0,y)
- Song.ZIndex=8
- Song.MouseEnter:connect(function()
- local t=clr2
- local tt=.15
- clr=c3(t.r-tt,t.b-tt,t.g-tt)
- clr2=CurrentPlayerData[3]
- end)
- Song.MouseLeave:connect(function()
- clr=CurrentPlayerData[3]
- clr2=CurrentPlayerData[4]
- end)
- Song.MouseButton1Click:connect(function()
- if cur == Song then
- curSound:Pause()
- cur=nil
- else
- cur=Song
- curSound = Functions:AddSound(Id)
- curSound.Looped = true
- curSound:Play()
- clr=CurrentPlayerData[3]
- clr2=CurrentPlayerData[4]
- end
- end)
- spawn(function()
- for i = 0,1.05,.05 do
- desc.TextTransparency=1-i
- desc.BackgroundTransparency=1-i
- name.TextTransparency=1-i
- author.TextTransparency=1-i
- game:service'RunService'.RenderStepped:wait()
- end
- end)
- spawn(function()
- repeat game:service'RunService'.RenderStepped:wait()
- if cur == Song then
- Song.Image = pause
- else
- Song.Image = play
- end
- Song.BackgroundColor3=Song.BackgroundColor3:lerp(clr,.25)
- Song.ImageColor3=Song.ImageColor3:lerp(clr2,.25)
- until CF.Parent == nil
- end)
- Song:TweenPosition(ud(0,0,0,y),'Out','Quint',.5,true)
- Loaded = Loaded + 1
- end)
- end
- local ii=0
- repeat
- wait()
- title.Text = 'Loading Assets #'..Loaded
- ii=Functions:IntegerLerp(ii,max+10,.04)
- scroll.CanvasSize=ud(0,0,0,ii)
- scroll.CanvasPosition=Vector2.new(0,ii)
- until Loaded == #OS.Sounds
- title.Text = 'SmAudio Beta'
- end)
- function Functions:GeneratePrograms(Distance)
- --print'k'
- local Over, Down=0,0
- for Index, Data in next, OS.Apps.Qeued do
- if Down > 7 then
- return
- end
- local maximized,ump,ums
- lrs:wait()
- local Icon = Functions:MakeNewUi('ImageButton')
- Icon.Image=Functions:PlayerImage(Host)
- Icon.Parent=MainFrame
- Icon.BackgroundColor3=CurrentPlayerData[4]
- Icon.Image=Functions:Asset(Data[2])
- Icon.Size=ud(0,50,0,50)
- Icon.ZIndex=2
- Icon.ImageTransparency=0
- local IconName = Functions:MakeNewUi('TextLabel')
- IconName.Font=OS.Settings.Fonts.Header
- IconName.Parent=Icon
- IconName.TextYAlignment='Bottom'
- IconName.TextSize = 10
- IconName.Text= Data[1]
- IconName.Size=ud(1,0,0,20)
- IconName.Position=ud(0,0,1,-20)
- IconName.ZIndex=2
- local bgtp = 1
- Icon.MouseEnter:connect(function()
- bgtp=.5
- end)
- Icon.MouseLeave:connect(function()
- bgtp=1
- end)
- local oi = bgtp
- lrs:connect(function()
- oi=Functions:IntegerLerp(oi,bgtp,.3)
- Icon.BackgroundTransparency=oi
- end)
- OS.Apps.Generated[Data[1]]=Icon
- if Over >= 13 then
- Down = Down + 1
- Over = 0
- end
- Icon.Position=ud(0,15+(60*(Over)),0,15+(60*(Down)))
- Over = Over + 1
- Icon.ZIndex=2
- local oic
- oic=Icon.MouseButton1Click:connect(function()
- local AlreadyOpen=false
- for Index, Ting in next, OS.Apps.Open do
- for i = 1,#Ting do
- if Data[i] == Ting[i] then
- AlreadyOpen=true
- end
- end
- end
- if AlreadyOpen then
- warn'nop'
- return
- end
- table.insert(OS.Apps.Open,{Data[1],Data[2],Data[3]})
- OS.RecentlyUsedPrograms[Data[4]]=Data
- local HolderFrame = Functions:MakeNewUi('Frame')
- HolderFrame.ZIndex=3
- HolderFrame.BackgroundTransparency=0
- HolderFrame.BorderSizePixel=.1
- HolderFrame.BorderColor3=CurrentPlayerData[3]
- HolderFrame.Size=ud(0,600,0,400)
- HolderFrame.Name='HF'
- HolderFrame.BackgroundColor3=CurrentPlayerData[3]
- HolderFrame.Position = Functions:Center(HolderFrame)
- HolderFrame.Parent = MainFrame
- maximized,ump,ums=false,HolderFrame.Position,HolderFrame.Size
- local function Enable()
- for i,gui in next, MainFrame:children() do
- if gui:IsA'ImageButton' then
- gui.Visible=true
- end
- end
- end
- local function Disable()
- for i,gui in next, MainFrame:children() do
- if gui:IsA'ImageButton' then
- gui.Visible=false
- end
- end
- end
- local ev1
- ev1=HolderFrame.MouseEnter:connect(function()
- --print'k1'
- Disable()
- end)
- local ev2
- ev2=HolderFrame.MouseLeave:connect(function()
- --print'k2'
- Enable()
- end)
- local InfoFrame = Functions:MakeNewUi('Frame')
- InfoFrame.ZIndex=4
- InfoFrame.BackgroundTransparency=0
- InfoFrame.Size=ud(1,0,0,15)
- InfoFrame.Name='TF'
- InfoFrame.BackgroundColor3=CurrentPlayerData[3]
- for i = 1,3 do
- i=i
- local CButt = Functions:MakeNewUi('ImageButton')
- CButt.Image=Functions:Asset(625953771)
- CButt.Parent=InfoFrame
- CButt.ImageTransparency=.15
- local OCF
- --505680534
- spawn(function()
- local up=.75
- local r,g,b=0,0,0
- if (i==1) then
- r,g,b=.8,.01,.01
- elseif (i==2) then
- r,g,b=.95,.95,0
- elseif (i==3) then
- r,g,b=0,.7,0
- end
- CButt.ImageColor3 = c3(r,g,b)
- CButt.MouseEnter:connect(function()
- for i = 0,1,.1 do
- CButt.ImageColor3 = CButt.ImageColor3:lerp(c3(r+up,g+up,b+up),.13)
- lrs:wait()
- end
- end)
- CButt.MouseLeave:connect(function()
- for i = 0,1,.1 do
- CButt.ImageColor3 = CButt.ImageColor3:lerp(c3(r,g,b),.13)
- lrs:wait()
- end
- end)
- end)
- --if not OCF then OCF=function()print'missing func'end;end
- if (i==1) then
- r,g,b=.8,.01,.01
- local evv
- ev1:disconnect()
- ev2:disconnect()
- evv=CButt.MouseButton1Click:connect(function()
- for Index, Ting in next, OS.Apps.Open do
- if Data[1] == Ting[1] then
- table.remove(OS.Apps.Open, Index)
- end
- end
- evv:disconnect()
- local pos = HolderFrame.Position
- HolderFrame.Active=false
- HolderFrame:Destroy()
- end)
- elseif (i==2) then
- r,g,b=.95,.95,0
- local evv
- evv=CButt.MouseButton1Click:connect(function()
- if maximized then
- HolderFrame:TweenSizeAndPosition(ums,ump,'Out','Sine',.3,true)
- maximized=false
- else
- HolderFrame:TweenSizeAndPosition(ud(1,2,1,-50),ud(0,-1,0,-1),'Out','Quint',.3,true)
- maximized=true
- end
- end)
- elseif (i==3) then
- r,g,b=0,.7,0
- local evv
- ev1:disconnect()
- ev2:disconnect()
- for Index, Ting in next, OS.Apps.Open do
- if Data[1] == Ting[1] then
- table.remove(OS.Apps.Open, Index)
- end
- end
- evv=CButt.MouseButton1Click:connect(function()
- evv:disconnect()
- HolderFrame:TweenSizeAndPosition(ud(0,50,0,50),Icon.Position,'Out','Quint',.5,true)
- wait(.2)
- HolderFrame:Destroy()
- end)
- --Functions:AddToTaskBar(Data[1],Data[2],{ump,ums})
- end
- --CButt.MouseButton1Click:connect(OCF)
- CButt.Size=ud(0,12,0,12)
- CButt.Position=Functions:CenterOffset(CButt,ud(.5,-(15*i),0,0))
- --CButt:TweenPosition(Functions:CenterOffset(CButt,ud(0,0,0,-50),'Out','Back',1,true))
- end
- InfoFrame.Parent = HolderFrame
- local InfoIcon = Functions:MakeNewUi('ImageButton')
- InfoIcon.Parent=InfoFrame
- InfoIcon.Image=Functions:Asset(Data[2])
- InfoIcon.Size=ud(0,12,0,12)
- InfoIcon.ImageTransparency=0
- InfoIcon.Position=ud(0,2,0,3)
- InfoIcon.ZIndex=4
- local InfoText = Functions:MakeNewUi('TextButton')
- InfoText.BackgroundTransparency=.5
- InfoText.FontSize='Size12'
- InfoText.Parent=InfoFrame
- InfoText.TextXAlignment='Left'
- InfoText.Text= Data[1]--..' \ '..Data[4]--'*C:\Users\\'..Host.Name..''
- InfoText.Size=ud(1,-40,1,0)
- InfoText.Position=ud(0,16,0,0)
- InfoText.ZIndex=4
- local md=false
- InfoText.MouseButton1Down:connect(function()
- md=true
- local origp=HolderFrame.Position
- local origs=ud(0,600,0,15)
- local origmp=OS.Assets.Mouse.Position
- HolderFrame.Size = ud(0,600,0,400)
- maximized=false
- spawn(function()
- repeat wait() until OS.MouseDown == false
- md=false
- end)
- while md do
- local mp={OS.Assets.Mouse.Position.X.Scale,OS.Assets.Mouse.Position.X.Offset,OS.Assets.Mouse.Position.Y.Scale,OS.Assets.Mouse.Position.Y.Offset};
- local fs={origs.X.Scale,origs.X.Offset,origs.Y.Scale,origs.Y.Offset};
- local fp={origp.X.Scale,origp.X.Offset,origp.Y.Scale,origp.Y.Offset};
- --local a,b=
- local x,y=mp[2]-(fs[2]/2),mp[4]-(fs[4]/2)
- --print(x,y)
- HolderFrame.Position=ud(0,x,0,y)
- lrs:wait()
- end
- end)
- InfoText.MouseButton1Up:connect(function()
- --md=false
- end)
- local ContentFrame = Functions:MakeNewUi('Frame')
- ContentFrame.ZIndex=4
- ContentFrame.BackgroundTransparency=.1
- ContentFrame.Size=ud(1,-2,1,-17)
- ContentFrame.Position=ud(0,1,0,16)
- ContentFrame.Name='CF'
- ContentFrame.BackgroundColor3=CurrentPlayerData[4]
- ContentFrame.Parent = HolderFrame
- Data[5](HolderFrame, TitleFrame, ContentFrame)
- end)
- end
- end
- local AtMainScreen=false
- function Functions:MakeHomeScreen()
- local Background_id = CurrentPlayerData[5]
- local BackgroundImg = Functions:MakeNewUi('ImageLabel')
- BackgroundImg.Image=Functions:Asset(Background_id)
- BackgroundImg.Name='Background'
- BackgroundImg.BackgroundTransparency=1
- BackgroundImg.ImageTransparency = .1
- BackgroundImg.Parent=MainFrame
- BackgroundImg.ZIndex=1
- BackgroundImg.Size=ud(1,0,1,0)
- OS.Assets.Background = BackgroundImg
- for i = 0,1.025,.025 do
- MainFrame.BackgroundTransparency=i
- lrs:wait()
- end
- local TskBar = Functions:MakeNewUi('TextLabel')
- TskBar.Size = ud(1,0,0,52)
- TskBar.Parent = MainFrame
- TskBar.BackgroundColor3 = CurrentPlayerData[3]
- TskBar.BackgroundTransparency = .5
- TskBar.Position = ud(0,0,1,0)
- TskBar.ZIndex = 9
- TskBar:TweenPosition(ud(0,0,1,-52.5),'Out','Quint',1.2,true)
- for i = 0,.15,.05 do
- local TskBarShader = Functions:MakeNewUi('TextLabel')
- TskBarShader.BackgroundTransparency = .8
- TskBarShader.BackgroundColor3 = CurrentPlayerData[4]
- TskBarShader.BorderSizePixel = 0
- TskBarShader.Size = ud(1,0,.05,0)
- TskBarShader.Position = ud(0,0,-i,0)
- delay(.2,function()
- TskBarShader:TweenPosition(ud(0,0,i+5,0),'Out','Quint',.5,true)
- end)
- TskBarShader.ZIndex = 9
- TskBarShader.Name = 'shd'..i
- --TskBar:ClearAllChildren()
- TskBarShader.Parent = TskBar
- end
- --//tem\\
- local TimeLabel = Instance.new'TextLabel'
- TimeLabel.BackgroundTransparency = 1
- TimeLabel.BackgroundColor3 = c3(255,255,255)
- TimeLabel.BorderSizePixel = 0
- TimeLabel.ZIndex = 9
- TimeLabel.TextColor3 = CurrentPlayerData[4]
- TimeLabel.Font = OS.Settings.Fonts.Sub_Header
- TimeLabel.TextScaled = true
- TimeLabel.Name = 'TimeLabel'
- TimeLabel.TextWrapped = true
- TimeLabel.TextStrokeTransparency = .9
- TimeLabel.Text = '00:00:00 PM'
- TimeLabel.Parent = TskBar
- TimeLabel.Size = ud(.08,0,.3,0)
- TimeLabel.Position = ud(.92,-10,0,6)
- local DateLabel = Instance.new'TextLabel'
- DateLabel.BackgroundTransparency = 1
- DateLabel.BackgroundColor3 = c3(255,255,255)
- DateLabel.BorderSizePixel = 0
- DateLabel.ZIndex = 9
- DateLabel.TextColor3 = CurrentPlayerData[4]
- DateLabel.Font = OS.Settings.Fonts.Sub_Header
- DateLabel.TextScaled = true
- DateLabel.Name = 'DateLabel'
- DateLabel.TextWrapped = true
- DateLabel.TextStrokeTransparency = .9
- DateLabel.Text = '00/00/0000'
- DateLabel.Parent = TskBar
- DateLabel.Size = ud(.08,0,.3,0)
- DateLabel.Position = ud(.92,-10,.6,-6)
- local Logo = Functions:MakeNewUi'ImageButton'
- Logo.BackgroundTransparency = 1
- Logo.BackgroundColor3 = CurrentPlayerData[3]
- Logo.BorderSizePixel = 0
- Logo.ZIndex = 10
- Logo.Image = Functions:Asset(265489553)
- --Logo.TextColor3 = CurrentPlayerData[4]
- --Logo.Font = 'Cartoon'
- --Logo.FontSize='Size36'
- Logo.Name = 'Logo'
- --Logo.TextStrokeTransparency = .9
- --Logo.Text = 'ΒΆY'
- Logo.Parent = TskBar
- Logo.Size = ud(0,40,0,50)
- Logo.Position = ud(0,1,0,1)
- local clrcancel=false
- local igc,bgc=CurrentPlayerData[4],CurrentPlayerData[3]
- Logo.MouseEnter:connect(function()
- local continue=true
- clrcancel=true
- clrcancel=false
- spawn(function()
- for i = 0,.57,.07 do
- Logo.BackgroundTransparency=1-i
- lrs:wait()
- end
- end)
- igc,bgc=CurrentPlayerData[3],CurrentPlayerData[4]
- end)
- Logo.MouseLeave:connect(function()
- local continue=true
- clrcancel=true
- clrcancel=false
- spawn(function()
- for i = 0,.57,.07 do
- Logo.BackgroundTransparency=.5+i
- lrs:wait()
- end
- end)
- igc,bgc=CurrentPlayerData[4],CurrentPlayerData[3]
- end)
- local StartFrameHolder = Functions:MakeNewUi('Frame')
- StartFrameHolder.ZIndex=5
- StartFrameHolder.BackgroundTransparency=1
- StartFrameHolder.Size=ud(0,200,.6,0)
- StartFrameHolder.Position = ud(0,0,.4,-52)
- StartFrameHolder.Parent = MainFrame
- local StartFrame = Functions:MakeNewUi('Frame')
- StartFrame.ZIndex=9
- StartFrame.BackgroundTransparency=.5
- StartFrame.Size=ud(1,0,1,0)
- StartFrame.BorderSizePixel=2
- StartFrame.Name='SF'
- StartFrame.BorderColor3=CurrentPlayerData[4]
- StartFrame.Position = ud(0,0,1,0)
- StartFrame.Parent = StartFrameHolder
- local TestButton = Functions:MakeNewUi('TextButton')
- TestButton.ZIndex=6
- TestButton.BackgroundTransparency=.7
- TestButton.Size=ud(1,-6,0,50)
- TestButton.Position = ud(0,3,0,3)
- TestButton.Text='TEST NOTIFICATIONS'
- TestButton.Parent = StartFrame
- TestButton.MouseButton1Click:connect(function()
- Functions:Notification('Just testing the dank re-alignment and stuff, kek.')
- end)
- local sfcc,detection=false,false
- StartFrame.MouseEnter:connect(function()
- detection=false
- sfcc=false
- end)
- StartFrame.MouseLeave:connect(function()
- detection=true
- sfcc=true
- end)
- local Extended=false
- local function Open(trans)
- StartFrame:TweenPosition(ud(0,0,0,0),'Out','Sine',.5,true)
- for i = 0,1.05,.05 do
- for a,b in next, StartFrame:children() do
- if b.Name ~= 'SF' then
- pcall(function()
- b.TextTransparency=b.TextTransparency-.05
- end)
- pcall(function()
- b.BackgroundTransparency=bBackgroundTransparency-.05
- end)
- pcall(function()
- b.ImageTransparency=b.ImageTransparency-.05
- end)
- end
- end
- StartFrame.BackgroundTransparency=1-.05
- lrs:wait()
- end
- StartFrame.BackgroundTransparency=trans
- Extended=true
- end
- local function Close(trans)
- StartFrame:TweenPosition(ud(0,0,1,0),'Out','Sine',.5,true)
- for i = 0,1,.05 do
- for a,b in next, StartFrame:children() do
- if b.Name ~= 'SF' then
- pcall(function()
- b.TextTransparency=b.TextTransparency+.05
- end)
- pcall(function()
- b.BackgroundTransparency=bBackgroundTransparency+.05
- end)
- pcall(function()
- b.ImageTransparency=b.ImageTransparency+.05
- end)
- end
- end
- StartFrame.BackgroundTransparency=trans+.05
- lrs:wait()
- end
- StartFrame.BackgroundTransparency=1
- Extended=false
- end
- local trans=.45
- PlayerMouse.Button1Down:connect(function()
- if sfcc and Extended then
- detection=false
- Close(trans)
- end
- end)
- PlayerMouse.Button2Down:connect(function()
- if sfcc and Extended then
- detection=false
- Close(trans)
- end
- end)
- Logo.MouseButton1Down:connect(function(x,y)
- if Extended then
- Close(trans)
- else
- Open(trans)
- end
- end)
- local Months = {
- "January", "Febreuary", "March", "April", "May", "June",
- "July", "August", "September", "October", "November", "December"
- }
- local MonthDays = {
- 31, 28, 31, 30, 31, 30,
- 31, 31, 30, 31, 30, 31
- }
- function getDay(Date, year)
- local month, date = Date:match("(%a+)%s*(%d+)")
- local DAYS = tonumber(date)
- local leaps = math.floor( (year-2011)/4 - .25 ) + 1
- local Days = {"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}
- for _, v in ipairs(MonthDays) do
- if Months[_] == month then break end
- DAYS = DAYS + v
- end
- DAYS = math.floor( DAYS + (year-2017) * 365 ) + leaps
- return Days[ (DAYS%7 == 0 and 7 or DAYS%7) ]
- end
- function getMonthAndDate(days, year)
- local leap = year%4 == 0 and 1 or 0
- local month;
- for _, v in ipairs(MonthDays) do
- if (days-v) < 1 then
- month = Months[_]
- break
- end
- days = days - v
- end
- return month, days
- end
- local LTime,LDate = '',''
- local M = ''
- Time = function()
- local secondsInDay = 60*60*24
- local time = tick()
- local year = math.floor(1970 + time/(365.25*86400))
- local days = math.ceil(((time % (86400*365.25)) )/86400 + 0.25)
- local month, date = getMonthAndDate(days, year)
- local day = getDay(month..date, year)
- local tick = math.fmod(tick(),secondsInDay)
- local hour = math.floor(tick/3600) + 5 + -5
- local minute = math.floor(tick/60 - 60*hour)
- local seconds = math.floor(math.fmod(tick,60))
- if (hour > 12) then
- M = ' PM' hour = hour - 12
- else
- M = ' AM'
- end
- if hour == 0 then
- hour = 12
- end
- if hour == 24 then
- hour = 1
- end
- LTime = string.format("%2.0f:%02.0f",hour,minute)
- local MonthNums = {
- ["January"]=1, ["February"]=2, ["March"]=3, ["April"]=4, ["May"]=5, ["June"]=6,
- ["July"]=7, ["August"]=8, ["September"]=9, ["October"]=10, ["November"]=11, ["December"]=12
- }
- month=MonthNums[month]
- LDate = month..'/'..(days-1)..'/'..year
- TimeLabel.Text = LTime..M
- DateLabel.Text = LDate
- Logo.ImageColor3 = Logo.ImageColor3:lerp(igc,.2)
- Logo.BackgroundColor3 = Logo.BackgroundColor3:lerp(bgc,.2)
- end
- game:service'RunService'.Heartbeat:connect(Time)
- AtMainScreen=true
- local txt=''
- if Official then
- txt='Welcome back, '..CurrentPlayerData[1]..', your last session\'s saved data has been loaded'
- else
- txt='Hello, '..CurrentPlayerData[1]..'. Your data will be saved at the end of this session'
- end
- delay(math.random(1,4),function()
- delay(.3,function()
- Functions:PlayerImgNotification('SavageMunkey', 'Creator & Founder of ΒΆYaviOS - SavageMunkey')
- end)
- local fr,tl = Functions:Notification(txt,6)
- end)
- Functions:GeneratePrograms({25,20})
- AtMainScreen=true
- return warn'Homescreen Loaded'
- end
- function Functions:PlayerImgNotification(Plr, Type)
- if not AtMainScreen then return end
- local sz=50
- if Type=='join' then
- local fr,tl=Functions:Notification('New Player has joined, '..tostring(Plr)..'.', 4)
- tl.Size=ud(1,-(sz+5),1,0)
- tl.Position=ud(0,sz+5,0,0)
- local UserImage = Functions:MakeNewUi('ImageLabel')
- UserImage.Image=Functions:PlayerImage(tostring(Plr))
- UserImage.Parent=fr
- UserImage.Size=ud(0,sz,1,0)
- UserImage.ImageTransparency=0
- UserImage.Position=ud(0,4,0,0)
- UserImage.ZIndex=8
- wait(4*1.5)
- for i = 0,1.05,.05 do UserImage.ImageTransparency=i lrs:wait() end
- elseif Type=='rmv' then
- local fr,tl=Functions:Notification('Player has left, '..tostring(Plr)..'.', 4)
- tl.Size=ud(1,-(sz+5),1,0)
- tl.Position=ud(0,sz+5,0,0)
- local UserImage = Functions:MakeNewUi('ImageLabel')
- UserImage.Image=Functions:PlayerImage(tostring(Plr))
- UserImage.Parent=fr
- UserImage.Size=ud(0,sz,1,0)
- UserImage.ImageTransparency=0
- UserImage.Position=ud(0,4,0,0)
- UserImage.ZIndex=8
- wait(4*1.5)
- for i = 0,1.05,.05 do UserImage.ImageTransparency=i lrs:wait() end
- else
- local fr,tl=Functions:Notification(Type, 4)
- tl.Size=ud(1,-(sz+5),1,0)
- tl.Position=ud(0,sz+5,0,0)
- local UserImage = Functions:MakeNewUi('ImageLabel')
- UserImage.Image=Functions:PlayerImage(tostring(Plr))
- UserImage.Parent=fr
- UserImage.Size=ud(0,sz,1,0)
- UserImage.ImageTransparency=0
- UserImage.Position=ud(0,4,0,0)
- UserImage.ZIndex=8
- wait(4*1.5)
- for i = 0,1.05,.05 do UserImage.ImageTransparency=i lrs:wait() end
- end
- end
- local Notifications={};
- local Notifs=0
- function Functions:AdjustNotifPositions()
- local upv=0
- for i, data in next, Notifications do
- --warn('('..tostring(ud(1,-200,.8,-(60*upv)))..')',#Notifications)
- pcall(function()
- data[1]:TweenPosition(ud(1,-200,.8,-(60*upv)),'Out','Back',.5,true)
- end)
- upv=upv+1
- wait(.1)
- end
- end
- function Functions:Notification(Text, ExitDelay)
- if not ExitDelay then ExitDelay=4 end
- if not AtMainScreen then return end
- local v=false
- local Frame = Functions:MakeNewUi('Frame')
- Frame.ZIndex=8
- Frame.BackgroundTransparency=.25
- Frame.Size=ud(0,200,0,55)
- Frame.BackgroundColor3=CurrentPlayerData[4]
- Frame.Position = ud(1,0,.8,-(60*Notifs))
- Frame.Parent=MainFrame
- Frame:TweenPosition(ud(1,-200,.8,-(60*Notifs)),'Out','Sine',2,true)
- table.insert(Notifications,{Frame,ud(1,-200,.8,-(60*Notifs))})
- local Shader1 = Functions:MakeNewUi('Frame')
- Shader1.ZIndex=9
- Shader1.BackgroundTransparency=.9
- Shader1.Size=ud(0,2,1,0)
- Shader1.BackgroundColor3=CurrentPlayerData[4]
- Shader1.Position = ud(0,-2,0,0)
- Shader1.Parent=Frame
- local Shader2 = Functions:MakeNewUi('Frame')
- Shader2.ZIndex=9
- Shader2.BackgroundTransparency=.8
- Shader2.Size=ud(0,1,1,0)
- Shader2.BackgroundColor3=CurrentPlayerData[4]
- Shader2.Position = ud(0,-1,0,0)
- Shader2.Parent=Frame
- spawn(function()
- Shader1:TweenPosition(ud(0,0,0,0),'Out','Linear',.4,true)
- wait(.1)
- Shader2:TweenPosition(ud(0,1,0,0),'Out','Linear',.4,true)
- end)
- local TLabel = Functions:MakeNewUi('TextButton')
- TLabel.TextColor3=CurrentPlayerData[4]
- TLabel.Position=ud(0,4,0,0)
- TLabel.ZIndex=9
- TLabel.Active=true
- TLabel.BackgroundTransparency=.98
- TLabel.TextWrapped=true
- TLabel.Size=ud(1,-4,1,0)
- TLabel.TextXAlignment='Left'
- --TLabel.TextYAlignment='Top'
- TLabel.Font=OS.Settings.Fonts.Sub_Header
- TLabel.FontSize='Size12'
- TLabel.TextStrokeColor3=CurrentPlayerData[4]
- TLabel.TextStrokeTransparency=1
- TLabel.TextTransparency=1
- TLabel.Parent=Frame
- Notifs=Notifs+1
- local tic = Functions:Sound(230336790,false)
- tic:Play()
- for i = 0,1.02,.02 do
- Frame.BackgroundColor3=Frame.BackgroundColor3:lerp(CurrentPlayerData[3],.2)
- Frame.BackgroundTransparency=1.5-i
- TLabel.TextStrokeTransparency=1.9-i
- TLabel.TextTransparency=1-i
- lrs:wait()
- end
- local cc=true
- local function Close()
- if (not cc) then return end
- --print'3'
- Frame:TweenPosition(ud(1,0,.8,Frame.Position.Y.Offset),'Out','Sine',3,true)
- for i = 0,1.015,.02 do
- --Frame.BackgroundColor3=Frame.BackgroundColor3:lerp(c3(0,0,0),.2)
- Frame.BackgroundTransparency=.5+i
- Shader1.BackgroundTransparency=.9+i
- Shader2.BackgroundTransparency=.8+i
- TLabel.TextStrokeTransparency=.9+i
- TLabel.TextTransparency=i
- lrs:wait()
- end
- val=true
- Frame:Destroy()
- for i,v in next, Notifications do
- if v[1]==Frame then
- table.remove(Notifications,i)
- end
- end
- Notifs=Notifs-1
- Functions:AdjustNotifPositions()
- end
- local ev
- ev=TLabel.MouseButton1Click:connect(function()
- --print'k'
- spawn(Close)
- wait()
- cc=false
- ev:disconnect()
- end)
- spawn(function()
- if cc then
- Effects:Type(TLabel, Text, 'In',.01)
- wait(ExitDelay*1.2)
- --print'k2'
- spawn(Close)
- wait()
- cc=false
- ev:disconnect()
- end
- end)
- return Frame, TLabel
- end
- function Functions:CreateLogin()
- local BFrame = Functions:MakeNewUi('Frame')
- BFrame.ZIndex=4
- BFrame.BackgroundTransparency=1
- BFrame.Size=ud(1,0,1,0)
- BFrame.Position = ud(0,0,0,0)
- BFrame.Parent=MainFrame
- local TransFrame = Functions:MakeNewUi('Frame')
- TransFrame.ZIndex=8
- TransFrame.BackgroundTransparency=1
- TransFrame.Parent=MainFrame
- local Start = Functions:MakeNewUi('TextButton')
- local txt='Welcome to SaviOS, '..Host.Name..'.'
- Start.Text=txt
- Start.Font=OS.Settings.Fonts.Header
- Start.TextColor3=CurrentPlayerData[4]
- Start.Position=ud(0,0,0,-18)
- Start.BackgroundTransparency=1
- Start.TextTransparency=1
- Start.Parent=BFrame
- local Sub = Functions:MakeNewUi('TextLabel')
- Sub.Parent=BFrame
- Sub.TextColor3=CurrentPlayerData[4]
- Sub.Text='Loading Decal and Sound Assets.'
- Sub.Position=ud(0,0,0,25-18)
- Sub.BackgroundTransparency=1
- Sub.TextTransparency=1
- Sub.ZIndex=6
- local Circ = Functions:MakeNewUi('ImageLabel')
- Circ.Image=Functions:Asset(502107146)
- Circ.Parent=BFrame
- Circ.ImageTransparency=0
- Circ.ImageColor3 = CurrentPlayerData[3]
- Circ.Size=ud(0,350,0,400)
- Circ.Position=Functions:CenterOffset(Circ,ud(0,0,0,0))
- Circ.ZIndex=5
- local con=false
- spawn(function()
- Effects:Type(Start, txt, 'In',.06)
- local nspd=.5
- repeat wait(nspd)
- --Start.Text=txt
- Circ:TweenSizeAndPosition(ud(0,450,0,500),ud(.5,-450/2,.5,-250),'In','Back',nspd,true)
- wait(nspd)
- Circ:TweenSizeAndPosition(ud(0,350,0,400),ud(.5,-350/2,.5,-200),'Out','Quint',nspd,true)
- --Start.Text=txt..'|'
- until con
- end)
- for i = 0,1.025,.025 do
- Start.TextTransparency = 1-i
- MainFrame.BackgroundTransparency = 1-i
- lrs:wait()
- end
- local function finish_Load()
- Particles=false
- Effects:Type(Start, txt, 'Out',.02)
- Start.Text=''
- Circ:TweenSizeAndPosition(ud(0,15,0,20),ud(.5,-15/2,.5,-10),'In','Quint',2,true)
- wait(2)
- Circ:TweenSizeAndPosition(ud(0,950,0,1000),ud(.5,-950/2,.5,-500),'In','Back',1,true)
- wait(.2)
- for i = 0,1.025,.025 do
- Sub.TextTransparency = i
- Circ.ImageTransparency=i
- lrs:wait()
- end
- Circ:Destroy()
- BFrame.Size = ud(0,400,0,210)
- BFrame.Position = Functions:Center(BFrame)
- spawn(function()
- for i = 0,20,.1 do
- MainFrame.BackgroundColor3 = MainFrame.BackgroundColor3:lerp(CurrentPlayerData[3],.1)
- lrs:wait()
- end
- end)
- Sub.Text='Assets['..(#OS.Backgrounds+#OS.Sounds)..'] Loaded.'
- delay(.5,function()
- txt='Click here to begin'
- Effects:Type(Start, txt, 'In',.05)
- delay(.6,function()
- Start.Text=txt
- end)
- end)
- for i = 0,1.025,.025 do
- Sub.TextTransparency = 1-i
- lrs:wait()
- end
- end
- local con2=false
- delay(1,function()
- for i = 0,1.025,.025 do
- Sub.TextTransparency = 1-i
- lrs:wait()
- end
- delay(2,function()
- local tbl1={};
- local tbl2={OS.Backgrounds,OS.Sounds,OS.DecalAssets}
- for _,__ in next, tbl2 do
- for i, Id in next, __ do
- table.insert(tbl1, Id)
- end
- end
- for i,v in next, tbl1 do lrs:wait() end
- con=true
- finish_Load()
- con2=true
- end)
- end)
- repeat lrs:wait() until con2
- Start.TextTransparency = 0
- --MainFrame.Transparency = 0
- local LoginScreen
- local sclick
- sclick=Start.MouseButton1Down:connect(function()
- Sub:TweenPosition(ud(0,0,1,50),'In','Quint',1,true)
- delay(1, function()
- LoginScreen(false)
- end)
- sclick:disconnect()
- end)
- function LoginScreen(NewFrame)
- OS['Login']=LoginScreen
- if NewFrame then
- BFrame = Functions:MakeNewUi('Frame')
- BFrame.ZIndex=4
- BFrame.BackgroundTransparency=1
- BFrame.Size = ud(0,400,0,210)
- BFrame.Position = Functions:Center(BFrame)
- BFrame.Parent=MainFrame
- end
- pcall(function()
- Sub:Destroy()
- for i = 0,1.025,.025 do
- Start.TextTransparency = i
- lrs:wait()
- end
- Start.Parent=nil
- end)
- local UserImage = Functions:MakeNewUi('ImageLabel')
- UserImage.Image=Functions:PlayerImage(Host)
- UserImage.Parent=BFrame
- UserImage.Size=ud(0,100,0,100)
- UserImage.ImageTransparency=1
- UserImage.Position=Functions:CenterOffset(UserImage,ud(0,0,-1,0))
- UserImage:TweenPosition(Functions:CenterOffset(UserImage,ud(0,0,0,-50),'Out','Back',1,true))
- UserImage.ZIndex=8
- local UserImgFrame = Functions:MakeNewUi('ImageLabel')
- UserImgFrame.Image=Functions:Asset(502107146)
- UserImgFrame.Parent=BFrame
- UserImgFrame.ImageTransparency=0
- --UserImgFrame.ImageColor3 = c3(Monitor.Color.r+.2,Monitor.Color.g+.2,Monitor.Color.b+.2)
- UserImgFrame.Size=ud(0,100,0,100)
- UserImgFrame.Position=Functions:CenterOffset(UserImgFrame,ud(0,0,-1,0))
- UserImgFrame:TweenPosition(Functions:CenterOffset(UserImgFrame,ud(0,0,0,-50),'Out','Back',1,true))
- local Username = Functions:MakeNewUi('TextLabel')
- Username.Text = Host.Name
- Username.Parent = BFrame
- Username.TextTransparency=.9
- Username.Position=ud(0,0,1,0)
- Username.ZIndex=9
- Username:TweenPosition(ud(0,0,0,15),'Out','Quint',1,true)
- local Password = Functions:MakeNewUi('TextButton')
- Password.TextTransparency=1
- Password.Parent=BFrame
- Password.Position=ud(0,0,1,0)
- Password.Font=OS.Settings.Fonts.Sub_Header
- Password.TextStrokeColor3 = Password.TextColor3
- Password.MouseEnter:connect(function()
- Password.TextStrokeTransparency=.9
- end)
- Password.MouseLeave:connect(function()
- Password.TextStrokeTransparency=1
- end)
- local canclick=false
- Password.MouseButton1Down:connect(function(x,y)
- if not canclick then
- return
- end
- canclick=false
- --Effects:Particles(x,y)
- local val = Functions:LoginScreenGui(ud(0,400,0,28),{loop=true,ui=Password},true)
- print('dun',val)
- local ss
- ss=function(pp)
- num=0
- for i,v in next,pp:children() do
- num=num+1
- pcall(function()
- spawn(function()
- for i = 0,1.025,.025 do
- if v:IsA'TextButton' or v:IsA'TextBox' or v:IsA'TextLabel' then
- v.TextTransparency = i
- lrs:wait()
- end
- end
- end)
- end)
- pcall(function()
- spawn(function()
- for i = 0,1.025,.025 do
- if v:IsA'ImageLabel' then
- v.ImageTransparency = i
- lrs:wait()
- end
- end
- end)
- end)
- pcall(function()
- v:TweenPosition(ud(2,v.Position.X.Offset,v.Position.Y.Scale,v.Position.Y.Offset),'In','Sine',1,true)
- end)
- wait(.1)
- ss(v)
- end
- return num
- end
- ss(BFrame)
- wait((num+1.5)-(.4*num))
- BFrame:Destroy()
- Functions:MakeHomeScreen()
- return {}
- --canclick=true
- --Gui:Destroy()
- end)
- delay(.1,function()
- Password:TweenPosition(ud(0,0,0,45),'Out','Quint',1,true)
- end)
- spawn(function()
- Effects:Type(Password, 'Enter your Password', 'In',.03)
- canclick=true
- end)
- wait(.3)
- spawn(function()
- Effects:Underline(Username, 20, 70, 2, CurrentPlayerData[4], true)
- end)
- for i = 0,1.025,.01 do
- --UserName.TextTransparency = 1-i
- Password.TextTransparency = 1-i
- Username.TextTransparency = 1-i
- UserImage.ImageTransparency = 1-i
- lrs:wait()
- end
- Functions:IfRegistered(Host.Name, function(bool)
- if bool==true then
- for i = 0,20 do
- UserImgFrame.ImageColor3 = UserImgFrame.ImageColor3:lerp(c3(.25,1,.25),.1)
- lrs:wait()
- end
- elseif bool and not Official then
- for i = 0,20 do
- UserImgFrame.ImageColor3 = UserImgFrame.ImageColor3:lerp(c3(1,.25,.25),.1)
- lrs:wait()
- end
- else
- for i = 0,20 do
- UserImgFrame.ImageColor3 = UserImgFrame.ImageColor3:lerp(c3(.4,0,0),.1)
- lrs:wait()
- end
- end
- end)
- end
- end
- function Functions:Lerp(Speed)
- if Monitor and Monitor.Parent~=nil then
- ypcall(function()
- Monitor.CFrame = Monitor.CFrame:lerp(
- Host.Character.HumanoidRootPart.CFrame *
- CFrame.new(0,5.5,-6.5) *
- CFrame.Angles(-math.rad(12),0,0)
- , Speed)
- end)
- end
- end
- function Functions:Boot()
- script:ClearAllChildren()
- Functions:MakeMonitor()
- G = Instance.new('SurfaceGui', Monitor)
- G.Adornee = Monitor
- G.Face = Enum.NormalId.Back
- MainFrame = Functions:MakeNewUi('Frame')
- MainFrame.ZIndex=1
- MainFrame.BackgroundTransparency=.3
- MainFrame.BackgroundColor3 = CurrentPlayerData[3]
- MainFrame.Parent=G
- spawn(function()
- --wait(2)
- for i = 0,20,.1 do
- MainFrame.BackgroundColor3 = MainFrame.BackgroundColor3:lerp(CurrentPlayerData[4],.1)
- lrs:wait()
- end
- end)
- local MouseFrame = Instance.new('TextLabel', MainFrame)
- MouseFrame.Size = ud(0,5,0,5)
- MouseFrame.BackgroundTransparency = 1
- MouseFrame.Text = ''
- MouseFrame.ZIndex = 9
- MouseFrame.BackgroundColor3=c3(-1,-1,-1)
- MainFrame.MouseMoved:connect(function(x,y)
- if MouseFrame.Parent ~= nil then
- MouseFrame.Position = ud(0,x+3,0,y+6)
- end
- end)
- --200182847
- local MouseInner = Instance.new('ImageLabel', MouseFrame)
- OS.Assets.Mouse=MouseFrame
- MouseInner.Size = ud(0,5,0,5)
- MouseInner.Position = ud(0,-5,0,-7)
- MouseInner.ImageColor3 = CurrentPlayerData[3]
- MouseInner.Image = Functions:Asset(284205403)
- MouseInner.Name = 'AFriendlyMouse1'
- MouseInner.BackgroundTransparency = 1
- MouseInner.ZIndex = 10
- local MouseOuter = Instance.new('ImageLabel', MouseFrame)
- MouseOuter.Size = ud(0,7,0,7)
- MouseOuter.Position = ud(0,-6,0,-8)
- MouseOuter.ImageColor3 = CurrentPlayerData[4]
- MouseOuter.Image = Functions:Asset(284205403)
- MouseOuter.Name = 'AFriendlyMouse2'
- MouseOuter.BackgroundTransparency = 1
- MouseOuter.ZIndex = 9
- local sx,sy=90,100
- local mouseactive=true
- PlayerMouse.Button1Down:connect(function()
- OS.MouseDown = true
- if not mouseactive then return end
- local mus=Functions:Sound(341225236)
- mus.Pitch=3
- mus:Play()
- end)
- PlayerMouse.Button1Up:connect(function()
- OS.MouseDown = false
- if not mouseactive then return end
- local mds=Functions:Sound(341225236)
- mds.Pitch=2.5
- mds:Play()
- local RelativeUi=MouseFrame
- local x,y=RelativeUi.Position.X.Offset,RelativeUi.Position.Y.Offset
- local Circ = Functions:MakeNewUi('ImageLabel')
- Circ.Image=Functions:Asset(284205403)
- Circ.Parent=MainFrame
- Circ.ImageTransparency=0
- Circ.ImageColor3 = CurrentPlayerData[4]
- Circ.Size=ud(0,5,0,5)
- local backx,backy=5,6
- Circ.Position=ud(0,x-backx,0,y-backy)
- Circ.ZIndex=10
- spawn(function()
- Circ:TweenSizeAndPosition(ud(0,sx,0,sy),ud(0,(x-backx)-(sx/2),0,(y-backy)-(sy/2)),'Out','Sine',1,true)
- for i = 0,1.05,.05 do
- Circ.ImageTransparency=i
- lrs:wait()
- end
- Circ:Destroy()
- end)
- end)
- MainFrame.MouseEnter:connect(function(x,y)
- mouseactive=true
- game:service'UserInputService'.MouseIconEnabled=false
- OS.Functions:HideChar()
- end)
- MainFrame.MouseLeave:connect(function(x,y)
- mouseactive=false
- game:service'UserInputService'.MouseIconEnabled=true
- OS.Functions:ShowChar()
- end)
- --Functions:CreateLogin()
- Functions:MakeHomeScreen()
- end
- lrs:connect(function()
- Functions:Lerp(.2)
- end)
- Character.Humanoid.Died:connect(function()
- Monitor.Parent:Destroy()
- game:service'UserInputService'.MouseIconEnabled=true
- script:Destroy()
- end)
- Host.Chatted:connect(function(msg)
- if msg=='g/r' then
- Monitor:Destroy()
- game:service'UserInputService'.MouseIconEnabled=true
- script:Destroy()
- end
- end)
- local plrz=game:service'Players'
- plrz.PlayerAdded:connect(function(Plr)
- Functions:PlayerImgNotification(Plr, 'join')
- end)
- plrz.PlayerRemoving:connect(function(Plr)
- Functions:PlayerImgNotification(Plr, 'rmv')
- end)
- Functions:Boot()
- Host.Chatted:connect(function(msg)
- if msg:lower()=='!reboot' then
- Functions:Boot()
- elseif msg:lower():sub(0,#'!background') == '!background' then
- local id = msg:lower():sub(#'!background'+2)
- OS.UIs['Background'][1].Image=Functions:Asset(tonumber(id))
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement