Untitled

Anonymous
lua
06/10/2021 9:30 PM
452 B
23
Indexable
function Enoria.Context.GetAppById(id)
	local player = game.Players.LocalPlayer
	local playerGui = player:WaitForChild("PlayerGui") or nil
	local apps

	if playerGui then apps = playerGui:GetChildren() end

	for _, app in pairs(apps) do
		if app:GetAttribute("EnoriaId") == id then
			return app
		end
	end

	return nil
end
Editor is loading...