i was making a daily reward system from the youtuber alvinblox but i got an error saying "SetASync is not a valid member of GlobalDataStore" line 62
001 | local DataStore = game:GetService( "DataStoreService" ):GetDataStore( "DailyRewards" ) |
002 |
003 |
004 |
005 | local hourWait = 24 |
006 |
007 |
008 |
009 | local possibleRewards = { 10 , 15 , 10 , 10 , 5 , 5 , 5 , 5 , 5 , 1000000 , 300 , 500 , 1000 , 100 , 600 , 5 , 5 , 75 , 25 , 80 , 100 , 1000000 , 5000000 } |
010 |
011 |
012 |
013 |
014 |
015 | game.Players.PlayerAdded:Connect( function (player) |
line 67 cuz the thing is weird for me its, the code aint going in this correctly
i fixed it a long time ago but i forgot to answer my own question lol all i had to do was enable studio access to API services