Still have questions? Join our Discord server and get real time help.
0

# How to play a sound when a user joins?

Hi! I am trying to make a simple UI appear on player join, when it shows, I want a sound to play, I don't know how complicated it would be to make it so only the player that has the GUI hears the sound so I think I need to play the sound in a different Local Script when the player joins I believe. If you could help me that'd be amazing. As for my UI code to make it show on player join, incase you need it, here it is:

    local gui = game.Lighting.BALoader -- the name of your gui
player:WaitForChild("PlayerGui")
gui:Clone().Parent = player.PlayerGui
end)

0
Why is the GUI in Lighting? User#19524 88 — 9mo
0
I got the script from another question on here and it said to put it in Lighting :/ Igotthemoney2212 -3 — 9mo
0
Don't copy scripts, and that script taught bad practices. User#19524 88 — 9mo
0
Ok.. Igotthemoney2212 -3 — 9mo