Radio script, help please?
So I am making a Officer radio on the screen but it doesn't seem to work, got the on/off down.
01 | local Channel = game.Workspace.CityNetworkSite.Channels.Primary |
03 | game.Players.PlayerAdded:connect( function (player) |
04 | player.Chatted:connect( function (sender, message) |
05 | if script.Parent.Top.OnOrOff.Text = = "(OFF)" then return end |
06 | if script.Parent.Top.OnOrOff.Text = = "(ON)" then |
07 | script.Parent.Line 1. Text = Channel.Line 1. Value |
08 | script.Parent.Line 2. Text = Channel.Line 2. Value |
09 | script.Parent.Line 3. Text = Channel.Line 3. Value |
10 | script.Parent.Line 4. Text = Channel.Line 4. Value |
11 | script.Parent.Line 5. Text = Channel.Line 5. Value |
12 | script.Parent.Line 6. Text = Channel.Line 5. Value |
14 | local function Update() |
15 | Channel.Line 1. Value = Channel.Line 2. Value |
16 | Channel.Line 2. Value = Channel.Line 3. Value |
17 | Channel.Line 3. Value = Channel.Line 4. Value |
18 | Channel.Line 4. Value = Channel.Line 5. Value |
19 | Channel.Line 5. Value = Channel.Line 6. Value |
20 | Channel.Line 6. Value = '(PUT UNIT NUMBER HERE)' ..sender.. ': ' ..message |
27 | game.Players.LocalPlayer.PlayerGui |