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

How to get my music playing?

Asked by 10 years ago

I put a sound in my workspace then entered the ID and it is stuck on pause, i have used a starter GUI local script like this:

 `game.Workspace.Sound:Play()`

If you can help me that would be nice

0
Wait do you mean a "Local Script" because you can only use a "script" in serverside. soaprocks2 75 — 10y
0
I mean localscript. ghilliesniper2345 10 — 10y

2 answers

Log in to vote
0
Answered by 10 years ago
local sound = game.Workspace.Sound

sound:Play() 
wait(1) -- to get the time of the sound, paste the asset id directly into your browser
sound:Stop()
Ad
Log in to vote
0
Answered by 10 years ago
script.Parent.Sound:Play ()

Put this in a normal script in the workspace and put the sound into the script.

Answer this question