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.
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)
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()