# Sound(ロブロックス クラス) > 音を鳴らす部品です。パーツの中に入れると、その場所から音が聞こえます。 - URL:https://roblox.minecraft-okinawa.com/reference/classes/Sound/ - 公式:https://create.roblox.com/docs/reference/engine/classes/Sound - 受け継いでいるクラス:Instance ## プロパティ - `Sound.AudioContent: Content`:A reference to an audio asset. - `Sound.IsLoaded: boolean`:This property is true when the Sound has loaded from Roblox servers and is ready to play. - `Sound.Looped: boolean`:trueにすると、くりかえし鳴らします。 - `Sound.LoopRegion: NumberRange`:A range denoting a desired loop start and loop end within the Class.Sound.PlaybackRegion|PlaybackRegion, in seconds. - `Sound.PlaybackLoudness: double`:A number between 0 and 1000 indicating how loud the Sound is currently playing back. - `Sound.PlaybackRegion: NumberRange`:A range denoting a desired start and stop time within the Class.Sound.TimeLength|TimeLength, in seconds. - `Sound.PlaybackRegionsEnabled: boolean`:If true, this property gives your Sound access to the Class.Sound.PlaybackRegion|PlaybackRegion and Class.Sound.LoopRegion|LoopRegion properties which can more-accurately control its playback. - `Sound.PlaybackSpeed: float`:Determines the speed at which a Sound will play, with higher values causing the sound to play faster and at a higher pitch. - `Sound.Playing: boolean`:Indicates whether the Sound is currently playing. - `Sound.PlayOnRemove: boolean`:When true, the Sound will play when it is removed from the experience. - `Sound.RollOffMaxDistance: float`:The maximum distance, in studs, a client's listener can be from the sound's origin and still hear it. Only applies to Class.Sound|Sounds parented to a BasePart or Attachment. - `Sound.RollOffMinDistance: float`:The minimum distance, in studs, at which a Sound which is parented to a BasePart or Attachment will begin to attenuate (decrease in volume). - `Sound.RollOffMode: RollOffMode`:Controls how the volume of a Sound which is parented to a BasePart or Attachment attenuates (fades out) as the distance between the listener and parent changes. - `Sound.SoundGroup: SoundGroup`:The SoundGroup that is linked to this Sound. - `Sound.SoundId: ContentId`:鳴らす音のID(rbxassetid://番号)。 - `Sound.TimeLength: double`:The length of the Sound in seconds. - `Sound.TimePosition: double`:Progress of the Sound in seconds. Can be changed to move the playback position of the Sound both before and during playback. - `Sound.Volume: float`:音量。 ## メソッド - `Sound:Pause(): ()`:Pauses playback of the Sound if it is playing. - `Sound:Play(): ()`:音を鳴らします。 - `Sound:Resume(): ()`:Resumes the Sound. - `Sound:Stop(): ()`:音を止めます。 ## イベント - `Sound.DidLoop(soundId: string, numOfTimesLooped: int)`:Fires whenever the Sound loops. - `Sound.Ended(soundId: string)`:音が鳴り終わったときに発生するイベントです。 - `Sound.Loaded(soundId: string)`:Fires when the Sound is loaded. - `Sound.Paused(soundId: string)`:Fires whenever the Sound is paused using Class.Sound:Pause()|Pause(). - `Sound.Played(soundId: string)`:Fires whenever the Sound is played using Class.Sound:Play()|Play(). - `Sound.Resumed(soundId: string)`:Fires when the Sound is resumed using Class.Sound:Resume()|Resume(). - `Sound.Stopped(soundId: string)`:Fires when the Sound is stopped through using Class.Sound:Stop()|Stop(). 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)