#Datastore problem
1 messages · Page 1 of 1 (latest)
wait i might be able to fix it
i tried executing the first part after the player left but it still didnt work
i put it in a while loop but it crashed studio

Of course studio crash if you put while loop without wait.
Why do you use "Get" in playerRemoving instead Set?
i forgot
"Get" is not saving
set isnt saving either
it saves once at the start of the game
this must be a long message
I haven't touched Datastore yet.
But i belive u want to use
local data
local sucess, err = pcall(function()
data = coinStore:GetAsync(key)
end
if sucess then
money.Value = data
end
-- on Removing:
local sucess, err = pcall(function()
coinStore:SetAsync(key, coins.Value)
end)
** You are now Level 2! **
it didnt work
game:bindtoclose