Untitled

mail@pastecode.io avatar
unknown
lua
3 years ago
337 B
2
Indexable
Never
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