Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

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! M39a9am3R 3210 — 5y
0
#REQUEST tonyv537 95 — 5y

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?

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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

Ad