Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is my Error? I need Help with this DataStore Shows problem in the output

Asked by 7 years ago

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

0
Please make appropriate titles for your posts. Your title should be a summarized version of your question. antonio6643 426 — 7y
0
Is it your own place? MineJulRBX 52 — 7y
0
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? General_Scripter 425 — 7y
0
Yes its my place OnlineSaiyan 28 — 7y

Answer this question