Custom Music SurfaceGUI not working? [Solved]
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
01 | local Play = script.Parent.Frame.PlayButton |
02 | local change = script.Parent.Frame.Change |
03 | local sound = game.Workspace.Radio.AudioBrick.Sound |
06 | if sound.Playing = = true then |
09 | else if sound.Playing = = false then |
17 | local id = script.Parent.Frame.Input.Text |
21 | sound.TimePosition = 0 |
24 | Play.MouseButton 1 Click:Connect(playpause) |
25 | change.MouseButton 1 Click:Connect(idchange) |
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.