#Problems saving the game...
94 messages · Page 1 of 1 (latest)
When you say saving your game do you mean that nothing loaded
The problem is that there is a value in leaderstats and it is never saved, I don't know why...
im not the best at understanding leaderstats, but does it like automatically give u a value from the start and then when you make progression and leave the game and join back, does it lose the value you earnt?
so when u make progress you lose it
the game is a click type when I click on a gui surface the leaderstats value increases... like this...
is there a image?
** You are now Level 2! **
of what?
like how the game works or like a video
Well firstly if you want your game to allow saving stuff, enable studio access to** API services** in game settings
Also what is the value called
the leader stat value
Sorry I can't respond, I'm back!
I have already activated the API! the names are Iron and Salt kkk
@indigo mauve
it doesn't say anything... that's the problem
just don't keep it...
sorry i was playing a game, @chilly belfry im not very sure how to deal with it, but just so yk, keep API on
Its the best advice i could give LOL
ok
hum ok
i go tell you 1 sec
my game is a click game that when I click on a gui surface increases a value in the leaderstats (the name of the 2 values are Iron and Salt) do you understand?
@coarse zenith
sure
you can help me?
are you gonna tell me what the issue is?
show scirpt
I don't have any because none of them worked so I eliminated them
well then i can't really help you lol
again
?
?
I've already done it, can you tell me why it's not working?
@coarse zenith
sorry for taking so long
** You are now Level 3! **
😦 @coarse zenith
So how can I solve it?
hum
I've read it but I don't understand what the problem is
move playerremoving event out of the playeradded event and make it there
god i am so tired hold on
?
what
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
-- this is when a player joins, the word player here is the player that joined
end)
Players.PlayerRemoving:Connect(function(player)
-- this runs when a player leaves, and the word player here is the player that left
end)
yes and?
so save the data under playerremoving
ok
for player
yea, remove the playerremoving in the playeradded function
like this?
yea
i don't know why but playerremoving does not work in studio for me, try in a live game
before
after
l
when I come in again
@coarse zenith
It doesn't work inside the game unless it's from Roblox Studio...
ok bye good night
oh yeah just so you know, im 90% sure thats not how you save tables, i never used datastoreservice so :shrug: