Why is or underlined in red?

Why is the or underlined red in this script?

game.Players.PlayerAdded:Connect(function(players)
    if players.AccountAge <= 10  or if players:IsInGroup(3721017) == false then
 players:Kick("Your account is too young, join the group or wait a couple of days " ..15 - players.AccountAge.. " days.")
    end
end)

I’m really confused on this.

2 Likes

remove the if after or (30 character)…

Whitespace won’t affect the code.

However there’s an additional “if” after the or which needs to be removed.

2 Likes