So I am making a Officer radio on the screen but it doesn't seem to work, got the on/off down.
local Channel = game.Workspace.CityNetworkSite.Channels.Primary
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(sender, message)
if script.Parent.Top.OnOrOff.Text == "(OFF)" then return end
if script.Parent.Top.OnOrOff.Text == "(ON)" then
script.Parent.Line1.Text = Channel.Line1.Value
script.Parent.Line2.Text = Channel.Line2.Value
script.Parent.Line3.Text = Channel.Line3.Value
script.Parent.Line4.Text = Channel.Line4.Value
script.Parent.Line5.Text = Channel.Line5.Value
script.Parent.Line6.Text = Channel.Line5.Value
local function Update()
Channel.Line1.Value = Channel.Line2.Value
Channel.Line2.Value = Channel.Line3.Value
Channel.Line3.Value = Channel.Line4.Value
Channel.Line4.Value = Channel.Line5.Value
Channel.Line5.Value = Channel.Line6.Value
Channel.Line6.Value = '(PUT UNIT NUMBER HERE)'..sender..': '..message
end
Update()
end
end)
end)
game.Players.LocalPlayer.PlayerGui
