Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Could you build a "multiple if" statement like this?

Asked by 4 years ago

I am just wondering because I have some code but I wanted to know if this would properly work.

 if choosen == 2 then
    if SuicidechosenAction == "died" or SuicidechosenAction == "commited self-murder" or SuicidechosenAction == "self-deathed" then
        action.Font = Enum.Font.SourceSansItalic
        action.TextColor3 = Color3.fromRGB(255, 0, 0)
        elseif choosen == 1 then
    if chosenAction == "murdered" or chosenAction == "messed up" or chosenAction == "killed" then
        action.Font = Enum.Font.SourceSansSemibold
        action.TextColor3 = Color3.fromRGB(0, 255, 0)
    end
    end
    end

Answer this question