Zak's Libraries
📥 Installation
All modules are installable via Wally.
⚙️ Wally Setup
First, ensure Wally is installed. Then follow these steps:
-
Initialize Wally in your project:
wally init
-
Add the package you would like to install to your
wally.toml
file:
Example:
[dependencies]
connections = "unknown91248/connections@0.0.2"
-
Install dependencies by running
wally install
in your project's terminal -
Wally will then create a
/Packages
folder which is where you will be requiring your scripts from.
🚀 Usage Example (Connections module)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Connections = require(ReplicatedStorage.Packages.connections)
-- Create a new named connection
local conn = Connections.NewConnection("TouchEvent", workspace.Part.Touched, function(hit)
print("Touched by:", hit.Name)
end)
-- Start listening to the event
conn:Connect()
task.wait(5)
-- Cleanup when done
conn:Disconnect()
conn:Destroy()