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)

1 comment
My guess is that creator is not a StringValue object but an ObjectValue. The hint? The error talks about using userdata. The value object of StringValue would be a string. You didn't tell us what the creator tag is so we cannot help you at the moment. What is the creator tag?