Not reading that a user id is in a table? (I dont know how to put it)

So im trying to make commands however for some unknown reason its not seeing that my user ID is in the table and just thinks I dont exist in it?
Source of error:

			if table.find(WhiteList, Player.Name) then
				print("Player is on white list")
				Commands.KillAll()
			else
				print("Player with the user id:", Player.UserId,"Does not exist in the table")
			end

table:

local WhiteList = {
	481408677
}

Try using Player.UserId instead of Player.Name

1 Like

Well turns out i was dumb
Sorry for that

No worries!
Happens to best of us

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.