invalid argument #2 (string expected, got Instance)
On line 6
Server script
game.ReplicatedStorage.clientPipeline.Broadcast.openBroadcast.OnServerInvoke = function(player, Id)
local broadcasts = game.ServerStorage.broadcasts:GetChildren()
for i=1,#broadcasts do
if broadcasts[i].Id.Value == Id then
local x = broadcasts[i]:Clone()
x.Parent = game.Players[player].PlayerScripts.connectedTo
end
end
return
end
You'd think I would've encountered this error before, especially as its with something as basic as parents, but I haven't and don't know why it wants a string or even why its says argument #2 when there's only one argument.
Any ideas on whats going on?

3 comments
i think its something with the ID
idk cuz its a string
maybe try using :WaitForChild on playerscripts