function module.ChangeStat(l,W,o,O)local b=main.pd[W]if b then local l=b[o]l=O main.pd[W][o]=l main.pd[W].DataToUpdate=true main.signals.ChangeStat:FireClient(W,{o,l})if o=="\082\097\110\107"then main.signals.RankChanged:FireClient(W)end end end

function module:ChangeStat(player, statName, changeValue)
	local pdata = main.pd[player]
	if pdata then
		local newValue = pdata[statName]
		--[[
		if type(changeValue) == "number" and tonumber(newValue) then
			if changeValue == "reset" then
				newValue = 0
			else
				newValue = newValue + changeValue
			end
		else--]]
			newValue = changeValue
		--end
		main.pd[player][statName] = newValue
		main.pd[player].DataToUpdate = true
		main.signals.ChangeStat:FireClient(player, {statName, newValue})
		if statName == "Rank" then
			main.signals.RankChanged:FireClient(player)
		end
	end
end
