i've tried
function onPlayerEntered
Game.Workspace.Sound.Play()
wait(100)
Game.Workspace.Sound.Stop()
But it didn't work.
function onPlayerEntered() Game.Workspace.Sound:Play() wait(100) Game.Workspace.Sound:Stop() end game.Players.PlayerAdded:connect(onPlayerEntered)
You had a few errors. I fixed them.