Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Table value not changing while others will?

Asked by 5 years ago
Edited 5 years ago

Sorry for the bad title but what I'm making an attempt to do is return a value from a server script using a remote function (which works for everything but this one) to show the stats for an item.

This is what's in the local script (snippet)

stats.Text = "Gives $"..tostring(ItemStats[4])

This is what's in the server script (snippet)

table.insert(ItemStats,4,stats)

The variables I know for a fact are correctly defined because I began copying and pasting from other things for the item such as the items name.

This makes 0 sense to me at all and I'm at a total loss here.

0
u cant set values into a variable tacotown2 119 — 5y
0
This is what I have... local stats = game.ServerStorage.Items[item.Name].Stats.MoneyGive.Value VeryDarkDev 47 — 5y
0
just do ItemStats, stats User#24403 69 — 5y

Answer this question