Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Sound [closed]

Asked by 10 years ago

I am making a nature game, and i want to out a river and other things, but idk how to make it sound realistic, please help me. Thank you

0
Looks like it doesn't even work for me.... Intpixel 0 — 10y

Locked by JesseSong

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
2
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago

Is your problem with finding the song to play, or with adding the sound to the game? The catalog has a wide variety of user-uploaded sounds to choose from.

Once you have the sound you want, you'll need to write a script that creates the Sound object and plays it. Since this is for a nature game, I assume you want the sound to loop.

Add a new Script to the game, and paste it inside a part near the river:

local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id=138161364"
sound.Looped = true
sound.Parent = script.Parent
sound:Play()

The script creates a sound, sets it up to loop, and then plays the sound. Since the sound is inside a part, the loudness will be based on how close players are to the part that the sound is in.

Ad
Log in to vote
1
Answered by 10 years ago

Also when Merely does: http://www.roblox.com/asset?id=138161364

the ID number at the end is the ItemId of the Sound in the catalog.