Value not updating when changed in a script

  1. What do you want to achieve? I have a value that acts as an identifier, and when changed by pressing submit (Screenshot by Lightshot) it is supposed to update.

  2. What is the issue? It stays at its original value I set, “undefined” Screenshot by Lightshot

  3. What solutions have you tried so far? Tried looking it up

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

	for i,v in pairs(game.ReplicatedStorage.Channels:GetChildren()) do
		if string.match(string.lower(v.Name),string.lower(chan)) then
			for x,d in pairs(v:GetChildren()) do
				local ID = plr.PlayerGui.Radio.Frame.MyID.Submit.ID
				if string.match(string.sub(d.Name,5) , tostring(num)) then
					print(string.sub(d.Name,5))
					local value = plr.PlayerGui.Radio.Frame.MyID.Submit.ID

					d.Value = (code .. " " .. value.Value .. ": " .. msg)

If it’s staying at undefined, don’t you think there is something wrong with your “filters”?

Can you make sure everything is correct?
The “filters” can be the issue you’re facing.

If I mess with it, the whole sending system breaks.