R
roblox-ts•2w ago
Rennie

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?
No description
No description
Solution:
Message Not Public
Sign In & Join Server To View
Jump to solution
4 Replies
Unknown User
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Rennie
RennieOP•2w ago
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
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View
Rennie
RennieOP•2w ago
šŸ¤¦ā€ā™‚ļø You're correct it was my logic as soon as u said this I knew it had to be me šŸ™ Thank you

Did you find this page helpful?