Roblox Module
Settings¶
API_KEY¶
This key is given to you when setting up the bot. You can either store the key as plain text here or as a secret
PROFILE_SERVICE¶
If you are currently using profile service, put its path here
ENFORCE_BAN_LIST¶
When a player who is on our list of known predators and bad actors joins your game should it kick them
ERP_API_KEY¶
If you get approved for an API_KEY from Ruben Sim's erpsearcher you can put it here and we will handle kicking them
WEBHOOK¶
Place your webhook here for all moderation actions to be logged
Types¶
LocksyTier¶
PossibleAddons¶
Describes what addons are available
Info_Return¶
type Info_Return = {
Status: boolean, --Did it work?
GroupName: string, --Name of the group
GroupID: number, --ID of the group
VerifiedMembers: number, --How many members from your group in the system
LocksyTier: LocksyTier, --What tier are you running
LocksyAddons: {PossibleAddons}, --List of all active addons
}
XP_Return¶
type XP_Return = {
Status: boolean, --Successfull?
XP_Val: number, --Users new XP value (-1 if error)
Last_Updated: number --UNIX Timestamp (-1 if error)
}
Functions¶
The main LOCKSY module script contains all the function you will ever need to call. They are all described below.
GetInfo¶
Gets information about this groups running Locksy instance
GetUserXP¶
Gets a users XP value
SetUserXP¶
Sets a users XP value to the given value
UpdateUserXP¶
Changes a users XP value by the ammount