#Im trying to make a whitelist system

35 messages · Page 1 of 1 (latest)

tall veldt
#

I've seen a lot of scripts online, i have them but idk where to put them. It just basically kicks the player when he is not whitelisted thats all i want. Im not asking for the script just where do i put it.

tall veldt
#

yes

mortal walrus
#

serverscriptservice

#

usually

#

85% of the time

tall veldt
#

i tried it it doesnt work sadly

#

ill send the script in a sec

#

local whitelistUserIDs = {}

game.Players.PlayedAdded:Connect(function(player)
if not table.find(whitelistUserIDs,player.UserId) then
player:Kick("You are not whitelisted on this server.")
end
end)

#

so uhh where do i put this

stiff pier
#

Serverscriptservice

#

And learn how to script

tall veldt
#

im trying to

#

yknow

#

anyways ill try it again

#

ty for now

mortal walrus
tall veldt
mortal walrus
#

why is your whitelistuserids empty

tall veldt
#

oh its not empty

#

i just sent the example

mortal walrus
#

ok 1 sec

tall veldt
solemn badgeBOT
#

studio** You are now Level 1! **studio

stiff pier
#

print something to see if the script runs

tall veldt
#

oh alr

#

it runs

stiff pier
#

Is whilelistUserIDS empty ?

tall veldt
#

no i put my id in there

#

as i said before im testing it on an alt

#

thats not whitelisted

stiff pier
#

before the if add
print(player.UserId,whitelisrUserIDs)

tall veldt
#

ok

#

i found the issue

#

the script said PlayedAdded instead of PlayerAdded