foolskarp
(foolskarp)
September 15, 2020, 1:35am
#1
Tryna make sort of a welcoming/intro sound effect. You join the game, the game plays a sound that only YOU can hear. I’m not really asking for an entire script, you can just tell me the stuff I need to learn in order to make the script, but if you do prefer leaving a script, thats fine.
-Thank you!
2 Likes
Just put a sound into the StarterGui
and set Playing
to true
2 Likes
foolskarp
(foolskarp)
September 15, 2020, 1:41am
#4
or maybe my studios wierd…
you can have a normal script like this:
game.Players.PlayerAdded:Connect(function()
end)
and have the sound anywhere you want, then change the script like this:
local sound = game.SoundService.Added
game.Players.PlayerAdded:Connect(function()
sound:Play()
end)
Use a PlayerAdded event in a local script and play the sound
You can have your sound in workspace or ect.
foolskarp
(foolskarp)
September 15, 2020, 1:43am
#7
sorry im new to scripting, where do i put the script?
1 Like
it can be anywhere, but if you need the location, it’d be more preferable to have it in serverscriptservice.
1 Like
foolskarp
(foolskarp)
September 15, 2020, 1:47am
#9
also, sorry for asking alot of questions, but, i can put the sound anywhere, right? and what does the game.SoundService.Added thingy do…
1 Like
its just and example location. Change it to the location of the sound you have.
foolskarp
(foolskarp)
September 15, 2020, 1:49am
#11
still didnt work, i have my sound in soundservice, and changed the var to sound = game.SoundService.Sound
is the sound’s name “sound” and are there multiple sounds named “sound”?
are there any errors in the output?
then it seems the sound you are trying to use (the id of a sound) is not a song or is taken down.
foolskarp
(foolskarp)
September 15, 2020, 1:56am
#17
ohhhh maybe thats it bc i just uploaded the sound and its prbly stuill getting moderated
yeah, you will have to wait a bit for it to get moderated if you have any problems from there, reply.
2 Likes