What I am trying to achieve is, when someone joins there will be a sound inside their character inside workspace this is what i have done so far.But it doesn't work,I don't get anything from the output
local PlayerService = game:GetService("Players")
local PlayerPerson = PlayerService:GetPlayerFromCharacter()
local PlayerName = PlayerService.LocalPlayer.Name
function MusicNeeded()
print("Music is being added to "..PlayerName.."!")
wait(3)
local MusicBeingAdded = Instance.new("Sound")
MusicBeingAdded.Parent = PlayerPerson
end
PlayerService.PlayerAdded:Connect(MusicNeeded)
``

1 comment
lol its been 17 days but ty!