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

What did I do wrong?

Asked by 10 years ago

When I play the music on the normal server it doesn't work. The script is in the text button.

script.Parent.MouseButton1Click:connect(function(click)
    Game.Workspace.Sound:Stop()
    Game.Workspace.Sound.SoundId = "http://www.roblox.com/asset/?id=131261480"
    Game.Workspace.Sound:Play()
end)

2 answers

Log in to vote
0
Answered by 10 years ago

Heh, Imagine Dragons xD Also I'm not sure if this is the problem but I'm pretty sure the SoundId has to be a certain format, not just the URL. I've never used sound before so it might be different to images but try putting in rbxassetid://131261480 as the SoundId. Apologies if that didn't work D:

Ad
Log in to vote
0
Answered by
Maxomega3 106
10 years ago

Please explain where the TextButton is, and what exactly is happening. This way I can better understand your problem.

Answer this question