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.
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)
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.
2 comments
Don't make requests here.
Try making a script by yourself first, if it doesn't work, then put it into your post and people can try help.