Is someone spamming your centre? And do you want to ban them from your centre? You came at the right place!
Important!
| This can only be done on a Windows or MacOS device. Additionally, you must have permission to edit experiences if it is uploaded via Roblox Group.
Marketplace Installation (RECOMMENDED)
Marketplace Installation (RECOMMENDED)
Get the model on the Roblox Marketplace
Open your application centre in Studio
In Studio, select "VIEW" on the top bar and then select "Explorer"
There is just one more tab to open. Select "Toolbox" as well, which can be found in the "View" tab
When those tabs are open, visit the "Toolbox" tab and select the "Inventory" tab
Once in the "Inventory" tab, choose "My Models" on the dropdown menu
Select "BanScript" and it will be placed in your game. When it is placed in the game, it will automatically be selected in the "Explorer," go ahead and drag and drop it into the "ServerScriptService" category. If done correctly, it will look like this:
Double-click the script and it will open
Replace the text accordingly (instructions are provided in the script)
When you are all done and exit out of the script, use the keybind
alt+P
to publish the game to RobloxAll done! Thank you for reading. Please contact support if you are in need of anything!
Manual Installation
Manual Installation
Open your application centre in Studio
In Studio, select "VIEW" on the top bar and then select "Explorer"
With the "Explorer" tab open, hover over "ServerScriptService," and select the "+" icon
In the search bar of the detached menu, search for "Script" and select it
When you first create a script, there will be text already set there as an example. Erase everything that is currently in the script
Copy and paste the code below into the script and follow the continued steps below to set it up
local blacklisted = {"USERNAME", "USERNAME"} --Change "USERNAME" to the username of the player you would like to ban from the centre
game.Players.PlayerAdded:Connect(function(plr)
if table.find(blacklisted, plr.Name)
then
plr:Kick("REASON") --Replace "REASON" with the reason you would like to appear on the message shown on screen when they are kicked from your game
end
end)
Replace the placeholders in the script accordingly. If you'd like to add more users to the ban list, simply add on to the table:
{"USERNAME", "USERNAME", "USERNAME"}
but make sure you keep the comma after adding another username and the parenthesis, otherwise, it will throw an error and not workWhen a user is banned from your game, they are shown a message that looks like the one shown below. To change that message, change
"REASON"
to the message you'd like to appearWhen you are all done and exit out of the script, use the keybind
alt+P
to publish the game to RobloxAll done! Thank you for reading. Please contact support if you are in need of anything!