So I was making a data store I got an error
"Attempt to index nil with Bucks"
Script:
if success then
jacobBucks.Value = player_data.Bucks
end
local player_data = {
Bucks = player.leaderstats.Bucks.Value
}
So I was making a data store I got an error
"Attempt to index nil with Bucks"
Script:
if success then
jacobBucks.Value = player_data.Bucks
end
local player_data = {
Bucks = player.leaderstats.Bucks.Value
}
When initializing Bucks, try using WaitForChild, You most likely tried to access Bucks before it loaded, if you are trying to use the explorer for Bucks
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
What is player defined as? And is it in a function?