Hi there! My datastore save script won't work. But, when I execute it using the command line, it does. Any help is welcome.
local DataStoreService = game:GetService("DataStoreService") local Wins = DataStoreService:GetDataStore("Wins") game.Players.PlayerRemoving:connect(function(player) print('player left') local success, newName = pcall(function() return game:GetService("DataStoreService"):GetDataStore("Wins"):SetAsync(114962047, 55) end) if success then print("success") end end)
Thanks in advance, Jonas
You enabled API services?
If not, get to Develop.
Find the game you wanna edit, and press the gearbox nearby the "Edit" button.
Click "configure game"
Check the "Enable Studio Access to API Services".
And it should work.