On the lines 4-6 are the same error's and I do not know how to fix it. I've been looking around the internet for a solution but I can not seem to get it to work. May I ask what is wrong and if there are any errors in the rest of the script?
local Front = game.ReplicatedStorage.FrontSentence
local Adjective = game.ReplicatedStorage.RandomWord
local Back = game.ReplicatedStorage.BackSentence
local selectedIndex1 = math.random(#Front)
local selectedIndex2 = math.random(#Adjective)
local selectedIndex3 = math.random(#Back)
local one = table.remove(Front, selectedIndex1)
local two = table.remove(Adjective, selectedIndex2)
local three = table.remove(Back, selectedIndex3)
print (one, two, three)
I don't know too much about Lua so I do not really understand the Random values too well as it's quite different from Python. Any help will be beneficial. Thanks!

1 comment
do (1, #Back) and do that for the rest of them,this will generate it from 1 to Back