I recently created a post asking how to make client sided sounds play when touching a part. (Client Sided Sounds) I want to do the same thing, but for when players join the game, but I am having trouble figuring out what to do.
-
What do you want to achieve? I want to have music play for the LocalPlayer only when they join the game.
-
What is the issue? I do not know how to do it.
-
What solutions have you tried so far? I looked for similar posts, but couldn’t find anything. I also looked into the Developer Hub, but still didn’t find my answer.
This is the LocalScript put in Workspace:
game.Players.PlayerAdded:Connect(function()
game.Workspace.Music:Play()
end)
With prior knowledge, I assume I’d have to use LocalPlayer, but as a beginner scripter, I do not know how to go by that. Any help is appreciated.