Textbox text error with radio script?
This is the error for my radio
****18:10:57.458 - Sound Workspace.Odawg566.UpperTorso.Sound Failed to load ****rbxassetid://Enter ID Here
The textbox's starting text is Enter ID Here, but when I add a music Id it wont change to the new id, instead it picks up the textbox's old text "Enter ID Here".
It's been bothering me for a while, some help would be nice.
01 | local PlayButton = script.Parent:WaitForChild( "Play" ) |
02 | local StopButton = script.Parent:WaitForChild( "Stop" ) |
03 | local ID = script.Parent:WaitForChild( "Id" ) |
04 | local event = script.Parent:WaitForChild( "PlayMusic" ) |
05 | local event 1 = script.Parent:WaitForChild( "StopMusic" ) |
08 | event.OnServerEvent:connect( function (plr) |
09 | if plr.Character.UpperTorso:FindFirstChild( "Sound" ) then |
12 | local effect = script:WaitForChild( "Beats" ):Clone() |
13 | effect.Parent = plr.Character.UpperTorso |
14 | local sound = Instance.new( "Sound" , plr.Character.UpperTorso) |
18 | sound.Archivable = true |
19 | sound.MaxDistance = 50 |
20 | sound.EmitterSize = 10 |
26 | event 1. OnServerEvent:connect( function (plr) |
28 | if plr.Character.UpperTorso:FindFirstChild( "Sound" ) then |
29 | plr.Character.UpperTorso.Beats:Destroy() |
30 | plr.Character.UpperTorso.Sound:Destroy() |
32 | print ( "No Sound Found" ) |