Argument 1 missing or nil error

1.When button is pressed it would find a first child

  1. Errors and says Argument 1 missing or nil
local remote = game.ReplicatedStorage.Panic
function DisplayMessage(FrameToOutput,Message)
	FrameToOutput.LineSix.Text = FrameToOutput.LineFive.Text 
	FrameToOutput.LineFive.Text = FrameToOutput.LineFour.Text 
	FrameToOutput.LineFour.Text = FrameToOutput.LineThree.Text 
	FrameToOutput.LineThree.Text = FrameToOutput.LineTwo.Text 
	FrameToOutput.LineTwo.Text = FrameToOutput.LineOne.Text 
	FrameToOutput.LineOne.Text = Message
end

function ConfigMessage(Player,Channel)
	local RadioGui = script.Parent
	local FrameToOutput = RadioGui:FindFirstChild(Channel)
	local ConfiguredMessage = Player.Character.Value.Value..": ".."PANIC BUTTON PRESSED"
	DisplayMessage(FrameToOutput,ConfiguredMessage)
end
remote.OnServerEvent:Connect(function(Player,Channel)
	local SoundId = "rbxassetid://6870132711"
	ConfigMessage(Player,Channel)
	for i,v in pairs(game.Players:GetPlayers()) do
		if v.PlayerGui:FindFirstChild("Radio") ~= nil then
			if v.Character.Value.Value == "" then return end
			game.ReplicatedStorage.PlaySound:FireClient(v, SoundId)
		end

	end


end)

What line is the error occurring on?

3 Likes