Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you you play a local sound on spawn and stop a local sound on a gui button? PLEASE HELP

How do you you play a local sound on spawn and stop a local sound on a gui button? PLEASE HELP

2 comments

0

Please take the advice of LoganboyInCO and progress from there. Scripting Helpers isn't for request questions and we advise you to take a look at our help section prior to making further posts. https://scriptinghelpers.org/help Thank you!

0

#REQUEST

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.