I am making a broadcasting system for a game but my script is giving my this error, I have gotten it before but i still do not know how to fix it.
module.Broadcast = function(Text,Player)
for i,v in game.Players:GetChildren() do
if v.Name == Player then
v.PlayerGui.BroadcastGui.Main.TextLabel.Broadcast:FireClient(Player,Text)
end
end
end
local script pov:
script.Parent.OnClientEvent:Connect(function(Player,Text)
if Text ~= string then return end
script.Parent.Parent.Parent.Parent.Enabled = true
script.Parent.Parent.Text = Text
task.wait(2)
script.Parent.Parent.Parent.Parent.Enabled = false
script.Parent.Parent.Text = "Message"
end)