Guest User

Music script

a guest
Nov 2nd, 2017
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. music = Instance.new("Sound", game.Players.LocalPlayer.Character)
  2. music.SoundId = "rbxassetid://402822162"
  3. music.Looped = false --or false depending if you want it to loop or not
  4. music.Pitch = 1 --If you have a bypassed sound, change the pitch
  5. music.Volume = 1 --Depends on the amount of volume you want
  6. music:Play()
  7. local mesh = game.Players.LocalPlayer.Character.Head.Mesh
  8. local sound = game.Players.LocalPlayer.Character.Head.Mesh
  9. music:Play()
  10. game:GetService("RunService").RenderStepped:connect(function()
  11. local loudness = music.PlaybackLoudness
  12. mesh.Scale = Vector3.new(loudness, loudness, loudness) * 0.01
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment