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

Custom Music SurfaceGUI not working? [Solved]

Asked by 3 years ago
Edited by JesseSong 3 years ago

So here's the deal.

I have a custom music SurfaceGUI that I'm trying to make for a radio. The problem is that changing the id doesn't work

01local Play = script.Parent.Frame.PlayButton
02local change = script.Parent.Frame.Change
03local sound = game.Workspace.Radio.AudioBrick.Sound
04 
05function playpause()
06    if sound.Playing == true then
07        sound.Playing = false
08        Play.Text = "Play"
09    else if sound.Playing == false then
10            sound.Playing = true
11            Play.Text = "Pause"
12        end
13    end
14end
15 
View all 25 lines...

There's no error in the coding, however, each time i activate idchange, it doesn't detect a change in input. The TextButton will originally say "Music ID", but when i paste an audio ID into it and activate function idchange, it inputs "Music ID" instead of what i typed into the Text Button.

0
Turns out I was using a normal script instead of a localscript. DarkAndLight64 0 — 3y

Answer this question