if moneytype == "Bank" then
game.Players.(playervariable).PlayerStats.CashOnHand.Value + amount
How would I get around that, as it doesn’t work, as in using a variable and accessing it through game.Players?
if moneytype == "Bank" then
game.Players.(playervariable).PlayerStats.CashOnHand.Value + amount
How would I get around that, as it doesn’t work, as in using a variable and accessing it through game.Players?
game.Players[playervariable].PlayerStats.CashOnHand.Value = game.Players[playervariable].PlayerStats.CashOnHand.Value + amount
I wasn’t exactly sure what you were talking about.