Hi - Right now this is my code but it doesn't seem to be working...
if tlc ~= nil then
tlc.Name = tostring(tonumber(tlc.Name) + 1)
end
it's in a for loop and i'm trying to make its name go up by one for example
First time entire for loop runs, name = 1 Second time, name = 2 etc... but i get this error:
Attempt to preform arithmetic on a nil value
which i sort of understand, but how can a part's Name be nil?

2 comments
1 + nil = error. For your information, if tonumber cannot transform the string into a number, it returns nil.
tonumber(tlc.Name) is nil, which means there is a non-digit or decimal value such as a , or a *