I made a for i,v in pairs loop run to check a table and create a value based off of that, it doesn’t print or error at all.
Code:
for name, value in pairs(toload) do
print("Value created")
local newvalue = Instance.new("IntValue",folder)
newvalue.Name = name
newvalue.Value = value
end```
toload is probably empty. Check its length by using the operator #, therefore print(#toload). You can take advantage of this with an additional if statement assuring that the table isn’t empty.
In the other hand, other issues can stem from the location of the script. If it’s incorrectly parented, it would never work.
Yes The Previous People are Right I do Believe that the list is empty I made a similar script and I got things printed
local testDictionary = {"Welcome","Bye","Hi"}
for name, value in pairs(testDictionary) do
print("Value created")
print(name)
print (value)
end
Name = Welcome and Value = 1
Name = Bye Value = 2
and Name = Hi Value = 3
simmilarly a script like this
local testDictionary = {
Greeting = "Welcome",
End = "Bye",
Greeting2 = "Hi"
}
for name, value in pairs(testDictionary) do
print("Value created")
print(name)
print (value)
end
Name = Greeting Value = Welcome
Name = End Value = Bye
Name = Greeting2 Value = Hi
So Maybe try printing the list and see if there is anything since like the examples they should work