PlayerUI
This item only works when running on the client. Client
This is a MapLib Feature. It can be accessed by MapLib:GetFeature("PlayerUI")
.
Functions
LoadUI
This item only works when running on the client. Clientsince 0.11
</>
This function can be used to load a ScreenGui
from the map into the players PlayerGUI.
Example:
-- Loads an UI for everyone in the round
local PlayersFeature = MapLib:GetFeature("Players")
local PlayerUI = MapLib:GetFeature("PlayerUI")
local ui = map:WaitForChild("MyGUI")
for _, player in pairs(PlayersFeature:GetPlayers()) do
if player and player.Character then
PlayerUI:LoadUI(ui)
end
end