Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Replace this with your Sound asset ID
- local soundAssetId = 14833884734
- -- Create a Sound object
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://" .. soundAssetId
- sound.Parent = game.Workspace -- You can change the parent to a different object if needed
- -- Play the sound
- sound:Play()
- -- Optional: You can adjust sound properties like volume, pitch, and looping
- sound.Volume = 0.5
- sound.Pitch = 1
- sound.Looped = true -- Set to false if you don't want it to loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement