#How to have whitelist on your server?
1 messages · Page 1 of 1 (latest)
💔
everything is coding
No there’s a thing where you can whitelist people built into Roblox on your server I’m tryna find the name of it
not without scripting you cant
its not built in
bloxlink
its a bit
bot
just code bro it is ten lines of code 🥀
Player = [“player”]
On player join
If not in player
Kick
Enjoy
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local whitelist = {
"player 1",
"player 2"
}
local function isWhitelisted(name)
for _, allowedName in ipairs(whitelist) do
if allowedName == name then
return true
end
end
return false
end
player.CharacterAdded:Wait()
if not isWhitelisted(player.Name) then
-- kick player idk
end
lowkey i just asked chatgpt
player:Kick("This server is whitelisted.")