so whenever a player dies its supposed to add 1 to the player's ordereddatastore but this shows up
https://gyazo.com/b5a29f5b2b6360fc3613f12e75e2fedf
local ods = game:GetService("DataStoreService"):GetOrderedDataStore("HSKills") local hum = script.Parent function change() local tag = hum:FindFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then local plr = game.Players[tag.Value] ods:IncrementAsync(plr,1) end end end hum.Died:connect(change)
I haven't worked with OrderedDataStore's at all but it looks okay to me while comparing this to the wiki.
Anyways the problem on Line 8 is that its only getting the Player from the Players service. You need the name of that player or a key.
Simply on line 8:
local plr = game.Players[tag.Value].Name
I don't think you should use the Name of the player as the key since the player is able to just change his name at any time.