local asynccode = p.Name .. "pts"
if not (ds:GetAsync(asynccode) or false) then
ds:SetAsync(asynccode, 0)
end
local asynccode2 = p.Name .. "hs"
if not (ds:GetAsync(asynccode2) or false) then
ds:SetAsync(asynccode2, 0)
end
ds:UpdateAsync(asynccode, pts.Value)
ds:UpdateAsync(asynccode2, hs.Value)
Output: Unable to cast value to function
pts.Value is a number, same for hs.Value. It must be in my wording, what is wrong?
THIS IS A SNIPPIT OF THE FUNCTION, IT RUNS UP TO HERE (I can see through prints).
I have posted this on roblox forums, you can find that here.
