Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a ban script? [closed]

Asked by
Arratic -5
10 years ago
Edited by JesseSong 3 years ago

How to make a ban script?

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 10 years ago
banned={"Player1"}

function oc(ack)
if ack.className=="Player"then return end
for i=1,#banned do
if string.lower(ack.Name)==string.lower(banned[i])then
ack:Kick()
return
end end end

c=game:service("Players"):children()
for i2=1,#c do
oc(c[i2])
end
0
This is just one type of Ban script though, there are many more out there. TheeDeathCaster 2368 — 10y
Ad