I’m trying to make it so when a player joins, the windows 95 startup sound effect plays.
This is a local script in StarterScriptService:
local Players = game:GetService("Players")
local function Startup()
game.SoundService.StartupSound:Play()
end
local function onPlayerAdded(player)
if player.PlayerAdded then
Startup()
end
end
Your code is not working because you aren’t running your functions, and your indexing .PlayerAdded incorrectly and not in the right instance. The code above should work.
Wait I worded badly cause I only got 4 hours of sleep. I want it the sound to be only heard to the player who joined the server; sorry for the confusion.