So my problem is exactly what the title says, when I try to copy and paste a large amount of number into a script, it shows an error “Malformed Number” and with that it replaces an area of where part of my numbers would be into a bunch of random letters… How do I fix this and why does it do this?
I have a feeling that the number that you have inputted is not actually a number. Check your script to make sure that the number isn’t fused with other variables as in this case where the script said 0.Health
.
1 Like
It is a number, it looks something like {{0,13,493,955,135},{4,31},{9,41}}
but when I copy and paste that it changes the numbers completely into random letters
1 Like
I think you may be referencing the table instead of the contents of the table. Table names have random letters. You can try it:
local table = {}
print(table)
> 32A0F2B8 -- Example table name
Since you have a table in a table, by doing print(table[1])
, you are referencing the first table in the table, and not it’s contents.
What you should be doing is:
local maintable = {{0,13,493,955,135},{4,31},{9,41}}
local firsttable = maintable[1]
print(firsttable[1])
print(firsttable[2])
> 0
> 13
2 Likes
Doing:
print(unpack(table))
is a much simpler solution for printing the contents of a table.