16:44:22.488 - ReplicatedStorage.broadcastController:04: attempt to index nil with 'Parent' 16:44:22.489 - Stack Begin
16:44:22.489 - Script 'ReplicatedStorage.broadcastController', Line 04 - function update
16:44:22.489 - Script 'Players.benbebop.PlayerScripts.connectedTo.RequestRadio.Scripts.sync', Line 12 16:44:22.490 - Stack End
Lines adjusted for given code
Local Module Script
function broadcast.update() game.ReplicatedStorage.clientPipeline.Broadcast.openBroadcast:InvokeServer(game.Players.LocalPlayer.PlayerScripts.connectedTo:GetChildren().Id.Value) local connectedBroadcast = game.ReplicatedStorage.clientPipeline.InstanceTransfer[game.Players.LocalPlayer.Name]:GetChildren() connectedBroadcast.Parent = game.Players.LocalPlayer.PlayerScripts.connectedTo local GuiAssets = connectedBroadcast["2dSpace"]:GetChildren() local Assets = connectedBroadcast["3dSpace"]:GetChildren() local Scripts = connectedBroadcast["Scripts"]:GetChildren() for i = 1,#GuiAssets do local x = GuiAssets[i]:Clone() x.Parent = game.Players.LocalPlayer.PlayerGui.Viewer.Window end for i = 1,#Assets do local x = Assets[i]:Clone() x.Parent = game.Players.LocalPlayer.PlayerGui.Viewer["3D"] end for i = 1,#Scripts do Scripts[i].Disabled = false end end
Not much to say, I don't see where I'm going wrong here.
broadcast, the first element of the table is nil, which is why it also errors at line 12, cuz you reference broadcast again, as for why broadcast is nil, I am not entirely sure, but I think it is most likely something to do with when you set the broadcast table, you set it like this: local broadcast = game.ReplicatedStorage.clientPipeline.InstanceTransfer[game.Players.LocalPlayer.Name]:GetChildren()
Firstly I question what you are doing looking for an instance with a player's name inside of replicated storage, I feel you should have told us what you put in there, secondly your doing this locally not necessarily a problem but I don't know what your trying to do so I am just saying you should think as if it needs to be done locally or on the server, thirdly your referencing player scripts which is an instance that only appears on the client parented by a player object, it is not there at all on the server.
That is the best I have, probably didn't fix your problem but at the same time, in my defense all you did was give a script and an error, please include more details, like at least tell us what your trying to do.