So previously i put my own server side executor and i want this one script to be forbidden which mean everytime someone execute it they got kick/ban.Can anyone help me please.This is the script "require(5095430548):load('bru')"
COMMUNITY QUESTION
Kick someone everytime they executed server side script.?
1 answer
You could first check if the text box contains the require
local textbox = script.Parent
local plr = game:GetService("Players").LocalPlayer -- get the local player
if textbox.match(num, 5095430548) then -- check if it contains the require
plr:Kick("unauthorized require") --kick the player
else
your execution code here -- your code to execute all other requires
Although I seriously recommend just replacing the text with something like "Require not allowed" and not kicking them, I will provide you both methods
local textbox = script.Parent
local plr = game:GetService("Players").LocalPlayer -- get the local player
if textbox.match(num, 5095430548) then -- check if it contains the require
textbox.Text = ("unauthorized require") --kick the player
else
your execution code here -- your code to execute all other requires
PS.: i havent tested this script yet, so if anything doesnt work, type a comment here
This discussion is preserved as it was. New answers, comments, and votes are closed.
