Hi, I'm currently making a game in very early alpha as of right now with 3 of my friends. I want to make a script to kick everyone who isn't them, and I have, but however it doesn't work even though when you run it in the game client you get no errors, nothing. Here is the script:
local plr = game.Players.LocalPlayer
if plr.Name == not "darkstar2121a" or not "zebrafishink123" or not "aidenlygamer" or not "myherodekusuper" then
plr:Kick("You have been kicked. Reason: You are not a tester")
end
And yes I know that this can be done more efficiently with tables and user ID's, but honestly it doesn't really matter since the game is almost out of alpha stages anyway.
Help would be greatly appreciated.
EDIT: I forgot to mention that this is in a local script in replicated first if that helps.

2 comments
It did thanks!
There is probably an better way, but this is just a pretty simple quick thing I put together, since this game will launch soon.