The server doesn’t read me the gui generated by a client. How can I fix it?
LocalScript
script.Parent.TextButton.MouseButton1Click:Connect(function()
local e = Instance.new("ImageButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame)
e.Size = UDim2.new(0,200,0,200)
game.ReplicatedStorage.RemoteEvent:FireServer()
end)
Script
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(eee)
for j,e in pairs(eee.PlayerGui.ScreenGui.Frame:GetChildren()) do
print(e)
end
end)