Making a radio [Not working]

Hi, I’m making a radio for my game. I’m making a radio system where people can chat over the radio. Currently it’s not working, and I’ve been trying it for a few days. Help would be appreciated!
Local Script:

local Channels = {"GlobalNet", "TacticalNet", "CommandNet"}
local CurrentChannel = "GlobalNet"
--I won't show the code that's already tested and has no problem

--Remote Function
Player.Chatted:Connect(function(Message)
	if Activate == false then return end
	--print(Player.Name.." "..CurrentChannel..": "..Message)
	RadioEvent:FireServer(Message, CurrentChannel)
	--print(CurrentChannel)
end)

Callback.OnClientEvent:Connect(function(FrametoOutput, ConfiguredMessage)
	FrametoOutput.M1.Text = ConfiguredMessage
	print(ConfiguredMessage)
end)


--Server script

function DisplayMessage(FrametoOutput, Message)
	
	FrametoOutput.M1.Text = Message
	
end

--M1 = TextBox

function ConfigMessage(Player,Message,CurrentChannel)
	local RadioUi = game.StarterGui.RadioUI
	local FrametoOutput = RadioUi.RadioFrame:FindFirstChild(CurrentChannel)
     
	
	local ConfiguredMessage = Player.Name..": "..Message
	--Callback:FireAllClients(FrametoOutput, ConfiguredMessage)
   DisplayMessage(FrametoOutput, ConfiguredMessage)
	--print(ConfiguredMessage)

end

RadioEvent.OnServerEvent:Connect(function(Player,Message,CurrentChannel)
    ConfigMessage(Player, Message, CurrentChannel)
	--print(CurrentChannel)
end)

This doesn’t work, help would be appreciated.

game.StarterGui is used to store Radio UI that will be replicated to all clients (players).

This means that the player actually has a different copy of your Radio Gui than what game.StarterGui has.

Read through this for more info on how GUI’s actually work.

Edit:
To give you a headstart.

I will give you an idea on how to implement this.

You can fire the server from the client that’s sending the message. (local script)

And then the server can Fire all the clients on the server. (server script)

And the client will display the text for all the players. (local script)

Tip: Use TextFilterService to do the moderation of player chat messages. Or Roblox might take moderation action on your game.

1 Like

Everything in the StarterGui is cloned to the playerGui (player.PlayerGui)

1 Like

Edit:
I know the problem, redoing it right now