Hey I just want to know if there is a way to see what BillboardGuis are on a players screen! I assume it would be stored on the PlayerGui?
Let me know, any help is appreciated!
Hey I just want to know if there is a way to see what BillboardGuis are on a players screen! I assume it would be stored on the PlayerGui?
Let me know, any help is appreciated!
BillboardGUIs are not in the PlayerGUI since they are placed/hooked onto objects in a 3D space. They are client-sided, so you are able to check if they are enabled per player. If you still mean to be able to check if they are in the screen, I wouldn’t know how to do that. But if you mean just checking if they are enabled, check the detail.
In the workspace (or any other folder/part you want the GUIs to be checked in) I added two BillboardGUIs as follows:
As it shows, I added TextLabels to showcase the BillBoardGUIs and added text to them.
Now for the checking. In a script I put the following code;
local function checkBillBoard()
local billboards = game.Workspace:GetDescendants()
for _, billboards in pairs(billboards) do --filter through all the descendants one by one
if billboards:IsA("BillboardGui") and billboards.Enabled == true then --check if the descendant we are looking at now is a billboardGUI and if it does, check if it is enabled
print(billboards, " is enabled.") --print out which BillboardGUI is active
end
end
end
checkBillBoard() --run the function to check
When you run the function, it will output the following; (I added an extra print, so you will not see the table output)
And to see if it is accurate, if we go to BillboardSwag properties and uncheck the Enable
property.
We will be left with this – a working script;
Hope this helped to clarify.