I do not know whats wrong with this It'll be Much Appreciated if Helped
local DataStore = game:GetService("DataStoreService")
local ds1 = DataStore:GetDataStore("ExpDataStore")
game.Players.PlayerAdded:connect(function(plr)
local leader = Instance.new("Folder", plr)
leader.Name = "leaderstats"
local stats = Instance.new("IntValue", leader)
stats.Name = "stats"
stats.Value = ds1:GteAsync(plr.UserId) or 1
ds1:SetAsync(plr.UserId, stats.Value)
stats.Changed:connect(function()
print(plr.UserId.."s Data Of"..stats.Value.." "..stats.Name.." has been saved")
end)
end)
heres the output
10:02:33.115 - HTTP 0 (HTTP 403 (HTTP/1.1 403 You do not have permission to manage this place. You don't have edit permissions.)) 10:02:33.116 - Stack Begin 10:02:33.117 - Script 'ServerScriptService.DataStoreController', Line 10 10:02:33.117 - Stack End
Thanks For Everything

4 comments
Please make appropriate titles for your posts. Your title should be a summarized version of your question.
Is it your own place?
On line 10 you put GteAsync instead of GetAsync, that's not your problem but you may want to correct that. Are you getting this error whilst testing in studio?
Yes its my place