Okay so I have this gui I made that will spawn me a car and I press purchase and in the output chat it says "Cash is not a valid member of Player" The script I made and am using is on the following site: https://gyazo.com/3c8effe6c2f862d10738c581a5f2a53a I really need help I really wanna impress my friends so if you could answer my question I would appreciate it very much. Thank you!
COMMUNITY QUESTION
How to fix "Cash is not a valid member of Player"?
1 answer
Line 10 is the problem, you just referenced cash wrong.
3 comments
1
Wait I'm confused what do you mean referenced
1
Nevermind I had to add leaderstats in line 10 near "if game.Players.LocalPlayer.Cash.Value"
0
by referenced i meant defined sorry, always glad to help though
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You more than likely have your cash store in a leaderboard correct?, the leaderboard folder would be a child of local player, so instead youd put localplayer.leaderstats.Cash
Please post the script here.