#how do i fix it?
31 messages · Page 1 of 1 (latest)
where is "currentAmmount" defined in the script?
in line 70
print out current ammount to see what it says
wdym
do this
print(currentAmmount)
and if it returns nil, etc
you know your pcall is failing
which is why you should do this instead
local Attempt = 1
repeat
task.wait(0.5)
local success, currentAmmount = Pcall(function()
return DonationStore:GetAsync(userId)
end)
Attempt += 1
until success or Attempt >= 10
nothing was printed
its not passing the :GetAsync() then

do I replace that it with this?
yeah, try that
ye
** You are now Level 5! **
keep the userId and lowercase the p
wdym? (sry, im so so begginer
)
the p in pcall is capitalized, you need to lowercase that
oh
and in :GetAsync()
ok
use player.UserId
no error appears, but the donation board is not working (it wasn't before either)
I have no idea then