Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- part1 = Instance.new("Part", owner.Character)
- part1.Massless = true
- part1.BottomSurface = Enum.SurfaceType.Smooth
- part1.TopSurface = Enum.SurfaceType.Smooth
- part1.Name = "partlol"
- wait()
- music = Instance.new("Sound", owner.Character.Head)
- music.SoundId = "rbxassetid://"
- music.Volume = 1
- music.Looped = true
- music:Play()
- music.Name = "Themusic"
- Weld4 = Instance.new("Weld", owner.Character.Head)
- Weld4.Part0 = part1
- Weld4.Part1 = owner.Character.Head
- Weld4.C0 = CFrame.new(0,-5,0)
- NLS([[
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local sizeevent = ReplicatedStorage:WaitForChild("sizeEvent")
- local part1 = owner.Character:WaitForChild("partlol")
- local music = owner.Character.Head:WaitForChild("Themusic")
- local MaxLoudness = 175
- while true do
- local Amplitude = math.clamp(music.PlaybackLoudness / MaxLoudness, 1, 10)
- part1.Size = Vector3.new(Amplitude, Amplitude, Amplitude)
- part1.Color = Color3.fromRGB(music.PlaybackLoudness/2.45,0,225)
- sizeevent:FireServer(part1.Size, part1.Color)
- task.wait()
- end
- ]],owner.PlayerGui)
- local billboard = Instance.new("BillboardGui", owner.character.Head)
- billboard.Adornee = owner.character.Head
- billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
- billboard.Size = UDim2.new(2,0,1,0)
- billboard.Name = "chat"
- local text = Instance.new("TextBox", billboard)
- text.BackgroundTransparency = 1
- text.TextStrokeTransparency = 0
- text.TextSize = 25
- text.TextStrokeColor3 = Color3.fromRGB(0,0,0)
- text.Size = billboard.Size
- text.Font = "Arcade"
- text.MultiLine = true
- text.Text = "Now Playing: Nothing"
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local sizeevent = Instance.new("RemoteEvent", ReplicatedStorage)
- sizeevent.Name = "sizeEvent"
- local function sizer(player, size, color)
- part1.Color = color
- part1.Size = size
- text.TextColor3 = color
- end
- sizeevent.OnServerEvent:Connect(sizer)
- owner.Chatted:connect(function(message)
- if message:sub(1,6) == "!Play " then
- music:Stop()
- music.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
- music:Play()
- task.wait()
- text.Text = "Now Playing: "
- ..game:GetService("MarketplaceService"):GetProductInfo(tonumber(message:sub(6))).Name
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement