• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    PlaySound

    PlaySound is a built-in component for playing sound effects in your scene. This component can be found in the built-in components section of the Assets Catalog and attached to any GameObject. Use it to play sound effects at specific moments or in response to events.

    Methods

    Play

    ClientOnly
    NoSelfParameter

    Plays the sound effect associated with this component.

    --!SerializedField
    local SoundObject : GameObject = nil
    local soundPlayer = SoundObject:GetComponent(PlaySound)
    soundPlayer.Play()
    

    Returns

    void

    Updated 13 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.