I'm trying to make a variable for the players cash stat. The players cash stat is located in a folder inside ServerStorage. the cash stat is named whatever the players username is. is there anyway I could make the "player" variable a string so I could use it to get the players cash stat?
this is the error I'm getting. "player is not a valid member of Folder"
giver.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local cash = game.ServerStorage.PlayerMoney.player

1 comment
ah ok thank you. I tried player.Name just without the brackets.