[Open Source] User Moderation Module (DataStore Controlled)

Module Overview

The modules runs from a controller script and a module with all the dedicated functions and what-not.

Included commands.

local administratorCommands = {
    {command = "/tempban ", func = "ban"},
    {command = "/kick ", func = "kick"},
    {command = "/unban ", func = "unban"},
}

Whitelisted users may use each command by typing them into Roblox’s default chat.

What the Module Provides (Returned Data + Moderation Notes)

Dependant of course on which command is used, the structure looks something like this.

moderationData = {
    username = Username, -- User being moderated.
        data = {
            banlength = Length, -- Moderation time (applies only to /tempban)
            moderator = player -- Moderator
        }
}

Whitelisting

image
Whitelist individual users or by their rank in a specific group, whitelisting gives the user access to the commands listed above.

Installation

Easy as inserting then dragging+dropping the provided scripts into the correct locations!

image

In-Game Usage!

Once you’ve assigned moderators, or have everything setup for yourself, you can get started by typing one of the following commands into the Default Roblox Chat.

Demonstration GIF of the Module in action.

/command _USERNAME -- used for /kick and /unban
/command _USERNAME _PUNISHMENT_TIME -- used for /tempban (/tempban ROBLOX 24)

image

Take a look for yourself!

image

You can checkout the model here!
Thank you for reading, hope you all find this useful!

3 Likes

This topic was automatically closed after 7 minutes. New replies are no longer allowed.