Advertisement
Prephy

sound test

Dec 4th, 2020 (edited)
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. --this is a localscript so only you see it
  2.  
  3. RunService = game:GetService("RunService")
  4. local Audio = Instance.new("Sound", owner.Character.Head)
  5. Audio.SoundId="http://www.roblox.com/asset/?id=5619789556"
  6. Audio.Volume=5
  7. Audio:Play()
  8. local light = Instance.new("PointLight", owner.Character.Head)
  9. RunService.RenderStepped:connect(function()
  10.  
  11. light.Color = Color3.fromRGB(Audio.PlaybackLoudness/1,Audio.PlaybackLoudness/1,Audio.PlaybackLoudness/1)
  12.  
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement