Hello, Im trying to make a Rank script or stringvalue but i did an elseif it underlined end i tried to put another end but it didnt work. How can i make elseif?(btw its in scriptservice)
1 | local function onPlayerJoin(player) |
2 | if player.leaderstats.RankStats > = 1 then |
3 | player.leaderstats.Rank.Value = "Rookie" |
4 | end |
5 | end |
6 |
7 | game.Players.PlayerAdded:Connect(onPlayerJoin) |
try doing this:
1 | local function onPlayerJoin(player) |
2 | if player.leaderstats.RankStats > = 1 then |
3 | player.leaderstats.Rank.Value = "Rookie" |
4 | elseif |
5 |
6 | end |
7 | end |
8 |
9 | game.Players.PlayerAdded:Connect(onPlayerJoin) |
put elseif under the if statement without an end. you can do limitless elseif's by putting each elseif under an elseif. if you do an else, you end the whole if/elseif/else thing.