1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | if plr.Name ~ = 'Halmuni' or 'Aclysmic' then |
3 | plr:Kick() |
4 |
5 | end |
6 | end ) |
so basically when a player joins if name is not equal to 'Halmuni' or 'Aclysmic' it will kick but it kicks me...... and I think it kicks the other parameter too
Wrap it in parenthesis, it should work. This allows for more efficient code.
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | if plr.Name = = ( 'Halmuni' or 'Aclysmic' ) then |
3 | plr:Kick() |
4 | end |
5 | end ) |
You are not using if statements correctly. Here is fixed code:
1 | game.Players.PlayerAdded:Connect( function (plr) |
2 | if plr.Name ~ = "Halmuni" or plr.Name ~ = "Aclysmic" then |
3 | plr:Kick() |
4 | end |
5 | end ) |