Hey guys,
A quick question here. Are player guis not accessible in global serverscripts? For example, say this is code in a serverscript in ServerScriptService:
for _, player in ipairs(players:GetChildren())do
local playerGui = player:FindFirstChild("PlayerGui");
local screenGui = playerGui:FindFirstChild("ScreenGui");
local backpack = player:FindFirstChild("Backpack");
local tool = backpack:FindFirstChild("Tool");
if screenGui then
print("Screengui found");
end
if tool then
print("Tool found");
end
end
The second print function was the only outputted value, so it's correct to assume serverscripts can access objects in the players' backpack but not in their playergui?

1 comment
I see, thanks for the clarification