Hello, i have this script that detects the models inside a folder
local Lilyndex = 1
local MaxIndex = 85
local CurrentIn = 0
local Path = script.Parent
for current = Lilyndex, MaxIndex do
CurrentIn = CurrentIn + 1
local Names = "Lily000"
if CurrentIn < 10 then
Names = "Lily00"..CurrentIn
else
if CurrentIn < 100 then
Names = "Lily0"..CurrentIn
else
Names = "Lily"..CurrentIn
end
end
end
“Script” is where it is located
The problem: I named them like this for a reason, but starting at Lily011 the model wont get any changes. It seems like the script are trying to find “Lily004” though in this case it shouldn’t exist, how to fix this script?