01 | local ds = game:GetService( "DataStoreService" ) |
02 | local cs = ds:GetDataStore( "Cash" ) |
03 |
04 | game.Players.PlayerAdded:Connect( function (plr) |
05 | local Cash = plr:WaitForChild( "leaderstats" ):WaitForChild( "Cash" ) |
06 |
07 | local data |
08 | local succ, err = pcall ( function () |
09 | data = cs:GetAsync(plr.UserId.. "_cash" , Cash) |
10 |
11 | if succ then |
12 | Cash = data |
13 | print ( "a" ) |
14 | end |
15 | end ) |
please help! it says
1 | nil |
when i leave which means nothing or there was an error
Please use nice words and not ''Guys'' I personally can't stand this. Try to put value behind Cash.
1 | Cash.Value = 0 |
I see you did this at line 19, try to do this at line 5, 9 and 12 too.
Reply if it doesn't work!