function PointsService.KnitInit(I)local R=Random.new()I.Client.GiveMePoints:Connect(function(C)local y=R:NextInteger(0,10)I:AddPoints(C,y)print("\071\097\118\101 "..(C.Name..(" "..(y.." \112\111\105\110\116\115"))))end);(game:GetService("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(R)I.PointsPerPlayer[R]=nil print("\067\108\101\097\110\101\100 \117\112 "..(R.Name.."\'\115 \100\097\116\097 \098\101\099\097\117\115\101 \116\104\101\121 \108\101\102\116\033"))end)end return PointsService

function PointsService:KnitInit()

    local rng = Random.new()

    -- Give player random amount of points:
    self.Client.GiveMePoints:Connect(function(player)
        local points = rng:NextInteger(0, 10)
        self:AddPoints(player, points)
        print("Gave " .. player.Name .. " " .. points .. " points")
    end)

    -- Clean up data when player leaves:
    game:GetService("Players").PlayerRemoving:Connect(function(player)
        self.PointsPerPlayer[player] = nil
		print("Cleaned up "..player.Name.."'s data because they left!")
    end)

end

return PointsService
