So I posted this already but then the last one I didn't really know how to correctly use if statements so heres the fixed script
game.Players.PlayerAdded:Connect(function(plr) if plr.Name ~= 'Halmuni' or plr.Name ~= 'Unholy_God' then plr:Kick() end end)
game.Players.PlayerAdded:Connect(function(plr) if plr.Name ~= 'Halmuni' or plr.Name ~= 'Unholy_God' then print "safe" end end) if plr.Name ~= ~= 'Halmuni' or plr.Name ~= 'Unholy_God' == false then plr:Kick() end
local Whitelist = {'Halmuni','Unholy_God'} game.Players.PlayerAdded:Connect(function(Player) for _,v in pairs(Whitelist) do if Player.Name ~= v then Player:Kick("Not in whitelist") end end end)