Universal Script 📌
1.2k Views
371 Executions

Testing

Universal Script 📌
schylerbryce2014
schylerbryce2014First script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Testing my own kick script

View Raw
-- List of usernames to kick (case-sensitive)
local usernamesToKick = {
    "BadUser123",
    "TrollPlayer456",
    "Spammer789"
}

-- Function to kick players in the list
game.Players.PlayerAdded:Connect(function(player)
    for _, username in ipairs(usernamesToKick) do
        if player.Name == username then
            player:Kick("You are not allowed in this game.")
            warn("Kicked player: " .. player.Name)
        end
    end
end)



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
1.3k
5.1k
Bumped 4 minutes ago
Script hub
160.5k
1.5M
Bumped 7 hours ago
Key System

Script hub

#14 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.5k
996
Bumped 7 hours ago
Script hub
1.6M
1.9M
Bumped 7 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.8k
817.6k
Bumped 9 hours ago
Universal Script 📌
134.1k
24.2k
Bumped 9 hours ago
Key System