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
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | if plr.Name ~ = 'Halmuni' or plr.Name ~ = 'Unholy_God' then |
3 | plr:Kick() |
4 |
5 | end |
6 | end ) |
01 | game.Players.PlayerAdded:Connect( function (plr) |
02 | if plr.Name ~ = 'Halmuni' or plr.Name ~ = 'Unholy_God' then |
03 | print "safe" |
04 | end |
05 | end ) |
06 |
07 |
08 | if plr.Name ~ = ~ = 'Halmuni' or plr.Name ~ = 'Unholy_God' = = false then |
09 | plr:Kick() |
10 | end |
1 | local Whitelist = { 'Halmuni' , 'Unholy_God' } |
2 |
3 | game.Players.PlayerAdded:Connect( function (Player) |
4 | for _,v in pairs (Whitelist) do |
5 | if Player.Name ~ = v then |
6 | Player:Kick( "Not in whitelist" ) |
7 | end |
8 | end |
9 | end ) |