function PointsService.AddPoints(t,G,r)local q=t:GetPoints(G)q+=r t.PointsPerPlayer[G]=q if r~=0 then t.PointsChanged:Fire(G,q)t.Client.PointsChanged:Fire(G,q)end if q>t.Client.MostPoints:Get()then t.Client.MostPoints:Set(q)end end

function PointsService:AddPoints(player, amount)
    local points = self:GetPoints(player)
    points += amount
    self.PointsPerPlayer[player] = points
    if (amount ~= 0) then
        self.PointsChanged:Fire(player, points)
        self.Client.PointsChanged:Fire(player, points)
    end
    if (points > self.Client.MostPoints:Get()) then
        self.Client.MostPoints:Set(points)
    end
end
