Hello there!
I followed a tutorial by AlvinBlox about DataStore2. I tryed it out myself of course. But I have an issue with it. I have this error printing multiple times in the output that says:
HTTP 403 (Forbidden)
Here is the script I made in ServerScriptService:
local dataStore2 = require(game.ServerScriptService.MainModule)
local defaultValue = 0
game.Players.PlayerAdded:Connect(function(plr)
local cashDataStore = dataStore2("Cash", plr)
local leaderstats = Instance.new("Folder", plr)
leaderstats.Name = "leaderstats"
local Cash = Instance.new("IntValue", leaderstats)
Cash.Name = "Cash"
local function cashUpdate(updatedValue)
Cash.Value = cashDataStore:Get(updatedValue)
end
cashUpdate(defaultValue)
cashDataStore:OnUpdate(cashUpdate)
end)
game.Workspace:WaitForChild("Part"):FindFirstChild("ClickDetector").MouseClick:Connect(function(player)
local cashDataStore = dataStore2("Cash", player)
cashDataStore:Increment(50,defaultValue)
end)
Any help will be much appreciated, Have a fantastic day!

1 comment
Can you... accept my answer?