Skip to content

Instantly share code, notes, and snippets.

@Ehehekum
Ehehekum / jejebjsd
Created October 14, 2025 09:56
jsje
-- FloatingUILib (Modulescript)
-- Minimal, defensive, modular floating UI library suitable for loadstring hosting.
-- Assumptions: runs in a LocalScript context (player's client). Creates ScreenGui fallback.
-- Return: table API {CreateTopBarButton, CreateModal, Notify, DestroyAll}
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local FloatingUILib = {}