Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.potatoes_ohgawd
- script.Parent = player
- sound = Instance.new("Sound",player.Character)
- sound.Volume = 1
- lo = Instance.new("Part",player.Character)
- lo.Size = Vector3.new(1,1,1)
- lo.Anchored = true
- lo.BrickColor = BrickColor.new(Color3.new(255,255,255))
- lo.TopSurface= "Smooth"
- lo.BottomSurface = "Smooth"
- lo.CanCollide = false
- newSound = coroutine.wrap(function(id)
- li = "http://www.roblox.com/asset/?id="..id
- Game:GetService("ContentProvider"):Preload(li)
- sound.SoundId = li
- sound:Play()
- end)
- game:GetService("RunService").Heartbeat:connect(function()
- lo.CFrame = CFrame.new(player.Character.Head.Position) + Vector3.new(0,5,0)
- lo.CFrame = lo.CFrame * CFrame.Angles(0,0,math.sin(1))
- end)
- updateVis = coroutine.wrap(function()
- while sound.IsPlaying do
- lo.Size = Vector3.new(sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01,sound.PlaybackLoudness*.01)
- wait()
- end
- lo.Side = Vector3.new(0,0,0)
- end)
- newSound("2087798404")
- updateVis()
- player.Chatted:connect(function(m)
- if m:lower():match("#play ") then
- newSound(m:sub(7))
- updateVis()
- elseif m:lower():match("#loudness") then
- print("Loudness = "..sound.PlaybackLoudness)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement