I know this will be easy but I want to get help. Basically I have this function(well stuff inside a function) here. It works completely but I am unsure on how to end one if statement while keeping another going.
if #_G.getTeam(game.Teams.Survivors) == 0 then -- I want to keep this running
if first_infected.StarterGear.Revolver ~= nil then --I want to end this.
first_infected.StarterGear.Revolver:Destroy()-- end here
_G.infected()
game.Workspace.Field1.Parent = game.Lighting
wait(3)
game.Lighting.Field1.Parent = game.Workspace
So basically where can I put the end to end the second if statement? Do I make sense. Thanks!

4 comments
Well explained. So I +1 but before I accept how can I apply that to my script?
Oh, then, for lines 8-10, you do something like 'end', next line your coding for the first, then for the last another 'end', the first end that is applied ends the code for the second 'if' statement, you can do more code after that, and do the same for the next end. Hope this helped! :)
Edited: to end that part, just put an 'end' after line 3. :)
You ought to indent your code so that it is more readable and so that you don't have to explain which
endends which if statement.