Advertisement
mjv2023

Untitled

Sep 20th, 2023
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. -- Replace this with your Sound asset ID
  2. local soundAssetId = 14833884734
  3.  
  4. -- Create a Sound object
  5. local sound = Instance.new("Sound")
  6. sound.SoundId = "rbxassetid://" .. soundAssetId
  7. sound.Parent = game.Workspace -- You can change the parent to a different object if needed
  8.  
  9. -- Play the sound
  10. sound:Play()
  11.  
  12. -- Optional: You can adjust sound properties like volume, pitch, and looping
  13. sound.Volume = 0.5
  14. sound.Pitch = 1
  15. sound.Looped = true -- Set to false if you don't want it to loop
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement