I am trying to make it that if a players name is not part of the tester list then they are kicked from the game
local DataStore = game:GetService("DataStoreService")
local TesterList = DataStore:GetDataStore("TesterList")
local Testers = {"TheRebusa", "ItzOnlyCrisis", "Mazio44", "jakeybob334", "Michael1351", "R3fuse", "i_superstar"}
game.Players.PlayerAdded:connect(function(Player)
local TestCheck = Instance.new("BoolValue", Player)
TestCheck.Name = "IsTesting"
for i, TesterName in ipairs(Testers) do
if Player.Name == TesterName then
TestCheck.Value = true
end
end
if TestCheck.Value == false then
Player:Kick("You're not a tester")
end
end)

3 comments
That would kick the player after looking at the first value. You want to also see if the _ is at the last value, then kick..
I have used the same method for a few of my War Clans, it always worked for me, but then again I did stop doing everything roblox for a while.
It does not work