Advertisement
SebTDZ

Untitled

Jul 18th, 2019
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. bar = Instance.new("Part",script)
  2. bar.Size = Vector3.new(0,10,0)
  3. bar.Anchored = true
  4.  
  5. local sound = Instance.new("Sound", script)
  6. sound.SoundId = "rbxassetid://301964312"
  7. sound.Looped = true
  8. sound:Play()
  9.  
  10. local maxLoudness = 30
  11.  
  12. while true do
  13. print(sound.PlaybackLoudness)
  14.     bar.Position = Vector3.new(1,sound.PlaybackLoudness/10,1)
  15.     wait(0.05)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement