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)

11 comments
change or to and.
Didn't notice this on my previous answer sorry!
^, no what are you talking about
the and operator will return truthy if both of the conditions are true
the or operator will return truthy if either of the conditions are true
Do you want to kick yourself or people that aren't yourself?
@EXpodo1234ALT What are you talking about? He's wanting to kick people not named Halmuni/Unholy_God
try using "and" instead of "or"
how are you using te script (server sided, localscript, script, ect.) ?
I just realized it says if (your name) joins it will kick you. That is what the script is telling it to do
Server script