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.

3 comments

0

u cant set values into a variable

0

This is what I have... local stats = game.ServerStorage.Items[item.Name].Stats.MoneyGive.Value

0

just do ItemStats, stats