Untitled

 avatar
unknown
lua
4 years ago
337 B
4
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...