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

How would i make my script check a site for a playersname then kick?

Asked by 4 years ago

i have tried

local http = game:GetService("HttpService")

game.Players.PlayerAdded:Connect(function(Player)
    local Site = http:GetAsync("https://hastebin.com/raw/ucuzetulap")
        if string.match(Site, Player.Name) then
            Player:Kick("On Ban List")
        end
    end
end)

but had no luck and i got no errors

1
try mine EnzoTDZ_YT 275 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

I was just trying this

local http = game:GetService("HttpService")

game.Players.PlayerAdded:Connect(function(Player)
    local BanList = http:GetAsync("https://hastebin.com/raw/ucuzetulap")
    if string.find(BanList, Player.Name) then
        Player:Kick("A Wild Banned Player Has Appeared!")
    end
end)

with a different link obv but this seems to work for me!

0
thanks works fine :D HappyJakeyBoy 67 — 4y
Ad

Answer this question