I think its because the values aren’t set to anything. This defaults them to nil. You should put if value1 ~= nil just incase the data is nil, so your script won’t break.
It’s nil because it doesn’t exist. Values 1-5 are entered into the array portion of the table which are indexed as 1-5. You’re attempting to access the index “value1” of the TeleportData table which doesn’t exist. value1 lives in the index TeleportData[1].
Consider packing your values into a table instead:
Or following the above advice by turning your teleportData table into a dictionary instead of a mixed table. You typically don’t want to have mixed tables anyway, Roblox APIs are known to be very unkind towards them.