Today we’re going to learn how to add a sound to an object or play a sound when a player enters your world.
Here is a video to show you how you do that script and under the video, there are the steps that you can do if you are more a reader than a visual person.
Here is a Spanish version for you Spanish speakersÂ
Agregar sonido a un objeto o cuando un jugador ingresa al mundo en Horizon Worlds
Here are the steps that you need to do to play a sound when a player enters the world.
First, open a script gizmo
Remove, “when the world is started ”
Go under that “events tab”
fine “player events”
Then drag “When world is entered by player”
Go back to “action tab”
Under “sounds”
Drag “play sounds”
You connect the script to the sound that you want to play when a player enters the world. And there you go it should work now
Here are the steps to use when a player enters a trigger play sound.
First, drag a “trigger and a script gizmo” out of the menu
Second, connect the “script to the trigger”
open a script gizmo
Remove, “when the world is started ”
Go under that “events tab”
fine “player events”
Then drag “When world is entered by player”
Go back to “action tab”
Under “sounds”
Drag “play sounds”
Go back to the “variables” tab
Make a variable called “sounds” the type should be an “object”
Replaced the pill that says “self” for the variable that you made called “sounds”
After that, you open the trigger properties and connect your “sounds” where it says “sounds”