Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --a local musicblock.
- --do /music ID
- --dec'd by blyat.
- local Game = game
- local Player = Game:GetService("Players").LocalPlayer
- local PlayerChar = Player.Character
- local Http = Game:GetService("HttpService")
- Game:GetService("Lighting").TimeOfDay = "0:00:00"
- local P = Instance.new("Part", workspace)
- P.Anchored = true
- P.Locked = true
- P.Transparency = 0.5
- P.Size = Vector3.new(2, 2, 2)
- P.CanCollide = false
- P.Material = Enum.Material.Neon
- P.Name = "DiscoPart"
- local Thing = P
- local Pon = Instance.new("PointLight", P)
- Pon.Range = 8
- Pon.Brightness = 1
- Game:GetService("RunService").RenderStepped:connect(function()
- Pon.Color = Color3.new(math.sin(x / (1.5 * a)) ^ 2, math.sin(x / (2 * a)) ^ 2, math.sin(x / (2.5 * a)) ^ 2)
- x = x + 3
- end
- )
- p = P
- a = 16
- x = 0
- CreateText = function(Text)
- if P:FindFirstChild("BillboardGui") then
- game.Debris:AddItem(P.BillboardGui, 0)
- end
- local Bill = Instance.new("BillboardGui", P)
- Bill.Size = UDim2.new(0, 200, 0, 50)
- Bill.Adornee = P
- Bill.StudsOffset = Vector3.new(0, 0, 0)
- local Tx = Instance.new("TextLabel", Bill)
- Tx.Size = UDim2.new(0, 200, 0, 50)
- Tx.BackgroundTransparency = 1
- Tx.TextStrokeTransparency = 0.5
- Tx.TextStrokeColor3 = Color3.new(0, 0, 0)
- Tx.Font = Enum.Font.ArialBold
- Tx.FontSize = Enum.FontSize.Size18
- Tx.Text = Text
- zx = Tx
- xc = 16
- cv = 0
- Game:GetService("RunService").RenderStepped:connect(function()
- zx.TextColor3 = Color3.new(math.sin(cv / (1.5 * xc)) ^ 2, math.sin(cv / (2 * xc)) ^ 2, math.sin(cv / (2.5 * xc)) ^ 2)
- cv = cv + 3
- end
- )
- end
- Game:GetService("RunService").RenderStepped:connect(function()
- p.BrickColor = BrickColor.new(math.sin(x / (1.5 * a)) ^ 2, math.sin(x / (2 * a)) ^ 2, math.sin(x / (2.5 * a)) ^ 2)
- x = x + 3
- end
- )
- Player.Chatted:connect(function(Msg)
- if Msg:lower():sub(1, 7) == "/music " then
- if P:FindFirstChild("Sound") then
- game.Debris:AddItem(P.Sound, 0)
- end
- local S = Instance.new("Sound", P)
- S.SoundId = "https://www.roblox.com/asset/?id=" .. Msg:sub(8, #Msg)
- S.Looped = true
- S.Volume = 10
- S.Pitch = 1
- S:Play()
- local Asset = game:GetService("MarketplaceService"):GetProductInfo(Msg:sub(8))
- CreateText("[ Now Playing ]; " .. Asset.Name .. " [ " .. Msg:sub(8, #Msg) .. " ] [ MUSIC BLOX MADE BY BADLUKE1 ]")
- end
- end
- )
- for i = 1, math.huge, 0.1 do
- wait()
- P.CFrame = CFrame.new(PlayerChar.Torso.Position) * CFrame.fromEulerAnglesXYZ(math.sin(i), math.sin(i), math.sin(i)) + Vector3.new(0, 0, -6)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement