Home - Realshadow62/Kits GitHub Wiki

Introduction

Kits is a module that provides a simple interface to give players tools, uniforms, etc.

Example Usage

The following code creates and gives a player a kit when a ClickDetector is clicked, and when the kit is used up it'll print "Kit has been used up!",

local Kits = require(path.to.module)

local part = script.Parent
local cd = part.ClickDetector

local kit = Kits.new()
kit:limit(1)--limit it so that only 1 person may claim this kit
:outfit(4878264055, 4878267260)--since :limit() returns the kit is was called on, we can directly call functions on it

cd.MouseClick:Connect(function(plr)
    kit:give(plr)
end)

kit.Exhausted:Connect(function()
    print("Kit has been used up!")
end)

For the full API, please visit https://github.com/Realshadow62/Kits/wiki/API-Index