#lil problem saving clicks on a game
87 messages · Page 1 of 1 (latest)
how to send it ?
sorry but I dont look at screenshots
only the script itself since I need put in my visual studio
in studio?
this is wrong tho
it should be
game:BindToClose(function()
for _, Player in pairs(game.Players:GetPlayers()) do
local playerUserId = "player_".. Player.UserId
local clicksValue = Player.leaderstats.Clicks.Value
local sucess, errormessage = pcall(function()
clicksDataStore:SetAsync(playerUserId, clicksValue)
end)
end
end)
BindToClose doesnt have a player parameter
oh ok
** You are now Level 1! **
I already try in game
I never try in studio
Still don't work and it's published
@wild briar u exploded ?
yes sadly
oh
I will be unalive until tomrrow
Check settings
oh
Security
a wild pokemon has appeared
and enable everything
ok
then try
which settings
game settings
now I try ?
are they all turned to true?
🤦 its so ez
** You are now Level 4! **
like 1/2hr ago I began
I thought you were smart even I could solve this problem
np
xD
** You are now Level 2! **
lol
well ty
u beat me.. i didnt expect such problem to appear...
I fix code not studio helper
Its the first this u do with datastores
I expected him to do that since he started making the script....
And I dont even know how to do datastore 🤦♂️