TS Index isn't properly translated into luau?
For some reason when my TS code that references an index is translated to luau it addes + 1 to the index. This leads to the card beside the intended card being selected... Is there something I am misundertanding about TS and luau conversion?


4 Replies
Unknown Userā¢2w ago
Message Not Public
Sign In & Join Server To View
That I understand
which makes sense why i see cardsIndex[1]
what I dont understand is the + 1 in cards[choosenIndex + 1 ]
Solution
Unknown Userā¢2w ago
Message Not Public
Sign In & Join Server To View
š¤¦āāļø You're correct it was my logic
as soon as u said this I knew it had to be me
š Thank you