#Table replacing value

3 messages · Page 1 of 1 (latest)

plain yew
#

I tried to make a script where I get the robux price of all accessories I am inserting/detecing and add the prices into a table. Instead of it adding all the numbers into the table it adds one, then replaces it when table.insert is ran again. Example: if asset.Robux equals 10 and I add that to the table, the table will have a 10 value, if then asset.Robux then changes to 50 instead of 10 it inserts it replaces the 10 value in the table instead of just adding 50 into the table. Is there a way I can fix this.

dapper goblet
#

If You're using loop or something, put the table outside of the scope so it doesnt get freed

digital spire