Hi there! Allow me to introduce myself…
I am achdef, a beginner programmer on the Roblox platform, and I decided to mess up around with data stores today. Tired of just doing your own ban system, that in the end errors? Well, I got you! I’ve made a ban system but for free. Which means, you can literally ban people with a simple function, and I do not need any credits.
To start with, you need to get my model (not mendatory). Of course, you can continue reading if you wish. Now, to get this working, you will need to require the script. And no need for the model! Cause, we can directly use the ID.
Installed the model? Then, place the model in ServerScriptService for security reasons, then, to require it, do:
local ModerationPlus = require(game:GetService("ServerScriptService").ModerationPlus)
Don’t want to install the model? You can do that via a script:
local ModerationPlus = require(7833653038) ModerationPlus.Parent = game:GetService("ServerScriptService")
There is only one function, mentioned in the name of this post, :Ban(). Now, to ban someone, you need to know some things:
First off, the script automatically gets the user id, so no need to worry about them changing of roblox username!
Second off, due to roblox’s lua things, you will need when using the ban function, to do that:
The types are ‘User’ and ‘ID’. ‘User’ bans the username, ‘ID’ bans the ID of the user.
Third off, you can abuse the command if you wish to do so, it’s not our problem again but your problem if your admins or yourself abuse it.
Fourth off, DO NOT SPAM OUR DATASTORE, please.
Okay, now, your wondering: Yes but how do you use this function?
It’s not a :ban command also, in case you did not notice yet. To use it, with example, let’s say there is this annoying guy. You can just do:
local ModerationPlus = require(game:GetService("ServerScriptService").ModerationPlus) game.Players.PlayerAdded:Connect(function(plr) if plr.Name == "SuperAnnoyingGuy" then ModerationPlus:Ban(plr) end end)
Now, we did not add a reason argument yet, cause we want to keep this basic. However, feel free to suggest us for one!
Need help? Comment here!
Report any bugs to @achdef.
Have a fantastic moderation experience!