Function of Sound
sound.play
Plays a sound by name to everyone in the room; volume above 1 carries further, pitch 0.5..2.0.
sound.play(name: string, opts: { at: Vec3?, volume: number?, pitch: number?, category: string?, }?)
Parameters
namestringopts{ at: Vec3?, volume: number?, pitch: number?, category: string?, }Used in
sound.play("entity.experience_orb.pickup", { at = at, pitch = 1.2 })Guide: Coin rushsound.play("entity.experience_orb.pickup", { at = at, pitch = 1.2 })Guide: Coin rushroom.sound.play("block.note_block.bell", { at = pad.at })Guide: Parkour, a room eachroom.sound.play("block.note_block.bell", { at = pad.at })Guide: Parkour, a room eachsound.play("block.note_block.hat", { at = player.at, pitch = 1.5 })Scoreboard with a buttonif powered then sound.play("block.note_block.pling", { at = block.at }) endCustom blockssound.play(name, { at = spawn, volume = 1, pitch = 1, category = "record" })Sound| | `sound.play` | `sound.stream` |Sound