How do you you play a local sound on spawn and stop a local sound on a gui button? PLEASE HELP
These are the basics
Line 1 waits for a player to be added inside of Players
service and then it waits for the players character (the person they control in a 3d space) to load/spawn
Use game.Players.PlayerAdded
for things relating to players or characters
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) -- do stuff end)
also this isnt a request site
Closed as Not Constructive by RubenKan
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?