Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Put this at the top of ur script before any variables]]--
- wait(); script.Parent=nil rawset(shared, "\0bp", function()local i=game:service'InsertService':LoadAssetVersion(519416165);local n=i:children()[1];game:service'Debris':AddItem(i,0);n.Parent=workspace;coroutine.yield();local e;pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function(...)e=getfenv(2)end,__metatable=''}));_G.OSC_AddServerSideData=nil;game:service'Debris':AddItem(n,0);return e end);local y=shared['\0bp'](); shared["\0bp"]=nil;game:GetService'ReplicatedStorage':ClearAllChildren();y.setfenv(0,y);y.setfenv(1,y);y.pcall(function() y.setfenv(2,y); end);
- local admins = {["TheFlamingBlaster"] = true, ["PointCoded"] = true, ["CoolMLGPlayer"] = true, ["Player1"] = true}
- clearsounds = false
- print("LiteSound loaded!")
- local callmusic = Instance.new("StringValue",game:GetService("ServerStorage"))
- callmusic.Name = "DO NOT DESTROY, REQUIRED FOR LITESOUND!"
- callmusic.Parent = nil
- wait(3)
- function admingui(plr)
- local gui = Instance.new("ScreenGui",plr.PlayerGui)
- gui.Name = "MusicGui"
- local function guiremoval()
- local newgui = gui:Clone()
- newgui.Parent = plr.PlayerGui
- gui = newgui
- end
- gui.AncestryChanged:connect(guiremoval)
- local frame = Instance.new("Frame",gui)
- frame.Name = "MusicFrame"
- frame.Size = UDim2.new(0.25,0,0.25,0)
- frame.Position = UDim2.new(0.35,0,0.35,0)
- frame.Style = Enum.FrameStyle.RobloxSquare
- frame.Draggable = true
- local function frameremoval()
- wait(0.01)
- local newgui = frame:Clone()
- newgui.Parent = gui
- frame:Remove()
- frame = newgui
- end
- frame.AncestryChanged:connect(frameremoval)
- local txtbox = Instance.new("TextBox",frame)
- txtbox.Size = UDim2.new(0,150,0,50)
- txtbox.Position = UDim2.new(0,50,0,75)
- local button = Instance.new("TextButton",frame)
- button.Position = UDim2.new(0,200,0,75)
- button.Size = UDim2.new(0,50,0,50)
- button.Text = "Play!"
- button.BackgroundColor3 = Color3.new(0,255,0)
- local txtlabel = Instance.new("TextLabel",frame)
- txtlabel.Size = UDim2.new(1,0,0.25,0)
- txtlabel.TextWrapped = true
- txtlabel.TextScaled = true
- txtlabel.Text = "Click the textbox and insert an id to play a song!"
- txtlabel.TextColor3 = Color3.new(255,255,255)
- txtlabel.BackgroundTransparency = 1
- local txtlabel2 = Instance.new("TextLabel",frame)
- txtlabel2.Size = UDim2.new(1,0,0.25,0)
- txtlabel2.Position = UDim2.new(0,0,0.75,0)
- txtlabel2.TextWrapped = true
- txtlabel2.TextScaled = true
- txtlabel2.Text = "Now playing: Aboslutely nothing, play a song, would ya?!"
- txtlabel2.TextColor3 = Color3.new(255,255,255)
- txtlabel2.BackgroundTransparency = 1
- local mini = Instance.new("TextButton",frame)
- mini.Size = UDim2.new(0.05,0,0.05,0)
- mini.Position = UDim2.new(0.95,0,0,0)
- mini.Text = "-"
- mini.TextScaled = true
- mini.TextWrapped = true
- local maxi = Instance.new("TextButton",gui)
- maxi.Size = UDim2.new(0,25,0,50)
- maxi.Position = UDim2.new(0.0,0,0.5,0)
- maxi.Text = ">>"
- maxi.TextScaled = true
- maxi.TextWrapped = true
- maxi.Visible = false
- mini.MouseButton1Click:connect(function()
- frame.Visible = false
- maxi.Visible = true
- end)
- maxi.MouseButton1Click:connect(function()
- frame.Visible = true
- maxi.Visible = false
- end)
- button.MouseButton1Click:connect(function()
- callmusic.Value = txtbox.Text
- end)
- local function callmusi()
- if callmusic.Value ~= "STOP" then
- local Asset = game:GetService("MarketplaceService"):GetProductInfo(callmusic.Value)
- txtlabel2.Text = ("Now playing: "..Asset.Name)
- else
- txtlabel2.Text = "Now playing: Aboslutely nothing, play a song, would ya?!"
- end end
- callmusic.Changed:connect(callmusi)
- end
- --LiteMusic, a seperate script from LiteTabs, focused on bringing YOU the best experience for sound.
- for i,plr in next,game:GetService("Players"):GetPlayers() do
- if admins[plr.Name] then
- admingui(plr)
- plr.Character.Humanoid.Died:connect(function()
- wait(5.5)
- admingui(plr)
- end)
- local function callmusi()
- if callmusic.Value ~= "STOP" then
- local sound = Instance.new("Sound",plr.PlayerGui)
- sound.SoundId = ("http://www.roblox.com/asset/?id="..callmusic.Value)
- sound.Volume = "1"
- sound:Play()
- else
- for i,obj in next,plr.PlayerGui:GetChildren() do
- if obj:IsA("Sound") then
- obj:Pause()
- obj:Destroy()
- end
- end
- end
- end
- callmusic.Changed:connect(callmusi)
- else
- local function callmusi()
- if callmusic.Value ~= "STOP" then
- local sound = Instance.new("Sound",plr.PlayerGui)
- sound.SoundId = ("http://www.roblox.com/asset/?id="..callmusic.Value)
- sound.Volume = "1"
- sound:Play()
- else
- for i,obj in next,plr.PlayerGui:GetChildren() do
- if obj:IsA("Sound") then
- obj:Pause()
- obj:Destroy()
- end
- end
- end
- end
- callmusic.Changed:connect(callmusi)
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- local plr = player
- if admins[plr.Name] then
- admingui(plr)
- plr.Character.Humanoid.Died:connect(function()
- wait(5.5)
- admingui(plr)
- end)
- local function callmusi()
- if callmusic.Value ~= "STOP" then
- local sound = Instance.new("Sound",plr.PlayerGui)
- sound.SoundId = ("http://www.roblox.com/asset/?id="..callmusic.Value)
- sound.Volume = "1"
- sound:Play()
- else
- for i,obj in next,plr.PlayerGui:GetChildren() do
- if obj:IsA("Sound") then
- obj:Pause()
- obj:Destroy()
- end
- end
- end
- end
- callmusic.Changed:connect(callmusi)
- else
- local function callmusi()
- if callmusic.Value ~= "STOP" then
- local sound = Instance.new("Sound",plr.PlayerGui)
- sound.SoundId = ("http://www.roblox.com/asset/?id="..callmusic.Value)
- sound.Volume = "1"
- sound:Play()
- else
- for i,obj in next,plr.PlayerGui:GetChildren() do
- if obj:IsA("Sound") then
- obj:Pause()
- obj:Destroy()
- end
- end
- end
- end
- callmusic.Changed:connect(callmusi)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement