I made this line of code and every time I tried to test in-game, it would spit out that PlayerGui doesn't exist, I checked and PlayerGui was there, any help? This line of code is from a module script:
function sendToAllotherPlayers(text,author) for i,plr in pairs(game.Players:GetPlayers()) do print(plr.Name,i) local plrgui = plr.PlayerGui local mod = require(plrgui:WaitForChild("ChatGui"):WaitForChild("Frame"):WaitForChild("ModuleScript")) mod.makeText(text,author) end end

2 comments
You can access it fine, just GUIs aren't replicated to the server when cloned client-side.
But how do I access the module script then? I mean sure local scripts can do it but it doesn't allow you to add in functions like module scripts.