GuiHandler
Versions before 1.0.1 are broken. Install 1.0.1 or later only.
Show and hide ScreenGuis with configurable tweens, and manage them all from one place.
GuiHandler pairs a ScreenGui with its main container and gives it Show, Hide and Animate methods that tween the container on and off screen. Each handler has an animation config (the properties to tween to when showing and hiding, and a TweenInfo for each), with a default that slides the container in from above, and static helpers let you show or hide every registered GUI at once or wait for one to be registered.
Runs on the client only.
Use it when
- Every menu in your game should slide in and out the same way without hand-writing tweens.
- You need to hide all UI for a cutscene and bring it back afterwards.
Install
Studio Wally
Using the Studio Wally plugin:
- Open the widget.
- Search
kashtheking/gui-handler. - Press download and choose Shared module (recommended for almost every package).
Wally
Add this to the [dependencies] section of your wally.toml, then run wally install:
GuiHandler = "kashtheking/gui-handler@1.0.1"
local GuiHandler = require(ReplicatedStorage.Packages.GuiHandler)
Dependencies
Wally installs these automatically:
Credits
Trove and Signal are by sleitnick (RbxUtil).
API
Every constructor, method, property and type is documented on the GuiHandler API page, generated from the doc comments in init.luau. Each entry links to its line in the source.
Help
Questions and bug reports: the Discord or a GitHub issue. See Help & contact for everything else.