Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I play a sound to all players when a server owner joins? (Solved)

Hello again,

Can someone help me make a script that plays a custom sound to all players when a server owner or specific player joins a server and only plays the sound once? Its kinda one of those "grand entrance" sorta things.

2 comments

0

Don't make requests here.

0

Try making a script by yourself first, if it doesn't work, then put it into your post and people can try help.

2 answers

✓ Accepted answer

Plays for everyone when the owner joins the server

local owner = "ctrlboy"
local music = game.Workspace.OwnerMusic
local g = 10 -- Make this 1 second longer than the audio's length is.
game.Players.PlayerAdded:connect(function(player)
if player.Name == owner then
music:Play()
wait(g)
music:Stop()
end
end)

1 comment

0

Awesome it worked, thanks :D

I'm not sure how to do it when the owner joins, but to make it play to all for the whole server just do:

Game.Workspace.Sound:Play()

This discussion is preserved as it was. New answers, comments, and votes are closed.